forked from atticlab/wormhole
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Leo
committed
Nov 16, 2020
1 parent
1ca2e29
commit f072e8c
Showing
5 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
# Wormhole + Terra local test environment | ||
|
||
For the list of dependencies please follow [DEVELOP.md](../../DEVELOP.md) | ||
For the list of dependencies please follow [DEVELOP.md](../../DEVELOP.md). | ||
|
||
Additional dependencies: | ||
- [Node.js](https://nodejs.org/) >= 14.x, [ts-node](https://www.npmjs.com/package/ts-node) >= 8.x | ||
|
||
Start Tilt from the project root: | ||
|
||
tilt up | ||
tilt up --update-mode=exec -- --num=1 | ||
|
||
Afterwards use test scripts in `terra/tools` folder: | ||
|
||
npm install | ||
npm run prepare-token | ||
npm run prepare-wormhole | ||
|
||
These commands will give you two important addresses: test token address and Wormhole contract address on Terra. Now you need to change guardian configuration to monitor the right contract. Copy Wormhole contract address and replace existing address in file `devnet/bridge-terra.yaml` (line 67). Save the changes and monitor Tilt dashboard until guardian services restart. | ||
These commands will give you two important addresses: test token address and Wormhole contract address on Terra. | ||
Now you need to change guardian configuration to monitor the right contract. Copy Wormhole contract address and | ||
replace existing `TERRA_FEE_PAYER` address in `devnet/bridge.yaml`. | ||
|
||
Save the changes and monitor Tilt dashboard until guardian services restart. | ||
|
||
Now use both token address and Wormhole contract address to issue tocken lock transaction: | ||
|
||
npm run lock-tocken -- TOKEN_CONTRACT WORMHOLE_CONTRACT 1000 | ||
|
||
Where 1000 is a sample amount to transfer. After this command is issued monitor Guardian service in Tilt dashboard to see its effects propagated to the destination blockchain (in this case it is Ethereum). | ||
Where 1000 is a sample amount to transfer. After this command is issued monitor Guardian service in Tilt dashboard | ||
to see its effects propagated to the destination blockchain (in this case it is Ethereum). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters