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

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 (133) hide show
  1. package/clmm/artifacts/BitmapWord.ral.json +78 -24
  2. package/clmm/artifacts/BitmapWordDeployer.ral.json +14 -6
  3. package/clmm/artifacts/CreateConfig.ral.json +24 -6
  4. package/clmm/artifacts/CreateLiquidPool.ral.json +29 -5
  5. package/clmm/artifacts/DexAccount.ral.json +98 -23
  6. package/clmm/artifacts/DexAccountDeployer.ral.json +52 -0
  7. package/clmm/artifacts/DexAccountPool.ral.json +44 -0
  8. package/clmm/artifacts/LiquidityAmountsTest.ral.json +116 -26
  9. package/clmm/artifacts/LiquidityManagmentTest.ral.json +254 -61
  10. package/clmm/artifacts/Pool.ral.json +1054 -226
  11. package/clmm/artifacts/PoolConfig.ral.json +14 -6
  12. package/clmm/artifacts/PoolFactory.ral.json +245 -49
  13. package/clmm/artifacts/PoolRouterDemo.ral.json +36 -6
  14. package/clmm/artifacts/PoolUser.ral.json +77 -11
  15. package/clmm/artifacts/Position.ral.json +144 -32
  16. package/clmm/artifacts/PositionManager.ral.json +296 -66
  17. package/clmm/artifacts/SetFeeCollector.ral.json +28 -0
  18. package/clmm/artifacts/SwapWithoutAccount.ral.json +22 -4
  19. package/clmm/artifacts/TestToken.ral.json +32 -9
  20. package/clmm/artifacts/Tick.ral.json +123 -27
  21. package/clmm/artifacts/TickBitmapTest.ral.json +141 -39
  22. package/clmm/artifacts/constants.ral.json +1 -1
  23. package/clmm/artifacts/structs.ral.json +254 -36
  24. package/clmm/artifacts/ts/BitmapWord.ts +201 -121
  25. package/clmm/artifacts/ts/BitmapWordDeployer.ts +73 -51
  26. package/clmm/artifacts/ts/DexAccount.ts +230 -129
  27. package/clmm/artifacts/ts/DexAccountDeployer.ts +206 -0
  28. package/clmm/artifacts/ts/DexAccountPool.ts +170 -0
  29. package/clmm/artifacts/ts/LiquidityAmountsTest.ts +302 -162
  30. package/clmm/artifacts/ts/LiquidityManagmentTest.ts +578 -304
  31. package/clmm/artifacts/ts/Pool.ts +1769 -1201
  32. package/clmm/artifacts/ts/PoolConfig.ts +89 -54
  33. package/clmm/artifacts/ts/PoolFactory.ts +436 -286
  34. package/clmm/artifacts/ts/PoolUser.ts +134 -89
  35. package/clmm/artifacts/ts/Position.ts +335 -187
  36. package/clmm/artifacts/ts/PositionManager.ts +617 -362
  37. package/clmm/artifacts/ts/TestToken.ts +159 -99
  38. package/clmm/artifacts/ts/Tick.ts +217 -148
  39. package/clmm/artifacts/ts/TickBitmapTest.ts +331 -194
  40. package/clmm/artifacts/ts/constants.ts +13 -11
  41. package/clmm/artifacts/ts/contracts.ts +8 -8
  42. package/clmm/artifacts/ts/deployments.ts +101 -68
  43. package/clmm/artifacts/ts/index.ts +18 -16
  44. package/clmm/artifacts/ts/scripts.ts +66 -45
  45. package/clmm/artifacts/ts/types.ts +75 -75
  46. package/clmm/deployments/.deployments.devnet.json +130 -130
  47. package/clmm/deployments/.deployments.testnet.json +694 -342
  48. package/cpmm/artifacts/dex/DexAccount.ral.json +98 -23
  49. package/cpmm/artifacts/dex/DexAccountDeployer.ral.json +52 -0
  50. package/cpmm/artifacts/dex/DexAccountPool.ral.json +44 -0
  51. package/cpmm/artifacts/dex/Router.ral.json +186 -29
  52. package/cpmm/artifacts/dex/TokenPair.ral.json +244 -63
  53. package/cpmm/artifacts/dex/TokenPairFactory.ral.json +129 -43
  54. package/cpmm/artifacts/examples/ExampleOracleSimple.ral.json +97 -26
  55. package/cpmm/artifacts/examples/FullMathTest.ral.json +51 -14
  56. package/cpmm/artifacts/scripts/AddLiquidity.ral.json +33 -6
  57. package/cpmm/artifacts/scripts/Burn.ral.json +18 -6
  58. package/cpmm/artifacts/scripts/CreatePair.ral.json +24 -6
  59. package/cpmm/artifacts/scripts/CreatePairAndAddLiquidity.ral.json +33 -6
  60. package/cpmm/artifacts/scripts/Mint.ral.json +21 -6
  61. package/cpmm/artifacts/scripts/RemoveLiquidity.ral.json +29 -5
  62. package/cpmm/artifacts/scripts/Swap.ral.json +33 -6
  63. package/cpmm/artifacts/scripts/SwapMaxIn.ral.json +32 -5
  64. package/cpmm/artifacts/scripts/SwapMinOut.ral.json +32 -5
  65. package/cpmm/artifacts/test/GetToken.ral.json +17 -5
  66. package/cpmm/artifacts/test/MathTest.ral.json +29 -10
  67. package/cpmm/artifacts/test/TestToken.ral.json +47 -12
  68. package/cpmm/artifacts/ts/DexAccount.ts +233 -127
  69. package/cpmm/artifacts/ts/DexAccountDeployer.ts +205 -0
  70. package/cpmm/artifacts/ts/DexAccountPool.ts +169 -0
  71. package/cpmm/artifacts/ts/ExampleOracleSimple.ts +236 -145
  72. package/cpmm/artifacts/ts/FullMathTest.ts +137 -91
  73. package/cpmm/artifacts/ts/MathTest.ts +88 -62
  74. package/cpmm/artifacts/ts/Router.ts +355 -275
  75. package/cpmm/artifacts/ts/TestToken.ts +188 -114
  76. package/cpmm/artifacts/ts/TokenPair.ts +660 -414
  77. package/cpmm/artifacts/ts/TokenPairFactory.ts +321 -229
  78. package/cpmm/artifacts/ts/contracts.ts +8 -8
  79. package/cpmm/artifacts/ts/deployments.ts +55 -48
  80. package/cpmm/artifacts/ts/index.ts +12 -12
  81. package/cpmm/artifacts/ts/scripts.ts +88 -103
  82. package/cpmm/deployments/.deployments.devnet.json +25 -53
  83. package/cpmm/deployments/.deployments.testnet.json +96 -73
  84. package/lib/index.d.mts +1515 -843
  85. package/lib/index.d.ts +1515 -843
  86. package/lib/index.js +13457 -5018
  87. package/lib/index.js.map +1 -1
  88. package/lib/index.mjs +16736 -8241
  89. package/lib/index.mjs.map +1 -1
  90. package/package.json +4 -4
  91. package/staking/artifacts/AlphUnstakeVault.ral.json +58 -15
  92. package/staking/artifacts/ConnectToDapp.ral.json +31 -0
  93. package/staking/artifacts/DistributorVault.ral.json +149 -0
  94. package/staking/artifacts/RewardFeeCollector.ral.json +193 -0
  95. package/staking/artifacts/XAlphStakeVault.ral.json +308 -89
  96. package/staking/artifacts/XAlphToken.ral.json +318 -80
  97. package/staking/artifacts/XAlphUnlockAndStartUnstake.ral.json +17 -5
  98. package/staking/artifacts/constants.ral.json +37 -0
  99. package/staking/artifacts/examples/DummyFeeCollector.ral.json +34 -0
  100. package/staking/artifacts/examples/GovernanceDemo.ral.json +128 -35
  101. package/staking/artifacts/examples/RewardSharingVault.ral.json +130 -35
  102. package/staking/artifacts/structs.ral.json +37 -10
  103. package/staking/artifacts/ts/AlphUnstakeVault.ts +238 -143
  104. package/staking/artifacts/ts/DistributorVault.ts +389 -0
  105. package/staking/artifacts/ts/DummyFeeCollector.ts +184 -0
  106. package/staking/artifacts/ts/FullMathTest.ts +81 -56
  107. package/staking/artifacts/ts/GovernanceDemo.ts +458 -253
  108. package/staking/artifacts/ts/RewardFeeCollector.ts +486 -0
  109. package/staking/artifacts/ts/RewardSharingVault.ts +333 -178
  110. package/staking/artifacts/ts/TestDynamicArrayByteVec32.ts +272 -151
  111. package/staking/artifacts/ts/TestDynamicSortedArrayForU256.ts +343 -175
  112. package/staking/artifacts/ts/TestMerkleProof.ts +196 -125
  113. package/staking/artifacts/ts/XAlphStakeVault.ts +723 -418
  114. package/staking/artifacts/ts/XAlphToken.ts +717 -410
  115. package/staking/artifacts/ts/constants.ts +10 -0
  116. package/staking/artifacts/ts/contracts.ts +8 -8
  117. package/staking/artifacts/ts/deployments.ts +63 -45
  118. package/staking/artifacts/ts/index.ts +14 -11
  119. package/staking/artifacts/ts/scripts.ts +22 -9
  120. package/staking/artifacts/ts/types.ts +9 -9
  121. package/staking/artifacts/utils/FullMathTest.ral.json +20 -6
  122. package/staking/artifacts/utils/TestDynamicArrayByteVec32.ral.json +92 -27
  123. package/staking/artifacts/utils/TestDynamicSortedArrayForU256.ral.json +113 -31
  124. package/staking/artifacts/utils/TestMerkleProof.ral.json +73 -23
  125. package/staking/deployments/.deployments.devnet.json +35 -49
  126. package/staking/deployments/.deployments.testnet.json +125 -73
  127. package/cpmm/artifacts/examples/FeeCollectorFactoryImpl.ral.json +0 -162
  128. package/cpmm/artifacts/examples/FeeCollectorPerTokenPairImpl.ral.json +0 -183
  129. package/cpmm/artifacts/scripts/CollectFee.ral.json +0 -19
  130. package/cpmm/artifacts/scripts/EnableFeeCollector.ral.json +0 -19
  131. package/cpmm/artifacts/scripts/SetFeeCollectorFactory.ral.json +0 -19
  132. package/cpmm/artifacts/ts/FeeCollectorFactoryImpl.ts +0 -181
  133. package/cpmm/artifacts/ts/FeeCollectorPerTokenPairImpl.ts +0 -236
