Giter Site home page Giter Site logo

zay-codes-lab / flow-sight Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 0.0 1.87 MB

Flow Sight: Simulation of asset movement and account changes in custom flow transactions with user-friendly UI for Dapper Wallet.

JavaScript 75.41% Cadence 19.02% HTML 2.38% CSS 1.30% Shell 1.89%

flow-sight's Introduction

Flow Sight

Logo

Made by Amit, Bilal, and Pratik

CLI

Flow Sight provides a command-line UX to simulate transactions, as well as displaying the current state of Flow Accounts based on the checks below.

Dry Run Command

The dry-run command will simulate the provided Cadence Transaction.

Usage: flow-sight dry-run [options] <cadenceFile> <jsonArgs> <addresses...>

Dry run the provided transaction.

Arguments:
  cadenceFile               Cadence file to dry run
  jsonArgs                  JSON arguments for the transaction in FCL format
  addresses                 list of addresses to check

Options:
  -n, --network <network>   Flow network (default: "testnet")
  -c, --checks <checks...>  Checks to run, if none provided, all checks will be run
  -d, --diff-only           Only return the diff between the current state and the proposed state
  -h, --help                display help for command

Examples

yarn run flow-sight dry-run ./example/mainnet/init-ufc.cdc '[]' 0xf9f7a4ebaf29be6c -n mainnet
yarn run flow-sight dry-run ./example/mainnet/send-flow.cdc '[{"type": "UInt64", "value": 0.00000001}, {"type": "Address", "value": "0x54b9b6c046396b55"}]' 0xf9f7a4ebaf29be6c -n mainnet
yarn run flow-sight dry-run ./example/mainnet/move-topshot.cdc '[{"type": "Address", "value": "0x85712baf7934898c"}, {"type": "UInt64", "value": 7576979}]' 0xf9f7a4ebaf29be6c -n mainnet

Current States Command

The current-states command will display the state of provided Flow Accounts based on our checks below.

Usage: flow-sight current-states [options] <addresses...>

Return the current state based on the available checks.

Arguments:
  addresses                 list of addresses to check

Options:
  -n, --network <network>   Flow network (default: "testnet")
  -c, --checks <checks...>  Checks to run, if none provided, all checks will be run
  -h, --help                display help for command

Examples

yarn run flow-sight current-states 0xf9f7a4ebaf29be6c -n mainnet

Extension

The extension provided in this package lets you preview transactions from Blocto and Dapper wallet right away. Install the extension to get started in trying it out.

How-to install

  1. Go to the Chrome extensions page by entering chrome://extensions in the address bar and pressing Enter.
  2. Enable Developer Mode by clicking the toggle switch in the top right corner of the page.
  3. Click the Load unpacked button in the top left corner of the page.
  4. In the file browser that appears, navigate to the /extension directory in your GitHub repository that contains the extension files.
  5. Select the /extension directory and click the Select button.

Checks

Supported Checks

Check Mainnet Testnet
Check FT Balances X X
Check NFTs X X
Check Public Path Capabilities X X
Check Private Path Capabilities X X

Onboarding new Checks

See example/checker.cdc for the template of your check.

flow-sight's People

Contributors

prpatel05 avatar aishairzay avatar bshahid331 avatar

Stargazers

 avatar lanford33 avatar Ben Yarbrough avatar Loïc Lesavre avatar Caos avatar Hao avatar  avatar Bjarte S. Karlsen avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.