@paraswap/dex-lib 2.42.28 → 2.42.29-wombat.2
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.
- package/build/abi/{algebra/AlgebraPool.abi.json → solidly-v3/SolidlyV3Pool.abi.json} +293 -282
- package/build/abi/solidly-v3/SolidlyV3StateMulticall.abi.json +375 -0
- package/build/abi/trader-joe-v2_1/FactoryABI.json +0 -0
- package/build/abi/trader-joe-v2_1/PairABI.json +1493 -0
- package/build/abi/trader-joe-v2_1/RouterABI.json +1489 -0
- package/build/abi/wombat/pool-v2.json +1289 -0
- package/build/abi/wombat/pool-v3.json +2013 -0
- package/build/config.js +2 -2
- package/build/dex/index.js +4 -1
- package/build/dex/index.js.map +1 -1
- package/build/dex/solidly-v3/config.d.ts +9 -0
- package/build/dex/solidly-v3/config.js +58 -0
- package/build/dex/solidly-v3/config.js.map +1 -0
- package/build/dex/solidly-v3/constants.d.ts +27 -0
- package/build/dex/solidly-v3/constants.js +34 -0
- package/build/dex/solidly-v3/constants.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/BitMath.d.ts +4 -0
- package/build/dex/solidly-v3/contract-math/BitMath.js +93 -0
- package/build/dex/solidly-v3/contract-math/BitMath.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/FixedPoint128.d.ts +3 -0
- package/build/dex/solidly-v3/contract-math/FixedPoint128.js +8 -0
- package/build/dex/solidly-v3/contract-math/FixedPoint128.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/FixedPoint96.d.ts +4 -0
- package/build/dex/solidly-v3/contract-math/FixedPoint96.js +9 -0
- package/build/dex/solidly-v3/contract-math/FixedPoint96.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/FullMath.d.ts +4 -0
- package/build/dex/solidly-v3/contract-math/FullMath.js +19 -0
- package/build/dex/solidly-v3/contract-math/FullMath.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/LiquidityMath.d.ts +3 -0
- package/build/dex/solidly-v3/contract-math/LiquidityMath.js +22 -0
- package/build/dex/solidly-v3/contract-math/LiquidityMath.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/SqrtPriceMath.d.ts +10 -0
- package/build/dex/solidly-v3/contract-math/SqrtPriceMath.js +91 -0
- package/build/dex/solidly-v3/contract-math/SqrtPriceMath.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/SwapMath.d.ts +8 -0
- package/build/dex/solidly-v3/contract-math/SwapMath.js +70 -0
- package/build/dex/solidly-v3/contract-math/SwapMath.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/Tick.d.ts +7 -0
- package/build/dex/solidly-v3/contract-math/Tick.js +36 -0
- package/build/dex/solidly-v3/contract-math/Tick.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/TickBitMap.d.ts +7 -0
- package/build/dex/solidly-v3/contract-math/TickBitMap.js +84 -0
- package/build/dex/solidly-v3/contract-math/TickBitMap.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/TickMath.d.ts +8 -0
- package/build/dex/solidly-v3/contract-math/TickMath.js +162 -0
- package/build/dex/solidly-v3/contract-math/TickMath.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/UnsafeMath.d.ts +3 -0
- package/build/dex/solidly-v3/contract-math/UnsafeMath.js +10 -0
- package/build/dex/solidly-v3/contract-math/UnsafeMath.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/uniswap-v3-math.d.ts +31 -0
- package/build/dex/solidly-v3/contract-math/uniswap-v3-math.js +363 -0
- package/build/dex/solidly-v3/contract-math/uniswap-v3-math.js.map +1 -0
- package/build/dex/solidly-v3/contract-math/utils.d.ts +7 -0
- package/build/dex/solidly-v3/contract-math/utils.js +39 -0
- package/build/dex/solidly-v3/contract-math/utils.js.map +1 -0
- package/build/dex/solidly-v3/solidly-v3-factory.d.ts +26 -0
- package/build/dex/solidly-v3/solidly-v3-factory.js +44 -0
- package/build/dex/solidly-v3/solidly-v3-factory.js.map +1 -0
- package/build/dex/{algebra/algebra-pool.d.ts → solidly-v3/solidly-v3-pool.d.ts} +14 -16
- package/build/dex/{algebra/algebra-pool.js → solidly-v3/solidly-v3-pool.js} +127 -165
- package/build/dex/solidly-v3/solidly-v3-pool.js.map +1 -0
- package/build/dex/solidly-v3/solidly-v3.d.ts +67 -0
- package/build/dex/solidly-v3/solidly-v3.js +590 -0
- package/build/dex/solidly-v3/solidly-v3.js.map +1 -0
- package/build/dex/solidly-v3/types.d.ts +132 -0
- package/build/dex/solidly-v3/types.js +9 -0
- package/build/dex/solidly-v3/types.js.map +1 -0
- package/build/dex/solidly-v3/utils.d.ts +6 -0
- package/build/dex/solidly-v3/utils.js +53 -0
- package/build/dex/solidly-v3/utils.js.map +1 -0
- package/build/dex/trader-joe-v2-1-2/config.d.ts +4 -0
- package/build/dex/trader-joe-v2-1-2/config.js +43 -0
- package/build/dex/trader-joe-v2-1-2/config.js.map +1 -0
- package/build/dex/trader-joe-v2-1-2/constants.d.ts +17 -0
- package/build/dex/trader-joe-v2-1-2/constants.js +19 -0
- package/build/dex/trader-joe-v2-1-2/constants.js.map +1 -0
- package/build/dex/trader-joe-v2-1-2/trader-joe-v2-1-2-pool.d.ts +60 -0
- package/build/dex/trader-joe-v2-1-2/trader-joe-v2-1-2-pool.js +199 -0
- package/build/dex/trader-joe-v2-1-2/trader-joe-v2-1-2-pool.js.map +1 -0
- package/build/dex/trader-joe-v2-1-2/trader-joe-v2-1-2.d.ts +49 -0
- package/build/dex/trader-joe-v2-1-2/trader-joe-v2-1-2.js +269 -0
- package/build/dex/trader-joe-v2-1-2/trader-joe-v2-1-2.js.map +1 -0
- package/build/dex/trader-joe-v2-1-2/types.d.ts +81 -0
- package/build/dex/trader-joe-v2-1-2/types.js +9 -0
- package/build/dex/trader-joe-v2-1-2/types.js.map +1 -0
- package/build/dex/trader-joe-v2_1/config.d.ts +4 -0
- package/build/dex/trader-joe-v2_1/config.js +43 -0
- package/build/dex/trader-joe-v2_1/config.js.map +1 -0
- package/build/dex/trader-joe-v2_1/constants.d.ts +16 -0
- package/build/dex/trader-joe-v2_1/constants.js +18 -0
- package/build/dex/trader-joe-v2_1/constants.js.map +1 -0
- package/build/dex/trader-joe-v2_1/trader-joe-v2.1.d.ts +0 -0
- package/build/dex/trader-joe-v2_1/trader-joe-v2.1.js +384 -0
- package/build/dex/trader-joe-v2_1/trader-joe-v2.1.js.map +1 -0
- package/build/dex/trader-joe-v2_1/types.d.ts +39 -0
- package/build/dex/trader-joe-v2_1/types.js +3 -0
- package/build/dex/trader-joe-v2_1/types.js.map +1 -0
- package/build/dex/wombat/types.d.ts +2 -0
- package/build/dex/wombat/utils.d.ts +1 -0
- package/build/dex/wombat/utils.js +14 -1
- package/build/dex/wombat/utils.js.map +1 -1
- package/build/dex/wombat/wombat-bmw.d.ts +2 -2
- package/build/dex/wombat/wombat-bmw.js +8 -25
- package/build/dex/wombat/wombat-bmw.js.map +1 -1
- package/build/dex/wombat/wombat-pool-poller.d.ts +22 -0
- package/build/dex/wombat/wombat-pool-poller.js +164 -0
- package/build/dex/wombat/wombat-pool-poller.js.map +1 -0
- package/build/dex/wombat/wombat-pool.d.ts +51 -17
- package/build/dex/wombat/wombat-pool.js +393 -112
- package/build/dex/wombat/wombat-pool.js.map +1 -1
- package/build/dex/wombat/wombat.d.ts +1 -1
- package/build/dex/wombat/wombat.js +12 -18
- package/build/dex/wombat/wombat.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/solidly-v3/SolidlyV3Pool.abi.json +738 -0
- package/src/abi/solidly-v3/SolidlyV3StateMulticall.abi.json +375 -0
- package/src/abi/wombat/pool-v3.json +2013 -0
- package/src/config.ts +2 -2
- package/src/dex/index.ts +4 -1
- package/src/dex/solidly-v3/config.ts +64 -0
- package/src/dex/solidly-v3/constants.ts +42 -0
- package/src/dex/solidly-v3/contract-math/BitMath.ts +90 -0
- package/src/dex/solidly-v3/contract-math/FixedPoint128.ts +3 -0
- package/src/dex/solidly-v3/contract-math/FixedPoint96.ts +4 -0
- package/src/dex/solidly-v3/contract-math/FullMath.ts +30 -0
- package/src/dex/solidly-v3/contract-math/LiquidityMath.ts +17 -0
- package/src/dex/solidly-v3/contract-math/SqrtPriceMath.ts +226 -0
- package/src/dex/solidly-v3/contract-math/SwapMath.ts +139 -0
- package/src/dex/solidly-v3/contract-math/Tick.ts +66 -0
- package/src/dex/solidly-v3/contract-math/TickBitMap.ts +123 -0
- package/src/dex/solidly-v3/contract-math/TickMath.ts +211 -0
- package/src/dex/solidly-v3/contract-math/UnsafeMath.ts +5 -0
- package/src/dex/solidly-v3/contract-math/uniswap-v3-math.ts +570 -0
- package/src/dex/solidly-v3/contract-math/utils.ts +50 -0
- package/src/dex/solidly-v3/solidly-v3-e2e.test.ts +124 -0
- package/src/dex/solidly-v3/solidly-v3-events.test.ts +144 -0
- package/src/dex/solidly-v3/solidly-v3-factory.ts +73 -0
- package/src/dex/solidly-v3/solidly-v3-integration.test.ts +358 -0
- package/src/dex/solidly-v3/solidly-v3-pool.ts +494 -0
- package/src/dex/solidly-v3/solidly-v3.ts +988 -0
- package/src/dex/solidly-v3/types.ts +158 -0
- package/src/dex/solidly-v3/utils.ts +71 -0
- package/src/dex/uniswap-v3/uniswap-v3-events.test.ts +3 -0
- package/src/dex/wombat/types.ts +5 -0
- package/src/dex/wombat/utils.ts +20 -0
- package/src/dex/wombat/wombat-bmw.ts +8 -31
- package/src/dex/wombat/wombat-e2e.test.ts +13 -1
- package/src/dex/wombat/wombat-events.test.ts +147 -0
- package/src/dex/wombat/wombat-integration.test.ts +101 -111
- package/src/dex/wombat/wombat-pool.ts +620 -171
- package/src/dex/wombat/wombat.ts +13 -23
- package/tests/constants-e2e.ts +11 -1
- package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
- package/build/dex/algebra/algebra-pool.js.map +0 -1
- package/build/dex/quickswap/camelot-v3.d.ts +0 -6
- package/build/dex/quickswap/camelot-v3.js +0 -19
- package/build/dex/quickswap/camelot-v3.js.map +0 -1
- package/build/dex/quickswap/zyberswap-v3.d.ts +0 -6
- package/build/dex/quickswap/zyberswap-v3.js +0 -19
- package/build/dex/quickswap/zyberswap-v3.js.map +0 -1
- package/build/dex/uniswap-v2/rebase-tokens.json +0 -7
- /package/src/abi/wombat/{pool.json → pool-v2.json} +0 -0
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "contract IUniswapV3Factory",
|
|
6
|
+
"name": "factory",
|
|
7
|
+
"type": "address"
|
|
8
|
+
},
|
|
9
|
+
{ "internalType": "address", "name": "tokenIn", "type": "address" },
|
|
10
|
+
{ "internalType": "address", "name": "tokenOut", "type": "address" },
|
|
11
|
+
{ "internalType": "int24", "name": "tickSpacing", "type": "int24" },
|
|
12
|
+
{ "internalType": "int16", "name": "tickBitmapStart", "type": "int16" },
|
|
13
|
+
{ "internalType": "int16", "name": "tickBitmapEnd", "type": "int16" }
|
|
14
|
+
],
|
|
15
|
+
"name": "getAdditionalBitmapWithTicks",
|
|
16
|
+
"outputs": [
|
|
17
|
+
{
|
|
18
|
+
"components": [
|
|
19
|
+
{ "internalType": "int16", "name": "index", "type": "int16" },
|
|
20
|
+
{ "internalType": "uint256", "name": "value", "type": "uint256" }
|
|
21
|
+
],
|
|
22
|
+
"internalType": "struct IUniswapV3StateMulticall.TickBitMapMappings[]",
|
|
23
|
+
"name": "tickBitmap",
|
|
24
|
+
"type": "tuple[]"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"components": [
|
|
28
|
+
{ "internalType": "int24", "name": "index", "type": "int24" },
|
|
29
|
+
{
|
|
30
|
+
"components": [
|
|
31
|
+
{
|
|
32
|
+
"internalType": "uint128",
|
|
33
|
+
"name": "liquidityGross",
|
|
34
|
+
"type": "uint128"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"internalType": "int128",
|
|
38
|
+
"name": "liquidityNet",
|
|
39
|
+
"type": "int128"
|
|
40
|
+
},
|
|
41
|
+
{ "internalType": "bool", "name": "initialized", "type": "bool" }
|
|
42
|
+
],
|
|
43
|
+
"internalType": "struct IUniswapV3StateMulticall.TickInfo",
|
|
44
|
+
"name": "value",
|
|
45
|
+
"type": "tuple"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"internalType": "struct IUniswapV3StateMulticall.TickInfoMappings[]",
|
|
49
|
+
"name": "ticks",
|
|
50
|
+
"type": "tuple[]"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"stateMutability": "view",
|
|
54
|
+
"type": "function"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"inputs": [
|
|
58
|
+
{
|
|
59
|
+
"internalType": "contract IUniswapV3Factory",
|
|
60
|
+
"name": "factory",
|
|
61
|
+
"type": "address"
|
|
62
|
+
},
|
|
63
|
+
{ "internalType": "address", "name": "tokenIn", "type": "address" },
|
|
64
|
+
{ "internalType": "address", "name": "tokenOut", "type": "address" },
|
|
65
|
+
{ "internalType": "int24", "name": "tickSpacing", "type": "int24" },
|
|
66
|
+
{ "internalType": "int16", "name": "tickBitmapStart", "type": "int16" },
|
|
67
|
+
{ "internalType": "int16", "name": "tickBitmapEnd", "type": "int16" }
|
|
68
|
+
],
|
|
69
|
+
"name": "getAdditionalBitmapWithoutTicks",
|
|
70
|
+
"outputs": [
|
|
71
|
+
{
|
|
72
|
+
"components": [
|
|
73
|
+
{ "internalType": "int16", "name": "index", "type": "int16" },
|
|
74
|
+
{ "internalType": "uint256", "name": "value", "type": "uint256" }
|
|
75
|
+
],
|
|
76
|
+
"internalType": "struct IUniswapV3StateMulticall.TickBitMapMappings[]",
|
|
77
|
+
"name": "tickBitmap",
|
|
78
|
+
"type": "tuple[]"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"stateMutability": "view",
|
|
82
|
+
"type": "function"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"inputs": [
|
|
86
|
+
{
|
|
87
|
+
"internalType": "contract IUniswapV3Factory",
|
|
88
|
+
"name": "factory",
|
|
89
|
+
"type": "address"
|
|
90
|
+
},
|
|
91
|
+
{ "internalType": "address", "name": "tokenIn", "type": "address" },
|
|
92
|
+
{ "internalType": "address", "name": "tokenOut", "type": "address" },
|
|
93
|
+
{ "internalType": "int24", "name": "tickSpacing", "type": "int24" },
|
|
94
|
+
{ "internalType": "int16", "name": "tickBitmapStart", "type": "int16" },
|
|
95
|
+
{ "internalType": "int16", "name": "tickBitmapEnd", "type": "int16" }
|
|
96
|
+
],
|
|
97
|
+
"name": "getFullState",
|
|
98
|
+
"outputs": [
|
|
99
|
+
{
|
|
100
|
+
"components": [
|
|
101
|
+
{
|
|
102
|
+
"internalType": "contract IUniswapV3Pool",
|
|
103
|
+
"name": "pool",
|
|
104
|
+
"type": "address"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"internalType": "uint256",
|
|
108
|
+
"name": "blockTimestamp",
|
|
109
|
+
"type": "uint256"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"components": [
|
|
113
|
+
{
|
|
114
|
+
"internalType": "uint160",
|
|
115
|
+
"name": "sqrtPriceX96",
|
|
116
|
+
"type": "uint160"
|
|
117
|
+
},
|
|
118
|
+
{ "internalType": "int24", "name": "tick", "type": "int24" },
|
|
119
|
+
{ "internalType": "uint24", "name": "fee", "type": "uint24" },
|
|
120
|
+
{ "internalType": "bool", "name": "unlocked", "type": "bool" }
|
|
121
|
+
],
|
|
122
|
+
"internalType": "struct IUniswapV3StateMulticall.Slot0",
|
|
123
|
+
"name": "slot0",
|
|
124
|
+
"type": "tuple"
|
|
125
|
+
},
|
|
126
|
+
{ "internalType": "uint128", "name": "liquidity", "type": "uint128" },
|
|
127
|
+
{ "internalType": "int24", "name": "tickSpacing", "type": "int24" },
|
|
128
|
+
{
|
|
129
|
+
"internalType": "uint128",
|
|
130
|
+
"name": "maxLiquidityPerTick",
|
|
131
|
+
"type": "uint128"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"components": [
|
|
135
|
+
{ "internalType": "int16", "name": "index", "type": "int16" },
|
|
136
|
+
{ "internalType": "uint256", "name": "value", "type": "uint256" }
|
|
137
|
+
],
|
|
138
|
+
"internalType": "struct IUniswapV3StateMulticall.TickBitMapMappings[]",
|
|
139
|
+
"name": "tickBitmap",
|
|
140
|
+
"type": "tuple[]"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"components": [
|
|
144
|
+
{ "internalType": "int24", "name": "index", "type": "int24" },
|
|
145
|
+
{
|
|
146
|
+
"components": [
|
|
147
|
+
{
|
|
148
|
+
"internalType": "uint128",
|
|
149
|
+
"name": "liquidityGross",
|
|
150
|
+
"type": "uint128"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"internalType": "int128",
|
|
154
|
+
"name": "liquidityNet",
|
|
155
|
+
"type": "int128"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"internalType": "bool",
|
|
159
|
+
"name": "initialized",
|
|
160
|
+
"type": "bool"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"internalType": "struct IUniswapV3StateMulticall.TickInfo",
|
|
164
|
+
"name": "value",
|
|
165
|
+
"type": "tuple"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"internalType": "struct IUniswapV3StateMulticall.TickInfoMappings[]",
|
|
169
|
+
"name": "ticks",
|
|
170
|
+
"type": "tuple[]"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"internalType": "struct IUniswapV3StateMulticall.StateResult",
|
|
174
|
+
"name": "state",
|
|
175
|
+
"type": "tuple"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"stateMutability": "view",
|
|
179
|
+
"type": "function"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"inputs": [
|
|
183
|
+
{
|
|
184
|
+
"internalType": "contract IUniswapV3Factory",
|
|
185
|
+
"name": "factory",
|
|
186
|
+
"type": "address"
|
|
187
|
+
},
|
|
188
|
+
{ "internalType": "address", "name": "tokenIn", "type": "address" },
|
|
189
|
+
{ "internalType": "address", "name": "tokenOut", "type": "address" },
|
|
190
|
+
{ "internalType": "int24", "name": "tickSpacing", "type": "int24" },
|
|
191
|
+
{ "internalType": "int16", "name": "leftBitmapAmount", "type": "int16" },
|
|
192
|
+
{ "internalType": "int16", "name": "rightBitmapAmount", "type": "int16" }
|
|
193
|
+
],
|
|
194
|
+
"name": "getFullStateWithRelativeBitmaps",
|
|
195
|
+
"outputs": [
|
|
196
|
+
{
|
|
197
|
+
"components": [
|
|
198
|
+
{
|
|
199
|
+
"internalType": "contract IUniswapV3Pool",
|
|
200
|
+
"name": "pool",
|
|
201
|
+
"type": "address"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"internalType": "uint256",
|
|
205
|
+
"name": "blockTimestamp",
|
|
206
|
+
"type": "uint256"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"components": [
|
|
210
|
+
{
|
|
211
|
+
"internalType": "uint160",
|
|
212
|
+
"name": "sqrtPriceX96",
|
|
213
|
+
"type": "uint160"
|
|
214
|
+
},
|
|
215
|
+
{ "internalType": "int24", "name": "tick", "type": "int24" },
|
|
216
|
+
{ "internalType": "uint24", "name": "fee", "type": "uint24" },
|
|
217
|
+
{ "internalType": "bool", "name": "unlocked", "type": "bool" }
|
|
218
|
+
],
|
|
219
|
+
"internalType": "struct IUniswapV3StateMulticall.Slot0",
|
|
220
|
+
"name": "slot0",
|
|
221
|
+
"type": "tuple"
|
|
222
|
+
},
|
|
223
|
+
{ "internalType": "uint128", "name": "liquidity", "type": "uint128" },
|
|
224
|
+
{ "internalType": "int24", "name": "tickSpacing", "type": "int24" },
|
|
225
|
+
{
|
|
226
|
+
"internalType": "uint128",
|
|
227
|
+
"name": "maxLiquidityPerTick",
|
|
228
|
+
"type": "uint128"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"components": [
|
|
232
|
+
{ "internalType": "int16", "name": "index", "type": "int16" },
|
|
233
|
+
{ "internalType": "uint256", "name": "value", "type": "uint256" }
|
|
234
|
+
],
|
|
235
|
+
"internalType": "struct IUniswapV3StateMulticall.TickBitMapMappings[]",
|
|
236
|
+
"name": "tickBitmap",
|
|
237
|
+
"type": "tuple[]"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"components": [
|
|
241
|
+
{ "internalType": "int24", "name": "index", "type": "int24" },
|
|
242
|
+
{
|
|
243
|
+
"components": [
|
|
244
|
+
{
|
|
245
|
+
"internalType": "uint128",
|
|
246
|
+
"name": "liquidityGross",
|
|
247
|
+
"type": "uint128"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"internalType": "int128",
|
|
251
|
+
"name": "liquidityNet",
|
|
252
|
+
"type": "int128"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"internalType": "bool",
|
|
256
|
+
"name": "initialized",
|
|
257
|
+
"type": "bool"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"internalType": "struct IUniswapV3StateMulticall.TickInfo",
|
|
261
|
+
"name": "value",
|
|
262
|
+
"type": "tuple"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"internalType": "struct IUniswapV3StateMulticall.TickInfoMappings[]",
|
|
266
|
+
"name": "ticks",
|
|
267
|
+
"type": "tuple[]"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"internalType": "struct IUniswapV3StateMulticall.StateResult",
|
|
271
|
+
"name": "state",
|
|
272
|
+
"type": "tuple"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"stateMutability": "view",
|
|
276
|
+
"type": "function"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"inputs": [
|
|
280
|
+
{
|
|
281
|
+
"internalType": "contract IUniswapV3Factory",
|
|
282
|
+
"name": "factory",
|
|
283
|
+
"type": "address"
|
|
284
|
+
},
|
|
285
|
+
{ "internalType": "address", "name": "tokenIn", "type": "address" },
|
|
286
|
+
{ "internalType": "address", "name": "tokenOut", "type": "address" },
|
|
287
|
+
{ "internalType": "int24", "name": "tickSpacing", "type": "int24" },
|
|
288
|
+
{ "internalType": "int16", "name": "tickBitmapStart", "type": "int16" },
|
|
289
|
+
{ "internalType": "int16", "name": "tickBitmapEnd", "type": "int16" }
|
|
290
|
+
],
|
|
291
|
+
"name": "getFullStateWithoutTicks",
|
|
292
|
+
"outputs": [
|
|
293
|
+
{
|
|
294
|
+
"components": [
|
|
295
|
+
{
|
|
296
|
+
"internalType": "contract IUniswapV3Pool",
|
|
297
|
+
"name": "pool",
|
|
298
|
+
"type": "address"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"internalType": "uint256",
|
|
302
|
+
"name": "blockTimestamp",
|
|
303
|
+
"type": "uint256"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"components": [
|
|
307
|
+
{
|
|
308
|
+
"internalType": "uint160",
|
|
309
|
+
"name": "sqrtPriceX96",
|
|
310
|
+
"type": "uint160"
|
|
311
|
+
},
|
|
312
|
+
{ "internalType": "int24", "name": "tick", "type": "int24" },
|
|
313
|
+
{ "internalType": "uint24", "name": "fee", "type": "uint24" },
|
|
314
|
+
{ "internalType": "bool", "name": "unlocked", "type": "bool" }
|
|
315
|
+
],
|
|
316
|
+
"internalType": "struct IUniswapV3StateMulticall.Slot0",
|
|
317
|
+
"name": "slot0",
|
|
318
|
+
"type": "tuple"
|
|
319
|
+
},
|
|
320
|
+
{ "internalType": "uint128", "name": "liquidity", "type": "uint128" },
|
|
321
|
+
{ "internalType": "int24", "name": "tickSpacing", "type": "int24" },
|
|
322
|
+
{
|
|
323
|
+
"internalType": "uint128",
|
|
324
|
+
"name": "maxLiquidityPerTick",
|
|
325
|
+
"type": "uint128"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"components": [
|
|
329
|
+
{ "internalType": "int16", "name": "index", "type": "int16" },
|
|
330
|
+
{ "internalType": "uint256", "name": "value", "type": "uint256" }
|
|
331
|
+
],
|
|
332
|
+
"internalType": "struct IUniswapV3StateMulticall.TickBitMapMappings[]",
|
|
333
|
+
"name": "tickBitmap",
|
|
334
|
+
"type": "tuple[]"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"components": [
|
|
338
|
+
{ "internalType": "int24", "name": "index", "type": "int24" },
|
|
339
|
+
{
|
|
340
|
+
"components": [
|
|
341
|
+
{
|
|
342
|
+
"internalType": "uint128",
|
|
343
|
+
"name": "liquidityGross",
|
|
344
|
+
"type": "uint128"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"internalType": "int128",
|
|
348
|
+
"name": "liquidityNet",
|
|
349
|
+
"type": "int128"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"internalType": "bool",
|
|
353
|
+
"name": "initialized",
|
|
354
|
+
"type": "bool"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"internalType": "struct IUniswapV3StateMulticall.TickInfo",
|
|
358
|
+
"name": "value",
|
|
359
|
+
"type": "tuple"
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
"internalType": "struct IUniswapV3StateMulticall.TickInfoMappings[]",
|
|
363
|
+
"name": "ticks",
|
|
364
|
+
"type": "tuple[]"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"internalType": "struct IUniswapV3StateMulticall.StateResult",
|
|
368
|
+
"name": "state",
|
|
369
|
+
"type": "tuple"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"stateMutability": "view",
|
|
373
|
+
"type": "function"
|
|
374
|
+
}
|
|
375
|
+
]
|
|
File without changes
|