diff --git a/projects/messenger/xdapp.config.json b/projects/messenger/xdapp.config.json index 8fce8fa..d9c1145 100644 --- a/projects/messenger/xdapp.config.json +++ b/projects/messenger/xdapp.config.json @@ -5,21 +5,24 @@ "wormholeChainId": 2, "rpc": "http://localhost:8545", "privateKey": "0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d", - "bridgeAddress": "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550", - "deployedAddress": "0x4339316e04cffb5961d1c41fef8e44bfa2a7fbd1", - "emittedVAAs": [] + "bridgeAddress": "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550" }, "eth1": { "type": "evm", "wormholeChainId": 4, - "rpc": "Http://localhost:8546", + "rpc": "http://localhost:8546", "privateKey": "0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d", - "bridgeAddress": "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550", - "deployedAddress": "0x4339316e04cffb5961d1c41fef8e44bfa2a7fbd1", - "emittedVAAs": [] + "bridgeAddress": "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550" + }, + "sol0": { + "type": "solana", + "wormholeChainId": 1, + "rpc": "http://localhost:8899", + "privateKey": "", + "bridgeAddress": "" } }, "wormhole": { - "restAddress": "" + "restAddress": "http://localhost:7071" } } \ No newline at end of file diff --git a/projects/wormhole-local-validator/evm.sh b/projects/wormhole-local-validator/evm.sh index 860ce5c..abc94ab 100644 --- a/projects/wormhole-local-validator/evm.sh +++ b/projects/wormhole-local-validator/evm.sh @@ -3,11 +3,11 @@ set -euo pipefail # Start EVM Chain 0 -npx pm2 stop evm0 2> /dev/null || true +npx pm2 delete evm0 2> /dev/null || true npx pm2 start 'npx ganache -p 8545 -m "myth like bonus scare over problem client lizard pioneer submit female collect" --block-time 1' --name evm0 # Start EVM Chain 1 -npx pm2 stop evm1 2> /dev/null || true +npx pm2 delete evm1 2> /dev/null || true npx pm2 start 'npx ganache -p 8546 -m "myth like bonus scare over problem client lizard pioneer submit female collect" --block-time 1' --name evm1 cd wormhole/ethereum @@ -16,9 +16,9 @@ cd wormhole/ethereum make .env build # 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_algo_chain.js && nc -lkp 2000 0.0.0.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 # Deploy Wormhole Contracts to EVM Chain 1 perl -pi -e 's/CHAIN_ID=0x2/CHAIN_ID=0x4/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_algo_chain.js && nc -lkp 2000 0.0.0.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 perl -pi -e 's/CHAIN_ID=0x4/CHAIN_ID=0x2/g' .env && perl -pi -e 's/8546/8545/g' truffle-config.js diff --git a/projects/wormhole-local-validator/wormhole.sh b/projects/wormhole-local-validator/wormhole.sh index 5c31c12..0ef3232 100755 --- a/projects/wormhole-local-validator/wormhole.sh +++ b/projects/wormhole-local-validator/wormhole.sh @@ -4,5 +4,5 @@ set -euo pipefail # Start guardiand -npx pm2 stop guardiand 2> /dev/null || true +npx pm2 delete guardiand 2> /dev/null || true npx pm2 start './guardiand.sh' --name guardiand