1
1
# Siftest User Guide
2
2
3
+ ## About
4
+
5
+ This can be used after running transactions to verify expected vs real changes.
6
+
3
7
## Installation
4
8
5
9
``` shell
@@ -10,6 +14,14 @@ make install
10
14
11
15
## Verify Add Liquidity
12
16
17
+ 1 . Execute add liquidity transaction
18
+ 2 . Verify by passing in the following arguments
19
+ 1 . --height [ height of transaction]
20
+ 2 . --from [ address of transactor]
21
+ 3 . --external-asset [ external asset of pool]
22
+ 4 . --nativeAmount [ native amount requested to add]
23
+ 5 . --externalAmount [ external amount requested to add]
24
+ 6 . --node [ node to connect to]
13
25
``` shell
14
26
siftest verify add --from sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd --height=43516 --external-asset=ceth --nativeAmount=96176925423929435353999282 --externalAmount=488436982990 --node tcp://localhost:26657
15
27
```
@@ -37,6 +49,13 @@ Pool share after 1.000000000000000000
37
49
38
50
## Verify Remove Liquidity
39
51
52
+ 1 . Execute remove liquidity transaction
53
+ 2 . Verify by passing in the following parameters:
54
+ 1 . --height [ height of transaction]
55
+ 2 . --from [ address of transactor]
56
+ 3 . --external-asset [ external asset of pool]
57
+ 4 . --units [ units requested for removal]
58
+ 5 . --node [ node to connect to]
40
59
Command
41
60
``` shell
42
61
siftest verify remove --from sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd --units 1000000000000000000 --height=33068 --external-asset=ceth --node tcp://localhost:26657
@@ -65,6 +84,14 @@ Pool share after 1.000000000000000000
65
84
```
66
85
67
86
## Verify Close Position
87
+
88
+ 1 . Execute close margin position
89
+ 2 . Verify by passing in the following params:
90
+ 1 . --height [ height of transaction]
91
+ 2 . --id [ mtp id]
92
+ 3 . --from [ owner of mtp]
93
+ 4 . --node [ node to connect to]
94
+
68
95
Run command using height of close transaction and MTP id.
69
96
``` shell
70
97
siftest verify close --from sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd --height=72990 --id=4 --node tcp://localhost:26657
0 commit comments