wlv: changed to register all chains, set .env variables evm (#30)

This commit is contained in:
Sushant Chandla 2023-01-31 09:39:42 +05:30 committed by GitHub
parent 565d1c8896
commit 2eb65aaa5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -14,11 +14,12 @@ cd wormhole/ethereum
#Install Wormhole Eth Dependencies
make .env build
sh .env
# Deploy Wormhole Contracts to EVM Chain 0
npm run migrate && npx truffle exec scripts/deploy_test_token.js && npx truffle exec scripts/register_solana_chain.js && npx truffle exec scripts/register_terra_chain.js && npx truffle exec scripts/register_eth_chain.js && npx truffle exec scripts/register_bsc_chain.js
npm run migrate && npx truffle exec scripts/deploy_test_token.js && npx truffle exec scripts/register_all_chains.js
# Deploy Wormhole Contracts to EVM Chain 1
perl -pi -e 's/CHAIN_ID=0x2/CHAIN_ID=0x4/g;s/EVM_CHAIN_ID=1/EVM_CHAIN_ID=1397/g' .env && perl -pi -e 's/8545/8546/g' truffle-config.js
npm run migrate && npx truffle exec scripts/deploy_test_token.js && npx truffle exec scripts/register_solana_chain.js && npx truffle exec scripts/register_terra_chain.js && npx truffle exec scripts/register_eth_chain.js && npx truffle exec scripts/register_bsc_chain.js
npm run migrate && npx truffle exec scripts/deploy_test_token.js && npx truffle exec scripts/register_all_chains.js
perl -pi -e 's/CHAIN_ID=0x4/CHAIN_ID=0x2/g;s/EVM_CHAIN_ID=1397/EVM_CHAIN_ID=1/g' .env && perl -pi -e 's/8546/8545/g' truffle-config.js