@alephium/powfi-sdk 0.0.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/README.md +4 -0
  2. package/clmm/artifacts/BitmapWord.ral.json +125 -0
  3. package/clmm/artifacts/BitmapWordDeployer.ral.json +31 -0
  4. package/clmm/artifacts/CreateConfig.ral.json +37 -0
  5. package/clmm/artifacts/CreateLiquidPool.ral.json +55 -0
  6. package/clmm/artifacts/DexAccount.ral.json +110 -0
  7. package/clmm/artifacts/LiquidityAmountsTest.ral.json +161 -0
  8. package/clmm/artifacts/LiquidityManagmentTest.ral.json +384 -0
  9. package/clmm/artifacts/Pool.ral.json +1530 -0
  10. package/clmm/artifacts/PoolConfig.ral.json +31 -0
  11. package/clmm/artifacts/PoolFactory.ral.json +300 -0
  12. package/clmm/artifacts/PoolRouterDemo.ral.json +49 -0
  13. package/clmm/artifacts/PoolUser.ral.json +89 -0
  14. package/clmm/artifacts/Position.ral.json +183 -0
  15. package/clmm/artifacts/PositionManager.ral.json +416 -0
  16. package/clmm/artifacts/SwapWithoutAccount.ral.json +46 -0
  17. package/clmm/artifacts/TestToken.ral.json +68 -0
  18. package/clmm/artifacts/Tick.ral.json +161 -0
  19. package/clmm/artifacts/TickBitmapTest.ral.json +220 -0
  20. package/clmm/artifacts/constants.ral.json +81 -0
  21. package/clmm/artifacts/structs.ral.json +335 -0
  22. package/clmm/artifacts/ts/BitmapWord.ts +337 -0
  23. package/clmm/artifacts/ts/BitmapWordDeployer.ts +164 -0
  24. package/clmm/artifacts/ts/DexAccount.ts +330 -0
  25. package/clmm/artifacts/ts/LiquidityAmountsTest.ts +464 -0
  26. package/clmm/artifacts/ts/LiquidityManagmentTest.ts +859 -0
  27. package/clmm/artifacts/ts/Pool.ts +2535 -0
  28. package/clmm/artifacts/ts/PoolConfig.ts +179 -0
  29. package/clmm/artifacts/ts/PoolFactory.ts +640 -0
  30. package/clmm/artifacts/ts/PoolUser.ts +237 -0
  31. package/clmm/artifacts/ts/Position.ts +440 -0
  32. package/clmm/artifacts/ts/PositionManager.ts +929 -0
  33. package/clmm/artifacts/ts/TestToken.ts +277 -0
  34. package/clmm/artifacts/ts/Tick.ts +351 -0
  35. package/clmm/artifacts/ts/TickBitmapTest.ts +512 -0
  36. package/clmm/artifacts/ts/constants.ts +17 -0
  37. package/clmm/artifacts/ts/contracts.ts +26 -0
  38. package/clmm/artifacts/ts/deployments.ts +160 -0
  39. package/clmm/artifacts/ts/index.ts +20 -0
  40. package/clmm/artifacts/ts/scripts.ts +76 -0
  41. package/clmm/artifacts/ts/types.ts +105 -0
  42. package/clmm/deployments/.deployments.devnet.json +350 -0
  43. package/clmm/deployments/.deployments.testnet.json +350 -0
  44. package/cpmm/artifacts/dex/DexAccount.ral.json +110 -0
  45. package/cpmm/artifacts/dex/Router.ral.json +361 -0
  46. package/cpmm/artifacts/dex/TokenPair.ral.json +512 -0
  47. package/cpmm/artifacts/dex/TokenPairFactory.ral.json +297 -0
  48. package/cpmm/artifacts/examples/ExampleOracleSimple.ral.json +192 -0
  49. package/cpmm/artifacts/examples/FeeCollectorFactoryImpl.ral.json +185 -0
  50. package/cpmm/artifacts/examples/FeeCollectorPerTokenPairImpl.ral.json +216 -0
  51. package/cpmm/artifacts/examples/FullMathTest.ral.json +123 -0
  52. package/cpmm/artifacts/scripts/AddLiquidity.ral.json +46 -0
  53. package/cpmm/artifacts/scripts/Burn.ral.json +31 -0
  54. package/cpmm/artifacts/scripts/CollectFee.ral.json +25 -0
  55. package/cpmm/artifacts/scripts/CreatePair.ral.json +37 -0
  56. package/cpmm/artifacts/scripts/CreatePairAndAddLiquidity.ral.json +43 -0
  57. package/cpmm/artifacts/scripts/EnableFeeCollector.ral.json +28 -0
  58. package/cpmm/artifacts/scripts/Mint.ral.json +34 -0
  59. package/cpmm/artifacts/scripts/RemoveLiquidity.ral.json +43 -0
  60. package/cpmm/artifacts/scripts/SetFeeCollectorFactory.ral.json +28 -0
  61. package/cpmm/artifacts/scripts/Swap.ral.json +46 -0
  62. package/cpmm/artifacts/scripts/SwapMaxIn.ral.json +46 -0
  63. package/cpmm/artifacts/scripts/SwapMinOut.ral.json +46 -0
  64. package/cpmm/artifacts/test/GetToken.ral.json +31 -0
  65. package/cpmm/artifacts/test/MathTest.ral.json +49 -0
  66. package/cpmm/artifacts/test/TestToken.ral.json +87 -0
  67. package/cpmm/artifacts/ts/DexAccount.ts +329 -0
  68. package/cpmm/artifacts/ts/ExampleOracleSimple.ts +383 -0
  69. package/cpmm/artifacts/ts/FeeCollectorFactoryImpl.ts +227 -0
  70. package/cpmm/artifacts/ts/FeeCollectorPerTokenPairImpl.ts +327 -0
  71. package/cpmm/artifacts/ts/FullMathTest.ts +251 -0
  72. package/cpmm/artifacts/ts/MathTest.ts +183 -0
  73. package/cpmm/artifacts/ts/Router.ts +554 -0
  74. package/cpmm/artifacts/ts/TestToken.ts +312 -0
  75. package/cpmm/artifacts/ts/TokenPair.ts +947 -0
  76. package/cpmm/artifacts/ts/TokenPairFactory.ts +501 -0
  77. package/cpmm/artifacts/ts/contracts.ts +26 -0
  78. package/cpmm/artifacts/ts/deployments.ts +109 -0
  79. package/cpmm/artifacts/ts/index.ts +16 -0
  80. package/cpmm/artifacts/ts/scripts.ts +142 -0
  81. package/cpmm/deployments/.deployments.devnet.json +77 -0
  82. package/cpmm/deployments/.deployments.testnet.json +79 -0
  83. package/lib/index.d.mts +8800 -0
  84. package/lib/index.d.ts +8800 -0
  85. package/lib/index.js +21769 -0
  86. package/lib/index.js.map +1 -0
  87. package/lib/index.mjs +22118 -0
  88. package/lib/index.mjs.map +1 -0
  89. package/package.json +80 -0
  90. package/src/clmm/clmm.ts +607 -0
  91. package/src/clmm/constants.ts +7 -0
  92. package/src/clmm/index.ts +6 -0
  93. package/src/clmm/liquidity.ts +163 -0
  94. package/src/clmm/pool.ts +154 -0
  95. package/src/clmm/tick.ts +335 -0
  96. package/src/clmm/types.ts +155 -0
  97. package/src/common/constants.ts +1 -0
  98. package/src/common/error.ts +46 -0
  99. package/src/common/index.ts +7 -0
  100. package/src/common/logger.ts +82 -0
  101. package/src/common/math.ts +88 -0
  102. package/src/common/numeric.ts +64 -0
  103. package/src/common/types.ts +49 -0
  104. package/src/common/utils.ts +3 -0
  105. package/src/cpmm/constants.ts +2 -0
  106. package/src/cpmm/cpmm.ts +631 -0
  107. package/src/cpmm/index.ts +3 -0
  108. package/src/cpmm/types.ts +113 -0
  109. package/src/index.ts +25 -0
  110. package/src/moduleBase.ts +64 -0
  111. package/src/staking/index.ts +4 -0
  112. package/src/staking/settings.ts +38 -0
  113. package/src/staking/staking.ts +277 -0
  114. package/src/staking/types.ts +15 -0
  115. package/src/staking/utils.ts +25 -0
  116. package/src/token/index.ts +1 -0
  117. package/src/token/token.ts +163 -0
  118. package/src/zeta.ts +105 -0
  119. package/staking/artifacts/AlphStakeAndLock.ral.json +31 -0
  120. package/staking/artifacts/AlphUnstakeVault.ral.json +151 -0
  121. package/staking/artifacts/XAlphStakeVault.ral.json +559 -0
  122. package/staking/artifacts/XAlphToken.ral.json +404 -0
  123. package/staking/artifacts/XAlphUnlockAndStartUnstake.ral.json +31 -0
  124. package/staking/artifacts/examples/GovernanceDemo.ral.json +282 -0
  125. package/staking/artifacts/examples/RewardSharingVault.ral.json +253 -0
  126. package/staking/artifacts/structs.ral.json +47 -0
  127. package/staking/artifacts/ts/AlphUnstakeVault.ts +354 -0
  128. package/staking/artifacts/ts/FullMathTest.ts +175 -0
  129. package/staking/artifacts/ts/GovernanceDemo.ts +726 -0
  130. package/staking/artifacts/ts/RewardSharingVault.ts +559 -0
  131. package/staking/artifacts/ts/TestDynamicArrayByteVec32.ts +431 -0
  132. package/staking/artifacts/ts/TestDynamicSortedArrayForU256.ts +516 -0
  133. package/staking/artifacts/ts/TestMerkleProof.ts +343 -0
  134. package/staking/artifacts/ts/XAlphStakeVault.ts +1120 -0
  135. package/staking/artifacts/ts/XAlphToken.ts +835 -0
  136. package/staking/artifacts/ts/contracts.ts +26 -0
  137. package/staking/artifacts/ts/deployments.ts +109 -0
  138. package/staking/artifacts/ts/index.ts +15 -0
  139. package/staking/artifacts/ts/scripts.ts +35 -0
  140. package/staking/artifacts/ts/types.ts +19 -0
  141. package/staking/artifacts/utils/FullMathTest.ral.json +57 -0
  142. package/staking/artifacts/utils/TestDynamicArrayByteVec32.ral.json +165 -0
  143. package/staking/artifacts/utils/TestDynamicSortedArrayForU256.ral.json +189 -0
  144. package/staking/artifacts/utils/TestMerkleProof.ral.json +134 -0
  145. package/staking/deployments/.deployments.devnet.json +77 -0
  146. package/staking/deployments/.deployments.testnet.json +78 -0
