Add setup instructions for xmint (#19)

* Add setup instructions for xmint, fix foundry config

* undo deleting keypairs
This commit is contained in:
Joe Howarth 2022-10-13 10:27:06 -05:00 committed by GitHub
parent 12033d2911
commit 3bf6e1d38b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 2 deletions

View File

@ -1,4 +1,4 @@
[default]
[profile.default]
src = 'src'
out = 'out'
libs = ['lib']

View File

@ -8,6 +8,39 @@ Behind this simple transaction is a set of complex Wormhole interactions.
## Setup
Prerequisites:
- wormhole-local-validator installed and running
- anchor
- foundry-rs
```bash
# starting in xmint root directory
yarn
cd chains/solana
yarn
anchor build
cd ../evm
forge install
cd ../..
cp keypairs/evm0.key.example keypairs/evm0.key
cp keypairs/evm1.key.example keypairs/evm1.key
cp keypairs/sol0.key.example keypairs/sol0.key
npx ts-node orchestrator.ts deploy evm0
npx ts-node orchestrator.ts deploy evm1
npx ts-node orchestrator.ts deploy sol0
ts-node orchestrator.ts register-app evm0 evm1
ts-node orchestrator.ts register-app evm1 evm0
ts-node orchestrator.ts register-app evm0 sol0
ts-node orchestrator.ts register-app evm1 sol0
ts-node orchestrator.ts register-app sol0 evm0
ts-node orchestrator.ts register-app sol0 evm1
ts-node orchestrator.ts buy-token evm0 evm1 5
```
### Contract Deploy

View File

@ -1,4 +1,4 @@
[default]
[profile.default]
solc_version = "0.8.13"
src = 'src'
out = 'out'