@@ -1,49 +1,103 @@
1
1
  {
2
- "version": "v4.4.1",
2
+ "version": "v4.4.0",
3
3
  "name": "BitmapWord",
4
4
  "bytecode": "020540d641c941e7429442aa0000010201406516000c301340967b0c1701160013cd0100000000000000000000000000000000344c0816001340803c170016011340802a1701160013c5010000000000000000344c0816001340403c170016011340402a1701160013c10100000000344c08160013203c1700160113202a170116001380010000344c08160013103c1700160113102a17011600134100344c08160013083c1700160113082a170116001310344c081600103c17001601102a1701160010344c0816000e3c170016010e2a170116000e344c0416010d2a17011601020000010201407c16000c301340977b1340ff1701160013ccffffffffffffffffffffffffffffffff380c334c0516011340802b17014a0416001340803c1700160013c4ffffffffffffffff380c334c0516011340402b17014a0416001340403c1700160013c0ffffffff380c334c05160113202b17014a04160013203c17001600138000ffff380c334c05160113102b17014a04160013103c170016001340ff380c334c05160113082b17014a04160013083c17001600130f380c334c051601102b17014a041600103c170016000f380c334c0516010e2b17014a0416000e3c170016000d380c334c0416010d2b170116010201000101000dd3ff38d2a3ce00b4451341937ba0000d160000043b3aa1000100030f024064d327ef6f9f16014c40301600000417030d16033b0d2b0d16033b2a1704a000160438170516050c30170616064c0e16001603160500002b3f20160221170716071606024a0a160016033f20160221170816081606024a40311600000417090d16093b0d2b0c0d363a170aa000160a38170b160b0c30170c160c4c0e1600160b000116092b3f1f160221170d160d160c024a0c16001240ff16093f201f160221170e160e160c020000010101091600124100231241001f124100233d02",
5
5
  "codeHash": "69fd344eb51899a9bdc30ae94beeb2dcfeb2fc312d39116ebe9d208a55293edd",
6
6
  "fieldsSig": {
7
- "names": ["parent", "value"],
8
- "types": ["Address", "U256"],
9
- "isMutable": [false, true]
7
+ "names": [
8
+ "parent",
9
+ "value"
10
+ ],
11
+ "types": [
12
+ "Address",
13
+ "U256"
14
+ ],
15
+ "isMutable": [
16
+ false,
17
+ true
18
+ ]
10
19
  },
11
20
  "eventsSig": [],
12
21
  "functions": [
13
22
  {
14
23
  "name": "mostSignificantBit",
15
- "paramNames": ["x"],
16
- "paramTypes": ["U256"],
17
- "paramIsMutable": [true],
18
- "returnTypes": ["U256"]
24
+ "paramNames": [
25
+ "x"
26
+ ],
27
+ "paramTypes": [
28
+ "U256"
29
+ ],
30
+ "paramIsMutable": [
31
+ true
32
+ ],
33
+ "returnTypes": [
34
+ "U256"
35
+ ]
19
36
  },
20
37
  {
21
38
  "name": "leastSignificantBit",
22
- "paramNames": ["x"],
23
- "paramTypes": ["U256"],
24
- "paramIsMutable": [true],
25
- "returnTypes": ["U256"]
39
+ "paramNames": [
40
+ "x"
41
+ ],
42
+ "paramTypes": [
43
+ "U256"
44
+ ],
45
+ "paramIsMutable": [
46
+ true
47
+ ],
48
+ "returnTypes": [
49
+ "U256"
50
+ ]
26
51
  },
27
52
  {
28
53
  "name": "flip",
29
- "paramNames": ["tick"],
30
- "paramTypes": ["I256"],
31
- "paramIsMutable": [false],
54
+ "paramNames": [
55
+ "tick"
56
+ ],
57
+ "paramTypes": [
58
+ "I256"
59
+ ],
60
+ "paramIsMutable": [
61
+ false
62
+ ],
32
63
  "returnTypes": []
33
64
  },
34
65
  {
35
66
  "name": "getNext",
36
- "paramNames": ["compressed", "zeroForOne", "tickSpacing"],
37
- "paramTypes": ["I256", "Bool", "I256"],
38
- "paramIsMutable": [false, false, false],
39
- "returnTypes": ["I256", "Bool"]
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
+ ]
40
86
  },
41
87
  {
42
88
  "name": "getBitPos",
43
- "paramNames": ["tick"],
44
- "paramTypes": ["I256"],
45
- "paramIsMutable": [false],
46
- "returnTypes": ["U256"]
89
+ "paramNames": [
90
+ "tick"
91
+ ],
92
+ "paramTypes": [
93
+ "I256"
94
+ ],
95
+ "paramIsMutable": [
96
+ false
97
+ ],
98
+ "returnTypes": [
99
+ "U256"
100
+ ]
47
101
  }
48
102
  ],