@@ -0,0 +1,512 @@
1
+ {
2
+ "version": "v4.2.5",
3
+ "name": "TokenPair",
4
+ "bytecode": "0d13114022402b4034404b4087409d40ad40bd40cb40d940e7415641b4426842e54420444a446b0100000001021408414c50482d444558020100000001021408414c50482d44455802010000000102131202010000000102a00502010002020109d38c844efd16000d1340703b2c16012d0201000103014020d36ae1998016000f334c191600170116000e2d0d2a170216021601314c0b16021701160016022d16022a0e2d17024a311601020d02010001010008d347fff8f4b3ce004113107b1600a107010000000204d373c3e78fce01ce0202010000000204d37de99ed1a000a00102010000000103d355097b37a00202010000000103d3d3cf0c5aa00302010000000103d37fe75f5ba00402000002050040410d1340703b170216001602317a4c041816011602310c7b561343e82d0d13203b2e17031603a0022b170416040c337a4c0418a0000c337a4c0418a0010c334c10a003a001a000000416042c35a103a004a000a001000416042c35a1041600a1001601a1011603a102000002080240320c1702a007140042170316034c4025a0060c304c4020160016012c00051704a0060005170516041605334c14a005160416052b2c17061604112c16052a1707160616072d1702a00516022aa1054a020ca106160316020201010309014064d393ef503ea000a001000d170417030c1705a0050c2f4c17160116022c0005170616061343e8330d7b16061343e82b1705a0051343e82aa105b2b11343e8bd4a141601a0052ca0002d17071602a0052ca0012d170816071608334c0216084a011607170516050c330e7b1600b11605ab1600ce011601ac1600ce021602aca00516052aa105a00016012aa00116022a000c16034c06b2b11604a316040012051600160116021605a0057316050201010206024046d349c452fda000a001000d170317021601a0002ca0052d17041601a0012ca0052d170516040c337a4c041816050c330f7b1600b11601ac1600ce011604ab1600ce021605aba00516012ba105a00016042ba00116052b000c16024c06b2b11603a316030012061600160416051601a005731604160502010106120040b5d32570119d16040c337a4b041816050c3313097b1604a000317a4c04181605a00131117ba00016022a16042b1706a00116032a16052b17070c1708160216082c1367102d1709160316082c1367102d170a16061343e82c16020f2c2b170b16071343e82c16030f2c2b170ca000a0012c13800f42402c170d160b160c2c160d3413087b160616092b170e1607160a2b170f160e160f2ca000a0012c3413087bce03160047cc17101610c513127bce01ce0244171116020c334c131600ce01160216092bac1600ce011609a31600ce01160916110d110c1610d4bd48152816030c334c131600ce021603160a2bac1600ce02160aa31600ce02160a16110d110c1610d4bd48152816040c334c041601ce011604ab16050c334c041601ce021605ab160e160f000c0716001602160316041605160174010200020014d3f2c71c4bb3a0074113107ba000a001000d17011700160013117bb2b11601a31601001200030101001216000c334c0ab2b11600a3b216000e0ca0070100a000a0012ca106",
5
+ "codeHash": "3a4ac01ae47b1c84a567e7ef467fc4f7f8e5da32c6546192f0e2b2af3d79891f",
6
+ "fieldsSig": {
7
+ "names": [
8
+ "tokenPairFactory",
9
+ "token0Id",
10
+ "token1Id",
11
+ "dexAccount0",
12
+ "reserve0",
13
+ "reserve1",
14
+ "blockTimeStampLast",
15
+ "price0CumulativeLast",
16
+ "price1CumulativeLast",
17
+ "totalSupply",
18
+ "kLast",
19
+ "feeCollectorId",
20
+ "__stdInterfaceId"
21
+ ],
22
+ "types": [
23
+ "TokenPairFactory",
24
+ "ByteVec",
25
+ "ByteVec",
26
+ "IDexAccount",
27
+ "U256",
28
+ "U256",
29
+ "U256",
30
+ "U256",
31
+ "U256",
32
+ "U256",
33
+ "U256",
34
+ "ByteVec",
35
+ "ByteVec"
36
+ ],
37
+ "isMutable": [
38
+ false,
39
+ false,
40
+ false,
41
+ false,
42
+ true,
43
+ true,
44
+ true,
45
+ true,
46
+ true,
47
+ true,
48
+ true,
49
+ true,
50
+ false
51
+ ]
52
+ },
53
+ "eventsSig": [
54
+ {
55
+ "name": "Mint",
56
+ "fieldNames": [
57
+ "sender",
58
+ "amount0",
59
+ "amount1",
60
+ "liquidity",
61
+ "totalSupply"
62
+ ],
63
+ "fieldTypes": [
64
+ "Address",
65
+ "U256",
66
+ "U256",
67
+ "U256",
68
+ "U256"
69
+ ]
70
+ },
71
+ {
72
+ "name": "Burn",
73
+ "fieldNames": [
74
+ "sender",
75
+ "amount0",
76
+ "amount1",
77
+ "liquidity",
78
+ "totalSupply"
79
+ ],
80
+ "fieldTypes": [
81
+ "Address",
82
+ "U256",
83
+ "U256",
84
+ "U256",
85
+ "U256"
86
+ ]
87
+ },
88
+ {
89
+ "name": "Swap",
90
+ "fieldNames": [
91
+ "sender",
92
+ "amount0In",
93
+ "amount1In",
94
+ "amount0Out",
95
+ "amount1Out",
96
+ "to"
97
+ ],
98
+ "fieldTypes": [
99
+ "Address",
100
+ "U256",
101
+ "U256",
102
+ "U256",
103
+ "U256",
104
+ "Address"
105
+ ]
106
+ }
107
+ ],
108
+ "functions": [
109
+ {
110
+ "name": "getSymbol",
111
+ "paramNames": [],
112
+ "paramTypes": [],
113
+ "paramIsMutable": [],
114
+ "returnTypes": [
115
+ "ByteVec"
116
+ ]
117
+ },
118
+ {
119
+ "name": "getName",
120
+ "paramNames": [],
121
+ "paramTypes": [],
122
+ "paramIsMutable": [],
123
+ "returnTypes": [
124
+ "ByteVec"
125
+ ]
126
+ },
127
+ {
128
+ "name": "getDecimals",
129
+ "paramNames": [],
130
+ "paramTypes": [],
131
+ "paramIsMutable": [],
132
+ "returnTypes": [
133
+ "U256"
134
+ ]
135
+ },
136
+ {
137
+ "name": "getTotalSupply",
138
+ "paramNames": [],
139
+ "paramTypes": [],
140
+ "paramIsMutable": [],
141
+ "returnTypes": [
142
+ "U256"
143
+ ]
144
+ },
145
+ {
146
+ "name": "uqdiv",
147
+ "paramNames": [
148
+ "a",
149
+ "b"
150
+ ],
151
+ "paramTypes": [
152
+ "U256",
153
+ "U256"
154
+ ],
155
+ "paramIsMutable": [
156
+ false,
157
+ false
158
+ ],
159
+ "returnTypes": [
160
+ "U256"
161
+ ]
162
+ },
163
+ {
164
+ "name": "sqrt",
165
+ "paramNames": [
166
+ "y"
167
+ ],
168
+ "paramTypes": [
169
+ "U256"
170
+ ],
171
+ "paramIsMutable": [
172
+ false
173
+ ],
174
+ "returnTypes": [
175
+ "U256"
176
+ ]
177
+ },
178
+ {
179
+ "name": "setFeeCollectorId",
180
+ "paramNames": [
181
+ "id"
182
+ ],
183
+ "paramTypes": [
184
+ "ByteVec"
185
+ ],
186
+ "paramIsMutable": [
187
+ false
188
+ ],
189
+ "returnTypes": []
190
+ },
191
+ {
192
+ "name": "getTokenPair",
193
+ "paramNames": [],
194
+ "paramTypes": [],
195
+ "paramIsMutable": [],
196
+ "returnTypes": [
197
+ "ByteVec",
198
+ "ByteVec"
199
+ ]
200
+ },
201
+ {
202
+ "name": "getReserves",
203
+ "paramNames": [],
204
+ "paramTypes": [],
205
+ "paramIsMutable": [],
206
+ "returnTypes": [
207
+ "U256",
208
+ "U256"
209
+ ]
210
+ },
211
+ {
212
+ "name": "getBlockTimeStampLast",
213
+ "paramNames": [],
214
+ "paramTypes": [],
215
+ "paramIsMutable": [],
216
+ "returnTypes": [
217
+ "U256"
218
+ ]
219
+ },
220
+ {
221
+ "name": "getPrice0CumulativeLast",
222
+ "paramNames": [],
223
+ "paramTypes": [],
224
+ "paramIsMutable": [],
225
+ "returnTypes": [
226
+ "U256"
227
+ ]
228
+ },
229
+ {
230
+ "name": "getPrice1CumulativeLast",
231
+ "paramNames": [],
232
+ "paramTypes": [],
233
+ "paramIsMutable": [],
234
+ "returnTypes": [
235
+ "U256"
236
+ ]
237
+ },
238
+ {
239
+ "name": "update",
240
+ "paramNames": [
241
+ "newReserve0",
242
+ "newReserve1"
243
+ ],
244
+ "paramTypes": [
245
+ "U256",
246
+ "U256"
247
+ ],
248
+ "paramIsMutable": [
249
+ false,
250
+ false
251
+ ],
252
+ "returnTypes": []
253
+ },
254
+ {
255
+ "name": "mintFee",
256
+ "paramNames": [
257
+ "reserve0_",
258
+ "reserve1_"
259
+ ],
260
+ "paramTypes": [
261
+ "U256",
262
+ "U256"
263
+ ],
264
+ "paramIsMutable": [
265
+ false,
266
+ false
267
+ ],
268
+ "returnTypes": [
269
+ "Bool",
270
+ "U256"
271
+ ]
272
+ },
273
+ {
274
+ "name": "mint",
275
+ "paramNames": [
276
+ "sender",
277
+ "amount0",
278
+ "amount1"
279
+ ],
280
+ "paramTypes": [
281
+ "Address",
282
+ "U256",
283
+ "U256"
284
+ ],
285
+ "paramIsMutable": [
286
+ false,
287
+ false,
288
+ false
289
+ ],
290
+ "returnTypes": [
291
+ "U256"
292
+ ]
293
+ },
294
+ {
295
+ "name": "burn",
296
+ "paramNames": [
297
+ "sender",
298
+ "liquidity"
299
+ ],
300
+ "paramTypes": [
301
+ "Address",
302
+ "U256"
303
+ ],
304
+ "paramIsMutable": [
305
+ false,
306
+ false
307
+ ],
308
+ "returnTypes": [
309
+ "U256",
310
+ "U256"
311
+ ]
312
+ },
313
+ {
314
+ "name": "swap",
315
+ "paramNames": [
316
+ "sender",
317
+ "to",
318
+ "amount0In",
319
+ "amount1In",
320
+ "amount0Out",
321
+ "amount1Out"
322
+ ],
323
+ "paramTypes": [
324
+ "Address",
325
+ "Address",
326
+ "U256",
327
+ "U256",
328
+ "U256",
329
+ "U256"
330
+ ],
331
+ "paramIsMutable": [
332
+ false,
333
+ false,
334
+ false,
335
+ false,
336
+ false,
337
+ false
338
+ ],
339
+ "returnTypes": []
340
+ },
341
+ {
342
+ "name": "collectFeeManually",
343
+ "paramNames": [],
344
+ "paramTypes": [],
345
+ "paramIsMutable": [],
346
+ "returnTypes": []
347
+ },
348
+ {
349
+ "name": "collectFeeAndUpdateKLast",
350
+ "paramNames": [
351
+ "feeAmount"
352
+ ],
353
+ "paramTypes": [
354
+ "U256"
355
+ ],
356
+ "paramIsMutable": [
357
+ false
358
+ ],
359
+ "returnTypes": []
360
+ }
361
+ ],
362
+ "constants": [
363
+ {
364
+ "name": "MINIMUM_LIQUIDITY",
365
+ "value": {
366
+ "type": "U256",
367
+ "value": "1000"
368
+ }
369
+ }
370
+ ],
371
+ "enums": [
372
+ {
373
+ "name": "ErrorCodes",
374
+ "fields": [
375
+ {
376
+ "name": "ReserveOverflow",
377
+ "value": {
378
+ "type": "U256",
379
+ "value": "0"
380
+ }
381
+ },
382
+ {
383
+ "name": "InsufficientInitLiquidity",
384
+ "value": {
385
+ "type": "U256",
386
+ "value": "1"
387
+ }
388
+ },
389
+ {
390
+ "name": "InsufficientLiquidityMinted",
391
+ "value": {
392
+ "type": "U256",
393
+ "value": "2"
394
+ }
395
+ },
396
+ {
397
+ "name": "InsufficientLiquidityBurned",
398
+ "value": {
399
+ "type": "U256",
400
+ "value": "3"
401
+ }
402
+ },
403
+ {
404
+ "name": "InvalidToAddress",
405
+ "value": {
406
+ "type": "U256",
407
+ "value": "4"
408
+ }
409
+ },
410
+ {
411
+ "name": "InsufficientLiquidity",
412
+ "value": {
413
+ "type": "U256",
414
+ "value": "5"
415
+ }
416
+ },
417
+ {
418
+ "name": "InvalidTokenInId",
419
+ "value": {
420
+ "type": "U256",
421
+ "value": "6"
422
+ }
423
+ },
424
+ {
425
+ "name": "InvalidCalleeId",
426
+ "value": {
427
+ "type": "U256",
428
+ "value": "7"
429
+ }
430
+ },
431
+ {
432
+ "name": "InvalidK",
433
+ "value": {
434
+ "type": "U256",
435
+ "value": "8"
436
+ }
437
+ },
438
+ {
439
+ "name": "InsufficientOutputAmount",
440
+ "value": {
441
+ "type": "U256",
442
+ "value": "9"
443
+ }
444
+ },
445
+ {
446
+ "name": "InsufficientInputAmount",
447
+ "value": {
448
+ "type": "U256",
449
+ "value": "10"
450
+ }
451
+ },
452
+ {
453
+ "name": "IdenticalTokenIds",
454
+ "value": {
455
+ "type": "U256",
456
+ "value": "11"
457
+ }
458
+ },
459
+ {
460
+ "name": "Expired",
461
+ "value": {
462
+ "type": "U256",
463
+ "value": "12"
464
+ }
465
+ },
466
+ {
467
+ "name": "InsufficientToken0Amount",
468
+ "value": {
469
+ "type": "U256",
470
+ "value": "13"
471
+ }
472
+ },
473
+ {
474
+ "name": "InsufficientToken1Amount",
475
+ "value": {
476
+ "type": "U256",
477
+ "value": "14"
478
+ }
479
+ },
480
+ {
481
+ "name": "TokenNotExist",
482
+ "value": {
483
+ "type": "U256",
484
+ "value": "15"
485
+ }
486
+ },
487
+ {
488
+ "name": "InvalidCaller",
489
+ "value": {
490
+ "type": "U256",
491
+ "value": "16"
492
+ }
493
+ },
494
+ {
495
+ "name": "FeeCollectorNotEnabled",
496
+ "value": {
497
+ "type": "U256",
498
+ "value": "17"
499
+ }
500
+ },
501
+ {
502
+ "name": "InvalidAccount",
503
+ "value": {
504
+ "type": "U256",
505
+ "value": "18"
506
+ }
507
+ }
508
+ ]
509
+ }
510
+ ],
511
+ "stdInterfaceId": "0001"
512
+ }