@alephium/powfi-sdk 0.0.1-rc.22 → 0.0.1-rc.24

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 (144) hide show
  1. package/clmm/artifacts/BitmapWord.ral.json +23 -77
  2. package/clmm/artifacts/BitmapWordDeployer.ral.json +5 -13
  3. package/clmm/artifacts/CreateConfig.ral.json +4 -22
  4. package/clmm/artifacts/CreateLiquidPool.ral.json +3 -27
  5. package/clmm/artifacts/DexAccount.ral.json +20 -79
  6. package/clmm/artifacts/LiquidityAmountsTest.ral.json +25 -115
  7. package/clmm/artifacts/LiquidityManagmentTest.ral.json +60 -253
  8. package/clmm/artifacts/Pool.ral.json +214 -1024
  9. package/clmm/artifacts/PoolConfig.ral.json +5 -13
  10. package/clmm/artifacts/PoolFactory.ral.json +42 -211
  11. package/clmm/artifacts/PoolRouterDemo.ral.json +4 -34
  12. package/clmm/artifacts/PoolUser.ral.json +8 -74
  13. package/clmm/artifacts/Position.ral.json +29 -121
  14. package/clmm/artifacts/PositionManager.ral.json +65 -295
  15. package/clmm/artifacts/SwapWithoutAccount.ral.json +3 -21
  16. package/clmm/artifacts/TestToken.ral.json +8 -31
  17. package/clmm/artifacts/Tick.ral.json +24 -100
  18. package/clmm/artifacts/TickBitmapTest.ral.json +38 -140
  19. package/clmm/artifacts/constants.ral.json +1 -1
  20. package/clmm/artifacts/structs.ral.json +36 -254
  21. package/clmm/artifacts/ts/BitmapWord.ts +121 -201
  22. package/clmm/artifacts/ts/BitmapWordDeployer.ts +51 -73
  23. package/clmm/artifacts/ts/DexAccount.ts +129 -195
  24. package/clmm/artifacts/ts/LiquidityAmountsTest.ts +162 -302
  25. package/clmm/artifacts/ts/LiquidityManagmentTest.ts +304 -578
  26. package/clmm/artifacts/ts/Pool.ts +1200 -1739
  27. package/clmm/artifacts/ts/PoolConfig.ts +54 -89
  28. package/clmm/artifacts/ts/PoolFactory.ts +265 -403
  29. package/clmm/artifacts/ts/PoolUser.ts +89 -134
  30. package/clmm/artifacts/ts/Position.ts +187 -300
  31. package/clmm/artifacts/ts/PositionManager.ts +362 -617
  32. package/clmm/artifacts/ts/TestToken.ts +99 -159
  33. package/clmm/artifacts/ts/Tick.ts +148 -190
  34. package/clmm/artifacts/ts/TickBitmapTest.ts +194 -331
  35. package/clmm/artifacts/ts/constants.ts +11 -13
  36. package/clmm/artifacts/ts/contracts.ts +8 -8
  37. package/clmm/artifacts/ts/deployments.ts +68 -101
  38. package/clmm/artifacts/ts/index.ts +16 -16
  39. package/clmm/artifacts/ts/scripts.ts +45 -57
  40. package/clmm/artifacts/ts/types.ts +75 -75
  41. package/clmm/deployments/.deployments.devnet.json +1 -1
  42. package/clmm/deployments/.deployments.testnet.json +1 -1
  43. package/cpmm/artifacts/dex/DexAccount.ral.json +20 -79
  44. package/cpmm/artifacts/dex/Router.ral.json +26 -183
  45. package/cpmm/artifacts/dex/TokenPair.ral.json +49 -220
  46. package/cpmm/artifacts/dex/TokenPairFactory.ral.json +26 -113
  47. package/cpmm/artifacts/examples/ExampleOracleSimple.ral.json +23 -94
  48. package/cpmm/artifacts/examples/FeeCollectorFactoryImpl.ral.json +8 -31
  49. package/cpmm/artifacts/examples/FeeCollectorPerTokenPairImpl.ral.json +13 -46
  50. package/cpmm/artifacts/examples/FullMathTest.ral.json +13 -50
  51. package/cpmm/artifacts/scripts/AddLiquidity.ral.json +4 -31
  52. package/cpmm/artifacts/scripts/Burn.ral.json +4 -16
  53. package/cpmm/artifacts/scripts/CollectFee.ral.json +4 -10
  54. package/cpmm/artifacts/scripts/CreatePair.ral.json +4 -22
  55. package/cpmm/artifacts/scripts/CreatePairAndAddLiquidity.ral.json +4 -31
  56. package/cpmm/artifacts/scripts/EnableFeeCollector.ral.json +4 -13
  57. package/cpmm/artifacts/scripts/Mint.ral.json +4 -19
  58. package/cpmm/artifacts/scripts/RemoveLiquidity.ral.json +4 -28
  59. package/cpmm/artifacts/scripts/SetFeeCollectorFactory.ral.json +4 -13
  60. package/cpmm/artifacts/scripts/Swap.ral.json +4 -31
  61. package/cpmm/artifacts/scripts/SwapMaxIn.ral.json +4 -31
  62. package/cpmm/artifacts/scripts/SwapMinOut.ral.json +4 -31
  63. package/cpmm/artifacts/test/GetToken.ral.json +4 -16
  64. package/cpmm/artifacts/test/MathTest.ral.json +9 -28
  65. package/cpmm/artifacts/test/TestToken.ral.json +11 -46
  66. package/cpmm/artifacts/ts/DexAccount.ts +127 -198
  67. package/cpmm/artifacts/ts/ExampleOracleSimple.ts +145 -236
  68. package/cpmm/artifacts/ts/FeeCollectorFactoryImpl.ts +81 -127
  69. package/cpmm/artifacts/ts/FeeCollectorPerTokenPairImpl.ts +115 -206
  70. package/cpmm/artifacts/ts/FullMathTest.ts +91 -137
  71. package/cpmm/artifacts/ts/MathTest.ts +62 -88
  72. package/cpmm/artifacts/ts/Router.ts +275 -355
  73. package/cpmm/artifacts/ts/TestToken.ts +114 -188
  74. package/cpmm/artifacts/ts/TokenPair.ts +395 -645
  75. package/cpmm/artifacts/ts/TokenPairFactory.ts +190 -322
  76. package/cpmm/artifacts/ts/contracts.ts +8 -8
  77. package/cpmm/artifacts/ts/deployments.ts +38 -63
  78. package/cpmm/artifacts/ts/index.ts +12 -12
  79. package/cpmm/artifacts/ts/scripts.ts +96 -105
  80. package/cpmm/deployments/.deployments.devnet.json +1 -1
  81. package/cpmm/deployments/.deployments.testnet.json +1 -1
  82. package/lib/index.d.mts +530 -312
  83. package/lib/index.d.ts +530 -312
  84. package/lib/index.js +1927 -8797
  85. package/lib/index.js.map +1 -1
  86. package/lib/index.mjs +1908 -8784
  87. package/lib/index.mjs.map +1 -1
  88. package/package.json +20 -13
  89. package/staking/artifacts/AlphUnstakeVault.ral.json +14 -57
  90. package/staking/artifacts/XAlphStakeVault.ral.json +88 -307
  91. package/staking/artifacts/XAlphToken.ral.json +77 -299
  92. package/staking/artifacts/XAlphUnlockAndStartUnstake.ral.json +4 -16
  93. package/staking/artifacts/examples/GovernanceDemo.ral.json +34 -127
  94. package/staking/artifacts/examples/RewardSharingVault.ral.json +34 -129
  95. package/staking/artifacts/structs.ral.json +10 -37
  96. package/staking/artifacts/ts/AlphUnstakeVault.ts +143 -238
  97. package/staking/artifacts/ts/FullMathTest.ts +56 -81
  98. package/staking/artifacts/ts/GovernanceDemo.ts +253 -458
  99. package/staking/artifacts/ts/RewardSharingVault.ts +178 -333
  100. package/staking/artifacts/ts/TestDynamicArrayByteVec32.ts +151 -272
  101. package/staking/artifacts/ts/TestDynamicSortedArrayForU256.ts +175 -343
  102. package/staking/artifacts/ts/TestMerkleProof.ts +125 -196
  103. package/staking/artifacts/ts/XAlphStakeVault.ts +418 -723
  104. package/staking/artifacts/ts/XAlphToken.ts +410 -683
  105. package/staking/artifacts/ts/contracts.ts +8 -8
  106. package/staking/artifacts/ts/deployments.ts +37 -64
  107. package/staking/artifacts/ts/index.ts +11 -11
  108. package/staking/artifacts/ts/scripts.ts +9 -12
  109. package/staking/artifacts/ts/types.ts +9 -9
  110. package/staking/artifacts/utils/FullMathTest.ral.json +5 -19
  111. package/staking/artifacts/utils/TestDynamicArrayByteVec32.ral.json +26 -91
  112. package/staking/artifacts/utils/TestDynamicSortedArrayForU256.ral.json +30 -112
  113. package/staking/artifacts/utils/TestMerkleProof.ral.json +22 -72
  114. package/staking/deployments/.deployments.devnet.json +1 -1
  115. package/staking/deployments/.deployments.testnet.json +1 -1
  116. package/src/clmm/clmm.ts +0 -625
  117. package/src/clmm/constants.ts +0 -7
  118. package/src/clmm/index.ts +0 -6
  119. package/src/clmm/liquidity.ts +0 -163
  120. package/src/clmm/pool.ts +0 -148
  121. package/src/clmm/tick.ts +0 -323
  122. package/src/clmm/types.ts +0 -155
  123. package/src/common/constants.ts +0 -1
  124. package/src/common/error.ts +0 -46
  125. package/src/common/index.ts +0 -7
  126. package/src/common/logger.ts +0 -82
  127. package/src/common/math.ts +0 -88
  128. package/src/common/numeric.ts +0 -64
  129. package/src/common/types.ts +0 -49
  130. package/src/common/utils.ts +0 -9
  131. package/src/cpmm/constants.ts +0 -2
  132. package/src/cpmm/cpmm.ts +0 -663
  133. package/src/cpmm/index.ts +0 -3
  134. package/src/cpmm/types.ts +0 -119
  135. package/src/index.ts +0 -25
  136. package/src/moduleBase.ts +0 -64
  137. package/src/powfi.ts +0 -105
  138. package/src/staking/index.ts +0 -4
  139. package/src/staking/settings.ts +0 -38
  140. package/src/staking/staking.ts +0 -284
  141. package/src/staking/types.ts +0 -15
  142. package/src/staking/utils.ts +0 -25
  143. package/src/token/index.ts +0 -1
  144. package/src/token/token.ts +0 -163