49
103
  "constants": [],
@@ -68,4 +122,4 @@
68
122
  ]
69
123
  }
70
124
  ]
71
- }
125
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "v4.4.1",
2
+ "version": "v4.4.0",
3
3
  "name": "BitmapWordDeployer",
4
4
  "bytecode": "00014026010301040113d3c7309617b41301640c130164170217011600d1a2b316011602af1703160302",
5
5
  "codeHash": "082de32f22857e094db5658611a1d2ba23e792a7f23a548525e6de2784f2a70b",
@@ -12,12 +12,20 @@
12
12
  "functions": [
13
13
  {
14
14
  "name": "deploy",
15
- "paramNames": ["payer"],
16
- "paramTypes": ["Address"],
17
- "paramIsMutable": [false],
18
- "returnTypes": ["BitmapWord"]
15
+ "paramNames": [
16
+ "payer"
17
+ ],
18
+ "paramTypes": [
19
+ "Address"
20
+ ],
21
+ "paramIsMutable": [
22
+ false
23
+ ],
24
+ "returnTypes": [
25
+ "BitmapWord"
26
+ ]
19
27
  }
20
28
  ],
21
29
  "constants": [],
22
30
  "enums": []
23
- }
31
+ }
@@ -1,11 +1,29 @@
1
1
  {
2
- "version": "v4.4.1",
2
+ "version": "v4.4.0",
3
3
  "name": "CreateConfig",
4
- "bytecodeTemplate": "01010300010011{0}{4}40cc17001600c5194c08{1}{2}{3}0f0d{0}010418",
4
+ "bytecodeTemplate": "01010300010011{0}{4}40cc17001600c5194c08{1}{2}{3}0f0d{0}010518",
5
5
  "fieldsSig": {
6
- "names": ["factory", "tickSpacing", "fee", "feeProtocol", "configIndex"],
7
- "types": ["PoolFactory", "I256", "U256", "U256", "U256"],
8
- "isMutable": [false, false, false, false, false]
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
+ ]
9
27
  },
