cleaned up environment variables from xdapp.config.json

This commit is contained in:
spacemandev 2022-05-19 04:56:03 -05:00
parent 5514a2e301
commit 2c86a36dc0
4 changed files with 27 additions and 10 deletions

View File

@ -0,0 +1,18 @@
# Messenger
This program passes messages between the various connected chains.
It has a config (xdapp.config.json) that you'll usually find in xDapp Projects which outlines the RPC endpionts for various networks.
It also has a messenger.js, the main orchestration file that is in charge of carrying out the various tasks for each of the networks, like deploying code and interacting with contracts.
## Test
```
npm run test
```
## xdapp.config.json
TODO
## messenger.js
TODO

View File

@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "sh test.sh"
"test": "sh tests/eth0-eth1.sh"
},
"keywords": [],
"author": "",

View File

@ -1,3 +1,4 @@
cd ../
node messenger.js eth0 deploy
node messenger.js eth1 deploy
node messenger.js eth0 register_chain eth1

View File

@ -3,27 +3,25 @@
"eth0": {
"type": "evm",
"wormholeChainId": 2,
"rpc": "http://147.182.160.210:8545",
"privateKey": "0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d",
"rpc": "",
"privateKey": "",
"bridgeAddress": "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550",
"deployedAddress": "0xdd37b2eb92f97dd09ced1f1d20a73aa340b2311a",
"deployedAddress": "",
"emittedVAAs": [
"AQAAAAABAIdmeszZttqU5FVcyea0U43u7+aP7W5VJYXm5SfeWV3yCCdFZft2CKMf+N9ZcVe8xAkvUOS5r1bLwifJH5OaXyEAAAAwAgAAAAAAAgAAAAAAAAAAAAAAAN03suuS+X3QnO0fHSCnOqNAsjEaAAAAAAAAAAABRnJvbTogZXRoMFxuTXNnOiBIZWxsbyBXb3JsZCE="
]
},
"eth1": {
"type": "evm",
"wormholeChainId": 4,
"rpc": "http://147.182.160.210:8546",
"privateKey": "0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d",
"rpc": "",
"privateKey": "",
"bridgeAddress": "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550",
"deployedAddress": "0xed447acb0ceb49d77f317dd6d37cb64da7a7e7f8",
"deployedAddress": "",
"emittedVAAs": [
"AQAAAAABAIg4d8PvMFF37BarCvW0jSUxvxEtvnDeWU9xp+dps8EUB6OGwOggQU+lVowzPI39biro5W7lc5iKZ1I7z6n4uu8BAAEJ/QAAAAAABAAAAAAAAAAAAAAAAO1EessM60nXfzF91tN8tk2np+f4AAAAAAAAAAABRnJvbTogZXRoMVxuTXNnOiBIZWxsbyBXb3JsZCE="
]
}
},
"wormhole": {
"restAddress": "http://147.182.160.210:7071"
"restAddress": ""
}
}