@fluencelabs/deal-aurora v0.2.17
Deal Contracts System
Develop
Publish typechain
You have to open the main branch and pull the latest version of it locally Then do the following (replace versions with the actual versions that you want):
git tag -a v0.0.0 -m ""
git push origin v0.0.0Run local network with contracts
npm install
npm run compile
npx hardhat nodeRun local network with contracts in docker
docker-compose up -dDeploy
We used to use hardhat-deploy plugin to deploy smart contracts on chains and track differences of the contracts (plugin identifies if the contract changed and deploy/update contract).
Note, that we commit our deployed contract addresses into the repo, e.g. Faucet contract from the kras: src/deployments/kras/Faucet.json. Thus, if you run deploy commands described below the addresses may change (if the contract in the network differs from the contract in you repo) and there will be git diff you ought to propagate the teams/community.
For all available for the hardhat-deploy networks and their writings, please refer to
networksfrom hardhat.config.ts.
Ethereum Public Networks
For public test-net chains and production chains: do not forget to set appropriate in your .env file:
WAIT_CONFIRMATIONSin.env(e.g. 5-8)PRIVATE_KEYfor the deployer (raw private key)
Run Deploy
After you prepared .env file and did npm i, to deploy all contracts to e.g. kras:
npm run deploy:kraswe also have
all->npm run deploy:all
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago