|
|
%!s(int64=3) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| react | 05425a96df examples: native swap | %!s(int64=4) %!d(string=hai) anos |
| swapPool | 5fad3baa9f examples: update WORMHOLE_RPC_HOSTS | %!s(int64=3) %!d(string=hai) anos |
| README.md | 05425a96df examples: native swap | %!s(int64=4) %!d(string=hai) anos |
This is a non-production example program.
The demonstrates a simple React program which can swap native EVM currencies, using only the wormhole bridge & a relayer.
It assumes that a fresh devnet is running in conjunction with the restRelayer example project.
/examples/core
/examples/rest-relayer
/examples/EthSwapNGo/swapPool
/examples/EthSwapNGo/react
cd /examples/EthSwapNGo/swapPool
npm run deployAndSeed
cd /examples/rest-relayer
npm run start
cd /examples/EthSwapNGo/react
npm run start