@alephium/powfi-sdk 0.0.1-rc.32 → 0.0.1-rc.34

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 (158) hide show
  1. package/clmm/artifacts/BitmapWord.ral.json +37 -3
  2. package/clmm/artifacts/BitmapWordDeployer.ral.json +1 -1
  3. package/clmm/artifacts/CreateConfig.ral.json +7 -4
  4. package/clmm/artifacts/CreateLiquidPool.ral.json +2 -5
  5. package/clmm/artifacts/DexAccount.ral.json +18 -51
  6. package/clmm/artifacts/DexAccountRoot.ral.json +178 -0
  7. package/clmm/artifacts/FinalizeFactory.ral.json +25 -0
  8. package/clmm/artifacts/LiquidityAmountsTest.ral.json +1 -1
  9. package/clmm/artifacts/{LiquidityManagmentTest.ral.json → LiquidityManagementTest.ral.json} +12 -5
  10. package/clmm/artifacts/Pool.ral.json +104 -15
  11. package/clmm/artifacts/PoolConfig.ral.json +3 -3
  12. package/clmm/artifacts/PoolFactory.ral.json +112 -12
  13. package/clmm/artifacts/Position.ral.json +10 -4
  14. package/clmm/artifacts/PositionManager.ral.json +11 -20
  15. package/clmm/artifacts/SetDexClmmParent.ral.json +28 -0
  16. package/clmm/artifacts/SetFeeCollector.ral.json +1 -1
  17. package/clmm/artifacts/SwapWithoutAccount.ral.json +2 -5
  18. package/clmm/artifacts/Tick.ral.json +18 -15
  19. package/clmm/artifacts/TickBitmapTest.ral.json +23 -5
  20. package/clmm/artifacts/constants.ral.json +77 -0
  21. package/clmm/artifacts/examples/PoolRouterDemo.ral.json +49 -0
  22. package/clmm/artifacts/{PoolUser.ral.json → examples/PoolUser.ral.json} +7 -3
  23. package/clmm/artifacts/structs.ral.json +47 -41
  24. package/clmm/artifacts/test/FakeClmmFactory.ral.json +55 -0
  25. package/clmm/artifacts/test/FakeCpmmFactory.ral.json +46 -0
  26. package/clmm/artifacts/test/FuzzChild.ral.json +57 -0
  27. package/clmm/artifacts/test/FuzzChildCreate.ral.json +25 -0
  28. package/clmm/artifacts/test/FuzzCleanup.ral.json +28 -0
  29. package/clmm/artifacts/test/FuzzClmmAddLiquidity.ral.json +46 -0
  30. package/clmm/artifacts/test/FuzzClmmSwap.ral.json +40 -0
  31. package/clmm/artifacts/test/FuzzCloseRewards.ral.json +25 -0
  32. package/clmm/artifacts/test/FuzzCollect.ral.json +31 -0
  33. package/clmm/artifacts/test/FuzzCreateFactories.ral.json +28 -0
  34. package/clmm/artifacts/test/FuzzCreateFactory.ral.json +25 -0
  35. package/clmm/artifacts/test/FuzzFactory.ral.json +338 -0
  36. package/clmm/artifacts/test/FuzzParent.ral.json +70 -0
  37. package/clmm/artifacts/test/FuzzPool.ral.json +113 -0
  38. package/clmm/artifacts/test/FuzzPoolClose.ral.json +28 -0
  39. package/clmm/artifacts/test/FuzzPoolInit.ral.json +31 -0
  40. package/clmm/artifacts/test/FuzzPosition.ral.json +218 -0
  41. package/clmm/artifacts/test/FuzzStep.ral.json +31 -0
  42. package/clmm/artifacts/test/FuzzSwapAllPools.ral.json +37 -0
  43. package/clmm/artifacts/test/FuzzingTestFactory.ral.json +250 -0
  44. package/clmm/artifacts/test/LiquidityAmountsTest.ral.json +161 -0
  45. package/clmm/artifacts/test/LiquidityManagementTest.ral.json +391 -0
  46. package/clmm/artifacts/{DexAccountDeployer.ral.json → test/TestDexAccountDeployer.ral.json} +16 -7
  47. package/clmm/artifacts/{DexAccountPool.ral.json → test/TestDexAccountPool.ral.json} +2 -2
  48. package/clmm/artifacts/test/TickBitmapTest.ral.json +238 -0
  49. package/clmm/artifacts/ts/BitmapWord.ts +35 -2
  50. package/clmm/artifacts/ts/DexAccount.ts +25 -117
  51. package/clmm/artifacts/ts/DexAccountRoot.ts +499 -0
  52. package/clmm/artifacts/ts/FakeClmmFactory.ts +187 -0
  53. package/clmm/artifacts/ts/FakeCpmmFactory.ts +184 -0
  54. package/clmm/artifacts/ts/FuzzChild.ts +245 -0
  55. package/clmm/artifacts/ts/FuzzFactory.ts +706 -0
  56. package/clmm/artifacts/ts/FuzzParent.ts +278 -0
  57. package/clmm/artifacts/ts/FuzzPool.ts +273 -0
  58. package/clmm/artifacts/ts/FuzzPosition.ts +469 -0
  59. package/clmm/artifacts/ts/FuzzingTestFactory.ts +605 -0
  60. package/clmm/artifacts/ts/LiquidityAmountsTest.ts +1 -1
  61. package/clmm/artifacts/ts/{LiquidityManagmentTest.ts → LiquidityManagementTest.ts} +124 -121
  62. package/clmm/artifacts/ts/Pool.ts +113 -22
  63. package/clmm/artifacts/ts/PoolConfig.ts +1 -1
  64. package/clmm/artifacts/ts/PoolFactory.ts +151 -8
  65. package/clmm/artifacts/ts/PoolUser.ts +5 -2
  66. package/clmm/artifacts/ts/Position.ts +12 -4
  67. package/clmm/artifacts/ts/PositionManager.ts +3 -52
  68. package/clmm/artifacts/ts/{DexAccountDeployer.ts → TestDexAccountDeployer.ts} +65 -34
  69. package/clmm/artifacts/ts/{DexAccountPool.ts → TestDexAccountPool.ts} +23 -21
  70. package/clmm/artifacts/ts/Tick.ts +28 -13
  71. package/clmm/artifacts/ts/TickBitmapTest.ts +40 -5
  72. package/clmm/artifacts/ts/constants.ts +14 -0
  73. package/clmm/artifacts/ts/deployments.ts +14 -0
  74. package/clmm/artifacts/ts/index.ts +12 -4
  75. package/clmm/artifacts/ts/scripts.ts +132 -3
  76. package/clmm/artifacts/ts/types.ts +2 -0
  77. package/clmm/deployments/.deployments.devnet.json +187 -136
  78. package/clmm/deployments/.deployments.testnet.json +171 -137
  79. package/cpmm/artifacts/constants.ral.json +30 -0
  80. package/cpmm/artifacts/dex/{DexAccountPool.ral.json → DummyDexRoot.ral.json} +13 -10
  81. package/cpmm/artifacts/dex/Router.ral.json +10 -3
  82. package/cpmm/artifacts/dex/TokenPair.ral.json +38 -5
  83. package/cpmm/artifacts/dex/TokenPairFactory.ral.json +75 -10
  84. package/cpmm/artifacts/examples/ExampleOracleSimple.ral.json +1 -1
  85. package/cpmm/artifacts/examples/FullMathTest.ral.json +1 -1
  86. package/cpmm/artifacts/scripts/AddLiquidity.ral.json +1 -1
  87. package/cpmm/artifacts/scripts/Burn.ral.json +1 -1
  88. package/cpmm/artifacts/scripts/CreatePair.ral.json +1 -1
  89. package/cpmm/artifacts/scripts/CreatePairAndAddLiquidity.ral.json +4 -7
  90. package/cpmm/artifacts/scripts/Mint.ral.json +1 -1
  91. package/cpmm/artifacts/scripts/RemoveLiquidity.ral.json +1 -1
  92. package/cpmm/artifacts/scripts/SetDexCpmmParent.ral.json +28 -0
  93. package/cpmm/artifacts/scripts/Swap.ral.json +2 -5
  94. package/cpmm/artifacts/scripts/SwapMaxIn.ral.json +2 -5
  95. package/cpmm/artifacts/scripts/SwapMinOut.ral.json +2 -5
  96. package/cpmm/artifacts/test/GetToken.ral.json +1 -1
  97. package/cpmm/artifacts/test/MathTest.ral.json +3 -3
  98. package/cpmm/artifacts/test/TestToken.ral.json +1 -1
  99. package/cpmm/artifacts/ts/{DexAccountPool.ts → DummyDexRoot.ts} +41 -33
  100. package/cpmm/artifacts/ts/MathTest.ts +1 -1
  101. package/cpmm/artifacts/ts/Router.ts +2 -1
  102. package/cpmm/artifacts/ts/TokenPair.ts +35 -6
  103. package/cpmm/artifacts/ts/TokenPairFactory.ts +117 -7
  104. package/cpmm/artifacts/ts/constants.ts +9 -0
  105. package/cpmm/artifacts/ts/deployments.ts +2 -0
  106. package/cpmm/artifacts/ts/index.ts +1 -3
  107. package/cpmm/artifacts/ts/scripts.ts +6 -4
  108. package/cpmm/deployments/.deployments.devnet.json +45 -26
  109. package/cpmm/deployments/.deployments.testnet.json +46 -27
  110. package/lib/index.d.mts +3056 -989
  111. package/lib/index.d.ts +3056 -989
  112. package/lib/index.js +8840 -3869
  113. package/lib/index.js.map +1 -1
  114. package/lib/index.mjs +8621 -3561
  115. package/lib/index.mjs.map +1 -1
  116. package/package.json +4 -4
  117. package/staking/artifacts/ALPHLock.ral.json +32 -0
  118. package/staking/artifacts/AlphUnstakeVault.ral.json +3 -3
  119. package/staking/artifacts/CollectProtocolCLMMToken.ral.json +40 -0
  120. package/staking/artifacts/CollectProtocolCPMMToken.ral.json +34 -0
  121. package/staking/artifacts/ConnectToDapp.ral.json +2 -2
  122. package/staking/artifacts/DistributorVault.ral.json +59 -30
  123. package/staking/artifacts/InitialStake.ral.json +28 -0
  124. package/staking/artifacts/RewardFeeCollector.ral.json +306 -14
  125. package/staking/artifacts/XAlphStakeVault.ral.json +94 -3
  126. package/staking/artifacts/XAlphToken.ral.json +11 -6
  127. package/staking/artifacts/constants.ral.json +21 -0
  128. package/staking/artifacts/examples/DummyFeeCollector.ral.json +1 -1
  129. package/staking/artifacts/examples/RewardSharingVault.ral.json +1 -1
  130. package/staking/artifacts/test/FullMathTest.ral.json +57 -0
  131. package/staking/artifacts/test/RevertingStakingDapp.ral.json +84 -0
  132. package/staking/artifacts/ts/ALPHLock.ts +145 -0
  133. package/staking/artifacts/ts/AlphUnstakeVault.ts +1 -1
  134. package/staking/artifacts/ts/DistributorVault.ts +181 -76
  135. package/staking/artifacts/ts/FullMathTest.ts +1 -1
  136. package/staking/artifacts/ts/RevertingStakingDapp.ts +211 -0
  137. package/staking/artifacts/ts/RewardFeeCollector.ts +728 -36
  138. package/staking/artifacts/ts/TestDynamicArrayByteVec32.ts +1 -1
  139. package/staking/artifacts/ts/TestDynamicSortedArrayForU256.ts +1 -1
  140. package/staking/artifacts/ts/TestMerkleProof.ts +1 -1
  141. package/staking/artifacts/ts/XAlphStakeVault.ts +207 -3
  142. package/staking/artifacts/ts/XAlphToken.ts +10 -6
  143. package/staking/artifacts/ts/constants.ts +3 -0
  144. package/staking/artifacts/ts/deployments.ts +11 -36
  145. package/staking/artifacts/ts/index.ts +2 -0
  146. package/staking/artifacts/ts/scripts.ts +33 -0
  147. package/staking/deployments/.deployments.devnet.json +105 -34
  148. package/staking/deployments/.deployments.testnet.json +101 -72
  149. package/clmm/artifacts/PoolRouterDemo.ral.json +0 -49
  150. package/clmm/artifacts/TestToken.ral.json +0 -68
  151. package/clmm/artifacts/ts/TestToken.ts +0 -277
  152. package/cpmm/artifacts/dex/DexAccount.ral.json +0 -126
  153. package/cpmm/artifacts/dex/DexAccountDeployer.ral.json +0 -52
  154. package/cpmm/artifacts/ts/DexAccount.ts +0 -364
  155. package/cpmm/artifacts/ts/DexAccountDeployer.ts +0 -205
  156. /package/staking/artifacts/{utils → test}/TestDynamicArrayByteVec32.ral.json +0 -0
  157. /package/staking/artifacts/{utils → test}/TestDynamicSortedArrayForU256.ral.json +0 -0
  158. /package/staking/artifacts/{utils → test}/TestMerkleProof.ral.json +0 -0
