Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
bootstrapContracts.js
buySellDrago.js
createDrago.js
package.json
setPriceAndFee.js
utils.js
yarn.lock

README.md

API examples

Setup

Install all dependencies

From the examples directory, run:

npm i

or using yarn:

yarn

Start up Ganache

Ganache is required and must be up to run the examples locally. A cli version is also available.

Bootstrap contracts onto Ganache

From the examples directory:

  node bootstrapContracts.js

This will deploy all the smart contracts in order on the Ganache local blockChain.

Run the example files

Each example file can be run with node.

eg.

  node createDrago.js
You can’t perform that action at this time.