@@ -4,100 +4,46 @@
4
4
  "bytecode": "020540d641c941e7429442aa0000010201406516000c301340967b0c1701160013cd0100000000000000000000000000000000344c0816001340803c170016011340802a1701160013c5010000000000000000344c0816001340403c170016011340402a1701160013c10100000000344c08160013203c1700160113202a170116001380010000344c08160013103c1700160113102a17011600134100344c08160013083c1700160113082a170116001310344c081600103c17001601102a1701160010344c0816000e3c170016010e2a170116000e344c0416010d2a17011601020000010201407c16000c301340977b1340ff1701160013ccffffffffffffffffffffffffffffffff380c334c0516011340802b17014a0416001340803c1700160013c4ffffffffffffffff380c334c0516011340402b17014a0416001340403c1700160013c0ffffffff380c334c05160113202b17014a04160013203c17001600138000ffff380c334c05160113102b17014a04160013103c170016001340ff380c334c05160113082b17014a04160013083c17001600130f380c334c051601102b17014a041600103c170016000f380c334c0516010e2b17014a0416000e3c170016000d380c334c0416010d2b170116010201000101000dd3ff38d2a3ce00b4451341937ba0000d160000043b3aa1000100030f024064d327ef6f9f16014c40301600000417030d16033b0d2b0d16033b2a1704a000160438170516050c30170616064c0e16001603160500002b3f20160221170716071606024a0a160016033f20160221170816081606024a40311600000417090d16093b0d2b0c0d363a170aa000160a38170b160b0c30170c160c4c0e1600160b000116092b3f1f160221170d160d160c024a0c16001240ff16093f201f160221170e160e160c020000010101091600124100231241001f124100233d02",
