Integration tests that calls Contracts using LCD.
Run yarn install
and then node token.js
with the desired env vars as described below.
On the 1st run, you must run it with DEPLOY=all
to upload all the contracts to the chain and generate the code ids for the contracts.
DEPLOY: name of contract (name of the wasm file without the extension) or all
to upload all the contracts.
CONTRACTS: the folder with the optmized wasm files.
FACTORY: factory address, if Factory is already instantiated you can pass its address on this parameter to skip the deployment process.
npm run bombay:all
# expands to
DEPLOY=all CONTRACTS=../localterra-contracts/artifacts ./node_modules/node/bin/node token.js
npm run terrarium:all
# expands to
DEPLOY=all NETWORK=localterra CW20ID=1 CONTRACTS=../localterra-contracts/artifacts ./node_modules/node/bin/node token.js