@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
package/README.md ADDED
@@ -0,0 +1,4 @@
1
+ ## Typescript SDK
2
+
3
+ Temporarily renamed the package to `alephium/powfi-sdk` to increase developer experience.
4
+ Will change to appropriate package name later.
@@ -0,0 +1,125 @@
1
+ {
2
+ "version": "v4.3.0",
3
+ "name": "BitmapWord",
4
+ "bytecode": "020540d641c941e7429442aa0000010201406516000c301340967b0c1701160013cd0100000000000000000000000000000000344c0816001340803c170016011340802a1701160013c5010000000000000000344c0816001340403c170016011340402a1701160013c10100000000344c08160013203c1700160113202a170116001380010000344c08160013103c1700160113102a17011600134100344c08160013083c1700160113082a170116001310344c081600103c17001601102a1701160010344c0816000e3c170016010e2a170116000e344c0416010d2a17011601020000010201407c16000c301340977b1340ff1701160013ccffffffffffffffffffffffffffffffff380c334c0516011340802b17014a0416001340803c1700160013c4ffffffffffffffff380c334c0516011340402b17014a0416001340403c1700160013c0ffffffff380c334c05160113202b17014a04160013203c17001600138000ffff380c334c05160113102b17014a04160013103c170016001340ff380c334c05160113082b17014a04160013083c17001600130f380c334c051601102b17014a041600103c170016000f380c334c0516010e2b17014a0416000e3c170016000d380c334c0416010d2b170116010201000101000dd3ff38d2a3ce00b4451341937ba0000d160000043b3aa1000100030f024064d327ef6f9f16014c40301600000417030d16033b0d2b0d16033b2a1704a000160438170516050c30170616064c0e16001603160500002b3f20160221170716071606024a0a160016033f20160221170816081606024a40311600000417090d16093b0d2b0c0d363a170aa000160a38170b160b0c30170c160c4c0e1600160b000116092b3f1f160221170d160d160c024a0c16001240ff16093f201f160221170e160e160c020000010101091600124100231241001f124100233d02",
5
+ "codeHash": "69fd344eb51899a9bdc30ae94beeb2dcfeb2fc312d39116ebe9d208a55293edd",
6
+ "fieldsSig": {
7
+ "names": [
8
+ "parent",
9
+ "value"
10
+ ],
11
+ "types": [
12
+ "Address",
13
+ "U256"
14
+ ],
15
+ "isMutable": [
16
+ false,
17
+ true
18
+ ]
19
+ },
20
+ "eventsSig": [],
21
+ "functions": [
22
+ {
23
+ "name": "mostSignificantBit",
24
+ "paramNames": [
25
+ "x"
26
+ ],
27
+ "paramTypes": [
28
+ "U256"
29
+ ],
30
+ "paramIsMutable": [
31
+ true
32
+ ],
33
+ "returnTypes": [
34
+ "U256"
35
+ ]
36
+ },
37
+ {
38
+ "name": "leastSignificantBit",
39
+ "paramNames": [
40
+ "x"
41
+ ],
42
+ "paramTypes": [
43
+ "U256"
44
+ ],
45
+ "paramIsMutable": [
46
+ true
47
+ ],
48
+ "returnTypes": [
49
+ "U256"
50
+ ]
51
+ },
52
+ {
53
+ "name": "flip",
54
+ "paramNames": [
55
+ "tick"
56
+ ],
57
+ "paramTypes": [
58
+ "I256"
59
+ ],
60
+ "paramIsMutable": [
61
+ false
62
+ ],
63
+ "returnTypes": []
64
+ },
65
+ {
66
+ "name": "getNext",
67
+ "paramNames": [
68
+ "compressed",
69
+ "zeroForOne",
70
+ "tickSpacing"
71
+ ],
72
+ "paramTypes": [
73
+ "I256",
74
+ "Bool",
75
+ "I256"
76
+ ],
77
+ "paramIsMutable": [
78
+ false,
79
+ false,
80
+ false
81
+ ],
82
+ "returnTypes": [
83
+ "I256",
84
+ "Bool"
85
+ ]
86
+ },
87
+ {
88
+ "name": "getBitPos",
89
+ "paramNames": [
90
+ "tick"
91
+ ],
92
+ "paramTypes": [
93
+ "I256"
94
+ ],
95
+ "paramIsMutable": [
96
+ false
97
+ ],
98
+ "returnTypes": [
99
+ "U256"
100
+ ]
101
+ }
102
+ ],
103
+ "constants": [],
104
+ "enums": [
105
+ {
106
+ "name": "BitMathError",
107
+ "fields": [
108
+ {
109
+ "name": "NoMostSignificantBit",
110
+ "value": {
111
+ "type": "U256",
112
+ "value": "150"
113
+ }
114
+ },
115
+ {
116
+ "name": "NoLeastSignificantBit",
117
+ "value": {
118
+ "type": "U256",
119
+ "value": "151"
120
+ }
121
+ }
122
+ ]
123
+ }
124
+ ]
125
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "version": "v4.3.0",
3
+ "name": "BitmapWordDeployer",
4
+ "bytecode": "00014026010301040113d3c7309617b41301640c130164170217011600d1a2b316011602af1703160302",
5
+ "codeHash": "082de32f22857e094db5658611a1d2ba23e792a7f23a548525e6de2784f2a70b",
6
+ "fieldsSig": {
7
+ "names": [],
8
+ "types": [],
9
+ "isMutable": []
10
+ },
11
+ "eventsSig": [],
12
+ "functions": [
13
+ {
14
+ "name": "deploy",
15
+ "paramNames": [
16
+ "payer"
17
+ ],
18
+ "paramTypes": [
19
+ "Address"
20
+ ],
21
+ "paramIsMutable": [
22
+ false
23
+ ],
24
+ "returnTypes": [
25
+ "BitmapWord"
26
+ ]
27
+ }
28
+ ],
29
+ "constants": [],
30
+ "enums": []
31
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "version": "v4.3.0",
3
+ "name": "CreateConfig",
4
+ "bytecodeTemplate": "01010300010011{0}{4}40cc17001600c5194c08{1}{2}{3}0f0d{0}010418",
5
+ "fieldsSig": {
6
+ "names": [
7
+ "factory",
8
+ "tickSpacing",
9
+ "fee",
10
+ "feeProtocol",
11
+ "configIndex"
12
+ ],
13
+ "types": [
14
+ "PoolFactory",
15
+ "I256",
16
+ "U256",
17
+ "U256",
18
+ "U256"
19
+ ],
20
+ "isMutable": [
21
+ false,
22
+ false,
23
+ false,
24
+ false,
25
+ false
26
+ ]
27
+ },
28
+ "functions": [
29
+ {
30
+ "name": "main",
31
+ "paramNames": [],
32
+ "paramTypes": [],
33
+ "paramIsMutable": [],
34
+ "returnTypes": []
35
+ }
36
+ ]
37
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "version": "v4.3.0",
3
+ "name": "CreateLiquidPool",
4
+ "bytecodeTemplate": "0101030002001fb41700{1}{2}{3}{4}{5}110d{0}0105170116007a{1}{9}a3{2}{10}a316001600{6}{7}{8}110e160101251818",
5
+ "fieldsSig": {
6
+ "names": [
7
+ "factory",
8
+ "token0",
9
+ "token1",
10
+ "configIndex",
11
+ "sqrtPriceX96",
12
+ "rewardToken",
13
+ "tickLower",
14
+ "tickUpper",
15
+ "liquidity",
16
+ "amount0",
17
+ "amount1"
18
+ ],
19
+ "types": [
20
+ "PoolFactory",
21
+ "ByteVec",
22
+ "ByteVec",
23
+ "U256",
24
+ "U256",
25
+ "ByteVec",
26
+ "I256",
27
+ "I256",
28
+ "U256",
29
+ "U256",
30
+ "U256"
31
+ ],
32
+ "isMutable": [
33
+ false,
34
+ false,
35
+ false,
36
+ false,
37
+ false,
38
+ false,
39
+ false,
40
+ false,
41
+ false,
42
+ false,
43
+ false
44
+ ]
45
+ },
46
+ "functions": [
47
+ {
48
+ "name": "main",
49
+ "paramNames": [],
50
+ "paramTypes": [],
51
+ "paramIsMutable": [],
52
+ "returnTypes": []
53
+ }
54
+ ]
55
+ }
@@ -0,0 +1,110 @@
1
+ {
2
+ "version": "v4.3.0",
3
+ "name": "DexAccount",
4
+ "bytecode": "0505404b409940b240ca40e60103050800402cd3bd481528b417051600ce0116011602aa16047a0e314dc3170616064313202f4c1816047a0e314dc31603cc17071605160777467a4c0418a0020c304c04a0020d2ba10201000106004029d365b302f9b41701160149191341f47b160047cb17021602c54c06ce000d0d160201024a01ce00170316011603130264a000a001a00213036417051704160147b116041605c11801000101010ad358cbdacfa0020c2f4c03ce00024a0216000201030101000ad3511324a7b4b1a50d2f1341937b1600a10201030202000cd375472acbb4b1a50d2f1341937b16001601a101a100",
5
+ "codeHash": "66c27c91033d54a2d3edc97dbc36b35022274ddd8a7b84b724631ac37586ed48",
6
+ "fieldsSig": {
7
+ "names": [
8
+ "parents",
9
+ "owner",
10
+ "refferer",
11
+ "counter"
12
+ ],
13
+ "types": [
14
+ "[ByteVec;2]",
15
+ "Address",
16
+ "Address",
17
+ "U256"
18
+ ],
19
+ "isMutable": [
20
+ true,
21
+ false,
22
+ false,
23
+ true
24
+ ]
25
+ },
26
+ "eventsSig": [],
27
+ "functions": [
28
+ {
29
+ "name": "deposit",
30
+ "paramNames": [
31
+ "payer",
32
+ "tokenId",
33
+ "amount",
34
+ "path",
35
+ "at"
36
+ ],
37
+ "paramTypes": [
38
+ "Address",
39
+ "ByteVec",
40
+ "U256",
41
+ "ByteVec",
42
+ "U256"
43
+ ],
44
+ "paramIsMutable": [
45
+ false,
46
+ false,
47
+ false,
48
+ false,
49
+ false
50
+ ],
51
+ "returnTypes": []
52
+ },
53
+ {
54
+ "name": "createAccount",
55
+ "paramNames": [
56
+ "ref"
57
+ ],
58
+ "paramTypes": [
59
+ "Address"
60
+ ],
61
+ "paramIsMutable": [
62
+ false
63
+ ],
64
+ "returnTypes": []
65
+ },
66
+ {
67
+ "name": "asRef",
68
+ "paramNames": [
69
+ "defaultRef"
70
+ ],
71
+ "paramTypes": [
72
+ "Address"
73
+ ],
74
+ "paramIsMutable": [
75
+ false
76
+ ],
77
+ "returnTypes": [
78
+ "Address"
79
+ ]
80
+ },
81
+ {
82
+ "name": "updateCounter",
83
+ "paramNames": [
84
+ "newCounter"
85
+ ],
86
+ "paramTypes": [
87
+ "U256"
88
+ ],
89
+ "paramIsMutable": [
90
+ false
91
+ ],
92
+ "returnTypes": []
93
+ },
94
+ {
95
+ "name": "setParents",
96
+ "paramNames": [
97
+ "newParents"
98
+ ],
99
+ "paramTypes": [
100
+ "[ByteVec;2]"
101
+ ],
102
+ "paramIsMutable": [
103
+ false
104
+ ],
105
+ "returnTypes": []
106
+ }
107
+ ],
108
+ "constants": [],
109
+ "enums": []
110
+ }
@@ -0,0 +1,161 @@
1
+ {
2
+ "version": "v4.3.0",
3
+ "name": "LiquidityAmountsTest",
4
+ "bytecode": "0006402e405240a440d241b441d701000304010dd3b8a5f4fb1600160113c9010000000000000000000000000004170316021603160116002b000402010003030108d364be47fc160213c901000000000000000000000000160116002b00040201000507014027d345f12d7a16001601324c061601160216030000024a1c16001602314c13160016021603000017051601160016040001170616051606314c0216054a011606024a0516011602160400010201000304010ed374e08b3b160213c9010000000000000000000000002c160116002b160100041703160316002d020000030901408d160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816041608370200000304011216001601160200041703160016011602870c334c0416030d2a02160302",
5
+ "codeHash": "6a4ba04c81892909e02efe02e9f3ebf139cf27afd40f5fca01f4a9b98a9003da",
6
+ "fieldsSig": {
7
+ "names": [],
8
+ "types": [],
9
+ "isMutable": []
10
+ },
11
+ "eventsSig": [],
12
+ "functions": [
13
+ {
14
+ "name": "getLiquidityForAmount0",
15
+ "paramNames": [
16
+ "sqrtRatioAX96",
17
+ "sqrtRatioBX96",
18
+ "amount0"
19
+ ],
20
+ "paramTypes": [
21
+ "U256",
22
+ "U256",
23
+ "U256"
24
+ ],
25
+ "paramIsMutable": [
26
+ false,
27
+ false,
28
+ false
29
+ ],
30
+ "returnTypes": [
31
+ "U256"
32
+ ]
33
+ },
34
+ {
35
+ "name": "getLiquidityForAmount1",
36
+ "paramNames": [
37
+ "sqrtRatioAX96",
38
+ "sqrtRatioBX96",
39
+ "amount1"
40
+ ],
41
+ "paramTypes": [
42
+ "U256",
43
+ "U256",
44
+ "U256"
45
+ ],
46
+ "paramIsMutable": [
47
+ false,
48
+ false,
49
+ false
50
+ ],
51
+ "returnTypes": [
52
+ "U256"
53
+ ]
54
+ },
55
+ {
56
+ "name": "getLiquidityForAmounts",
57
+ "paramNames": [
58
+ "sqrtRatioX96",
59
+ "sqrtRatioAX96",
60
+ "sqrtRatioBX96",
61
+ "amount0",
62
+ "amount1"
63
+ ],
64
+ "paramTypes": [
65
+ "U256",
66
+ "U256",
67
+ "U256",
68
+ "U256",
69
+ "U256"
70
+ ],
71
+ "paramIsMutable": [
72
+ false,
73
+ false,
74
+ false,
75
+ false,
76
+ false
77
+ ],
78
+ "returnTypes": [
79
+ "U256"
80
+ ]
81
+ },
82
+ {
83
+ "name": "getAmount0ForLiquidity",
84
+ "paramNames": [
85
+ "sqrtRatioAX96",
86
+ "sqrtRatioBX96",
87
+ "liquidity"
88
+ ],
89
+ "paramTypes": [
90
+ "U256",
91
+ "U256",
92
+ "U256"
93
+ ],
94
+ "paramIsMutable": [
95
+ false,
96
+ false,
97
+ false
98
+ ],
99
+ "returnTypes": [
100
+ "U256"
101
+ ]
102
+ },
103
+ {
104
+ "name": "mulDiv",
105
+ "paramNames": [
106
+ "a",
107
+ "b",
108
+ "denominator"
109
+ ],
110
+ "paramTypes": [
111
+ "U256",
112
+ "U256",
113
+ "U256"
114
+ ],
115
+ "paramIsMutable": [
116
+ false,
117
+ false,
118
+ true
119
+ ],
120
+ "returnTypes": [
121
+ "U256"
122
+ ]
123
+ },
124
+ {
125
+ "name": "mulDivRoundingUp",
126
+ "paramNames": [
127
+ "a",
128
+ "b",
129
+ "denominator"
130
+ ],
131
+ "paramTypes": [
132
+ "U256",
133
+ "U256",
134
+ "U256"
135
+ ],
136
+ "paramIsMutable": [
137
+ false,
138
+ false,
139
+ false
140
+ ],
141
+ "returnTypes": [
142
+ "U256"
143
+ ]
144
+ }
145
+ ],
146
+ "constants": [],
147
+ "enums": [
148
+ {
149
+ "name": "FullMathError",
150
+ "fields": [
151
+ {
152
+ "name": "MulDivOverflow",
153
+ "value": {
154
+ "type": "U256",
155
+ "value": "351"
156
+ }
157
+ }
158
+ ]
159
+ }
160
+ ]
161
+ }