Skip to content

A react page generator given your Smart Contract's ABI. Test/play with your smart contracts in a convenient local setup.

License

Notifications You must be signed in to change notification settings

XYOracleNetwork-v1/tool-dapper-react

Repository files navigation

logo

Dapper

"Simulate your Smart Contracts"


NPM

Codacy Badge BCH compliance DepShield Badge Quality Gate Status Known Vulnerabilities

The XYO Foundation provides this source code available in our efforts to advance the understanding of the XYO Procotol and its possible uses. We continue to maintain this software in the interest of developer education. Usage of this source code is not intended for production.

Check out Dapper, live at https://dapper.layerone.co to start playing with your smart contracts.

Table of Contents

Part One

Let's Get Dapper

  1. When in doubt, yarn it out in the project directory:
yarn
  1. Run dapper
yarn start

Part Two

Dapploy Some Contracts locally

We need to deploy some smart contracts

  1. Use Dapploy and create your first standalone smart contact project:
./dapploy init
./dapploy -P

or Use Truffle to deploy your smart contracts to any Ethereum blockchain, and note the folder of your ABI, usually in <truffle_project>/build/contracts

Part Three

View Local Contracts

  1. If you don't already have it, download and install Ganache from their site

  2. Same with MetaMask from their site

  3. Configure Ganache on 8545:

  • Open Ganache
  • Click the Gear Icon thingy ( ⚙️ ) to open Preferences.... Make sure that port is set to 8545.
  • Click "Save and Restart" in the top-right of Ganache
  1. Configure Metamask network to localhost
  • Sign into Metamask and change Network on Metamask to localhost 8545
  1. Add ganache account to metamask
  • In your Ganache UI, you'll see a list of ~10 addresses. Click the key icon (🔑) next to one of 'em. And then COPY the "Private Key"
  1. Start dapper. This should open up localhost:3000 in a chrome browser.
yarn start

You should see the Dapper UI with no smart contracts loaded.

Part Four

Play with your Smart Contracts

  1. In Dapper UI, go to the settings cog and select Local Path and enter <truffle_project>/build/contracts (Priject dir from Pt. II)

  2. Tap Save and you should be able to see the FungibleToken in the dropdown and play with it!

  3. Select name() function and you should see the name, "Fun Token" displayed.

Maintainers

  • Kevin Weiler

License

See the LICENSE file for license details.

Credits

Made with 🔥and ❄️ by XYO

About

A react page generator given your Smart Contract's ABI. Test/play with your smart contracts in a convenient local setup.

Resources

License

Stars

Watchers

Forks

Packages