@sodax/types 1.5.7-beta → 2.0.0-rc.10
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/README.md +86 -20
- package/dist/backend/backendApi.d.ts +74 -0
- package/dist/backend/backendApi.js +1 -0
- package/dist/backend/index.d.ts +1 -81
- package/dist/backend/index.js +1 -2
- package/dist/{btc/index.d.ts → bitcoin/bitcoin.d.ts} +30 -31
- package/dist/{btc/index.js → bitcoin/bitcoin.js} +4 -4
- package/dist/bitcoin/index.d.ts +1 -0
- package/dist/bitcoin/index.js +1 -0
- package/dist/chains/chain-keys.d.ts +30 -0
- package/dist/chains/chain-keys.js +38 -0
- package/dist/chains/chains.d.ts +3602 -0
- package/dist/chains/chains.js +711 -0
- package/dist/chains/index.d.ts +2 -0
- package/dist/chains/index.js +2 -0
- package/dist/chains/tokens.d.ts +4617 -0
- package/dist/chains/tokens.js +2242 -0
- package/dist/common/common.d.ts +281 -0
- package/dist/common/common.js +29 -0
- package/dist/common/constants.d.ts +69 -0
- package/dist/common/constants.js +30 -0
- package/dist/common/index.d.ts +2 -275
- package/dist/common/index.js +2 -2
- package/dist/dex/dex.d.ts +267 -0
- package/dist/dex/dex.js +127 -0
- package/dist/dex/index.d.ts +1 -0
- package/dist/dex/index.js +1 -0
- package/dist/dex/pancakeswap-infinity.d.ts +538 -0
- package/dist/dex/pancakeswap-infinity.js +2 -0
- package/dist/evm/evm.d.ts +47 -0
- package/dist/evm/evm.js +1 -0
- package/dist/evm/index.d.ts +1 -40
- package/dist/evm/index.js +1 -2
- package/dist/icon/icon.d.ts +54 -0
- package/dist/icon/icon.js +1 -0
- package/dist/icon/index.d.ts +1 -36
- package/dist/icon/index.js +1 -2
- package/dist/index.d.ts +15 -8
- package/dist/index.js +15 -8
- package/dist/injective/index.d.ts +1 -68
- package/dist/injective/index.js +1 -17
- package/dist/injective/injective.d.ts +102 -0
- package/dist/injective/injective.js +1 -0
- package/dist/moneyMarket/index.d.ts +1 -0
- package/dist/moneyMarket/index.js +1 -0
- package/dist/moneyMarket/moneyMarket.d.ts +2559 -0
- package/dist/moneyMarket/moneyMarket.js +199 -0
- package/dist/near/index.d.ts +1 -70
- package/dist/near/index.js +1 -2
- package/dist/near/near-api-js.d.ts +6118 -0
- package/dist/near/near-api-js.js +1 -0
- package/dist/near/near.d.ts +74 -0
- package/dist/near/near.js +1 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +1 -0
- package/dist/shared/shared.d.ts +16 -0
- package/dist/shared/shared.js +5 -0
- package/dist/sodax-config/index.d.ts +1 -0
- package/dist/sodax-config/index.js +1 -0
- package/dist/sodax-config/sodax-config.d.ts +6307 -0
- package/dist/sodax-config/sodax-config.js +21 -0
- package/dist/solana/index.d.ts +1 -100
- package/dist/solana/index.js +1 -2
- package/dist/solana/solana-web3.d.ts +389 -0
- package/dist/solana/solana-web3.js +1 -0
- package/dist/solana/solana.d.ts +110 -0
- package/dist/solana/solana.js +1 -0
- package/dist/stacks/index.d.ts +1 -17
- package/dist/stacks/index.js +1 -2
- package/dist/stacks/stacks.d.ts +210 -0
- package/dist/stacks/stacks.js +1 -0
- package/dist/stellar/index.d.ts +1 -70
- package/dist/stellar/index.js +1 -2
- package/dist/stellar/stellar.d.ts +96 -0
- package/dist/stellar/stellar.js +1 -0
- package/dist/sui/index.d.ts +1 -33
- package/dist/sui/index.js +1 -2
- package/dist/sui/sui.d.ts +311 -0
- package/dist/sui/sui.js +1 -0
- package/dist/swap/index.d.ts +1 -0
- package/dist/swap/index.js +1 -0
- package/dist/swap/swap.d.ts +3500 -0
- package/dist/swap/swap.js +248 -0
- package/dist/utils/deep-partial.d.ts +8 -0
- package/dist/utils/deep-partial.js +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/utils.d.ts +60 -0
- package/dist/utils/utils.js +143 -0
- package/dist/wallet/index.d.ts +2 -0
- package/dist/wallet/index.js +2 -0
- package/dist/wallet/providers.d.ts +23 -0
- package/dist/wallet/providers.js +1 -0
- package/dist/wallet/wallet.d.ts +18 -0
- package/dist/wallet/wallet.js +1 -0
- package/package.json +42 -14
- package/dist/backend/index.d.ts.map +0 -1
- package/dist/backend/index.js.map +0 -1
- package/dist/btc/index.d.ts.map +0 -1
- package/dist/btc/index.js.map +0 -1
- package/dist/common/index.d.ts.map +0 -1
- package/dist/common/index.js.map +0 -1
- package/dist/constants/index.d.ts +0 -7299
- package/dist/constants/index.d.ts.map +0 -1
- package/dist/constants/index.js +0 -3227
- package/dist/constants/index.js.map +0 -1
- package/dist/evm/index.d.ts.map +0 -1
- package/dist/evm/index.js.map +0 -1
- package/dist/icon/index.d.ts.map +0 -1
- package/dist/icon/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/injective/index.d.ts.map +0 -1
- package/dist/injective/index.js.map +0 -1
- package/dist/near/index.d.ts.map +0 -1
- package/dist/near/index.js.map +0 -1
- package/dist/solana/index.d.ts.map +0 -1
- package/dist/solana/index.js.map +0 -1
- package/dist/stacks/index.d.ts.map +0 -1
- package/dist/stacks/index.js.map +0 -1
- package/dist/stellar/index.d.ts.map +0 -1
- package/dist/stellar/index.js.map +0 -1
- package/dist/sui/index.d.ts.map +0 -1
- package/dist/sui/index.js.map +0 -1
package/dist/common/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export * from './common.js';
|
|
2
|
+
export * from './constants.js';
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import type { Address } from '../shared/shared.js';
|
|
2
|
+
import { StatATokenAddresses } from '../chains/tokens.js';
|
|
3
|
+
import type { PoolKey } from './pancakeswap-infinity.js';
|
|
4
|
+
export type { EncodedPoolKey, PoolKey, Slot0, CLPositionConfig, } from './pancakeswap-infinity.js';
|
|
5
|
+
export type ConcentratedLiquidityConfig = {
|
|
6
|
+
permit2: Address;
|
|
7
|
+
clPoolManager: Address;
|
|
8
|
+
router: Address;
|
|
9
|
+
clPositionManager: Address;
|
|
10
|
+
clPositionDescriptor: Address;
|
|
11
|
+
clQuoter: Address;
|
|
12
|
+
clTickLens: Address;
|
|
13
|
+
defaultHook: Address;
|
|
14
|
+
stataTokenFactory: Address;
|
|
15
|
+
defaultTickSpacing: number;
|
|
16
|
+
defaultBitmap: bigint;
|
|
17
|
+
};
|
|
18
|
+
export declare const concentratedLiquidityConfig: {
|
|
19
|
+
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
20
|
+
readonly clPoolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
|
|
21
|
+
readonly router: "0x5bFB058c65E4c1DEC1cFF0Ff2cBd8522b4c3feBB";
|
|
22
|
+
readonly clPositionManager: "0xcc08a04d9E5766c7A20FE6bb32cAa40EA0e7e9e1";
|
|
23
|
+
readonly clPositionDescriptor: "0x83Ff9FC474DBe927BA5BB822571e0814122655bB";
|
|
24
|
+
readonly clQuoter: "0x5f46CB668D39496b41CE8E19D6A7fE893826E363";
|
|
25
|
+
readonly clTickLens: "0xb3e77dD9b1f206A2b797B3fE900b50cC92A38d26";
|
|
26
|
+
readonly defaultHook: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
|
|
27
|
+
readonly stataTokenFactory: "0x9120956787FcE7D7082C52CDCAafb7F4B88272d4";
|
|
28
|
+
readonly defaultTickSpacing: 10;
|
|
29
|
+
readonly defaultBitmap: 16383n;
|
|
30
|
+
};
|
|
31
|
+
export declare const dexPools: {
|
|
32
|
+
readonly AETH_BNUSD: {
|
|
33
|
+
readonly currency0: "0x3E102c7D9b46c92aBcd4c2e1C70f362B47a201A6";
|
|
34
|
+
readonly currency1: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
35
|
+
readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
|
|
36
|
+
readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
|
|
37
|
+
readonly fee: 8388608;
|
|
38
|
+
readonly parameters: {
|
|
39
|
+
readonly tickSpacing: 10;
|
|
40
|
+
readonly hooksRegistration: {
|
|
41
|
+
readonly beforeInitialize: true;
|
|
42
|
+
readonly afterInitialize: true;
|
|
43
|
+
readonly beforeAddLiquidity: true;
|
|
44
|
+
readonly afterAddLiquidity: true;
|
|
45
|
+
readonly beforeRemoveLiquidity: true;
|
|
46
|
+
readonly afterRemoveLiquidity: true;
|
|
47
|
+
readonly beforeSwap: true;
|
|
48
|
+
readonly afterSwap: true;
|
|
49
|
+
readonly beforeDonate: true;
|
|
50
|
+
readonly afterDonate: true;
|
|
51
|
+
readonly beforeSwapReturnsDelta: true;
|
|
52
|
+
readonly afterSwapReturnsDelta: true;
|
|
53
|
+
readonly afterMintReturnsDelta: true;
|
|
54
|
+
readonly afterBurnReturnsDelta: true;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly BTC_BNUSD: {
|
|
59
|
+
readonly currency0: "0x8aDe79C255761971f4057253712b916AB2494275";
|
|
60
|
+
readonly currency1: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
61
|
+
readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
|
|
62
|
+
readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
|
|
63
|
+
readonly fee: 8388608;
|
|
64
|
+
readonly parameters: {
|
|
65
|
+
readonly tickSpacing: 10;
|
|
66
|
+
readonly hooksRegistration: {
|
|
67
|
+
readonly beforeInitialize: true;
|
|
68
|
+
readonly afterInitialize: true;
|
|
69
|
+
readonly beforeAddLiquidity: true;
|
|
70
|
+
readonly afterAddLiquidity: true;
|
|
71
|
+
readonly beforeRemoveLiquidity: true;
|
|
72
|
+
readonly afterRemoveLiquidity: true;
|
|
73
|
+
readonly beforeSwap: true;
|
|
74
|
+
readonly afterSwap: true;
|
|
75
|
+
readonly beforeDonate: true;
|
|
76
|
+
readonly afterDonate: true;
|
|
77
|
+
readonly beforeSwapReturnsDelta: true;
|
|
78
|
+
readonly afterSwapReturnsDelta: true;
|
|
79
|
+
readonly afterMintReturnsDelta: true;
|
|
80
|
+
readonly afterBurnReturnsDelta: true;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly ASODA_BNUSD: {
|
|
85
|
+
readonly currency0: "0xac8540fee419c7ceb985889EaBa1e84B42a53e8a";
|
|
86
|
+
readonly currency1: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
87
|
+
readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
|
|
88
|
+
readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
|
|
89
|
+
readonly fee: 8388608;
|
|
90
|
+
readonly parameters: {
|
|
91
|
+
readonly tickSpacing: 10;
|
|
92
|
+
readonly hooksRegistration: {
|
|
93
|
+
readonly beforeInitialize: true;
|
|
94
|
+
readonly afterInitialize: true;
|
|
95
|
+
readonly beforeAddLiquidity: true;
|
|
96
|
+
readonly afterAddLiquidity: true;
|
|
97
|
+
readonly beforeRemoveLiquidity: true;
|
|
98
|
+
readonly afterRemoveLiquidity: true;
|
|
99
|
+
readonly beforeSwap: true;
|
|
100
|
+
readonly afterSwap: true;
|
|
101
|
+
readonly beforeDonate: true;
|
|
102
|
+
readonly afterDonate: true;
|
|
103
|
+
readonly beforeSwapReturnsDelta: true;
|
|
104
|
+
readonly afterSwapReturnsDelta: true;
|
|
105
|
+
readonly afterMintReturnsDelta: true;
|
|
106
|
+
readonly afterBurnReturnsDelta: true;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly ASODA_XSODA: {
|
|
111
|
+
readonly currency0: "0xac8540fee419c7ceb985889EaBa1e84B42a53e8a";
|
|
112
|
+
readonly currency1: "0xADC6561Cc8FC31767B4917CCc97F510D411378d9";
|
|
113
|
+
readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
|
|
114
|
+
readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
|
|
115
|
+
readonly fee: 8388608;
|
|
116
|
+
readonly parameters: {
|
|
117
|
+
readonly tickSpacing: 10;
|
|
118
|
+
readonly hooksRegistration: {
|
|
119
|
+
readonly beforeInitialize: true;
|
|
120
|
+
readonly afterInitialize: true;
|
|
121
|
+
readonly beforeAddLiquidity: true;
|
|
122
|
+
readonly afterAddLiquidity: true;
|
|
123
|
+
readonly beforeRemoveLiquidity: true;
|
|
124
|
+
readonly afterRemoveLiquidity: true;
|
|
125
|
+
readonly beforeSwap: true;
|
|
126
|
+
readonly afterSwap: true;
|
|
127
|
+
readonly beforeDonate: true;
|
|
128
|
+
readonly afterDonate: true;
|
|
129
|
+
readonly beforeSwapReturnsDelta: true;
|
|
130
|
+
readonly afterSwapReturnsDelta: true;
|
|
131
|
+
readonly afterMintReturnsDelta: true;
|
|
132
|
+
readonly afterBurnReturnsDelta: true;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
export type DexConfig = {
|
|
138
|
+
concentratedLiquidityConfig: ConcentratedLiquidityConfig;
|
|
139
|
+
dexPools: Record<string, PoolKey>;
|
|
140
|
+
statATokenAddresses: Record<Address, Address> & typeof StatATokenAddresses;
|
|
141
|
+
};
|
|
142
|
+
export declare const dexConfig: {
|
|
143
|
+
readonly concentratedLiquidityConfig: {
|
|
144
|
+
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
145
|
+
readonly clPoolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
|
|
146
|
+
readonly router: "0x5bFB058c65E4c1DEC1cFF0Ff2cBd8522b4c3feBB";
|
|
147
|
+
readonly clPositionManager: "0xcc08a04d9E5766c7A20FE6bb32cAa40EA0e7e9e1";
|
|
148
|
+
readonly clPositionDescriptor: "0x83Ff9FC474DBe927BA5BB822571e0814122655bB";
|
|
149
|
+
readonly clQuoter: "0x5f46CB668D39496b41CE8E19D6A7fE893826E363";
|
|
150
|
+
readonly clTickLens: "0xb3e77dD9b1f206A2b797B3fE900b50cC92A38d26";
|
|
151
|
+
readonly defaultHook: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
|
|
152
|
+
readonly stataTokenFactory: "0x9120956787FcE7D7082C52CDCAafb7F4B88272d4";
|
|
153
|
+
readonly defaultTickSpacing: 10;
|
|
154
|
+
readonly defaultBitmap: 16383n;
|
|
155
|
+
};
|
|
156
|
+
readonly dexPools: {
|
|
157
|
+
readonly AETH_BNUSD: {
|
|
158
|
+
readonly currency0: "0x3E102c7D9b46c92aBcd4c2e1C70f362B47a201A6";
|
|
159
|
+
readonly currency1: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
160
|
+
readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
|
|
161
|
+
readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
|
|
162
|
+
readonly fee: 8388608;
|
|
163
|
+
readonly parameters: {
|
|
164
|
+
readonly tickSpacing: 10;
|
|
165
|
+
readonly hooksRegistration: {
|
|
166
|
+
readonly beforeInitialize: true;
|
|
167
|
+
readonly afterInitialize: true;
|
|
168
|
+
readonly beforeAddLiquidity: true;
|
|
169
|
+
readonly afterAddLiquidity: true;
|
|
170
|
+
readonly beforeRemoveLiquidity: true;
|
|
171
|
+
readonly afterRemoveLiquidity: true;
|
|
172
|
+
readonly beforeSwap: true;
|
|
173
|
+
readonly afterSwap: true;
|
|
174
|
+
readonly beforeDonate: true;
|
|
175
|
+
readonly afterDonate: true;
|
|
176
|
+
readonly beforeSwapReturnsDelta: true;
|
|
177
|
+
readonly afterSwapReturnsDelta: true;
|
|
178
|
+
readonly afterMintReturnsDelta: true;
|
|
179
|
+
readonly afterBurnReturnsDelta: true;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
readonly BTC_BNUSD: {
|
|
184
|
+
readonly currency0: "0x8aDe79C255761971f4057253712b916AB2494275";
|
|
185
|
+
readonly currency1: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
186
|
+
readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
|
|
187
|
+
readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
|
|
188
|
+
readonly fee: 8388608;
|
|
189
|
+
readonly parameters: {
|
|
190
|
+
readonly tickSpacing: 10;
|
|
191
|
+
readonly hooksRegistration: {
|
|
192
|
+
readonly beforeInitialize: true;
|
|
193
|
+
readonly afterInitialize: true;
|
|
194
|
+
readonly beforeAddLiquidity: true;
|
|
195
|
+
readonly afterAddLiquidity: true;
|
|
196
|
+
readonly beforeRemoveLiquidity: true;
|
|
197
|
+
readonly afterRemoveLiquidity: true;
|
|
198
|
+
readonly beforeSwap: true;
|
|
199
|
+
readonly afterSwap: true;
|
|
200
|
+
readonly beforeDonate: true;
|
|
201
|
+
readonly afterDonate: true;
|
|
202
|
+
readonly beforeSwapReturnsDelta: true;
|
|
203
|
+
readonly afterSwapReturnsDelta: true;
|
|
204
|
+
readonly afterMintReturnsDelta: true;
|
|
205
|
+
readonly afterBurnReturnsDelta: true;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
readonly ASODA_BNUSD: {
|
|
210
|
+
readonly currency0: "0xac8540fee419c7ceb985889EaBa1e84B42a53e8a";
|
|
211
|
+
readonly currency1: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
212
|
+
readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
|
|
213
|
+
readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
|
|
214
|
+
readonly fee: 8388608;
|
|
215
|
+
readonly parameters: {
|
|
216
|
+
readonly tickSpacing: 10;
|
|
217
|
+
readonly hooksRegistration: {
|
|
218
|
+
readonly beforeInitialize: true;
|
|
219
|
+
readonly afterInitialize: true;
|
|
220
|
+
readonly beforeAddLiquidity: true;
|
|
221
|
+
readonly afterAddLiquidity: true;
|
|
222
|
+
readonly beforeRemoveLiquidity: true;
|
|
223
|
+
readonly afterRemoveLiquidity: true;
|
|
224
|
+
readonly beforeSwap: true;
|
|
225
|
+
readonly afterSwap: true;
|
|
226
|
+
readonly beforeDonate: true;
|
|
227
|
+
readonly afterDonate: true;
|
|
228
|
+
readonly beforeSwapReturnsDelta: true;
|
|
229
|
+
readonly afterSwapReturnsDelta: true;
|
|
230
|
+
readonly afterMintReturnsDelta: true;
|
|
231
|
+
readonly afterBurnReturnsDelta: true;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
readonly ASODA_XSODA: {
|
|
236
|
+
readonly currency0: "0xac8540fee419c7ceb985889EaBa1e84B42a53e8a";
|
|
237
|
+
readonly currency1: "0xADC6561Cc8FC31767B4917CCc97F510D411378d9";
|
|
238
|
+
readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
|
|
239
|
+
readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
|
|
240
|
+
readonly fee: 8388608;
|
|
241
|
+
readonly parameters: {
|
|
242
|
+
readonly tickSpacing: 10;
|
|
243
|
+
readonly hooksRegistration: {
|
|
244
|
+
readonly beforeInitialize: true;
|
|
245
|
+
readonly afterInitialize: true;
|
|
246
|
+
readonly beforeAddLiquidity: true;
|
|
247
|
+
readonly afterAddLiquidity: true;
|
|
248
|
+
readonly beforeRemoveLiquidity: true;
|
|
249
|
+
readonly afterRemoveLiquidity: true;
|
|
250
|
+
readonly beforeSwap: true;
|
|
251
|
+
readonly afterSwap: true;
|
|
252
|
+
readonly beforeDonate: true;
|
|
253
|
+
readonly afterDonate: true;
|
|
254
|
+
readonly beforeSwapReturnsDelta: true;
|
|
255
|
+
readonly afterSwapReturnsDelta: true;
|
|
256
|
+
readonly afterMintReturnsDelta: true;
|
|
257
|
+
readonly afterBurnReturnsDelta: true;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
readonly statATokenAddresses: {
|
|
263
|
+
readonly '0xac8540fee419c7ceb985889eaba1e84b42a53e8a': "0x21685E341DE7844135329914Be6Bd8D16982d834";
|
|
264
|
+
readonly '0x8ade79c255761971f4057253712b916ab2494275': "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
265
|
+
readonly '0x3e102c7d9b46c92abcd4c2e1c70f362b47a201a6': "0x4effB5813271699683C25c734F4daBc45B363709";
|
|
266
|
+
};
|
|
267
|
+
};
|
package/dist/dex/dex.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { StatATokenAddresses } from '../chains/tokens.js';
|
|
2
|
+
export const concentratedLiquidityConfig = {
|
|
3
|
+
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3',
|
|
4
|
+
clPoolManager: '0xA3256ab552A271A16AcDfdB521B32ef82d481F43',
|
|
5
|
+
router: '0x5bFB058c65E4c1DEC1cFF0Ff2cBd8522b4c3feBB',
|
|
6
|
+
clPositionManager: '0xcc08a04d9E5766c7A20FE6bb32cAa40EA0e7e9e1',
|
|
7
|
+
clPositionDescriptor: '0x83Ff9FC474DBe927BA5BB822571e0814122655bB',
|
|
8
|
+
clQuoter: '0x5f46CB668D39496b41CE8E19D6A7fE893826E363',
|
|
9
|
+
clTickLens: '0xb3e77dD9b1f206A2b797B3fE900b50cC92A38d26',
|
|
10
|
+
defaultHook: '0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229',
|
|
11
|
+
stataTokenFactory: '0x9120956787FcE7D7082C52CDCAafb7F4B88272d4',
|
|
12
|
+
defaultTickSpacing: 10,
|
|
13
|
+
defaultBitmap: 16383n,
|
|
14
|
+
};
|
|
15
|
+
export const dexPools = {
|
|
16
|
+
AETH_BNUSD: {
|
|
17
|
+
currency0: '0x3E102c7D9b46c92aBcd4c2e1C70f362B47a201A6', // AsodaETH
|
|
18
|
+
currency1: '0xE801CA34E19aBCbFeA12025378D19c4FBE250131', // bnuSD
|
|
19
|
+
hooks: '0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229', // defaultHook
|
|
20
|
+
poolManager: '0xA3256ab552A271A16AcDfdB521B32ef82d481F43', // clPoolManager
|
|
21
|
+
fee: 8388608, // DYNAMIC_FEE
|
|
22
|
+
parameters: {
|
|
23
|
+
tickSpacing: 10,
|
|
24
|
+
hooksRegistration: {
|
|
25
|
+
beforeInitialize: true,
|
|
26
|
+
afterInitialize: true,
|
|
27
|
+
beforeAddLiquidity: true,
|
|
28
|
+
afterAddLiquidity: true,
|
|
29
|
+
beforeRemoveLiquidity: true,
|
|
30
|
+
afterRemoveLiquidity: true,
|
|
31
|
+
beforeSwap: true,
|
|
32
|
+
afterSwap: true,
|
|
33
|
+
beforeDonate: true,
|
|
34
|
+
afterDonate: true,
|
|
35
|
+
beforeSwapReturnsDelta: true,
|
|
36
|
+
afterSwapReturnsDelta: true,
|
|
37
|
+
afterMintReturnsDelta: true,
|
|
38
|
+
afterBurnReturnsDelta: true,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
BTC_BNUSD: {
|
|
43
|
+
currency0: '0x8aDe79C255761971f4057253712b916AB2494275', // sodaBTC
|
|
44
|
+
currency1: '0xE801CA34E19aBCbFeA12025378D19c4FBE250131', // bnUSD
|
|
45
|
+
hooks: '0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229', // defaultHook
|
|
46
|
+
poolManager: '0xA3256ab552A271A16AcDfdB521B32ef82d481F43', // clPoolManager
|
|
47
|
+
fee: 8388608, // DYNAMIC_FEE
|
|
48
|
+
parameters: {
|
|
49
|
+
tickSpacing: 10,
|
|
50
|
+
hooksRegistration: {
|
|
51
|
+
beforeInitialize: true,
|
|
52
|
+
afterInitialize: true,
|
|
53
|
+
beforeAddLiquidity: true,
|
|
54
|
+
afterAddLiquidity: true,
|
|
55
|
+
beforeRemoveLiquidity: true,
|
|
56
|
+
afterRemoveLiquidity: true,
|
|
57
|
+
beforeSwap: true,
|
|
58
|
+
afterSwap: true,
|
|
59
|
+
beforeDonate: true,
|
|
60
|
+
afterDonate: true,
|
|
61
|
+
beforeSwapReturnsDelta: true,
|
|
62
|
+
afterSwapReturnsDelta: true,
|
|
63
|
+
afterMintReturnsDelta: true,
|
|
64
|
+
afterBurnReturnsDelta: true,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
// SODA/ETH pool
|
|
69
|
+
ASODA_BNUSD: {
|
|
70
|
+
currency0: '0xac8540fee419c7ceb985889EaBa1e84B42a53e8a', // sodaSODA
|
|
71
|
+
currency1: '0xE801CA34E19aBCbFeA12025378D19c4FBE250131', // sodaETH
|
|
72
|
+
hooks: '0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229', // defaultHook
|
|
73
|
+
poolManager: '0xA3256ab552A271A16AcDfdB521B32ef82d481F43', // clPoolManager
|
|
74
|
+
fee: 8388608, // DYNAMIC_FEE
|
|
75
|
+
parameters: {
|
|
76
|
+
tickSpacing: 10,
|
|
77
|
+
hooksRegistration: {
|
|
78
|
+
beforeInitialize: true,
|
|
79
|
+
afterInitialize: true,
|
|
80
|
+
beforeAddLiquidity: true,
|
|
81
|
+
afterAddLiquidity: true,
|
|
82
|
+
beforeRemoveLiquidity: true,
|
|
83
|
+
afterRemoveLiquidity: true,
|
|
84
|
+
beforeSwap: true,
|
|
85
|
+
afterSwap: true,
|
|
86
|
+
beforeDonate: true,
|
|
87
|
+
afterDonate: true,
|
|
88
|
+
beforeSwapReturnsDelta: true,
|
|
89
|
+
afterSwapReturnsDelta: true,
|
|
90
|
+
afterMintReturnsDelta: true,
|
|
91
|
+
afterBurnReturnsDelta: true,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
// SODA/USDC pool
|
|
96
|
+
ASODA_XSODA: {
|
|
97
|
+
currency0: '0xac8540fee419c7ceb985889EaBa1e84B42a53e8a', // sodaSODA
|
|
98
|
+
currency1: '0xADC6561Cc8FC31767B4917CCc97F510D411378d9', // xSODA
|
|
99
|
+
hooks: '0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229', // defaultHook
|
|
100
|
+
poolManager: '0xA3256ab552A271A16AcDfdB521B32ef82d481F43', // clPoolManager
|
|
101
|
+
fee: 8388608, // DYNAMIC_FEE
|
|
102
|
+
parameters: {
|
|
103
|
+
tickSpacing: 10,
|
|
104
|
+
hooksRegistration: {
|
|
105
|
+
beforeInitialize: true,
|
|
106
|
+
afterInitialize: true,
|
|
107
|
+
beforeAddLiquidity: true,
|
|
108
|
+
afterAddLiquidity: true,
|
|
109
|
+
beforeRemoveLiquidity: true,
|
|
110
|
+
afterRemoveLiquidity: true,
|
|
111
|
+
beforeSwap: true,
|
|
112
|
+
afterSwap: true,
|
|
113
|
+
beforeDonate: true,
|
|
114
|
+
afterDonate: true,
|
|
115
|
+
beforeSwapReturnsDelta: true,
|
|
116
|
+
afterSwapReturnsDelta: true,
|
|
117
|
+
afterMintReturnsDelta: true,
|
|
118
|
+
afterBurnReturnsDelta: true,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
export const dexConfig = {
|
|
124
|
+
concentratedLiquidityConfig: concentratedLiquidityConfig,
|
|
125
|
+
dexPools: dexPools,
|
|
126
|
+
statATokenAddresses: StatATokenAddresses,
|
|
127
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dex.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dex.js';
|