5
5
  "codeHash": "69fd344eb51899a9bdc30ae94beeb2dcfeb2fc312d39116ebe9d208a55293edd",
6
6
  "fieldsSig": {
7
- "names": [
8
- "parent",
9
- "value"
10
- ],
11
- "types": [
12
- "Address",
13
- "U256"
14
- ],
15
- "isMutable": [
16
- false,
17
- true
18
- ]
7
+ "names": ["parent", "value"],
8
+ "types": ["Address", "U256"],
9
+ "isMutable": [false, true]
19
10
  },
20
11
  "eventsSig": [],
21
12
  "functions": [
22
13
  {
23
14
  "name": "mostSignificantBit",
24
- "paramNames": [
25
- "x"
26
- ],
27
- "paramTypes": [
28
- "U256"
29
- ],
30
- "paramIsMutable": [
31
- true
32
- ],
33
- "returnTypes": [
34
- "U256"
35
- ]
15
+ "paramNames": ["x"],
16
+ "paramTypes": ["U256"],
17
+ "paramIsMutable": [true],
18
+ "returnTypes": ["U256"]
36
19
  },
37
20
  {
38
21
  "name": "leastSignificantBit",
39
- "paramNames": [
40
- "x"
41
- ],
42
- "paramTypes": [
43
- "U256"
44
- ],
45
- "paramIsMutable": [
46
- true
47
- ],
48
- "returnTypes": [
49
- "U256"
50
- ]
22
+ "paramNames": ["x"],
23
+ "paramTypes": ["U256"],
24
+ "paramIsMutable": [true],
25
+ "returnTypes": ["U256"]
51
26
  },
52
27
  {
53
28
  "name": "flip",
54
- "paramNames": [
55
- "tick"
56
- ],
57
- "paramTypes": [
58
- "I256"
59
- ],
60
- "paramIsMutable": [
61
- false
62
- ],
29
+ "paramNames": ["tick"],
30
+ "paramTypes": ["I256"],
31
+ "paramIsMutable": [false],
63
32
  "returnTypes": []
64
33
  },
65
34
  {
66
35
  "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
- ]
36
+ "paramNames": ["compressed", "zeroForOne", "tickSpacing"],
37
+ "paramTypes": ["I256", "Bool", "I256"],
38
+ "paramIsMutable": [false, false, false],
39
+ "returnTypes": ["I256", "Bool"]
86
40
  },