@@ -1,8 +1,8 @@
1
1
  {
2
- "version": "v4.4.0",
2
+ "version": "v4.5.3",
3
3
  "name": "BitmapWord",
4
- "bytecode": "020540d641c941e7429442aa0000010201406516000c301340967b0c1701160013cd0100000000000000000000000000000000344c0816001340803c170016011340802a1701160013c5010000000000000000344c0816001340403c170016011340402a1701160013c10100000000344c08160013203c1700160113202a170116001380010000344c08160013103c1700160113102a17011600134100344c08160013083c1700160113082a170116001310344c081600103c17001601102a1701160010344c0816000e3c170016010e2a170116000e344c0416010d2a17011601020000010201407c16000c301340977b1340ff1701160013ccffffffffffffffffffffffffffffffff380c334c0516011340802b17014a0416001340803c1700160013c4ffffffffffffffff380c334c0516011340402b17014a0416001340403c1700160013c0ffffffff380c334c05160113202b17014a04160013203c17001600138000ffff380c334c05160113102b17014a04160013103c170016001340ff380c334c05160113082b17014a04160013083c17001600130f380c334c051601102b17014a041600103c170016000f380c334c0516010e2b17014a0416000e3c170016000d380c334c0416010d2b170116010201000101000dd3ff38d2a3ce00b4451341937ba0000d160000043b3aa1000100030f024064d327ef6f9f16014c40301600000417030d16033b0d2b0d16033b2a1704a000160438170516050c30170616064c0e16001603160500002b3f20160221170716071606024a0a160016033f20160221170816081606024a40311600000417090d16093b0d2b0c0d363a170aa000160a38170b160b0c30170c160c4c0e1600160b000116092b3f1f160221170d160d160c024a0c16001240ff16093f201f160221170e160e160c020000010101091600124100231241001f124100233d02",
5
- "codeHash": "69fd344eb51899a9bdc30ae94beeb2dcfeb2fc312d39116ebe9d208a55293edd",
4
+ "bytecode": "020640d641c941ea420842b542cb0000010201406516000c301340967b0c1701160013cd0100000000000000000000000000000000344c0816001340803c170016011340802a1701160013c5010000000000000000344c0816001340403c170016011340402a1701160013c10100000000344c08160013203c1700160113202a170116001380010000344c08160013103c1700160113102a17011600134100344c08160013083c1700160113082a170116001310344c081600103c17001601102a1701160010344c0816000e3c170016010e2a170116000e344c0416010d2a17011601020000010201407c16000c301340977b1340ff1701160013ccffffffffffffffffffffffffffffffff380c334c0516011340802b17014a0416001340803c1700160013c4ffffffffffffffff380c334c0516011340402b17014a0416001340403c1700160013c0ffffffff380c334c05160113202b17014a04160013203c17001600138000ffff380c334c05160113102b17014a04160013103c170016001340ff380c334c05160113082b17014a04160013083c17001600130f380c334c051601102b17014a041600103c170016000f380c334c0516010e2b17014a0416000e3c170016000d380c334c0416010d2b170116010201000101010fd3c20ff5d5ce00b4451341937ba0000d160000053b3aa100a0000201020101000dd320f98f62ce00b4451341937ba0000c2f1341947b1600b00100030f024064d327ef6f9f16014c40301600000517030d16033b0d2b0d16033b2a1704a000160438170516050c30170616064c0e16001603160500002b3f20160221170716071606024a0a160016033f20160221170816081606024a40311600000517090d16093b0d2b0c0d363a170aa000160a38170b160b0c30170c160c4c0e1600160b000116092b3f1f160221170d160d160c024a0c16001240ff16093f201f160221170e160e160c020000010101091600124100231241001f124100233d02",
5
+ "codeHash": "d127faf3efeb642f0bca09e963023f61cd5cc94973662e722f00e71a83bdc6b7",
6
6
  "fieldsSig": {
7
7
  "names": [
8
8
  "parent",
@@ -60,6 +60,21 @@
60
60
  "paramIsMutable": [
61
61
  false
62
62
  ],
63
+ "returnTypes": [
64
+ "U256"
65
+ ]
66
+ },
67
+ {
68
+ "name": "destroy",
69
+ "paramNames": [
70
+ "recipient"
71
+ ],
72
+ "paramTypes": [
73
+ "Address"
74
+ ],
75
+ "paramIsMutable": [
76
+ false
77
+ ],
63
78
  "returnTypes": []
64
79
  },
65
80
  {
@@ -120,6 +135,25 @@
120
135
  }
121
136
  }
122
137
  ]