10
28
  "functions": [
11
29
  {
@@ -16,4 +34,4 @@
16
34
  "returnTypes": []
17
35
  }
18
36
  ]
19
- }
37
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
- "version": "v4.4.1",
2
+ "version": "v4.4.0",
3
3
  "name": "CreateLiquidPool",
4
- "bytecodeTemplate": "0101030002001fb41700{1}{2}{3}{4}{5}110d{0}0105170116007a{1}{9}a3{2}{10}a316001600{6}{7}{8}110e160101251818",
4
+ "bytecodeTemplate": "0101030002001fb41700{1}{2}{3}{4}{5}110d{0}0106170116007a{1}{9}a3{2}{10}a316001600{6}{7}{8}110e160101251818",
5
5
  "fieldsSig": {
6
6
  "names": [
7
7
  "factory",
@@ -16,8 +16,32 @@
16
16
  "amount0",
17
17
  "amount1"
18
18
  ],
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]
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
+ ]
21
45
  },
22
46
  "functions": [
23
47
  {
@@ -28,4 +52,4 @@
28
52
  "returnTypes": []
29
53
  }
30
54
  ]
31
- }
55
+ }
@@ -1,51 +1,126 @@
1
1
  {
2
- "version": "v4.4.1",
2
+ "version": "v4.4.0",
3
3
  "name": "DexAccount",
4
- "bytecode": "0505404b409940b240ca40e60103050800402cd3bd481528b417051600ce0116011602aa16047a0e314dc3170616064313202f4c1816047a0e314dc31603cc17071605160777467a4c0418a0020c304c04a0020d2ba10201000106004029d365b302f9b41701160149191341f47b160047cb17021602c54c06ce000d0d160201024a01ce00170316011603130264a000a001a00213036417051704160147b116041605c11801000101010ad358cbdacfa0020c2f4c03ce00024a0216000201030101000ad3511324a7b4b1a50d2f1341937b1600a10201030202000cd375472acbb4b1a50d2f1341937b16001601a101a100",
5
- "codeHash": "66c27c91033d54a2d3edc97dbc36b35022274ddd8a7b84b724631ac37586ed48",
4
+ "bytecode": "0506404b409940b140ca40e240fe0103050800402cd3bd481528b417051600ce0116011602aa16047a0e314dc3170616064313202f4c1816047a0e314dc31603cc17071605160777457a4c0418a0020c304c04a0020d2ba10201000106004029d365b302f9b41701160149191341f47b160047cb17021602c54c06ce000d0d160201034a01ce00170316011603130264a000a001a00213036417051704160147b116041605c11801000202000ad303158c6ab31601ccb1411341937b1600ba01000101010ad358cbdacfa0020c2f4c03ce00024a0216000201030101000ad3511324a7b4b1a50d2f1341937b1600a10201030202000cd375472acbb4b1a50d2f1341937b16001601a101a100",
5
+ "codeHash": "04bee65fddd93f545b8903a0e21e46b25ad41ffdc6b8e5c3e087a9b9b27bcc23",
6
6
  "fieldsSig": {
7
- "names": ["parents", "owner", "refferer", "counter"],
8
- "types": ["[ByteVec;2]", "Address", "Address", "U256"],
9
- "isMutable": [true, false, false, true]
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
+ ]
10
25
  },