87
41
  {
88
42
  "name": "getBitPos",
89
- "paramNames": [
90
- "tick"
91
- ],
92
- "paramTypes": [
93
- "I256"
94
- ],
95
- "paramIsMutable": [
96
- false
97
- ],
98
- "returnTypes": [
99
- "U256"
100
- ]
43
+ "paramNames": ["tick"],
44
+ "paramTypes": ["I256"],
45
+ "paramIsMutable": [false],
46
+ "returnTypes": ["U256"]
101
47
  }
102
48
  ],
103
49
  "constants": [],
@@ -122,4 +68,4 @@
122
68
  ]
123
69
  }
124
70
  ]
125
- }
71
+ }
@@ -12,20 +12,12 @@
12
12
  "functions": [
13
13
  {
14
14
  "name": "deploy",
15
- "paramNames": [
16
- "payer"
17
- ],
18
- "paramTypes": [
19
- "Address"
20
- ],
21
- "paramIsMutable": [
22
- false
23
- ],
24
- "returnTypes": [
25
- "BitmapWord"
26
- ]
15
+ "paramNames": ["payer"],
16
+ "paramTypes": ["Address"],
17
+ "paramIsMutable": [false],
18
+ "returnTypes": ["BitmapWord"]
27
19
  }
28
20
  ],
