Ganache Toolbox is a simple CLI to fund a Ganache test account with relevant tokens to execute tests on MyCrypto.
With npm
npm install -g @mycrypto/ganache-toolbox
Alternatively you can use npx
to use the CLI without installing it
npx @mycrypto/ganache-toolbox [...]
# To fund your account with 100 of each tokens the CLI support
ganache-toolbox --address [ your_address ] --instance [ instance_url ]
# To fund your account with one of the supported tokens
ganache-toolbox -address [ your_address ] --instance [ instance_url ] --token [ DAI | REP | LEND | GNT ]
# Specify the amount of tokens you want to be funded.
ganache-toolbox -address [ your_address ] --instance [ instance_url ] --amount [0...10000]
ganache-toolbox could ask you, if not used correctly, to correct your passed arguments. In order to use it inside a container pass the --yes
or -y
flag to avoid being prompted with questions.
# To disable prompting
ganache-toolbox --yes -address [ your_address ] --instance [ instance_url ]
--yes
/-y
: Disable prompt--instance
/-i
: URL of your ganache node--address
/-a
: The Ethereum address where the CLI will send the token(s)--token
/-t
: The available token you want to be found (Actually available:DAI, REP, LEND ,GNT
)--amount
/-m
: The amount of tokens you want
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
git clone https://github.com/MyCryptoHQ/ganache-toolbox.git
cd ganache-toolbox
yarn
yarn start
yarn build
built application can be found in the dist
folder
yarn test