11
26
  "eventsSig": [],
12
27
  "functions": [
13
28
  {
14
29
  "name": "deposit",
15
- "paramNames": ["payer", "tokenId", "amount", "path", "at"],
16
- "paramTypes": ["Address", "ByteVec", "U256", "ByteVec", "U256"],
17
- "paramIsMutable": [false, false, false, false, false],
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
+ ],
18
51
  "returnTypes": []
19
52
  },
20
53
  {
21
54
  "name": "createAccount",
22
- "paramNames": ["ref"],
23
- "paramTypes": ["Address"],
24
- "paramIsMutable": [false],
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
+ ],
25
80
  "returnTypes": []
26
81
  },
27
82
  {
28
83
  "name": "asRef",
29
- "paramNames": ["defaultRef"],
30
- "paramTypes": ["Address"],
31
- "paramIsMutable": [false],
32
- "returnTypes": ["Address"]
84
+ "paramNames": [
85
+ "defaultRef"
86
+ ],
87
+ "paramTypes": [
88
+ "Address"
89
+ ],
90
+ "paramIsMutable": [
91
+ false
92
+ ],
93
+ "returnTypes": [
94
+ "Address"
95
+ ]
33
96
  },
34
97
  {
35
98
  "name": "updateCounter",
36
- "paramNames": ["newCounter"],
37
- "paramTypes": ["U256"],
38
- "paramIsMutable": [false],
99
+ "paramNames": [
100
+ "newCounter"
101
+ ],
102
+ "paramTypes": [
103
+ "U256"
104
+ ],
105
+ "paramIsMutable": [
106
+ false
107
+ ],
39
108
  "returnTypes": []
40
109
  },