29
21
  "constants": [],
30
22
  "enums": []
31
- }
23
+ }
@@ -3,27 +3,9 @@
3
3
  "name": "CreateConfig",
4
4
  "bytecodeTemplate": "01010300010011{0}{4}40cc17001600c5194c08{1}{2}{3}0f0d{0}010418",
5
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
- ]
6
+ "names": ["factory", "tickSpacing", "fee", "feeProtocol", "configIndex"],
7
+ "types": ["PoolFactory", "I256", "U256", "U256", "U256"],
8
+ "isMutable": [false, false, false, false, false]
27
9
  },
28
10
  "functions": [
29
11
  {
@@ -34,4 +16,4 @@
34
16
  "returnTypes": []
35
17
  }
36
18
  ]
37
- }
19
+ }
@@ -16,32 +16,8 @@
16
16
  "amount0",
17
17
  "amount1"
18
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
- ]
19
+ "types": ["PoolFactory", "ByteVec", "ByteVec", "U256", "U256", "ByteVec", "I256", "I256", "U256", "U256", "U256"],
20
+ "isMutable": [false, false, false, false, false, false, false, false, false, false, false]
45
21
  },
46
22
  "functions": [
47
23
  {
@@ -52,4 +28,4 @@
52
28
  "returnTypes": []
53
29
  }
54
30
  ]
55
- }
31
+ }
@@ -4,107 +4,48 @@
4
4
  "bytecode": "0505404b409940b240ca40e60103050800402cd3bd481528b417051600ce0116011602aa16047a0e314dc3170616064313202f4c1816047a0e314dc31603cc17071605160777467a4c0418a0020c304c04a0020d2ba10201000106004029d365b302f9b41701160149191341f47b160047cb17021602c54c06ce000d0d160201024a01ce00170316011603130264a000a001a00213036417051704160147b116041605c11801000101010ad358cbdacfa0020c2f4c03ce00024a0216000201030101000ad3511324a7b4b1a50d2f1341937b1600a10201030202000cd375472acbb4b1a50d2f1341937b16001601a101a100",
5
5
  "codeHash": "66c27c91033d54a2d3edc97dbc36b35022274ddd8a7b84b724631ac37586ed48",
6
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
- ]
7
+ "names": ["parents", "owner", "refferer", "counter"],
8
+ "types": ["[ByteVec;2]", "Address", "Address", "U256"],
9
+ "isMutable": [true, false, false, true]
25
10
  },
26
11
  "eventsSig": [],
27
12
  "functions": [
28
13
  {
29
14
  "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
- ],
15
+ "paramNames": ["payer", "tokenId", "amount", "path", "at"],
16
+ "paramTypes": ["Address", "ByteVec", "U256", "ByteVec", "U256"],
17
+ "paramIsMutable": [false, false, false, false, false],
51
18
  "returnTypes": []
52
19
  },
53
20
  {
54
21
  "name": "createAccount",
55
- "paramNames": [
56
- "ref"
57
- ],
58
- "paramTypes": [
59
- "Address"
60
- ],
61
- "paramIsMutable": [
62
- false
63
- ],
22
+ "paramNames": ["ref"],
23
+ "paramTypes": ["Address"],
24
+ "paramIsMutable": [false],
64
25
  "returnTypes": []
65
26
  },
