f6f7e8fa65
* Initial spy relayer * Adding "scan" functionality * try to may spy_rest send to rest_relay * Refactor into a single process * Create docker image * Update README.md * Have a consistently formatted file * Remove extraneous err * remove extraneous error * Changed keys to scanIterator * Refactor async/await code * Add ability to only run certain features * Fix Broken listener * Process pyth messages * Fix async problem * Initial attempt to submit transfers * relay method needs an await * Make redis client local * Added some constants * Relay to EVM, Solana and Terra * Make terra chainID come from the env * Make relay method figure out the target chain * Adding worker code * Start of integration tests * Eth to Solana integration test * ETH->Sol test querying of spy relay is wrong * Upgrade to sdk version 1.4 * Add Eth to Terra test * Tested multi thread scenario * Beef up tests to check if redeemed * Use sleep in helpers * Make relay verify the redeem happened * Storing of pyth in redis needs to await * Handle duplicates * Remove obsolete pyth stuff * Update README.md file * Make listen_only not use redis Co-authored-by: Paul Noel <panoel007@gmail.com> Co-authored-by: Bruce Riley <95238258+brucer1963@users.noreply.github.com> Co-authored-by: Paul Noel <35237584+panoel@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
.env.sample | ||
.gitignore | ||
Dockerfile | ||
README.md | ||
jestconfig.json | ||
package-lock.json | ||
package.json | ||
tsconfig.json |
README.md
In order to compile spy_relay you need to do:
npm ci
In order to run spy_relay successfully you need to do:
docker pull redis
The above will grab the docker for redis. In order to run that docker use a command similar to:
docker run --rm -p6379:6379 --name redis-docker -d redis
To run the redis GUI do the following:
sudo apt-get install snapd
sudo snap install redis-desktop-manager
cd /var/lib/snapd/desktop/applications; ./redis-desktop-manager_rdm.desktop
To build the spy / guardian docker container:
cd spy_relay
docker build -f Dockerfile -t guardian .
To run the docker image in TestNet:
docker run -e ARGS='--spyRPC [::]:7073 --network /wormhole/testnet/2/1 --bootstrap /dns4/wormhole-testnet-v2-bootstrap.certus.one/udp/8999/quic/p2p/12D3KooWBY9ty9CXLBXGQzMuqkziLntsVcyz4pk1zWaJRvJn6Mmt' -p 7073:7073 guardian
To run spy_relay:
npm run spy_relay