41
110
  {
42
111
  "name": "setParents",
43
- "paramNames": ["newParents"],
44
- "paramTypes": ["[ByteVec;2]"],
45
- "paramIsMutable": [false],
112
+ "paramNames": [
113
+ "newParents"
114
+ ],
115
+ "paramTypes": [
116
+ "[ByteVec;2]"
117
+ ],
118
+ "paramIsMutable": [
119
+ false
120
+ ],
46
121
  "returnTypes": []
47
122
  }
48
123
  ],
49
124
  "constants": [],
50
125
  "enums": []
51
- }
126
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "version": "v4.4.0",
3
+ "name": "DexAccountDeployer",
4
+ "bytecode": "00024021405001000204010ed3050cbe3b1600130164130064170317021600160116021603c102010002060117d34a86a310b114001705170416001601130264160416050d13036417031702160047b316021603c102",
5
+ "codeHash": "721632bc9fc24e73132b4a27c82136c4e935dc86f6ddedfe04e9e00ccdf3fed7",
6
+ "fieldsSig": {
7
+ "names": [],
8
+ "types": [],
9
+ "isMutable": []
10
+ },
11
+ "eventsSig": [],
12
+ "functions": [
13
+ {
14
+ "name": "deployPool",
15
+ "paramNames": [
16
+ "path",
17
+ "template"
18
+ ],
19
+ "paramTypes": [
20
+ "ByteVec",
21
+ "ByteVec"
22
+ ],
23
+ "paramIsMutable": [
24
+ false,
25
+ false
26
+ ],
27
+ "returnTypes": [
28
+ "DexAccountPool"
29
+ ]
30
+ },
31
+ {
32
+ "name": "deployAcc",
33
+ "paramNames": [
34
+ "payer",
35
+ "ref"
36
+ ],
37
+ "paramTypes": [
38
+ "Address",
39
+ "Address"
40
+ ],
41
+ "paramIsMutable": [
42
+ false,
43
+ false
44
+ ],
45
+ "returnTypes": [
46
+ "DexAccount"
47
+ ]
48
+ }
49
+ ],
50
+ "constants": [],
51
+ "enums": []
52
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "version": "v4.4.0",
3
+ "name": "DexAccountPool",
4
+ "bytecode": "0101402101030404000ed3b0685c46160116021603a3160116021603ce000c110c16000100",
5
+ "codeHash": "3f1fb343334b79f9883f8a82dfc4e3bed7bc4349c9dec876ec7b85b970c2e6f5",
6
+ "fieldsSig": {
7
+ "names": [
8
+ "path"
9
+ ],
10
+ "types": [
11
+ "ByteVec"
12
+ ],
13
+ "isMutable": [
14
+ false
15
+ ]
16
+ },
17
+ "eventsSig": [],
18
+ "functions": [
19
+ {
20
+ "name": "callDeposit",
21
+ "paramNames": [
22
+ "acc",
23
+ "payer",
24
+ "tokenId",
25
+ "amount"
26
+ ],
27
+ "paramTypes": [
28
+ "DexAccount",
29
+ "Address",
30
+ "ByteVec",
31
+ "U256"
32
+ ],
33
+ "paramIsMutable": [
34
+ false,
35
+ false,
36
+ false,
37
+ false
38
+ ],
39
+ "returnTypes": []
40
+ }
41
+ ],
42
+ "constants": [],
43
+ "enums": []
44
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "v4.4.1",
2
+ "version": "v4.4.0",
3
3
  "name": "LiquidityAmountsTest",
