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
localhost environmentBefore running the examples, you will need to kick off a hardhat local node. This will fork the mainnet.
npx hardhat nodeYou 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 localhostRunning in goerli environment
goerli environmentSimply run example's deployment script:
npx hardhat run examples/ethfs_p5/deploy.js --network goerliLast updated