@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,416 @@
1
+ {
2
+ "version": "v4.3.0",
3
+ "name": "PositionManager",
4
+ "bytecode": "0110409a40c840ec413e416c424e4271427b429042a642bc42d7431a438e43ec444d01030b16044051d39b20ce13ce00160116024416030009170b160516060e0f160b012e170e170d170c160c160d160e160716080003170f160b160416051606000b171016001610a5171116001601a5171216001602a5171316007a7a16011612a316021613a316101611a31600160416051606160f110e160b01251715171416141609347a4c04181615160a341343527b160f16141615160b0201000304010dd3b8a5f4fb1600160113c9010000000000000000000000000005170316021603160116002b000502010003030108d364be47fc160213c901000000000000000000000000160116002b00050201000507014027d345f12d7a16001601324c061601160216030001024a1c16001602314c13160016021603000117051601160016040002170616051606314c0216054a011606024a0516011602160400020201000304010ed374e08b3b160213c9010000000000000000000000002c160116002b160100051703160316002d020000030901408d160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816041608370200000304011216001601160200051703160016011602870c334c0416030d2a0216030200000101010316004002000003040109160016020007cc17031601160344020000030401091600160116020008170316001603cc02010003030108d37afb14100d1600160116021304640201000405010ad35b19984c160116021603000a170416001604cc0201030b0d004021d3259c1e8816001601a5170b16001602a5170c16007a1601160ba31602160ca31600160116021603160416051606160716081609160a00001818181801030a0e004041d35060929cce00160216034416040009170a160a160516061607000b170b1600160b0da316001605160616071601110e160a0126170d170c160c1608347a4c0418160d1609341343537b1600160b0da3160016051605160616070c0d360c0d360c0d3613080f160a012718181801030b0d004032d3ee4d9e3ace00160216034416040009170b160b160516071608000b170c1600160c0da316001605160716081601110e160b012618181600160c0da3160016061605160716081609160a0c0d3613080f160b012718181801000409044034d341eff2fd1600160116021603000b17040c17051604c54b041605d12a170516020d0d1600011ec54b041605d12a170516030d0d1600011ec54b041605d12a1705160216030e0f1600012e170817071706160616071608160502",
5
+ "codeHash": "ab39514b7b087164d46e689fc18e1793c9aa0c677ece80b18439df6526c09698",
6
+ "fieldsSig": {
7
+ "names": [
8
+ "parent"
9
+ ],
10
+ "types": [
11
+ "PoolFactory"
12
+ ],
13
+ "isMutable": [
14
+ false
15
+ ]
16
+ },
17
+ "eventsSig": [],
18
+ "functions": [
19
+ {
20
+ "name": "addLiquidity",
21
+ "paramNames": [
22
+ "payer",
23
+ "p"
24
+ ],
25
+ "paramTypes": [
26
+ "Address",
27
+ "ModifyLiquidityParams"
28
+ ],
29
+ "paramIsMutable": [
30
+ false,
31
+ false
32
+ ],
33
+ "returnTypes": [
34
+ "U256",
35
+ "U256",
36
+ "U256",
37
+ "Pool"
38
+ ]
39
+ },
40
+ {
41
+ "name": "getLiquidityForAmount0",
42
+ "paramNames": [
43
+ "sqrtRatioAX96",
44
+ "sqrtRatioBX96",
45
+ "amount0"
46
+ ],
47
+ "paramTypes": [
48
+ "U256",
49
+ "U256",
50
+ "U256"
51
+ ],
52
+ "paramIsMutable": [
53
+ false,
54
+ false,
55
+ false
56
+ ],
57
+ "returnTypes": [
58
+ "U256"
59
+ ]
60
+ },
61
+ {
62
+ "name": "getLiquidityForAmount1",
63
+ "paramNames": [
64
+ "sqrtRatioAX96",
65
+ "sqrtRatioBX96",
66
+ "amount1"
67
+ ],
68
+ "paramTypes": [
69
+ "U256",
70
+ "U256",
71
+ "U256"
72
+ ],
73
+ "paramIsMutable": [
74
+ false,
75
+ false,
76
+ false
77
+ ],
78
+ "returnTypes": [
79
+ "U256"
80
+ ]
81
+ },
82
+ {
83
+ "name": "getLiquidityForAmounts",
84
+ "paramNames": [
85
+ "sqrtRatioX96",
86
+ "sqrtRatioAX96",
87
+ "sqrtRatioBX96",
88
+ "amount0",
89
+ "amount1"
90
+ ],
91
+ "paramTypes": [
92
+ "U256",
93
+ "U256",
94
+ "U256",
95
+ "U256",
96
+ "U256"
97
+ ],
98
+ "paramIsMutable": [
99
+ false,
100
+ false,
101
+ false,
102
+ false,
103
+ false
104
+ ],
105
+ "returnTypes": [
106
+ "U256"
107
+ ]
108
+ },
109
+ {
110
+ "name": "getAmount0ForLiquidity",
111
+ "paramNames": [
112
+ "sqrtRatioAX96",
113
+ "sqrtRatioBX96",
114
+ "liquidity"
115
+ ],
116
+ "paramTypes": [
117
+ "U256",
118
+ "U256",
119
+ "U256"
120
+ ],
121
+ "paramIsMutable": [
122
+ false,
123
+ false,
124
+ false
125
+ ],
126
+ "returnTypes": [
127
+ "U256"
128
+ ]
129
+ },
130
+ {
131
+ "name": "mulDiv",
132
+ "paramNames": [
133
+ "a",
134
+ "b",
135
+ "denominator"
136
+ ],
137
+ "paramTypes": [
138
+ "U256",
139
+ "U256",
140
+ "U256"
141
+ ],
142
+ "paramIsMutable": [
143
+ false,
144
+ false,
145
+ true
146
+ ],
147
+ "returnTypes": [
148
+ "U256"
149
+ ]
150
+ },
151
+ {
152
+ "name": "mulDivRoundingUp",
153
+ "paramNames": [
154
+ "a",
155
+ "b",
156
+ "denominator"
157
+ ],
158
+ "paramTypes": [
159
+ "U256",
160
+ "U256",
161
+ "U256"
162
+ ],
163
+ "paramIsMutable": [
164
+ false,
165
+ false,
166
+ false
167
+ ],
168
+ "returnTypes": [
169
+ "U256"
170
+ ]
171
+ },
172
+ {
173
+ "name": "configPath",
174
+ "paramNames": [
175
+ "configIndex_"
176
+ ],
177
+ "paramTypes": [
178
+ "U256"
179
+ ],
180
+ "paramIsMutable": [
181
+ false
182
+ ],
183
+ "returnTypes": [
184
+ "ByteVec"
185
+ ]
186
+ },
187
+ {
188
+ "name": "poolPath",
189
+ "paramNames": [
190
+ "factory",
191
+ "tokens",
192
+ "configIndex_"
193
+ ],
194
+ "paramTypes": [
195
+ "PoolFactory",
196
+ "ByteVec",
197
+ "U256"
198
+ ],
199
+ "paramIsMutable": [
200
+ false,
201
+ false,
202
+ false
203
+ ],
204
+ "returnTypes": [
205
+ "ByteVec"
206
+ ]
207
+ },
208
+ {
209
+ "name": "poolContractId",
210
+ "paramNames": [
211
+ "factory",
212
+ "tokens",
213
+ "configIndex_"
214
+ ],
215
+ "paramTypes": [
216
+ "PoolFactory",
217
+ "ByteVec",
218
+ "U256"
219
+ ],
220
+ "paramIsMutable": [
221
+ false,
222
+ false,
223
+ false
224
+ ],
225
+ "returnTypes": [
226
+ "ByteVec"
227
+ ]
228
+ },
229
+ {
230
+ "name": "positionPath",
231
+ "paramNames": [
232
+ "o",
233
+ "tickLower",
234
+ "tickUpper"
235
+ ],
236
+ "paramTypes": [
237
+ "Address",
238
+ "I256",
239
+ "I256"
240
+ ],
241
+ "paramIsMutable": [
242
+ false,
243
+ false,
244
+ false
245
+ ],
246
+ "returnTypes": [
247
+ "ByteVec"
248
+ ]
249
+ },
250
+ {
251
+ "name": "positionContractId",
252
+ "paramNames": [
253
+ "pool",
254
+ "o",
255
+ "tickLower",
256
+ "tickUpper"
257
+ ],
258
+ "paramTypes": [
259
+ "Pool",
260
+ "Address",
261
+ "I256",
262
+ "I256"
263
+ ],
264
+ "paramIsMutable": [
265
+ false,
266
+ false,
267
+ false,
268
+ false
269
+ ],
270
+ "returnTypes": [
271
+ "ByteVec"
272
+ ]
273
+ },
274
+ {
275
+ "name": "increaseLiquidity",
276
+ "paramNames": [
277
+ "payer",
278
+ "p"
279
+ ],
280
+ "paramTypes": [
281
+ "Address",
282
+ "ModifyLiquidityParams"
283
+ ],
284
+ "paramIsMutable": [
285
+ false,
286
+ false
287
+ ],
288
+ "returnTypes": []
289
+ },
290
+ {
291
+ "name": "decreaseLiquidity",
292
+ "paramNames": [
293
+ "operator",
294
+ "liquidity",
295
+ "p"
296
+ ],
297
+ "paramTypes": [
298
+ "Address",
299
+ "U256",
300
+ "DecreaseLiquidityParams"
301
+ ],
302
+ "paramIsMutable": [
303
+ false,
304
+ false,
305
+ false
306
+ ],
307
+ "returnTypes": []
308
+ },
309
+ {
310
+ "name": "collect",
311
+ "paramNames": [
312
+ "operator",
313
+ "liquidity",
314
+ "p"
315
+ ],
316
+ "paramTypes": [
317
+ "Address",
318
+ "U256",
319
+ "CollectParams"
320
+ ],
321
+ "paramIsMutable": [
322
+ false,
323
+ false,
324
+ false
325
+ ],
326
+ "returnTypes": []
327
+ },
328
+ {
329
+ "name": "getSqrtPricesX96",
330
+ "paramNames": [
331
+ "pool",
332
+ "owner",
333
+ "tickLower",
334
+ "tickUpper"
335
+ ],
336
+ "paramTypes": [
337
+ "Pool",
338
+ "Address",
339
+ "I256",
340
+ "I256"
341
+ ],
342
+ "paramIsMutable": [
343
+ false,
344
+ false,
345
+ false,
346
+ false
347
+ ],
348
+ "returnTypes": [
349
+ "U256",
350
+ "U256",
351
+ "U256",
352
+ "U256"
353
+ ]
354
+ }
355
+ ],
356
+ "constants": [],
357
+ "enums": [
358
+ {
359
+ "name": "LiquidityManagmentError",
360
+ "fields": [
361
+ {
362
+ "name": "MintSlippage",
363
+ "value": {
364
+ "type": "U256",
365
+ "value": "850"
366
+ }
367
+ },
368
+ {
369
+ "name": "BurnSlippage",
370
+ "value": {
371
+ "type": "U256",
372
+ "value": "851"
373
+ }
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ "name": "FullMathError",
379
+ "fields": [
380
+ {
381
+ "name": "MulDivOverflow",
382
+ "value": {
383
+ "type": "U256",
384
+ "value": "351"
385
+ }
386
+ }
387
+ ]
388
+ },
389
+ {
390
+ "name": "PathPrefixes",
391
+ "fields": [
392
+ {
393
+ "name": "Tick",
394
+ "value": {
395
+ "type": "U256",
396
+ "value": "0"
397
+ }
398
+ },
399
+ {
400
+ "name": "Position",
401
+ "value": {
402
+ "type": "U256",
403
+ "value": "1"
404
+ }
405
+ },
406
+ {
407
+ "name": "Word",
408
+ "value": {
409
+ "type": "U256",
410
+ "value": "2"
411
+ }
412
+ }
413
+ ]
414
+ }
415
+ ]
416
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "version": "v4.3.0",
3
+ "name": "SwapWithoutAccount",
4
+ "bytecodeTemplate": "010103000400402cb41700{0}160047cc17011601c5194c0516000d0c{0}d465b302f9{5}3d1702{5}05264c02{2}4a01{3}17031600{2}1602a3160016001603{4}{5}{6}{7}13070e{1}012a1818",
5
+ "fieldsSig": {
6
+ "names": [
7
+ "dexAccount",
8
+ "pool",
9
+ "tokenIn",
10
+ "tokenOut",
11
+ "zeroForOne",
12
+ "amountSpecified",
13
+ "sqrtPriceLimitX96",
14
+ "data"
15
+ ],
16
+ "types": [
17
+ "IDexAccount",
18
+ "Pool",
19
+ "ByteVec",
20
+ "ByteVec",
21
+ "Bool",
22
+ "I256",
23
+ "U256",
24
+ "ByteVec"
25
+ ],
26
+ "isMutable": [
27
+ false,
28
+ false,
29
+ false,
30
+ false,
31
+ false,
32
+ false,
33
+ false,
34
+ false
35
+ ]
36
+ },
37
+ "functions": [
38
+ {
39
+ "name": "main",
40
+ "paramNames": [],
41
+ "paramTypes": [],
42
+ "paramIsMutable": [],
43
+ "returnTypes": []
44
+ }
45
+ ]
46
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "version": "v4.3.0",
3
+ "name": "TestToken",
4
+ "bytecode": "040409121b4025010000000102ce0002010000000102ce0102010000000102ce02020100000001040c0d3602",
5
+ "codeHash": "32d99ee24650d37c7111a9cc02ed2694b608e2d1b52301d27c6b28abc9ba94e9",
6
+ "fieldsSig": {
7
+ "names": [
8
+ "symbol",
9
+ "name",
10
+ "decimals",
11
+ "__stdInterfaceId"
12
+ ],
13
+ "types": [
14
+ "ByteVec",
15
+ "ByteVec",
16
+ "U256",
17
+ "ByteVec"
18
+ ],
19
+ "isMutable": [
20
+ false,
21
+ false,
22
+ false,
23
+ false
24
+ ]
25
+ },
26
+ "eventsSig": [],
27
+ "functions": [
28
+ {
29
+ "name": "getSymbol",
30
+ "paramNames": [],
31
+ "paramTypes": [],
32
+ "paramIsMutable": [],
33
+ "returnTypes": [
34
+ "ByteVec"
35
+ ]
36
+ },
37
+ {
38
+ "name": "getName",
39
+ "paramNames": [],
40
+ "paramTypes": [],
41
+ "paramIsMutable": [],
42
+ "returnTypes": [
43
+ "ByteVec"
44
+ ]
45
+ },
46
+ {
47
+ "name": "getDecimals",
48
+ "paramNames": [],
49
+ "paramTypes": [],
50
+ "paramIsMutable": [],
51
+ "returnTypes": [
52
+ "U256"
53
+ ]
54
+ },
55
+ {
56
+ "name": "getTotalSupply",
57
+ "paramNames": [],
58
+ "paramTypes": [],
59
+ "paramIsMutable": [],
60
+ "returnTypes": [
61
+ "U256"
62
+ ]
63
+ }
64
+ ],
65
+ "constants": [],
66
+ "enums": [],
67
+ "stdInterfaceId": "0001"
68
+ }
@@ -0,0 +1,161 @@
1
+ {
2
+ "version": "v4.3.0",
3
+ "name": "Tick",
4
+ "bytecode": "0706405140a340f5410b416541730100030601402ad344ba8eddb4ce00451343217ba000170316033f16011f1704160405291343237b16043d170516051600321343227b1605a10016024c04a0011601204a03a00116011fa10116050c2f0201000405034032d3cfc5e9a41600ce01294c05a002a003a004024a40280c170416040f314c1e16047a0f314d0d2a7816047a0f314d0e2ac32b16047a0f314d0d2a7916040d2a17044a7fde1601160216030201000405034032d36efb0f181600ce01264c05a002a003a004024a40280c170416040f314c1e16047a0f314d0d2a7816047a0f314d0e2ac32b16047a0f314d0d2a7916040d2a17044a7fde16011602160302010201010008d3b0cd421fb4ce00451343217b1600b001000506014035d336cb1526b4ce00451343217b16034c03160417004a02160417010c170516050f314c1a16057a0f314d7816057a0f314d0e2ac32b16057a0f314d7916050d2a17054a22160016011602a104a103a102a00102010000000103d3602bc55da00102",
5
+ "codeHash": "1373551ca890d886980b8d33277d7ed7a2c9f7665d77a1e893a1f2554d10d4b1",
6
+ "fieldsSig": {
7
+ "names": [
8
+ "parent",
9
+ "tick",
10
+ "liquidityGross",
11
+ "liquidityNet",
12
+ "feeGrowthsOutside"
13
+ ],
14
+ "types": [
15
+ "Address",
16
+ "I256",
17
+ "U256",
18
+ "I256",
19
+ "[U256;3]"
20
+ ],
21
+ "isMutable": [
22
+ false,
23
+ false,
24
+ true,
25
+ true,
26
+ true
27
+ ]
28
+ },
29
+ "eventsSig": [],
30
+ "functions": [
31
+ {
32
+ "name": "update",
33
+ "paramNames": [
34
+ "maxLiquidity",
35
+ "liquidityDelta",
36
+ "upper"
37
+ ],
38
+ "paramTypes": [
39
+ "U256",
40
+ "I256",
41
+ "Bool"
42
+ ],
43
+ "paramIsMutable": [
44
+ false,
45
+ false,
46
+ false
47
+ ],
48
+ "returnTypes": [
49
+ "Bool"
50
+ ]
51
+ },
52
+ {
53
+ "name": "feeGrowthBelow",
54
+ "paramNames": [
55
+ "tickCurrent",
56
+ "globalGrowths"
57
+ ],
58
+ "paramTypes": [
59
+ "I256",
60
+ "[U256;3]"
61
+ ],
62
+ "paramIsMutable": [
63
+ false,
64
+ true
65
+ ],
66
+ "returnTypes": [
67
+ "[U256;3]"
68
+ ]
69
+ },
70
+ {
71
+ "name": "feeGrowthAbove",
72
+ "paramNames": [
73
+ "tickCurrent",
74
+ "globalGrowths"
75
+ ],
76
+ "paramTypes": [
77
+ "I256",
78
+ "[U256;3]"
79
+ ],
80
+ "paramIsMutable": [
81
+ false,
82
+ true
83
+ ],
84
+ "returnTypes": [
85
+ "[U256;3]"
86
+ ]
87
+ },
88
+ {
89
+ "name": "clear",
90
+ "paramNames": [
91
+ "payer"
92
+ ],
93
+ "paramTypes": [
94
+ "Address"
95
+ ],
96
+ "paramIsMutable": [
97
+ false
98
+ ],
99
+ "returnTypes": []
100
+ },
101
+ {
102
+ "name": "cross",
103
+ "paramNames": [
104
+ "globalGrowths",
105
+ "zeroForOne",
106
+ "feeGrowthGlobalX128"
107
+ ],
108
+ "paramTypes": [
109
+ "[U256;3]",
110
+ "Bool",
111
+ "U256"
112
+ ],
113
+ "paramIsMutable": [
114
+ true,
115
+ false,
116
+ false
117
+ ],
118
+ "returnTypes": [
119
+ "I256"
120
+ ]
121
+ },
122
+ {
123
+ "name": "getLiquidityNet",
124
+ "paramNames": [],
125
+ "paramTypes": [],
126
+ "paramIsMutable": [],
127
+ "returnTypes": [
128
+ "I256"
129
+ ]
130
+ }
131
+ ],
132
+ "constants": [],
133
+ "enums": [
134
+ {
135
+ "name": "TickError",
136
+ "fields": [
137
+ {
138
+ "name": "NotParent",
139
+ "value": {
140
+ "type": "U256",
141
+ "value": "801"
142
+ }
143
+ },
144
+ {
145
+ "name": "LO",
146
+ "value": {
147
+ "type": "U256",
148
+ "value": "802"
149
+ }
150
+ },
151
+ {
152
+ "name": "LS",
153
+ "value": {
154
+ "type": "U256",
155
+ "value": "803"
156
+ }
157
+ }
158
+ ]
159
+ }
160
+ ]
161
+ }