@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,559 @@
1
+ {
2
+ "version": "v4.2.5",
3
+ "name": "XAlphStakeVault",
4
+ "bytecode": "05174028407340af40cc40fc411a41284136414f41a341c341cd41db42234241431043f0448b451145604577458e45a7010002030112d3545eacd4160116000005311342277b160113202c170216001602160213202a620201000204014028d3083a358916004313202e0c2f1342267b16014313202f1342287b1600000517020c170316031602314c0e1600160300001601414c0316033f0216030d2a17034a2e0b0201000203011fd3694941c216004313202e0c2f1342267b16014313202f1342287b160016010001170216020b244c031600024a05160016023d00040201000202010dd354ad273416004313202e0c2f1342267b160016014402010002030118d34b2e25b7160116000005311342277b160113202c170216000c1602621600160213202a16004362440201000101010ed30041471116004313202e0c2f1342267b16004313202d02010000000103d3676c3c33140002010000000103d393f264e8a0000200000101000c16004313202f136afb7b1600a10005a000b45f0000020601402e16014313202f136afa7b160117021600431703160313202e0c2f136af97b0c170416041603314c1016001604160413202a62170516051602000a1702160413202a17044a2c160271a000712f02000002020110160071160171314c051600160144000b4a041601160044000b0200000101010316004f02010000000103d3b299f80ace000201000102021ed3f87904e4140a5f5f6d61705f5f305f5f16004744cbc5194c040c0006024a110c0d0d140a5f5f6d61705f5f305f5f16004744cb1701160101010d0d0d1601010102010001010108d32b875d11140a5f5f6d61705f5f305f5f16004744cbc5020101010800405fd3d63c543cb4170116014813412d7b16000c331341307b1601ce001600ac140a5f5f6d61705f5f305f5f16014744cbc54c40370c0d0d140a5f5f6d61705f5f305f5f16014744cb1707160701010d0d0d1607010117031702160216002a0c0e0c140a5f5f6d61705f5f305f5f16014744cb01021603000517040c170516051604314c0f1603160500001706160116000e0c1606d4926b380b16050d2a17054a2d4a09ca140a5f5f6d61705f5f305f5f16014744b116000006d20102a00116002aa10106160116005f0102010900406bd310bd129fb4170116014813412d7b140a5f5f6d61705f5f305f5f16014744cbc513412e7b16000c331341317b0c0d0d140a5f5f6d61705f5f305f5f16014744cb1708160801010d0d0d1608010117031702160216003413412f7b160216002b17041603000517050c170616061605314c0f1603160600001707160116000e0c1607d465b06cae16060d2a17064a2d16040c2f4c0aca0d0c140a5f5f6d61705f5f305f5f16014744cb01034a0a16040c0e0c140a5f5f6d61705f5f305f5f16014744cb01021601ce001600aba00116002ba10107160116005f01000206004045d3c5f91cb4b4170216024813412d7b1601160000161341357b140a5f5f6d61705f5f305f5f16024744cbc513412e7b0c0d0d140a5f5f6d61705f5f305f5f16024744cb1705160501010d0d0d160501011704170316040005ce01311341327b1604160000010b241341337b160216030e0c1600d4926b380b1604160000030d0e0c140a5f5f6d61705f5f305f5f16024744cb01020100010500403ad3b6398887b4170116014813412d7b140a5f5f6d61705f5f305f5f16014744cbc513412e7b0c0d0d140a5f5f6d61705f5f305f5f16014744cb1704160401010d0d0d16040101170317021603160000010b251341347b160116020e0c1600d465b06cae1603160000020d0e0c140a5f5f6d61705f5f305f5f16014744cb010201000101011fd3e5725392140a5f5f6d61705f5f305f5f16004744cbc5197a4b0418a0010c2f4c020c020c0d0d140a5f5f6d61705f5f305f5f16004744cb010113c40de0b6b3a76400002ca0012d02010001010008d3e5bf78dcb4a0024513412c7b16000008010001010008d34f58efe6b4a0024513412c7b1600a102010002030109d3af1ed9dd1601b9170216001602000b000902",
5
+ "codeHash": "06a6db7355978ed027d5a0d36573bf54cef4a67d503b270b8ede5870b3117c7b",
6
+ "fieldsSig": {
7
+ "names": [
8
+ "stakeTokenId",
9
+ "maxConnectedDapps",
10
+ "merkleRoot",
11
+ "totalStakedAmount",
12
+ "owner"
13
+ ],
14
+ "types": [
15
+ "ByteVec",
16
+ "U256",
17
+ "ByteVec",
18
+ "U256",
19
+ "Address"
20
+ ],
21
+ "isMutable": [
22
+ false,
23
+ false,
24
+ true,
25
+ true,
26
+ true
27
+ ]
28
+ },
29
+ "eventsSig": [
30
+ {
31
+ "name": "UpdateRoot",
32
+ "fieldNames": [
33
+ "newMerkleRoot",
34
+ "updatedBy"
35
+ ],
36
+ "fieldTypes": [
37
+ "ByteVec",
38
+ "Address"
39
+ ]
40
+ },
41
+ {
42
+ "name": "Staked",
43
+ "fieldNames": [
44
+ "staker",
45
+ "amount"
46
+ ],
47
+ "fieldTypes": [
48
+ "Address",
49
+ "U256"
50
+ ]
51
+ },
52
+ {
53
+ "name": "Unstaked",
54
+ "fieldNames": [
55
+ "staker",
56
+ "amount"
57
+ ],
58
+ "fieldTypes": [
59
+ "Address",
60
+ "U256"
61
+ ]
62
+ }
63
+ ],
64
+ "functions": [
65
+ {
66
+ "name": "get",
67
+ "paramNames": [
68
+ "array",
69
+ "index"
70
+ ],
71
+ "paramTypes": [
72
+ "ByteVec",
73
+ "U256"
74
+ ],
75
+ "paramIsMutable": [
76
+ false,
77
+ false
78
+ ],
79
+ "returnTypes": [
80
+ "ByteVec"
81
+ ]
82
+ },
83
+ {
84
+ "name": "find",
85
+ "paramNames": [
86
+ "array",
87
+ "value"
88
+ ],
89
+ "paramTypes": [
90
+ "ByteVec",
91
+ "ByteVec"
92
+ ],
93
+ "paramIsMutable": [
94
+ false,
95
+ false
96
+ ],
97
+ "returnTypes": [
98
+ "I256"
99
+ ]
100
+ },
101
+ {
102
+ "name": "remove",
103
+ "paramNames": [
104
+ "array",
105
+ "value"
106
+ ],
107
+ "paramTypes": [
108
+ "ByteVec",
109
+ "ByteVec"
110
+ ],
111
+ "paramIsMutable": [
112
+ false,
113
+ false
114
+ ],
115
+ "returnTypes": [
116
+ "ByteVec"
117
+ ]
118
+ },
119
+ {
120
+ "name": "push",
121
+ "paramNames": [
122
+ "array",
123
+ "value"
124
+ ],
125
+ "paramTypes": [
126
+ "ByteVec",
127
+ "ByteVec"
128
+ ],
129
+ "paramIsMutable": [
130
+ false,
131
+ false
132
+ ],
133
+ "returnTypes": [
134
+ "ByteVec"
135
+ ]
136
+ },
137
+ {
138
+ "name": "removeAt",
139
+ "paramNames": [
140
+ "array",
141
+ "index"
142
+ ],
143
+ "paramTypes": [
144
+ "ByteVec",
145
+ "U256"
146
+ ],
147
+ "paramIsMutable": [
148
+ false,
149
+ false
150
+ ],
151
+ "returnTypes": [
152
+ "ByteVec"
153
+ ]
154
+ },
155
+ {
156
+ "name": "size",
157
+ "paramNames": [
158
+ "array"
159
+ ],
160
+ "paramTypes": [
161
+ "ByteVec"
162
+ ],
163
+ "paramIsMutable": [
164
+ false
165
+ ],
166
+ "returnTypes": [
167
+ "U256"
168
+ ]
169
+ },
170
+ {
171
+ "name": "empty",
172
+ "paramNames": [],
173
+ "paramTypes": [],
174
+ "paramIsMutable": [],
175
+ "returnTypes": [
176
+ "ByteVec"
177
+ ]
178
+ },
179
+ {
180
+ "name": "getMerkleRoot",
181
+ "paramNames": [],
182
+ "paramTypes": [],
183
+ "paramIsMutable": [],
184
+ "returnTypes": [
185
+ "ByteVec"
186
+ ]
187
+ },
188
+ {
189
+ "name": "updateRoot",
190
+ "paramNames": [
191
+ "newMerkleRoot"
192
+ ],
193
+ "paramTypes": [
194
+ "ByteVec"
195
+ ],
196
+ "paramIsMutable": [
197
+ false
198
+ ],
199
+ "returnTypes": []
200
+ },
201
+ {
202
+ "name": "verify",
203
+ "paramNames": [
204
+ "proof",
205
+ "dataHash"
206
+ ],
207
+ "paramTypes": [
208
+ "ByteVec",
209
+ "ByteVec"
210
+ ],
211
+ "paramIsMutable": [
212
+ false,
213
+ false
214
+ ],
215
+ "returnTypes": [
216
+ "Bool"
217
+ ]
218
+ },
219
+ {
220
+ "name": "hashPair",
221
+ "paramNames": [
222
+ "a",
223
+ "b"
224
+ ],
225
+ "paramTypes": [
226
+ "ByteVec",
227
+ "ByteVec"
228
+ ],
229
+ "paramIsMutable": [
230
+ false,
231
+ false
232
+ ],
233
+ "returnTypes": [
234
+ "ByteVec"
235
+ ]
236
+ },
237
+ {
238
+ "name": "hash",
239
+ "paramNames": [
240
+ "dataToHash"
241
+ ],
242
+ "paramTypes": [
243
+ "ByteVec"
244
+ ],
245
+ "paramIsMutable": [
246
+ false
247
+ ],
248
+ "returnTypes": [
249
+ "ByteVec"
250
+ ]
251
+ },
252
+ {
253
+ "name": "getStakeTokenId",
254
+ "paramNames": [],
255
+ "paramTypes": [],
256
+ "paramIsMutable": [],
257
+ "returnTypes": [
258
+ "ByteVec"
259
+ ]
260
+ },
261
+ {
262
+ "name": "getUserStakingInfo",
263
+ "paramNames": [
264
+ "user"
265
+ ],
266
+ "paramTypes": [
267
+ "Address"
268
+ ],
269
+ "paramIsMutable": [
270
+ false
271
+ ],
272
+ "returnTypes": [
273
+ "UserStakingInfo"
274
+ ]
275
+ },
276
+ {
277
+ "name": "isStaking",
278
+ "paramNames": [
279
+ "user"
280
+ ],
281
+ "paramTypes": [
282
+ "Address"
283
+ ],
284
+ "paramIsMutable": [
285
+ false
286
+ ],
287
+ "returnTypes": [
288
+ "Bool"
289
+ ]
290
+ },
291
+ {
292
+ "name": "stake",
293
+ "paramNames": [
294
+ "amount"
295
+ ],
296
+ "paramTypes": [
297
+ "U256"
298
+ ],
299
+ "paramIsMutable": [
300
+ false
301
+ ],
302
+ "returnTypes": []
303
+ },
304
+ {
305
+ "name": "unstake",
306
+ "paramNames": [
307
+ "amount"
308
+ ],
309
+ "paramTypes": [
310
+ "U256"
311
+ ],
312
+ "paramIsMutable": [
313
+ false
314
+ ],
315
+ "returnTypes": []
316
+ },
317
+ {
318
+ "name": "connectToDapp",
319
+ "paramNames": [
320
+ "contractId",
321
+ "merkleProof"
322
+ ],
323
+ "paramTypes": [
324
+ "ByteVec",
325
+ "ByteVec"
326
+ ],
327
+ "paramIsMutable": [
328
+ false,
329
+ false
330
+ ],
331
+ "returnTypes": []
332
+ },
333
+ {
334
+ "name": "disconnectFromDapp",
335
+ "paramNames": [
336
+ "contractId"
337
+ ],
338
+ "paramTypes": [
339
+ "ByteVec"
340
+ ],
341
+ "paramIsMutable": [
342
+ false
343
+ ],
344
+ "returnTypes": []
345
+ },
346
+ {
347
+ "name": "getWeight",
348
+ "paramNames": [
349
+ "user"
350
+ ],
351
+ "paramTypes": [
352
+ "Address"
353
+ ],
354
+ "paramIsMutable": [
355
+ false
356
+ ],
357
+ "returnTypes": [
358
+ "U256"
359
+ ]
360
+ },
361
+ {
362
+ "name": "updateDappTemplatesWhitelistMerkleRoot",
363
+ "paramNames": [
364
+ "newMerkleRoot"
365
+ ],
366
+ "paramTypes": [
367
+ "ByteVec"
368
+ ],
369
+ "paramIsMutable": [
370
+ false
371
+ ],
372
+ "returnTypes": []
373
+ },
374
+ {
375
+ "name": "updateOwner",
376
+ "paramNames": [
377
+ "newOwner"
378
+ ],
379
+ "paramTypes": [
380
+ "Address"
381
+ ],
382
+ "paramIsMutable": [
383
+ false
384
+ ],
385
+ "returnTypes": []
386
+ },
387
+ {
388
+ "name": "verifyDappTemplatesWhiteListed",
389
+ "paramNames": [
390
+ "proof",
391
+ "contractId"
392
+ ],
393
+ "paramTypes": [
394
+ "ByteVec",
395
+ "ByteVec"
396
+ ],
397
+ "paramIsMutable": [
398
+ false,
399
+ false
400
+ ],
401
+ "returnTypes": [
402
+ "Bool"
403
+ ]
404
+ }
405
+ ],
406
+ "constants": [
407
+ {
408
+ "name": "IntByteLength",
409
+ "value": {
410
+ "type": "U256",
411
+ "value": "32"
412
+ }
413
+ },
414
+ {
415
+ "name": "WEIGHT_SCALING_FACTOR",
416
+ "value": {
417
+ "type": "U256",
418
+ "value": "1000000000000000000"
419
+ }
420
+ }
421
+ ],
422
+ "enums": [
423
+ {
424
+ "name": "ErrorCode",
425
+ "fields": [
426
+ {
427
+ "name": "InvalidArrayLength",
428
+ "value": {
429
+ "type": "U256",
430
+ "value": "550"
431
+ }
432
+ },
433
+ {
434
+ "name": "IndexOutOfBound",
435
+ "value": {
436
+ "type": "U256",
437
+ "value": "551"
438
+ }
439
+ },
440
+ {
441
+ "name": "InvalidByteVecLength",
442
+ "value": {
443
+ "type": "U256",
444
+ "value": "552"
445
+ }
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ "name": "MerkleProofErrorCodes",
451
+ "fields": [
452
+ {
453
+ "name": "InvalidProofSize",
454
+ "value": {
455
+ "type": "U256",
456
+ "value": "11001"
457
+ }
458
+ },
459
+ {
460
+ "name": "InvalidDataHash",
461
+ "value": {
462
+ "type": "U256",
463
+ "value": "11002"
464
+ }
465
+ },
466
+ {
467
+ "name": "InvalidMerkleRoot",
468
+ "value": {
469
+ "type": "U256",
470
+ "value": "11003"
471
+ }
472
+ }
473
+ ]
474
+ },
475
+ {
476
+ "name": "ErrorCodes",
477
+ "fields": [
478
+ {
479
+ "name": "NotOwner",
480
+ "value": {
481
+ "type": "U256",
482
+ "value": "300"
483
+ }
484
+ },
485
+ {
486
+ "name": "AssetAddressCallerOnly",
487
+ "value": {
488
+ "type": "U256",
489
+ "value": "301"
490
+ }
491
+ },
492
+ {
493
+ "name": "NoStakingInfo",
494
+ "value": {
495
+ "type": "U256",
496
+ "value": "302"
497
+ }
498
+ },
499
+ {
500
+ "name": "InsufficientStakedAmount",
501
+ "value": {
502
+ "type": "U256",
503
+ "value": "303"
504
+ }
505
+ },
506
+ {
507
+ "name": "InvalidStakedAmount",
508
+ "value": {
509
+ "type": "U256",
510
+ "value": "304"
511
+ }
512
+ },
513
+ {
514
+ "name": "InvalidUnstakedAmount",
515
+ "value": {
516
+ "type": "U256",
517
+ "value": "305"
518
+ }
519
+ },
520
+ {
521
+ "name": "MaxConnectedDappsReached",
522
+ "value": {
523
+ "type": "U256",
524
+ "value": "306"
525
+ }
526
+ },
527
+ {
528
+ "name": "DappAlreadyConnected",
529
+ "value": {
530
+ "type": "U256",
531
+ "value": "307"
532
+ }
533
+ },
534
+ {
535
+ "name": "DappNotConnected",
536
+ "value": {
537
+ "type": "U256",
538
+ "value": "308"
539
+ }
540
+ },
541
+ {
542
+ "name": "DappNotAllowed",
543
+ "value": {
544
+ "type": "U256",
545
+ "value": "309"
546
+ }
547
+ }
548
+ ]
549
+ }
550
+ ],
551
+ "mapsSig": {
552
+ "names": [
553
+ "userStakingInfo"
554
+ ],
555
+ "types": [
556
+ "Map[Address,UserStakingInfo]"
557
+ ]
558
+ }
559
+ }