-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathpeggy-basic-demo.sh
50 lines (37 loc) · 1.96 KB
/
peggy-basic-demo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
## Case 1
## 1. send tx to cosmos after get the lock event in ethereum
sifnodecli tx ethbridge create-claim 0x30753E4A8aad7F8597332E813735Def5dD395028 3 eth 0x11111111262b236c9ac9a9a8c8e4276b5cf6b2c9 \
$(sifnodecli keys show akasha -a) $(sifnodecli keys show shadowfiend -a --bech val) 5 lock \
--token-contract-address=0x0000000000000000000000000000000000000000 --ethereum-chain-id=3 --from=shadowfiend --yes
# 2. query the tx
#sifnodecli q tx
# 3. check akasha account balance
sifnodecli q auth account $(sifnodecli keys show akasha -a)
# 4. query the prophecy
sifnodecli query ethbridge prophecy 0x30753E4A8aad7F8597332E813735Def5dD395028 3 eth 0x11111111262b236c9ac9a9a8c8e4276b5cf6b2c9 --ethereum-chain-id=3 --token-contract-address=0x0000000000000000000000000000000000000000
## Case 2
## 1. burn peggyetch for akasha
sifnodecli tx ethbridge burn $(sifnodecli keys show akasha -a) 0x11111111262b236c9ac9a9a8c8e4276b5cf6b2c9 \
1 ceth --ethereum-chain-id=3 --from=akasha --yes
## 2. query the tx
#sifnodecli q tx
## 3. check akasha account balance
sifnodecli q auth account $(sifnodecli keys show akasha -a)
## Case 3
## 1. lock akasha rwn in sifchain
sifnodecli tx ethbridge lock $(sifnodecli keys show akasha -a) 0x11111111262b236c9ac9a9a8c8e4276b5cf6b2c9 \
10 rwn --ethereum-chain-id=3 --from=akasha --yes
## 2. query the tx
#sifnodecli q tx
## 3. check akasha account balance
sifnodecli q auth account $(sifnodecli keys show akasha -a)
## Case 4
## 1. send tx to cosmos after peggyrwn burn in ethereum
sifnodecli tx ethbridge create-claim 0x30753E4A8aad7F8597332E813735Def5dD395028 1 rwn 0x11111111262b236c9ac9a9a8c8e4276b5cf6b2c9 \
$(sifnodecli keys show akasha -a) $(sifnodecli keys show shadowfiend -a --bech val) \
1 burn --ethereum-chain-id=3 --token-contract-address=0x345cA3e014Aaf5dcA488057592ee47305D9B3e10 --from=shadowfiend --yes
## 2. query the tx
#sifnodecli q tx
## 3. check akasha account balance
sifnodecli q auth account $(sifnodecli keys show akasha -a)