Running Examples

You can find all the example contracts here and their deployments here.

Running example deployment scripts

Running deployment scripts in localhost network will deploy new scripty contracts and its dependencies.

If you run the scripts in georli network, they will use existing deployed contracts and some of the already stored JS won't be submitted to the network.

Running in localhost environment

Before running the examples, you will need to kick off a hardhat local node. This will fork the mainnet.

npx hardhat node

You need to keep the node alive while running the examples.

Then, simply run example's deployment script:

npx hardhat run examples/ethfs_p5/deploy.js --network localhost

Running in goerli environment

Simply run example's deployment script:

npx hardhat run examples/ethfs_p5/deploy.js --network goerli

Last updated