138
+ },
139
+ {
140
+ "name": "BitmapWordError",
141
+ "fields": [
142
+ {
143
+ "name": "NotParent",
144
+ "value": {
145
+ "type": "U256",
146
+ "value": "403"
147
+ }
148
+ },
149
+ {
150
+ "name": "NotEmpty",
151
+ "value": {
152
+ "type": "U256",
153
+ "value": "404"
154
+ }
155
+ }
156
+ ]
123
157
  }
124
158
  ]
125
159
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "v4.4.0",
2
+ "version": "v4.5.3",
3
3
  "name": "BitmapWordDeployer",
4
4
  "bytecode": "00014026010301040113d3c7309617b41301640c130164170217011600d1a2b316011602af1703160302",
5
5
  "codeHash": "082de32f22857e094db5658611a1d2ba23e792a7f23a548525e6de2784f2a70b",
@@ -1,27 +1,30 @@
1
1
  {
2
- "version": "v4.4.0",
2
+ "version": "v4.5.3",
3
3
  "name": "CreateConfig",
4
- "bytecodeTemplate": "01010300010011{0}{4}40cc17001600c5194c08{1}{2}{3}0f0d{0}010518",
4
+ "bytecodeTemplate": "01010300010012{0}{4}40cc17001600c5194c09{1}{2}{3}{5}100d{0}010518",
5
5
  "fieldsSig": {
6
6
  "names": [
7
7
  "factory",
8
8
  "tickSpacing",
9
9
  "fee",
10
10
  "feeProtocol",
11
- "configIndex"
11
+ "configIndex",
12
+ "rewardToken"
12
13
  ],
13
14
  "types": [
14
15
  "PoolFactory",
15
16
  "I256",
16
17
  "U256",
17
18
  "U256",
18
- "U256"
19
+ "U256",
20
+ "ByteVec"
19
21
  ],
20
22
  "isMutable": [
21
23
  false,
22
24
  false,
23
25
  false,
24
26
  false,
27
+ false,
25
28
  false
26
29
  ]
27
30
  },
@@ -1,7 +1,7 @@
1
1
  {
2
- "version": "v4.4.0",
2
+ "version": "v4.5.3",
3
3
  "name": "CreateLiquidPool",
4
- "bytecodeTemplate": "0101030002001fb41700{1}{2}{3}{4}{5}110d{0}0106170116007a{1}{9}a3{2}{10}a316001600{6}{7}{8}110e160101251818",
4
+ "bytecodeTemplate": "0101030002001eb41700{1}{2}{3}{4}100d{0}0106170116007a{1}{8}a3{2}{9}a316001600{5}{6}{7}110e160101261818",
5
5
  "fieldsSig": {
6
6
  "names": [
7
7
  "factory",
@@ -9,7 +9,6 @@
9
9
  "token1",
10
10
  "configIndex",
11
11
  "sqrtPriceX96",
12
- "rewardToken",
13
12
  "tickLower",
14
13
  "tickUpper",
15
14
  "liquidity",
@@ -22,7 +21,6 @@
22
21
  "ByteVec",
23
22
  "U256",
24
23
  "U256",
25
- "ByteVec",
26
24
  "I256",
27
25
  "I256",
28
26
  "U256",
@@ -39,7 +37,6 @@
39
37
  false,
40
38
  false,
41
39
  false,
42
- false,
43
40
  false
44
41
  ]
45
42
  },
@@ -1,23 +1,26 @@
1
1
  {
2
- "version": "v4.4.0",
2
+ "version": "v4.5.3",
3
3
  "name": "DexAccount",
4
- "bytecode": "0506404b409940b140ca40e240fe0103050800402cd3bd481528b417051600ce0116011602aa16047a0e314dc3170616064313202f4c1816047a0e314dc31603cc17071605160777457a4c0418a0020c304c04a0020d2ba10201000106004029d365b302f9b41701160149191341f47b160047cb17021602c54c06ce000d0d160201034a01ce00170316011603130264a000a001a00213036417051704160147b116041605c11801000202000ad303158c6ab31601ccb1411341937b1600ba01000101010ad358cbdacfa0020c2f4c03ce00024a0216000201030101000ad3511324a7b4b1a50d2f1341937b1600a10201030202000cd375472acbb4b1a50d2f1341937b16001601a101a100",
5
- "codeHash": "04bee65fddd93f545b8903a0e21e46b25ad41ffdc6b8e5c3e087a9b9b27bcc23",
4
+ "bytecode": "0603404a4063407d01030508004029d3bd48152816047a0e314d0d2acf170516054313202f1341e37b16051603cc1706b417071607160677451341e47b1600ce0416011602aaa0000c304c04a0000d2ba10001000101010ad358cbdacfa0000c2f4c03ce03024a0216000201000303000ad366ed4ca8b4ce00451341e17b160016011602bb",
5
+ "codeHash": "2658486f32078fc2ec8f0bc9a8c8b476472142790a2d41eef0979c967b8183e7",
6
6
  "fieldsSig": {
7
7
  "names": [
8
+ "root",
8
9
  "parents",
9
10
  "owner",
10
- "refferer",
11
- "counter"
11
+ "referrer",
12
+ "minSwapCount"
12
13
  ],
13
14
  "types": [
15
+ "Address",
14
16
  "[ByteVec;2]",
15
17
  "Address",
16
18
  "Address",
17
19
  "U256"
18
20
  ],
19
21
  "isMutable": [
20
- true,
22
+ false,
23
+ false,
21
24
  false,
22
25
  false,
23
26
  true
@@ -50,35 +53,6 @@
50
53
  ],
51
54
  "returnTypes": []
52
55
  },
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": "upgrade",
68
- "paramNames": [
69
- "newCode",
70
- "path"
71
- ],
72
- "paramTypes": [
73
- "ByteVec",
74
- "ByteVec"
75
- ],
76
- "paramIsMutable": [
77
- false,
78
- false
79
- ],
80
- "returnTypes": []
81
- },
82
56
  {
83
57
  "name": "asRef",
84
58
  "paramNames": [
@@ -95,27 +69,20 @@
95
69
  ]
96
70
  },
97
71
  {
98
- "name": "updateCounter",
99
- "paramNames": [
100
- "newCounter"
101
- ],
102
- "paramTypes": [
103
- "U256"
104
- ],
105
- "paramIsMutable": [
106
- false
107
- ],
108
- "returnTypes": []
109
- },
110
- {
111
- "name": "setParents",
72
+ "name": "upgrade",
112
73
  "paramNames": [
113
- "newParents"
74
+ "newCode",
75
+ "immFields",
76
+ "mutFields"
114
77
  ],
115
78
  "paramTypes": [
116
- "[ByteVec;2]"
79
+ "ByteVec",
80
+ "ByteVec",
81
+ "ByteVec"
117
82
  ],
118
83
  "paramIsMutable": [
84
+ false,
85
+ false,
119
86
  false
120
87
  ],
121
88
  "returnTypes": []
@@ -0,0 +1,178 @@
1
+ {
2
+ "version": "v4.5.3",
3
+ "name": "DexAccountRoot",
4
+ "bytecode": "05074029408d40aa40d340f0410a4129010001010013d3565ba487b4a000451341e17ba002431320301341e57b0716005ea0011600a102a10101000106004037d365b302f9a0014313202f7a4c0518a0024313202f1341e37bb41701160149191341e07b160047cb17021602c54c06a0000d0d160201014a01a0001703b2a001a00216011603130564a00313016417051704160147ce0016041605c11801000101000cd34f58efe6b4a000451341e17b05a00016005f1600a100010001010013d38baa7a03b4a000451341e17ba001431320301341e57b0616005e1600a002a102a10101000101000cd38ee4396fb4a000451341e17b08a00316005f1600a10301000303000ad366ed4ca8b4a000451341e17b160016011602bb01000404000dd3b0c5d314b4a000451341e17b1600160216030f0c16010102",
5
+ "codeHash": "91147a10aa362e845648421f32a2e5a680bed1128eea82c164e8075d550d7258",
6
+ "fieldsSig": {
7
+ "names": [
8
+ "templateId",
9
+ "owner",
10
+ "parents",
11
+ "minSwapCount"
12
+ ],
13
+ "types": [
14
+ "ByteVec",
15
+ "Address",
16
+ "[ByteVec;2]",
17
+ "U256"
18
+ ],
19
+ "isMutable": [
20
+ false,
21
+ true,
22
+ true,
23
+ true
24
+ ]
25
+ },
26
+ "eventsSig": [
27
+ {
28
+ "name": "OwnerUpdated",
29
+ "fieldNames": [
30
+ "previousOwner",
31
+ "newOwner"
32
+ ],
33
+ "fieldTypes": [
34
+ "Address",
35
+ "Address"
36
+ ]
37
+ },
38
+ {
39
+ "name": "ClmmParentSet",
40
+ "fieldNames": [
41
+ "clmmParent"
42
+ ],
43
+ "fieldTypes": [
44
+ "ByteVec"
45
+ ]
46
+ },
47
+ {
48
+ "name": "CpmmParentSet",
49
+ "fieldNames": [
50
+ "cpmmParent"
51
+ ],
52
+ "fieldTypes": [
53
+ "ByteVec"
54
+ ]
55
+ },
56
+ {
57
+ "name": "MinSwapCountUpdated",
58
+ "fieldNames": [
59
+ "previousMinSwapCount",
60
+ "newMinSwapCount"
61
+ ],
62
+ "fieldTypes": [
63
+ "U256",
64
+ "U256"
65
+ ]
66
+ }
67
+ ],
68
+ "functions": [
69
+ {
70
+ "name": "setCpmmParent",
71
+ "paramNames": [
72
+ "cpmmParent"
73
+ ],
74
+ "paramTypes": [
75
+ "ByteVec"
76
+ ],
77
+ "paramIsMutable": [
78
+ false
79
+ ],
80
+ "returnTypes": []
81
+ },
82
+ {
83
+ "name": "createAccount",
84
+ "paramNames": [
85
+ "ref"
86
+ ],
87
+ "paramTypes": [
88
+ "Address"
89
+ ],
90
+ "paramIsMutable": [
91
+ false
92
+ ],
93
+ "returnTypes": []
94
+ },
95
+ {
96
+ "name": "updateOwner",
97
+ "paramNames": [
98
+ "newOwner"
99
+ ],
100
+ "paramTypes": [
101
+ "Address"
102
+ ],
103
+ "paramIsMutable": [
104
+ false
105
+ ],
106
+ "returnTypes": []
107
+ },
108
+ {
109
+ "name": "setClmmParent",
110
+ "paramNames": [
111
+ "clmmParent"
112
+ ],
113
+ "paramTypes": [
114
+ "ByteVec"
115
+ ],
116
+ "paramIsMutable": [
117
+ false
118
+ ],
119
+ "returnTypes": []
120
+ },
121
+ {
122
+ "name": "updateMinSwapCount",
123
+ "paramNames": [
124
+ "newMinSwapCount"
125
+ ],
126
+ "paramTypes": [
127
+ "U256"
128
+ ],
129
+ "paramIsMutable": [
130
+ false
131
+ ],
132
+ "returnTypes": []
133
+ },
134
+ {
135
+ "name": "upgrade",
136
+ "paramNames": [
137
+ "newCode",
138
+ "immFields",
139
+ "mutFields"
140
+ ],
141
+ "paramTypes": [
142
+ "ByteVec",
143
+ "ByteVec",
144
+ "ByteVec"
145
+ ],
146
+ "paramIsMutable": [
147
+ false,
148
+ false,
149
+ false
150
+ ],
151
+ "returnTypes": []
152
+ },
153
+ {
154
+ "name": "upgradeDexAccount",
155
+ "paramNames": [
156
+ "newCode",
157
+ "dexAccount",
158
+ "immFields",
159
+ "mutFields"
160
+ ],
161
+ "paramTypes": [
162
+ "ByteVec",
163
+ "DexAccount",
164
+ "ByteVec",
165
+ "ByteVec"
166
+ ],
167
+ "paramIsMutable": [
168
+ false,
169
+ false,
170
+ false,
171
+ false
172
+ ],
173
+ "returnTypes": []
174
+ }
175
+ ],
176
+ "constants": [],
177
+ "enums": []
178
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "version": "v4.5.3",
3
+ "name": "FinalizeFactory",
4
+ "bytecodeTemplate": "01010300000005150000000000000000000000000000000000000000000000000000000000000000000d0c{0}010a",
5
+ "fieldsSig": {
6
+ "names": [
7
+ "factory"
8
+ ],
9
+ "types": [
10
+ "PoolFactory"
11
+ ],
12
+ "isMutable": [
13
+ false
14
+ ]
15
+ },
16
+ "functions": [
17
+ {
18
+ "name": "main",
19
+ "paramNames": [],
20
+ "paramTypes": [],
21
+ "paramIsMutable": [],
22
+ "returnTypes": []
23
+ }
24
+ ]
25
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "v4.4.0",
2
+ "version": "v4.5.3",
3
3
  "name": "LiquidityAmountsTest",
4
4
  "bytecode": "0006402e405240a440d241b441d701000304010dd3b8a5f4fb1600160113c9010000000000000000000000000004170316021603160116002b000402010003030108d364be47fc160213c901000000000000000000000000160116002b00040201000507014027d345f12d7a16001601324c061601160216030000024a1c16001602314c13160016021603000017051601160016040001170616051606314c0216054a011606024a0516011602160400010201000304010ed374e08b3b160213c9010000000000000000000000002c160116002b160100041703160316002d020000030901408d160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816041608370200000304011216001601160200041703160016011602870c334c0416030d2a02160302",
5
5
  "codeHash": "6a4ba04c81892909e02efe02e9f3ebf139cf27afd40f5fca01f4a9b98a9003da",
@@ -1,8 +1,8 @@
1
1
  {
2
- "version": "v4.4.0",
3
- "name": "LiquidityManagmentTest",
4
- "bytecode": "010e409a40c840ec413e416c424e4271427b429042a642bc42d746564a5201030b16044051d39b20ce13ce00160116024416030009170b160516060e0f160b012e170e170d170c160c160d160e160716080003170f160b160416051606000b171016001610a5171116001601a5171216001602a5171316007a7a16011612a316021613a316101611a31600160416051606160f110e160b01251715171416141609347a4c04181615160a341343527b160f16141615160b0201000304010dd3b8a5f4fb1600160113c9010000000000000000000000000005170316021603160116002b000502010003030108d364be47fc160213c901000000000000000000000000160116002b00050201000507014027d345f12d7a16001601324c061601160216030001024a1c16001602314c13160016021603000117051601160016040002170616051606314c0216054a011606024a0516011602160400020201000304010ed374e08b3b160213c9010000000000000000000000002c160116002b160100051703160316002d020000030901408d160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816041608370200000304011216001601160200051703160016011602870c334c0416030d2a0216030200000101010316004002000003040109160016020007cc17031601160344020000030401091600160116020008170316001603cc02010003030108d37afb14100d1600160116021304640201000405010ad35b19984c160116021603000a170416001604cc020000010301413816000c3f264c061600057c203d4a0216003d1701160112800d89e83d321340ca7b16010d380c304c0213ccfffcb933bd6fad37aa2d162d1a5940014a0113cd0100000000000000000000000000000000170216010e380c304c06160213ccfff97272373d413259a46990580e213a2c1340803c4a0116021702160110380c304c06160213ccfff2e50f5f656932ef12357cf3c7fdcc2c1340803c4a011602170216011308380c304c06160213ccffe5caca7e10e4e61c3624eaa0941cd02c1340803c4a011602170216011310380c304c06160213ccffcb9843d60f6159c9db58835c9266442c1340803c4a011602170216011320380c304c06160213ccff973b41fa98c081472e6896dfb254c02c1340803c4a01160217021601134040380c304c06160213ccff2ea16466c96a3843ec78b326b528612c1340803c4a01160217021601134080380c304c06160213ccfe5dee046a99a2a811c461f1969c30532c1340803c4a01160217021601134100380c304c06160213ccfcbe86c7900a88aedcffc83b479aa3a42c1340803c4a01160217021601134200380c304c06160213ccf987a7253ac413176f2b074cf7815e542c1340803c4a01160217021601134400380c304c06160213ccf3392b0822b70005940c7a398e4b70f32c1340803c4a01160217021601134800380c304c06160213cce7159475a2c29b7443b29c7fa6e889d92c1340803c4a01160217021601135000380c304c06160213ccd097f3bdfd2022b8845ad8f792aa58252c1340803c4a01160217021601136000380c304c06160213cca9f746462d870fdf8a65dc1f90e061e52c1340803c4a011602170216011380004000380c304c06160213cc70d869a156d2a1b890bb3df62baf32f72c1340803c4a011602170216011380008000380c304c06160213cc31be135f97d08fd981231505542fcfa62c1340803c4a011602170216011380010000380c304c06160213cc09aa508b5b7a84e1c677de54f3e99bc92c1340803c4a011602170216011380020000380c304c06160213cb5d6af8dedb81196699c329225ee6042c1340803c4a011602170216011380040000380c304c06160213ca2216e584f5fa1ea926041bedfe982c1340803c4a011602170216011380080000380c304c06160213c8048a170391f7dc42444e8fa22c1340803c4a0116021702160005284c060c0d3616022d4a0116021702160213c1010000000091020100010b0141f2d3c6eb44f3160013c101000276a3347a4c0418160013d0fffd8963efd1fc6a506488495d951d5263988d26311340c97b160013203b1701160117020c1703160213cd01000000000000000000000000000000000d2b334c08160313408039170316021340803c1702160213c50100000000000000000d2b334c08160313404039170316021340403c1702160213c101000000000d2b334c0816031320391703160213203c17021602138000ffff334c0816031310391703160213103c170216021340ff334c0816031308391703160213083c17021602130f334c081603103917031602103c170216020f334c0816030e39170316020e3c170216020d334c0416030d3917031603134080344c071601160313407f2b3c17024a06160113407f16032b3b17021603134080314c0e0c0d3613407f2b16032a0c0d361340403c384a0316031340802b1340403b17040c1705160216022c13407f3c170216021340803c170516041605133f3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133e3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133d3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133c3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133b3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133a3b391704160216053c1702160216022c13407f3c170216021340803c17051604160513393b391704160216053c1702160216022c13407f3c170216021340803c17051604160513383b391704160216053c1702160216022c13407f3c170216021340803c17051604160513373b391704160216053c1702160216022c13407f3c170216021340803c17051604160513363b391704160216053c1702160216022c13407f3c170216021340803c17051604160513353b391704160216053c1702160216022c13407f3c170216021340803c17051604160513343b391704160216053c1702160216022c13407f3c170216021340803c17051604160513333b391704160216053c1702160216022c13407f3c170216021340803c17051604160513323b391704160413c63627a301d71055774c85371706160613dcfffffffffffffffffffffffffffffffffd709b7e5480fba5a50fed5e62ffc556351340803c1707160613ccdb2df09e81959a81455e260799a0632f351340803c170816071380800000314c0316073f4a0616071380ffffff383f128100000020170916081380800000314c0316083f4a0616081380ffffff383f128100000020170a1609160a244c031609024a0a160a000c1600324c03160a024a02160902",
5
- "codeHash": "8824caa1efe83247812dfa7f32a80ae3d4603937df2b062437581ac421fa817d",
2
+ "version": "v4.5.3",
3
+ "name": "LiquidityManagementTest",
4
+ "bytecode": "010e409a40c840ec413e416c424e4271427b429042a642bc42d746564a5201030b16044051d39b20ce13ce00160116024416030009170b160516060e0f160b012f170e170d170c160c160d160e160716080003170f160b160416051606000b171016001610a5171116001601a5171216001602a5171316007a7a16011612a316021613a316101611a31600160416051606160f110e160b01261715171416141609347a4c04181615160a341343527b160f16141615160b0201000304010dd3b8a5f4fb1600160113c9010000000000000000000000000005170316021603160116002b000502010003030108d364be47fc160213c901000000000000000000000000160116002b00050201000507014027d345f12d7a16001601324c061601160216030001024a1c16001602314c13160016021603000117051601160016040002170616051606314c0216054a011606024a0516011602160400020201000304010ed374e08b3b160213c9010000000000000000000000002c160116002b160100051703160316002d020000030901408d160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816041608370200000304011216001601160200051703160016011602870c334c0416030d2a0216030200000101010316004002000003040109160016020007cc17031601160344020000030401091600160116020008170316001603cc02010003030108d37afb14100d1600160116021304640201000405010ad35b19984c160116021603000a170416001604cc020000010301413816000c3f264c061600057c203d4a0216003d1701160112800d89e83d321340ca7b16010d380c304c0213ccfffcb933bd6fad37aa2d162d1a5940014a0113cd0100000000000000000000000000000000170216010e380c304c06160213ccfff97272373d413259a46990580e213a2c1340803c4a0116021702160110380c304c06160213ccfff2e50f5f656932ef12357cf3c7fdcc2c1340803c4a011602170216011308380c304c06160213ccffe5caca7e10e4e61c3624eaa0941cd02c1340803c4a011602170216011310380c304c06160213ccffcb9843d60f6159c9db58835c9266442c1340803c4a011602170216011320380c304c06160213ccff973b41fa98c081472e6896dfb254c02c1340803c4a01160217021601134040380c304c06160213ccff2ea16466c96a3843ec78b326b528612c1340803c4a01160217021601134080380c304c06160213ccfe5dee046a99a2a811c461f1969c30532c1340803c4a01160217021601134100380c304c06160213ccfcbe86c7900a88aedcffc83b479aa3a42c1340803c4a01160217021601134200380c304c06160213ccf987a7253ac413176f2b074cf7815e542c1340803c4a01160217021601134400380c304c06160213ccf3392b0822b70005940c7a398e4b70f32c1340803c4a01160217021601134800380c304c06160213cce7159475a2c29b7443b29c7fa6e889d92c1340803c4a01160217021601135000380c304c06160213ccd097f3bdfd2022b8845ad8f792aa58252c1340803c4a01160217021601136000380c304c06160213cca9f746462d870fdf8a65dc1f90e061e52c1340803c4a011602170216011380004000380c304c06160213cc70d869a156d2a1b890bb3df62baf32f72c1340803c4a011602170216011380008000380c304c06160213cc31be135f97d08fd981231505542fcfa62c1340803c4a011602170216011380010000380c304c06160213cc09aa508b5b7a84e1c677de54f3e99bc92c1340803c4a011602170216011380020000380c304c06160213cb5d6af8dedb81196699c329225ee6042c1340803c4a011602170216011380040000380c304c06160213ca2216e584f5fa1ea926041bedfe982c1340803c4a011602170216011380080000380c304c06160213c8048a170391f7dc42444e8fa22c1340803c4a0116021702160005284c060c0d3616022d4a0116021702160213c1010000000091020100010b0141f2d3c6eb44f3160013c101000276a3347a4c0418160013d0fffd8963efd1fc6a506488495d951d5263988d26311340c97b160013203b1701160117020c1703160213cd01000000000000000000000000000000000d2b334c08160313408039170316021340803c1702160213c50100000000000000000d2b334c08160313404039170316021340403c1702160213c101000000000d2b334c0816031320391703160213203c17021602138000ffff334c0816031310391703160213103c170216021340ff334c0816031308391703160213083c17021602130f334c081603103917031602103c170216020f334c0816030e39170316020e3c170216020d334c0416030d3917031603134080344c071601160313407f2b3c17024a06160113407f16032b3b17021603134080314c0e0c0d3613407f2b16032a0c0d361340403c384a0316031340802b1340403b17040c1705160216022c13407f3c170216021340803c170516041605133f3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133e3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133d3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133c3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133b3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133a3b391704160216053c1702160216022c13407f3c170216021340803c17051604160513393b391704160216053c1702160216022c13407f3c170216021340803c17051604160513383b391704160216053c1702160216022c13407f3c170216021340803c17051604160513373b391704160216053c1702160216022c13407f3c170216021340803c17051604160513363b391704160216053c1702160216022c13407f3c170216021340803c17051604160513353b391704160216053c1702160216022c13407f3c170216021340803c17051604160513343b391704160216053c1702160216022c13407f3c170216021340803c17051604160513333b391704160216053c1702160216022c13407f3c170216021340803c17051604160513323b391704160413c63627a301d71055774c85371706160613dcfffffffffffffffffffffffffffffffffd709b7e5480fba5a50fed5e62ffc556351340803c1707160613ccdb2df09e81959a81455e260799a0632f351340803c170816071380800000314c0316073f4a0616071380ffffff383f128100000020170916081380800000314c0316083f4a0616081380ffffff383f128100000020170a1609160a244c031609024a0a160a000c1600324c03160a024a02160902",
5
+ "codeHash": "36d762e3250737333685cc9a43c5ae218a0b700fab410162ac118ad2e2f4bb37",
6
6
  "fieldsSig": {
7
7
  "names": [
8
8
  "parent"
@@ -305,7 +305,7 @@
305
305
  "constants": [],
306
306
  "enums": [
307
307
  {
308
- "name": "LiquidityManagmentError",
308
+ "name": "LiquidityManagementError",
309
309
  "fields": [
310
310
  {
311
311
  "name": "MintSlippage",
@@ -320,6 +320,13 @@
320
320
  "type": "U256",
321
321
  "value": "851"
322
322
  }
323
+ },
324
+ {
325
+ "name": "BurnNotAllowed",
326
+ "value": {
327
+ "type": "U256",
328
+ "value": "852"
329
+ }
323
330
  }
324
331
  ]
325
332
  },