Add setup instructions for xmint (#19)
* Add setup instructions for xmint, fix foundry config * undo deleting keypairs
This commit is contained in:
parent
12033d2911
commit
3bf6e1d38b
|
@ -1,4 +1,4 @@
|
|||
[default]
|
||||
[profile.default]
|
||||
src = 'src'
|
||||
out = 'out'
|
||||
libs = ['lib']
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[default]
|
||||
[profile.default]
|
||||
solc_version = "0.8.13"
|
||||
src = 'src'
|
||||
out = 'out'
|
||||
|
|
Loading…
Reference in New Issue