4
4
  "bytecode": "0006402e405240a440d241b441d701000304010dd3b8a5f4fb1600160113c9010000000000000000000000000004170316021603160116002b000402010003030108d364be47fc160213c901000000000000000000000000160116002b00040201000507014027d345f12d7a16001601324c061601160216030000024a1c16001602314c13160016021603000017051601160016040001170616051606314c0216054a011606024a0516011602160400010201000304010ed374e08b3b160213c9010000000000000000000000002c160116002b160100041703160316002d020000030901408d160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816041608370200000304011216001601160200041703160016011602870c334c0416030d2a02160302",
5
5
  "codeHash": "6a4ba04c81892909e02efe02e9f3ebf139cf27afd40f5fca01f4a9b98a9003da",
@@ -12,45 +12,135 @@
12
12
  "functions": [
13
13
  {
14
14
  "name": "getLiquidityForAmount0",
15
- "paramNames": ["sqrtRatioAX96", "sqrtRatioBX96", "amount0"],
16
- "paramTypes": ["U256", "U256", "U256"],
17
- "paramIsMutable": [false, false, false],
18
- "returnTypes": ["U256"]
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
+ ]
19
33
  },
20
34
  {
21
35
  "name": "getLiquidityForAmount1",
22
- "paramNames": ["sqrtRatioAX96", "sqrtRatioBX96", "amount1"],
23
- "paramTypes": ["U256", "U256", "U256"],
24
- "paramIsMutable": [false, false, false],
25
- "returnTypes": ["U256"]
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
+ ]
26
54
  },
27
55
  {
28
56
  "name": "getLiquidityForAmounts",
29
- "paramNames": ["sqrtRatioX96", "sqrtRatioAX96", "sqrtRatioBX96", "amount0", "amount1"],
30
- "paramTypes": ["U256", "U256", "U256", "U256", "U256"],
31
- "paramIsMutable": [false, false, false, false, false],
32
- "returnTypes": ["U256"]
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
+ ]
33
81
  },
34
82
  {
35
83
  "name": "getAmount0ForLiquidity",
36
- "paramNames": ["sqrtRatioAX96", "sqrtRatioBX96", "liquidity"],
37
- "paramTypes": ["U256", "U256", "U256"],
38
- "paramIsMutable": [false, false, false],
39
- "returnTypes": ["U256"]
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
+ ]
40
102
  },
41
103
  {
42
104
  "name": "mulDiv",
43
- "paramNames": ["a", "b", "denominator"],
44
- "paramTypes": ["U256", "U256", "U256"],
45
- "paramIsMutable": [false, false, true],
46
- "returnTypes": ["U256"]
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
+ ]
47
123
  },
48
124
  {
49
125
  "name": "mulDivRoundingUp",
50
- "paramNames": ["a", "b", "denominator"],
51
- "paramTypes": ["U256", "U256", "U256"],
52
- "paramIsMutable": [false, false, false],
53
- "returnTypes": ["U256"]
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
+ ]
54
144
  }
55
145
  ],
56
146
  "constants": [],
@@ -68,4 +158,4 @@
68
158
  ]
69
159
  }
70
160
  ]
71
- }
161
+ }