66
27
  {
67
28
  "name": "asRef",
68
- "paramNames": [
69
- "defaultRef"
70
- ],
71
- "paramTypes": [
72
- "Address"
73
- ],
74
- "paramIsMutable": [
75
- false
76
- ],
77
- "returnTypes": [
78
- "Address"
79
- ]
29
+ "paramNames": ["defaultRef"],
30
+ "paramTypes": ["Address"],
31
+ "paramIsMutable": [false],
32
+ "returnTypes": ["Address"]
80
33
  },
81
34
  {
82
35
  "name": "updateCounter",
83
- "paramNames": [
84
- "newCounter"
85
- ],
86
- "paramTypes": [
87
- "U256"
88
- ],
89
- "paramIsMutable": [
90
- false
91
- ],
36
+ "paramNames": ["newCounter"],
37
+ "paramTypes": ["U256"],
38
+ "paramIsMutable": [false],
92
39
  "returnTypes": []
93
40
  },
94
41
  {
95
42
  "name": "setParents",
96
- "paramNames": [
97
- "newParents"
98
- ],
99
- "paramTypes": [
100
- "[ByteVec;2]"
101
- ],
102
- "paramIsMutable": [
103
- false
104
- ],
43
+ "paramNames": ["newParents"],
44
+ "paramTypes": ["[ByteVec;2]"],
45
+ "paramIsMutable": [false],
105
46
  "returnTypes": []
106
47
  }
107
48
  ],
108
49
  "constants": [],
109
50
  "enums": []
110
- }
51
+ }
@@ -12,135 +12,45 @@
12
12
  "functions": [
13
13
  {
14
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
- ]
15
+ "paramNames": ["sqrtRatioAX96", "sqrtRatioBX96", "amount0"],
16
+ "paramTypes": ["U256", "U256", "U256"],
17
+ "paramIsMutable": [false, false, false],
18
+ "returnTypes": ["U256"]
33
19
  },
34
20
  {
35
21
  "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
- ]
22
+ "paramNames": ["sqrtRatioAX96", "sqrtRatioBX96", "amount1"],
23
+ "paramTypes": ["U256", "U256", "U256"],
24
+ "paramIsMutable": [false, false, false],
25
+ "returnTypes": ["U256"]
54
26
  },
55
27
  {
56
28
  "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
- ]
29
+ "paramNames": ["sqrtRatioX96", "sqrtRatioAX96", "sqrtRatioBX96", "amount0", "amount1"],
30
+ "paramTypes": ["U256", "U256", "U256", "U256", "U256"],
31
+ "paramIsMutable": [false, false, false, false, false],
32
+ "returnTypes": ["U256"]
81
33
  },
82
34
  {
83
35
  "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
- ]
36
+ "paramNames": ["sqrtRatioAX96", "sqrtRatioBX96", "liquidity"],
37
+ "paramTypes": ["U256", "U256", "U256"],
38
+ "paramIsMutable": [false, false, false],
39
+ "returnTypes": ["U256"]
102
40
  },
103
41
  {
104
42
  "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
- ]
43
+ "paramNames": ["a", "b", "denominator"],
44
+ "paramTypes": ["U256", "U256", "U256"],
45
+ "paramIsMutable": [false, false, true],
46
+ "returnTypes": ["U256"]
123
47
  },
124
48
  {
125
49
  "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
- ]
50
+ "paramNames": ["a", "b", "denominator"],
51
+ "paramTypes": ["U256", "U256", "U256"],
52
+ "paramIsMutable": [false, false, false],
53
+ "returnTypes": ["U256"]
144
54
  }
145
55
  ],
146
56
  "constants": [],
@@ -158,4 +68,4 @@
158
68
  ]
159
69
  }
160
70
  ]
161
- }
71
+ }