From 2c86a36dc03bf7b4a84a3c60b2f79e0b38cfb810 Mon Sep 17 00:00:00 2001 From: spacemandev Date: Thu, 19 May 2022 04:56:03 -0500 Subject: [PATCH] cleaned up environment variables from xdapp.config.json --- projects/messenger/README.md | 18 ++++++++++++++++++ projects/messenger/package.json | 2 +- .../messenger/{test.sh => tests/eth0-eth1.sh} | 1 + projects/messenger/xdapp.config.json | 16 +++++++--------- 4 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 projects/messenger/README.md rename projects/messenger/{test.sh => tests/eth0-eth1.sh} (98%) diff --git a/projects/messenger/README.md b/projects/messenger/README.md new file mode 100644 index 0000000..da8d474 --- /dev/null +++ b/projects/messenger/README.md @@ -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 \ No newline at end of file diff --git a/projects/messenger/package.json b/projects/messenger/package.json index 5006f4c..7abb5a1 100644 --- a/projects/messenger/package.json +++ b/projects/messenger/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "sh test.sh" + "test": "sh tests/eth0-eth1.sh" }, "keywords": [], "author": "", diff --git a/projects/messenger/test.sh b/projects/messenger/tests/eth0-eth1.sh similarity index 98% rename from projects/messenger/test.sh rename to projects/messenger/tests/eth0-eth1.sh index 7df65bd..d51eb27 100644 --- a/projects/messenger/test.sh +++ b/projects/messenger/tests/eth0-eth1.sh @@ -1,3 +1,4 @@ +cd ../ node messenger.js eth0 deploy node messenger.js eth1 deploy node messenger.js eth0 register_chain eth1 diff --git a/projects/messenger/xdapp.config.json b/projects/messenger/xdapp.config.json index 3bb6ce4..8dc906b 100644 --- a/projects/messenger/xdapp.config.json +++ b/projects/messenger/xdapp.config.json @@ -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": "" } } \ No newline at end of file