liquid-sdk 1.0.0
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 +229 -0
- package/dist/index.d.mts +1635 -0
- package/dist/index.d.ts +1635 -0
- package/dist/index.js +1363 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1326 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +53 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,1635 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
import { Address, Hex, Hash, PublicClient, WalletClient } from 'viem';
|
|
3
|
+
import * as abitype from 'abitype';
|
|
4
|
+
import * as viem_chains from 'viem/chains';
|
|
5
|
+
|
|
6
|
+
interface TokenConfig {
|
|
7
|
+
tokenAdmin: Address;
|
|
8
|
+
name: string;
|
|
9
|
+
symbol: string;
|
|
10
|
+
salt: Hex;
|
|
11
|
+
image: string;
|
|
12
|
+
metadata: string;
|
|
13
|
+
context: string;
|
|
14
|
+
originatingChainId: bigint;
|
|
15
|
+
}
|
|
16
|
+
interface PoolConfig {
|
|
17
|
+
hook: Address;
|
|
18
|
+
pairedToken: Address;
|
|
19
|
+
tickIfToken0IsLiquid: number;
|
|
20
|
+
tickSpacing: number;
|
|
21
|
+
poolData: Hex;
|
|
22
|
+
}
|
|
23
|
+
interface LockerConfig {
|
|
24
|
+
locker: Address;
|
|
25
|
+
rewardAdmins: Address[];
|
|
26
|
+
rewardRecipients: Address[];
|
|
27
|
+
rewardBps: number[];
|
|
28
|
+
tickLower: number[];
|
|
29
|
+
tickUpper: number[];
|
|
30
|
+
positionBps: number[];
|
|
31
|
+
lockerData: Hex;
|
|
32
|
+
}
|
|
33
|
+
interface MevModuleConfig {
|
|
34
|
+
mevModule: Address;
|
|
35
|
+
mevModuleData: Hex;
|
|
36
|
+
}
|
|
37
|
+
interface ExtensionConfig {
|
|
38
|
+
extension: Address;
|
|
39
|
+
msgValue: bigint;
|
|
40
|
+
extensionBps: number;
|
|
41
|
+
extensionData: Hex;
|
|
42
|
+
}
|
|
43
|
+
interface DeploymentConfig {
|
|
44
|
+
tokenConfig: TokenConfig;
|
|
45
|
+
poolConfig: PoolConfig;
|
|
46
|
+
lockerConfig: LockerConfig;
|
|
47
|
+
mevModuleConfig: MevModuleConfig;
|
|
48
|
+
extensionConfigs: ExtensionConfig[];
|
|
49
|
+
}
|
|
50
|
+
interface DevBuyParams {
|
|
51
|
+
/** Amount of ETH to spend on the dev buy */
|
|
52
|
+
ethAmount: bigint;
|
|
53
|
+
/** Address to receive the purchased tokens */
|
|
54
|
+
recipient: Address;
|
|
55
|
+
}
|
|
56
|
+
interface DeployTokenParams {
|
|
57
|
+
name: string;
|
|
58
|
+
symbol: string;
|
|
59
|
+
image?: string;
|
|
60
|
+
metadata?: string;
|
|
61
|
+
context?: string;
|
|
62
|
+
tokenAdmin?: Address;
|
|
63
|
+
salt?: Hex;
|
|
64
|
+
/** Hook address. Defaults to HOOK_DYNAMIC_FEE_V2 */
|
|
65
|
+
hook?: Address;
|
|
66
|
+
/** Quote token. Defaults to WETH */
|
|
67
|
+
pairedToken?: Address;
|
|
68
|
+
/** Starting tick. Defaults to -198720 (approx $0.001 WETH per token) */
|
|
69
|
+
tickIfToken0IsLiquid?: number;
|
|
70
|
+
/** Tick spacing. Defaults to 60 */
|
|
71
|
+
tickSpacing?: number;
|
|
72
|
+
/** Pool-specific hook data */
|
|
73
|
+
poolData?: Hex;
|
|
74
|
+
/** LP locker address. Defaults to LP_LOCKER */
|
|
75
|
+
locker?: Address;
|
|
76
|
+
/** Reward admin addresses */
|
|
77
|
+
rewardAdmins?: Address[];
|
|
78
|
+
/** Reward recipient addresses */
|
|
79
|
+
rewardRecipients?: Address[];
|
|
80
|
+
/** Reward basis points per recipient */
|
|
81
|
+
rewardBps?: number[];
|
|
82
|
+
/** Tick lower bounds per position */
|
|
83
|
+
tickLower?: number[];
|
|
84
|
+
/** Tick upper bounds per position */
|
|
85
|
+
tickUpper?: number[];
|
|
86
|
+
/** Position BPS splits */
|
|
87
|
+
positionBps?: number[];
|
|
88
|
+
/** Locker-specific data */
|
|
89
|
+
lockerData?: Hex;
|
|
90
|
+
/** MEV module address. Defaults to MEV_BLOCK_DELAY */
|
|
91
|
+
mevModule?: Address;
|
|
92
|
+
/** MEV module initialization data */
|
|
93
|
+
mevModuleData?: Hex;
|
|
94
|
+
/** Extension configs (vault, airdrop, etc.) */
|
|
95
|
+
extensions?: ExtensionConfig[];
|
|
96
|
+
/** Dev buy: buy tokens with ETH at launch. Adds the Univ4EthDevBuy extension automatically. */
|
|
97
|
+
devBuy?: DevBuyParams;
|
|
98
|
+
}
|
|
99
|
+
interface DeploymentInfo {
|
|
100
|
+
token: Address;
|
|
101
|
+
hook: Address;
|
|
102
|
+
locker: Address;
|
|
103
|
+
extensions: Address[];
|
|
104
|
+
}
|
|
105
|
+
interface PoolKey {
|
|
106
|
+
currency0: Address;
|
|
107
|
+
currency1: Address;
|
|
108
|
+
fee: number;
|
|
109
|
+
tickSpacing: number;
|
|
110
|
+
hooks: Address;
|
|
111
|
+
}
|
|
112
|
+
interface PoolDynamicConfigVars {
|
|
113
|
+
baseFee: number;
|
|
114
|
+
maxLpFee: number;
|
|
115
|
+
referenceTickFilterPeriod: bigint;
|
|
116
|
+
resetPeriod: bigint;
|
|
117
|
+
resetTickFilter: number;
|
|
118
|
+
feeControlNumerator: bigint;
|
|
119
|
+
decayFilterBps: number;
|
|
120
|
+
}
|
|
121
|
+
interface PoolDynamicFeeVars {
|
|
122
|
+
referenceTick: number;
|
|
123
|
+
resetTick: number;
|
|
124
|
+
resetTickTimestamp: bigint;
|
|
125
|
+
lastSwapTimestamp: bigint;
|
|
126
|
+
appliedVR: number;
|
|
127
|
+
prevVA: number;
|
|
128
|
+
}
|
|
129
|
+
interface VaultAllocation {
|
|
130
|
+
token: Address;
|
|
131
|
+
amountTotal: bigint;
|
|
132
|
+
amountClaimed: bigint;
|
|
133
|
+
lockupEndTime: bigint;
|
|
134
|
+
vestingEndTime: bigint;
|
|
135
|
+
admin: Address;
|
|
136
|
+
}
|
|
137
|
+
interface TokenCreatedEvent {
|
|
138
|
+
msgSender: Address;
|
|
139
|
+
tokenAddress: Address;
|
|
140
|
+
tokenAdmin: Address;
|
|
141
|
+
tokenImage: string;
|
|
142
|
+
tokenName: string;
|
|
143
|
+
tokenSymbol: string;
|
|
144
|
+
tokenMetadata: string;
|
|
145
|
+
tokenContext: string;
|
|
146
|
+
startingTick: number;
|
|
147
|
+
poolHook: Address;
|
|
148
|
+
poolId: Hex;
|
|
149
|
+
pairedToken: Address;
|
|
150
|
+
locker: Address;
|
|
151
|
+
mevModule: Address;
|
|
152
|
+
extensionsSupply: bigint;
|
|
153
|
+
extensions: Address[];
|
|
154
|
+
}
|
|
155
|
+
interface AirdropInfo {
|
|
156
|
+
admin: Address;
|
|
157
|
+
merkleRoot: Hex;
|
|
158
|
+
totalSupply: bigint;
|
|
159
|
+
totalClaimed: bigint;
|
|
160
|
+
lockupEndTime: bigint;
|
|
161
|
+
vestingEndTime: bigint;
|
|
162
|
+
adminClaimTime: bigint;
|
|
163
|
+
adminClaimed: boolean;
|
|
164
|
+
}
|
|
165
|
+
interface SniperAuctionFeeConfig {
|
|
166
|
+
startingFee: number;
|
|
167
|
+
endingFee: number;
|
|
168
|
+
secondsToDecay: bigint;
|
|
169
|
+
}
|
|
170
|
+
interface SniperAuctionState {
|
|
171
|
+
nextAuctionBlock: bigint;
|
|
172
|
+
round: bigint;
|
|
173
|
+
gasPeg: bigint;
|
|
174
|
+
currentFee: number;
|
|
175
|
+
}
|
|
176
|
+
interface TokenRewardInfo {
|
|
177
|
+
token: Address;
|
|
178
|
+
poolKey: PoolKey;
|
|
179
|
+
positionId: bigint;
|
|
180
|
+
numPositions: bigint;
|
|
181
|
+
rewardBps: number[];
|
|
182
|
+
rewardAdmins: Address[];
|
|
183
|
+
rewardRecipients: Address[];
|
|
184
|
+
}
|
|
185
|
+
interface LiquidSDKConfig {
|
|
186
|
+
publicClient: any;
|
|
187
|
+
walletClient?: any;
|
|
188
|
+
}
|
|
189
|
+
interface DeployTokenResult {
|
|
190
|
+
tokenAddress: Address;
|
|
191
|
+
txHash: Hash;
|
|
192
|
+
event: TokenCreatedEvent;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
declare class LiquidSDK {
|
|
196
|
+
readonly publicClient: PublicClient;
|
|
197
|
+
readonly walletClient?: WalletClient;
|
|
198
|
+
constructor(config: LiquidSDKConfig);
|
|
199
|
+
/**
|
|
200
|
+
* Build an ExtensionConfig for a dev buy (buy tokens with ETH at launch).
|
|
201
|
+
* The paired token must be WETH for simple dev buys.
|
|
202
|
+
*/
|
|
203
|
+
buildDevBuyExtension(devBuy: DevBuyParams): ExtensionConfig;
|
|
204
|
+
deployToken(params: DeployTokenParams): Promise<DeployTokenResult>;
|
|
205
|
+
getDeploymentInfo(tokenAddress: Address): Promise<DeploymentInfo>;
|
|
206
|
+
getTokenInfo(tokenAddress: Address): Promise<{
|
|
207
|
+
address: `0x${string}`;
|
|
208
|
+
name: string;
|
|
209
|
+
symbol: string;
|
|
210
|
+
decimals: number;
|
|
211
|
+
totalSupply: bigint;
|
|
212
|
+
deployment: DeploymentInfo;
|
|
213
|
+
}>;
|
|
214
|
+
getPoolConfig(poolId: Hex, hookAddress?: Address): Promise<PoolDynamicConfigVars>;
|
|
215
|
+
getPoolFeeState(poolId: Hex, hookAddress?: Address): Promise<PoolDynamicFeeVars>;
|
|
216
|
+
getPoolCreationTimestamp(poolId: Hex, hookAddress?: Address): Promise<bigint>;
|
|
217
|
+
isLiquidToken0(poolId: Hex, hookAddress?: Address): Promise<boolean>;
|
|
218
|
+
getAvailableFees(feeOwner: Address, tokenAddress: Address): Promise<bigint>;
|
|
219
|
+
getFeesToClaim(feeOwner: Address, tokenAddress: Address): Promise<bigint>;
|
|
220
|
+
claimFees(feeOwner: Address, tokenAddress: Address): Promise<Hash>;
|
|
221
|
+
getVaultAllocation(tokenAddress: Address): Promise<VaultAllocation>;
|
|
222
|
+
getVaultClaimable(tokenAddress: Address): Promise<bigint>;
|
|
223
|
+
claimVault(tokenAddress: Address): Promise<Hash>;
|
|
224
|
+
isFactoryDeprecated(): Promise<boolean>;
|
|
225
|
+
isLockerEnabled(locker: Address, hook: Address): Promise<boolean>;
|
|
226
|
+
getAuctionState(poolId: Hex): Promise<SniperAuctionState>;
|
|
227
|
+
getAuctionFeeConfig(poolId: Hex): Promise<SniperAuctionFeeConfig>;
|
|
228
|
+
getAuctionDecayStartTime(poolId: Hex): Promise<bigint>;
|
|
229
|
+
getAuctionMaxRounds(): Promise<bigint>;
|
|
230
|
+
getAuctionGasPriceForBid(auctionGasPeg: bigint, desiredBidAmount: bigint): Promise<bigint>;
|
|
231
|
+
getAirdropInfo(tokenAddress: Address): Promise<AirdropInfo>;
|
|
232
|
+
getAirdropClaimable(tokenAddress: Address, recipient: Address, allocatedAmount: bigint): Promise<bigint>;
|
|
233
|
+
claimAirdrop(tokenAddress: Address, recipient: Address, allocatedAmount: bigint, proof: Hex[]): Promise<Hash>;
|
|
234
|
+
getTokenRewards(tokenAddress: Address, lockerAddress?: Address): Promise<TokenRewardInfo>;
|
|
235
|
+
collectRewards(tokenAddress: Address, lockerAddress?: Address): Promise<Hash>;
|
|
236
|
+
collectRewardsWithoutUnlock(tokenAddress: Address, lockerAddress?: Address): Promise<Hash>;
|
|
237
|
+
updateRewardRecipient(tokenAddress: Address, rewardIndex: bigint, newRecipient: Address, lockerAddress?: Address): Promise<Hash>;
|
|
238
|
+
isExtensionEnabled(extensionAddress: Address): Promise<boolean>;
|
|
239
|
+
getMevBlockDelay(): Promise<bigint>;
|
|
240
|
+
getPoolUnlockTime(poolId: Hex): Promise<bigint>;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare const ADDRESSES: {
|
|
244
|
+
readonly FACTORY: Address;
|
|
245
|
+
readonly POOL_EXTENSION_ALLOWLIST: Address;
|
|
246
|
+
readonly FEE_LOCKER: Address;
|
|
247
|
+
readonly LP_LOCKER: Address;
|
|
248
|
+
readonly LP_LOCKER_FEE_CONVERSION: Address;
|
|
249
|
+
readonly VAULT: Address;
|
|
250
|
+
readonly HOOK_DYNAMIC_FEE_V2: Address;
|
|
251
|
+
readonly HOOK_STATIC_FEE_V2: Address;
|
|
252
|
+
readonly SNIPER_AUCTION_V2: Address;
|
|
253
|
+
readonly SNIPER_UTIL_V2: Address;
|
|
254
|
+
readonly MEV_BLOCK_DELAY: Address;
|
|
255
|
+
readonly AIRDROP_V2: Address;
|
|
256
|
+
readonly UNIV4_ETH_DEV_BUY: Address;
|
|
257
|
+
readonly LIQUID_DEPLOYER_LIB: Address;
|
|
258
|
+
};
|
|
259
|
+
declare const EXTERNAL: {
|
|
260
|
+
readonly POOL_MANAGER: Address;
|
|
261
|
+
readonly WETH: Address;
|
|
262
|
+
readonly UNIVERSAL_ROUTER: Address;
|
|
263
|
+
readonly PERMIT2: Address;
|
|
264
|
+
};
|
|
265
|
+
declare const FEE: {
|
|
266
|
+
/** Fee denominator used by Uniswap v4 (1,000,000 = 100%) */
|
|
267
|
+
readonly DENOMINATOR: 1000000;
|
|
268
|
+
/** Protocol fee numerator: 200,000 / 1,000,000 = 20% of LP fees */
|
|
269
|
+
readonly PROTOCOL_FEE_NUMERATOR: 200000;
|
|
270
|
+
/** Max LP fee: 10% (100,000 / 1,000,000) */
|
|
271
|
+
readonly MAX_LP_FEE: 100000;
|
|
272
|
+
/** Max MEV fee: 80% (800,000 / 1,000,000) */
|
|
273
|
+
readonly MAX_MEV_FEE: 800000;
|
|
274
|
+
/** BPS denominator for token supply splits */
|
|
275
|
+
readonly BPS: 10000;
|
|
276
|
+
};
|
|
277
|
+
declare const TOKEN: {
|
|
278
|
+
/** Total supply for every token: 100 billion with 18 decimals */
|
|
279
|
+
readonly SUPPLY: bigint;
|
|
280
|
+
readonly DECIMALS: 18;
|
|
281
|
+
readonly MAX_EXTENSIONS: 10;
|
|
282
|
+
readonly MAX_EXTENSION_BPS: 9000;
|
|
283
|
+
};
|
|
284
|
+
declare const DEFAULT_CHAIN: {
|
|
285
|
+
blockExplorers: {
|
|
286
|
+
readonly default: {
|
|
287
|
+
readonly name: "Basescan";
|
|
288
|
+
readonly url: "https://basescan.org";
|
|
289
|
+
readonly apiUrl: "https://api.basescan.org/api";
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
blockTime: 2000;
|
|
293
|
+
contracts: {
|
|
294
|
+
readonly disputeGameFactory: {
|
|
295
|
+
readonly 1: {
|
|
296
|
+
readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
readonly l2OutputOracle: {
|
|
300
|
+
readonly 1: {
|
|
301
|
+
readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly multicall3: {
|
|
305
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
306
|
+
readonly blockCreated: 5022;
|
|
307
|
+
};
|
|
308
|
+
readonly portal: {
|
|
309
|
+
readonly 1: {
|
|
310
|
+
readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
|
|
311
|
+
readonly blockCreated: 17482143;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
readonly l1StandardBridge: {
|
|
315
|
+
readonly 1: {
|
|
316
|
+
readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
|
|
317
|
+
readonly blockCreated: 17482143;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
readonly gasPriceOracle: {
|
|
321
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
322
|
+
};
|
|
323
|
+
readonly l1Block: {
|
|
324
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
325
|
+
};
|
|
326
|
+
readonly l2CrossDomainMessenger: {
|
|
327
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
328
|
+
};
|
|
329
|
+
readonly l2Erc721Bridge: {
|
|
330
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
331
|
+
};
|
|
332
|
+
readonly l2StandardBridge: {
|
|
333
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
334
|
+
};
|
|
335
|
+
readonly l2ToL1MessagePasser: {
|
|
336
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
ensTlds?: readonly string[] | undefined;
|
|
340
|
+
id: 8453;
|
|
341
|
+
name: "Base";
|
|
342
|
+
nativeCurrency: {
|
|
343
|
+
readonly name: "Ether";
|
|
344
|
+
readonly symbol: "ETH";
|
|
345
|
+
readonly decimals: 18;
|
|
346
|
+
};
|
|
347
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
348
|
+
rpcUrls: {
|
|
349
|
+
readonly default: {
|
|
350
|
+
readonly http: readonly ["https://mainnet.base.org"];
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
sourceId: 1;
|
|
354
|
+
testnet?: boolean | undefined | undefined;
|
|
355
|
+
custom?: Record<string, unknown> | undefined;
|
|
356
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
357
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
358
|
+
formatters: {
|
|
359
|
+
readonly block: {
|
|
360
|
+
exclude: [] | undefined;
|
|
361
|
+
format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
|
|
362
|
+
baseFeePerGas: bigint | null;
|
|
363
|
+
blobGasUsed: bigint;
|
|
364
|
+
difficulty: bigint;
|
|
365
|
+
excessBlobGas: bigint;
|
|
366
|
+
extraData: viem.Hex;
|
|
367
|
+
gasLimit: bigint;
|
|
368
|
+
gasUsed: bigint;
|
|
369
|
+
hash: `0x${string}` | null;
|
|
370
|
+
logsBloom: `0x${string}` | null;
|
|
371
|
+
miner: abitype.Address;
|
|
372
|
+
mixHash: viem.Hash;
|
|
373
|
+
nonce: `0x${string}` | null;
|
|
374
|
+
number: bigint | null;
|
|
375
|
+
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
376
|
+
parentHash: viem.Hash;
|
|
377
|
+
receiptsRoot: viem.Hex;
|
|
378
|
+
sealFields: viem.Hex[];
|
|
379
|
+
sha3Uncles: viem.Hash;
|
|
380
|
+
size: bigint;
|
|
381
|
+
stateRoot: viem.Hash;
|
|
382
|
+
timestamp: bigint;
|
|
383
|
+
totalDifficulty: bigint | null;
|
|
384
|
+
transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
|
|
385
|
+
transactionsRoot: viem.Hash;
|
|
386
|
+
uncles: viem.Hash[];
|
|
387
|
+
withdrawals?: viem.Withdrawal[] | undefined | undefined;
|
|
388
|
+
withdrawalsRoot?: `0x${string}` | undefined;
|
|
389
|
+
} & {};
|
|
390
|
+
type: "block";
|
|
391
|
+
};
|
|
392
|
+
readonly transaction: {
|
|
393
|
+
exclude: [] | undefined;
|
|
394
|
+
format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
395
|
+
blockHash: `0x${string}` | null;
|
|
396
|
+
blockNumber: bigint | null;
|
|
397
|
+
from: abitype.Address;
|
|
398
|
+
gas: bigint;
|
|
399
|
+
hash: viem.Hash;
|
|
400
|
+
input: viem.Hex;
|
|
401
|
+
nonce: number;
|
|
402
|
+
r: viem.Hex;
|
|
403
|
+
s: viem.Hex;
|
|
404
|
+
to: abitype.Address | null;
|
|
405
|
+
transactionIndex: number | null;
|
|
406
|
+
typeHex: viem.Hex | null;
|
|
407
|
+
v: bigint;
|
|
408
|
+
value: bigint;
|
|
409
|
+
yParity: number;
|
|
410
|
+
gasPrice?: undefined | undefined;
|
|
411
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
412
|
+
maxFeePerGas: bigint;
|
|
413
|
+
maxPriorityFeePerGas: bigint;
|
|
414
|
+
isSystemTx?: boolean;
|
|
415
|
+
mint?: bigint | undefined | undefined;
|
|
416
|
+
sourceHash: viem.Hex;
|
|
417
|
+
type: "deposit";
|
|
418
|
+
} | {
|
|
419
|
+
r: viem.Hex;
|
|
420
|
+
s: viem.Hex;
|
|
421
|
+
v: bigint;
|
|
422
|
+
to: abitype.Address | null;
|
|
423
|
+
from: abitype.Address;
|
|
424
|
+
gas: bigint;
|
|
425
|
+
nonce: number;
|
|
426
|
+
value: bigint;
|
|
427
|
+
blockHash: `0x${string}` | null;
|
|
428
|
+
blockNumber: bigint | null;
|
|
429
|
+
hash: viem.Hash;
|
|
430
|
+
input: viem.Hex;
|
|
431
|
+
transactionIndex: number | null;
|
|
432
|
+
typeHex: viem.Hex | null;
|
|
433
|
+
accessList?: undefined | undefined;
|
|
434
|
+
authorizationList?: undefined | undefined;
|
|
435
|
+
blobVersionedHashes?: undefined | undefined;
|
|
436
|
+
chainId?: number | undefined;
|
|
437
|
+
yParity?: undefined | undefined;
|
|
438
|
+
type: "legacy";
|
|
439
|
+
gasPrice: bigint;
|
|
440
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
441
|
+
maxFeePerGas?: undefined | undefined;
|
|
442
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
443
|
+
isSystemTx?: undefined | undefined;
|
|
444
|
+
mint?: undefined | undefined;
|
|
445
|
+
sourceHash?: undefined | undefined;
|
|
446
|
+
} | {
|
|
447
|
+
blockHash: `0x${string}` | null;
|
|
448
|
+
blockNumber: bigint | null;
|
|
449
|
+
from: abitype.Address;
|
|
450
|
+
gas: bigint;
|
|
451
|
+
hash: viem.Hash;
|
|
452
|
+
input: viem.Hex;
|
|
453
|
+
nonce: number;
|
|
454
|
+
r: viem.Hex;
|
|
455
|
+
s: viem.Hex;
|
|
456
|
+
to: abitype.Address | null;
|
|
457
|
+
transactionIndex: number | null;
|
|
458
|
+
typeHex: viem.Hex | null;
|
|
459
|
+
v: bigint;
|
|
460
|
+
value: bigint;
|
|
461
|
+
yParity: number;
|
|
462
|
+
accessList: viem.AccessList;
|
|
463
|
+
authorizationList?: undefined | undefined;
|
|
464
|
+
blobVersionedHashes?: undefined | undefined;
|
|
465
|
+
chainId: number;
|
|
466
|
+
type: "eip2930";
|
|
467
|
+
gasPrice: bigint;
|
|
468
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
469
|
+
maxFeePerGas?: undefined | undefined;
|
|
470
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
471
|
+
isSystemTx?: undefined | undefined;
|
|
472
|
+
mint?: undefined | undefined;
|
|
473
|
+
sourceHash?: undefined | undefined;
|
|
474
|
+
} | {
|
|
475
|
+
blockHash: `0x${string}` | null;
|
|
476
|
+
blockNumber: bigint | null;
|
|
477
|
+
from: abitype.Address;
|
|
478
|
+
gas: bigint;
|
|
479
|
+
hash: viem.Hash;
|
|
480
|
+
input: viem.Hex;
|
|
481
|
+
nonce: number;
|
|
482
|
+
r: viem.Hex;
|
|
483
|
+
s: viem.Hex;
|
|
484
|
+
to: abitype.Address | null;
|
|
485
|
+
transactionIndex: number | null;
|
|
486
|
+
typeHex: viem.Hex | null;
|
|
487
|
+
v: bigint;
|
|
488
|
+
value: bigint;
|
|
489
|
+
yParity: number;
|
|
490
|
+
accessList: viem.AccessList;
|
|
491
|
+
authorizationList?: undefined | undefined;
|
|
492
|
+
blobVersionedHashes?: undefined | undefined;
|
|
493
|
+
chainId: number;
|
|
494
|
+
type: "eip1559";
|
|
495
|
+
gasPrice?: undefined | undefined;
|
|
496
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
497
|
+
maxFeePerGas: bigint;
|
|
498
|
+
maxPriorityFeePerGas: bigint;
|
|
499
|
+
isSystemTx?: undefined | undefined;
|
|
500
|
+
mint?: undefined | undefined;
|
|
501
|
+
sourceHash?: undefined | undefined;
|
|
502
|
+
} | {
|
|
503
|
+
blockHash: `0x${string}` | null;
|
|
504
|
+
blockNumber: bigint | null;
|
|
505
|
+
from: abitype.Address;
|
|
506
|
+
gas: bigint;
|
|
507
|
+
hash: viem.Hash;
|
|
508
|
+
input: viem.Hex;
|
|
509
|
+
nonce: number;
|
|
510
|
+
r: viem.Hex;
|
|
511
|
+
s: viem.Hex;
|
|
512
|
+
to: abitype.Address | null;
|
|
513
|
+
transactionIndex: number | null;
|
|
514
|
+
typeHex: viem.Hex | null;
|
|
515
|
+
v: bigint;
|
|
516
|
+
value: bigint;
|
|
517
|
+
yParity: number;
|
|
518
|
+
accessList: viem.AccessList;
|
|
519
|
+
authorizationList?: undefined | undefined;
|
|
520
|
+
blobVersionedHashes: readonly viem.Hex[];
|
|
521
|
+
chainId: number;
|
|
522
|
+
type: "eip4844";
|
|
523
|
+
gasPrice?: undefined | undefined;
|
|
524
|
+
maxFeePerBlobGas: bigint;
|
|
525
|
+
maxFeePerGas: bigint;
|
|
526
|
+
maxPriorityFeePerGas: bigint;
|
|
527
|
+
isSystemTx?: undefined | undefined;
|
|
528
|
+
mint?: undefined | undefined;
|
|
529
|
+
sourceHash?: undefined | undefined;
|
|
530
|
+
} | {
|
|
531
|
+
blockHash: `0x${string}` | null;
|
|
532
|
+
blockNumber: bigint | null;
|
|
533
|
+
from: abitype.Address;
|
|
534
|
+
gas: bigint;
|
|
535
|
+
hash: viem.Hash;
|
|
536
|
+
input: viem.Hex;
|
|
537
|
+
nonce: number;
|
|
538
|
+
r: viem.Hex;
|
|
539
|
+
s: viem.Hex;
|
|
540
|
+
to: abitype.Address | null;
|
|
541
|
+
transactionIndex: number | null;
|
|
542
|
+
typeHex: viem.Hex | null;
|
|
543
|
+
v: bigint;
|
|
544
|
+
value: bigint;
|
|
545
|
+
yParity: number;
|
|
546
|
+
accessList: viem.AccessList;
|
|
547
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
548
|
+
blobVersionedHashes?: undefined | undefined;
|
|
549
|
+
chainId: number;
|
|
550
|
+
type: "eip7702";
|
|
551
|
+
gasPrice?: undefined | undefined;
|
|
552
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
553
|
+
maxFeePerGas: bigint;
|
|
554
|
+
maxPriorityFeePerGas: bigint;
|
|
555
|
+
isSystemTx?: undefined | undefined;
|
|
556
|
+
mint?: undefined | undefined;
|
|
557
|
+
sourceHash?: undefined | undefined;
|
|
558
|
+
}) & {};
|
|
559
|
+
type: "transaction";
|
|
560
|
+
};
|
|
561
|
+
readonly transactionReceipt: {
|
|
562
|
+
exclude: [] | undefined;
|
|
563
|
+
format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
564
|
+
blobGasPrice?: bigint | undefined;
|
|
565
|
+
blobGasUsed?: bigint | undefined;
|
|
566
|
+
blockHash: viem.Hash;
|
|
567
|
+
blockNumber: bigint;
|
|
568
|
+
blockTimestamp?: bigint | undefined;
|
|
569
|
+
contractAddress: abitype.Address | null | undefined;
|
|
570
|
+
cumulativeGasUsed: bigint;
|
|
571
|
+
effectiveGasPrice: bigint;
|
|
572
|
+
from: abitype.Address;
|
|
573
|
+
gasUsed: bigint;
|
|
574
|
+
logs: viem.Log<bigint, number, false>[];
|
|
575
|
+
logsBloom: viem.Hex;
|
|
576
|
+
root?: `0x${string}` | undefined;
|
|
577
|
+
status: "success" | "reverted";
|
|
578
|
+
to: abitype.Address | null;
|
|
579
|
+
transactionHash: viem.Hash;
|
|
580
|
+
transactionIndex: number;
|
|
581
|
+
type: viem.TransactionType;
|
|
582
|
+
l1GasPrice: bigint | null;
|
|
583
|
+
l1GasUsed: bigint | null;
|
|
584
|
+
l1Fee: bigint | null;
|
|
585
|
+
l1FeeScalar: number | null;
|
|
586
|
+
} & {};
|
|
587
|
+
type: "transactionReceipt";
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
591
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
592
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
593
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
594
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
595
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
596
|
+
}] | undefined;
|
|
597
|
+
serializers: {
|
|
598
|
+
readonly transaction: typeof viem_chains.serializeTransactionOpStack;
|
|
599
|
+
};
|
|
600
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
601
|
+
};
|
|
602
|
+
declare const DEFAULT_CHAIN_ID = 8453;
|
|
603
|
+
|
|
604
|
+
declare const LiquidFactoryAbi: readonly [{
|
|
605
|
+
readonly type: "function";
|
|
606
|
+
readonly name: "deployToken";
|
|
607
|
+
readonly inputs: readonly [{
|
|
608
|
+
readonly name: "deploymentConfig";
|
|
609
|
+
readonly type: "tuple";
|
|
610
|
+
readonly components: readonly [{
|
|
611
|
+
readonly name: "tokenConfig";
|
|
612
|
+
readonly type: "tuple";
|
|
613
|
+
readonly components: readonly [{
|
|
614
|
+
readonly name: "tokenAdmin";
|
|
615
|
+
readonly type: "address";
|
|
616
|
+
}, {
|
|
617
|
+
readonly name: "name";
|
|
618
|
+
readonly type: "string";
|
|
619
|
+
}, {
|
|
620
|
+
readonly name: "symbol";
|
|
621
|
+
readonly type: "string";
|
|
622
|
+
}, {
|
|
623
|
+
readonly name: "salt";
|
|
624
|
+
readonly type: "bytes32";
|
|
625
|
+
}, {
|
|
626
|
+
readonly name: "image";
|
|
627
|
+
readonly type: "string";
|
|
628
|
+
}, {
|
|
629
|
+
readonly name: "metadata";
|
|
630
|
+
readonly type: "string";
|
|
631
|
+
}, {
|
|
632
|
+
readonly name: "context";
|
|
633
|
+
readonly type: "string";
|
|
634
|
+
}, {
|
|
635
|
+
readonly name: "originatingChainId";
|
|
636
|
+
readonly type: "uint256";
|
|
637
|
+
}];
|
|
638
|
+
}, {
|
|
639
|
+
readonly name: "poolConfig";
|
|
640
|
+
readonly type: "tuple";
|
|
641
|
+
readonly components: readonly [{
|
|
642
|
+
readonly name: "hook";
|
|
643
|
+
readonly type: "address";
|
|
644
|
+
}, {
|
|
645
|
+
readonly name: "pairedToken";
|
|
646
|
+
readonly type: "address";
|
|
647
|
+
}, {
|
|
648
|
+
readonly name: "tickIfToken0IsLiquid";
|
|
649
|
+
readonly type: "int24";
|
|
650
|
+
}, {
|
|
651
|
+
readonly name: "tickSpacing";
|
|
652
|
+
readonly type: "int24";
|
|
653
|
+
}, {
|
|
654
|
+
readonly name: "poolData";
|
|
655
|
+
readonly type: "bytes";
|
|
656
|
+
}];
|
|
657
|
+
}, {
|
|
658
|
+
readonly name: "lockerConfig";
|
|
659
|
+
readonly type: "tuple";
|
|
660
|
+
readonly components: readonly [{
|
|
661
|
+
readonly name: "locker";
|
|
662
|
+
readonly type: "address";
|
|
663
|
+
}, {
|
|
664
|
+
readonly name: "rewardAdmins";
|
|
665
|
+
readonly type: "address[]";
|
|
666
|
+
}, {
|
|
667
|
+
readonly name: "rewardRecipients";
|
|
668
|
+
readonly type: "address[]";
|
|
669
|
+
}, {
|
|
670
|
+
readonly name: "rewardBps";
|
|
671
|
+
readonly type: "uint16[]";
|
|
672
|
+
}, {
|
|
673
|
+
readonly name: "tickLower";
|
|
674
|
+
readonly type: "int24[]";
|
|
675
|
+
}, {
|
|
676
|
+
readonly name: "tickUpper";
|
|
677
|
+
readonly type: "int24[]";
|
|
678
|
+
}, {
|
|
679
|
+
readonly name: "positionBps";
|
|
680
|
+
readonly type: "uint16[]";
|
|
681
|
+
}, {
|
|
682
|
+
readonly name: "lockerData";
|
|
683
|
+
readonly type: "bytes";
|
|
684
|
+
}];
|
|
685
|
+
}, {
|
|
686
|
+
readonly name: "mevModuleConfig";
|
|
687
|
+
readonly type: "tuple";
|
|
688
|
+
readonly components: readonly [{
|
|
689
|
+
readonly name: "mevModule";
|
|
690
|
+
readonly type: "address";
|
|
691
|
+
}, {
|
|
692
|
+
readonly name: "mevModuleData";
|
|
693
|
+
readonly type: "bytes";
|
|
694
|
+
}];
|
|
695
|
+
}, {
|
|
696
|
+
readonly name: "extensionConfigs";
|
|
697
|
+
readonly type: "tuple[]";
|
|
698
|
+
readonly components: readonly [{
|
|
699
|
+
readonly name: "extension";
|
|
700
|
+
readonly type: "address";
|
|
701
|
+
}, {
|
|
702
|
+
readonly name: "msgValue";
|
|
703
|
+
readonly type: "uint256";
|
|
704
|
+
}, {
|
|
705
|
+
readonly name: "extensionBps";
|
|
706
|
+
readonly type: "uint16";
|
|
707
|
+
}, {
|
|
708
|
+
readonly name: "extensionData";
|
|
709
|
+
readonly type: "bytes";
|
|
710
|
+
}];
|
|
711
|
+
}];
|
|
712
|
+
}];
|
|
713
|
+
readonly outputs: readonly [{
|
|
714
|
+
readonly name: "tokenAddress";
|
|
715
|
+
readonly type: "address";
|
|
716
|
+
}];
|
|
717
|
+
readonly stateMutability: "payable";
|
|
718
|
+
}, {
|
|
719
|
+
readonly type: "function";
|
|
720
|
+
readonly name: "tokenDeploymentInfo";
|
|
721
|
+
readonly inputs: readonly [{
|
|
722
|
+
readonly name: "token";
|
|
723
|
+
readonly type: "address";
|
|
724
|
+
}];
|
|
725
|
+
readonly outputs: readonly [{
|
|
726
|
+
readonly name: "";
|
|
727
|
+
readonly type: "tuple";
|
|
728
|
+
readonly components: readonly [{
|
|
729
|
+
readonly name: "token";
|
|
730
|
+
readonly type: "address";
|
|
731
|
+
}, {
|
|
732
|
+
readonly name: "hook";
|
|
733
|
+
readonly type: "address";
|
|
734
|
+
}, {
|
|
735
|
+
readonly name: "locker";
|
|
736
|
+
readonly type: "address";
|
|
737
|
+
}, {
|
|
738
|
+
readonly name: "extensions";
|
|
739
|
+
readonly type: "address[]";
|
|
740
|
+
}];
|
|
741
|
+
}];
|
|
742
|
+
readonly stateMutability: "view";
|
|
743
|
+
}, {
|
|
744
|
+
readonly type: "function";
|
|
745
|
+
readonly name: "deploymentInfoForToken";
|
|
746
|
+
readonly inputs: readonly [{
|
|
747
|
+
readonly name: "token";
|
|
748
|
+
readonly type: "address";
|
|
749
|
+
}];
|
|
750
|
+
readonly outputs: readonly [{
|
|
751
|
+
readonly name: "token";
|
|
752
|
+
readonly type: "address";
|
|
753
|
+
}, {
|
|
754
|
+
readonly name: "hook";
|
|
755
|
+
readonly type: "address";
|
|
756
|
+
}, {
|
|
757
|
+
readonly name: "locker";
|
|
758
|
+
readonly type: "address";
|
|
759
|
+
}];
|
|
760
|
+
readonly stateMutability: "view";
|
|
761
|
+
}, {
|
|
762
|
+
readonly type: "function";
|
|
763
|
+
readonly name: "deprecated";
|
|
764
|
+
readonly inputs: readonly [];
|
|
765
|
+
readonly outputs: readonly [{
|
|
766
|
+
readonly name: "";
|
|
767
|
+
readonly type: "bool";
|
|
768
|
+
}];
|
|
769
|
+
readonly stateMutability: "view";
|
|
770
|
+
}, {
|
|
771
|
+
readonly type: "function";
|
|
772
|
+
readonly name: "TOKEN_SUPPLY";
|
|
773
|
+
readonly inputs: readonly [];
|
|
774
|
+
readonly outputs: readonly [{
|
|
775
|
+
readonly name: "";
|
|
776
|
+
readonly type: "uint256";
|
|
777
|
+
}];
|
|
778
|
+
readonly stateMutability: "view";
|
|
779
|
+
}, {
|
|
780
|
+
readonly type: "function";
|
|
781
|
+
readonly name: "BPS";
|
|
782
|
+
readonly inputs: readonly [];
|
|
783
|
+
readonly outputs: readonly [{
|
|
784
|
+
readonly name: "";
|
|
785
|
+
readonly type: "uint256";
|
|
786
|
+
}];
|
|
787
|
+
readonly stateMutability: "view";
|
|
788
|
+
}, {
|
|
789
|
+
readonly type: "function";
|
|
790
|
+
readonly name: "teamFeeRecipient";
|
|
791
|
+
readonly inputs: readonly [];
|
|
792
|
+
readonly outputs: readonly [{
|
|
793
|
+
readonly name: "";
|
|
794
|
+
readonly type: "address";
|
|
795
|
+
}];
|
|
796
|
+
readonly stateMutability: "view";
|
|
797
|
+
}, {
|
|
798
|
+
readonly type: "function";
|
|
799
|
+
readonly name: "enabledLockers";
|
|
800
|
+
readonly inputs: readonly [{
|
|
801
|
+
readonly name: "locker";
|
|
802
|
+
readonly type: "address";
|
|
803
|
+
}, {
|
|
804
|
+
readonly name: "hook";
|
|
805
|
+
readonly type: "address";
|
|
806
|
+
}];
|
|
807
|
+
readonly outputs: readonly [{
|
|
808
|
+
readonly name: "enabled";
|
|
809
|
+
readonly type: "bool";
|
|
810
|
+
}];
|
|
811
|
+
readonly stateMutability: "view";
|
|
812
|
+
}, {
|
|
813
|
+
readonly type: "event";
|
|
814
|
+
readonly name: "TokenCreated";
|
|
815
|
+
readonly inputs: readonly [{
|
|
816
|
+
readonly name: "msgSender";
|
|
817
|
+
readonly type: "address";
|
|
818
|
+
readonly indexed: false;
|
|
819
|
+
}, {
|
|
820
|
+
readonly name: "tokenAddress";
|
|
821
|
+
readonly type: "address";
|
|
822
|
+
readonly indexed: true;
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "tokenAdmin";
|
|
825
|
+
readonly type: "address";
|
|
826
|
+
readonly indexed: true;
|
|
827
|
+
}, {
|
|
828
|
+
readonly name: "tokenImage";
|
|
829
|
+
readonly type: "string";
|
|
830
|
+
readonly indexed: false;
|
|
831
|
+
}, {
|
|
832
|
+
readonly name: "tokenName";
|
|
833
|
+
readonly type: "string";
|
|
834
|
+
readonly indexed: false;
|
|
835
|
+
}, {
|
|
836
|
+
readonly name: "tokenSymbol";
|
|
837
|
+
readonly type: "string";
|
|
838
|
+
readonly indexed: false;
|
|
839
|
+
}, {
|
|
840
|
+
readonly name: "tokenMetadata";
|
|
841
|
+
readonly type: "string";
|
|
842
|
+
readonly indexed: false;
|
|
843
|
+
}, {
|
|
844
|
+
readonly name: "tokenContext";
|
|
845
|
+
readonly type: "string";
|
|
846
|
+
readonly indexed: false;
|
|
847
|
+
}, {
|
|
848
|
+
readonly name: "startingTick";
|
|
849
|
+
readonly type: "int24";
|
|
850
|
+
readonly indexed: false;
|
|
851
|
+
}, {
|
|
852
|
+
readonly name: "poolHook";
|
|
853
|
+
readonly type: "address";
|
|
854
|
+
readonly indexed: false;
|
|
855
|
+
}, {
|
|
856
|
+
readonly name: "poolId";
|
|
857
|
+
readonly type: "bytes32";
|
|
858
|
+
readonly indexed: false;
|
|
859
|
+
}, {
|
|
860
|
+
readonly name: "pairedToken";
|
|
861
|
+
readonly type: "address";
|
|
862
|
+
readonly indexed: false;
|
|
863
|
+
}, {
|
|
864
|
+
readonly name: "locker";
|
|
865
|
+
readonly type: "address";
|
|
866
|
+
readonly indexed: false;
|
|
867
|
+
}, {
|
|
868
|
+
readonly name: "mevModule";
|
|
869
|
+
readonly type: "address";
|
|
870
|
+
readonly indexed: false;
|
|
871
|
+
}, {
|
|
872
|
+
readonly name: "extensionsSupply";
|
|
873
|
+
readonly type: "uint256";
|
|
874
|
+
readonly indexed: false;
|
|
875
|
+
}, {
|
|
876
|
+
readonly name: "extensions";
|
|
877
|
+
readonly type: "address[]";
|
|
878
|
+
readonly indexed: false;
|
|
879
|
+
}];
|
|
880
|
+
readonly anonymous: false;
|
|
881
|
+
}];
|
|
882
|
+
|
|
883
|
+
declare const LiquidFeeLockerAbi: readonly [{
|
|
884
|
+
readonly type: "function";
|
|
885
|
+
readonly name: "availableFees";
|
|
886
|
+
readonly inputs: readonly [{
|
|
887
|
+
readonly name: "feeOwner";
|
|
888
|
+
readonly type: "address";
|
|
889
|
+
}, {
|
|
890
|
+
readonly name: "token";
|
|
891
|
+
readonly type: "address";
|
|
892
|
+
}];
|
|
893
|
+
readonly outputs: readonly [{
|
|
894
|
+
readonly name: "";
|
|
895
|
+
readonly type: "uint256";
|
|
896
|
+
}];
|
|
897
|
+
readonly stateMutability: "view";
|
|
898
|
+
}, {
|
|
899
|
+
readonly type: "function";
|
|
900
|
+
readonly name: "feesToClaim";
|
|
901
|
+
readonly inputs: readonly [{
|
|
902
|
+
readonly name: "feeOwner";
|
|
903
|
+
readonly type: "address";
|
|
904
|
+
}, {
|
|
905
|
+
readonly name: "token";
|
|
906
|
+
readonly type: "address";
|
|
907
|
+
}];
|
|
908
|
+
readonly outputs: readonly [{
|
|
909
|
+
readonly name: "balance";
|
|
910
|
+
readonly type: "uint256";
|
|
911
|
+
}];
|
|
912
|
+
readonly stateMutability: "view";
|
|
913
|
+
}, {
|
|
914
|
+
readonly type: "function";
|
|
915
|
+
readonly name: "claim";
|
|
916
|
+
readonly inputs: readonly [{
|
|
917
|
+
readonly name: "feeOwner";
|
|
918
|
+
readonly type: "address";
|
|
919
|
+
}, {
|
|
920
|
+
readonly name: "token";
|
|
921
|
+
readonly type: "address";
|
|
922
|
+
}];
|
|
923
|
+
readonly outputs: readonly [];
|
|
924
|
+
readonly stateMutability: "nonpayable";
|
|
925
|
+
}];
|
|
926
|
+
|
|
927
|
+
declare const LiquidHookDynamicFeeV2Abi: readonly [{
|
|
928
|
+
readonly type: "function";
|
|
929
|
+
readonly name: "liquidIsToken0";
|
|
930
|
+
readonly inputs: readonly [{
|
|
931
|
+
readonly name: "";
|
|
932
|
+
readonly type: "bytes32";
|
|
933
|
+
}];
|
|
934
|
+
readonly outputs: readonly [{
|
|
935
|
+
readonly name: "";
|
|
936
|
+
readonly type: "bool";
|
|
937
|
+
}];
|
|
938
|
+
readonly stateMutability: "view";
|
|
939
|
+
}, {
|
|
940
|
+
readonly type: "function";
|
|
941
|
+
readonly name: "poolConfigVars";
|
|
942
|
+
readonly inputs: readonly [{
|
|
943
|
+
readonly name: "poolId";
|
|
944
|
+
readonly type: "bytes32";
|
|
945
|
+
}];
|
|
946
|
+
readonly outputs: readonly [{
|
|
947
|
+
readonly name: "";
|
|
948
|
+
readonly type: "tuple";
|
|
949
|
+
readonly components: readonly [{
|
|
950
|
+
readonly name: "baseFee";
|
|
951
|
+
readonly type: "uint24";
|
|
952
|
+
}, {
|
|
953
|
+
readonly name: "maxLpFee";
|
|
954
|
+
readonly type: "uint24";
|
|
955
|
+
}, {
|
|
956
|
+
readonly name: "referenceTickFilterPeriod";
|
|
957
|
+
readonly type: "uint256";
|
|
958
|
+
}, {
|
|
959
|
+
readonly name: "resetPeriod";
|
|
960
|
+
readonly type: "uint256";
|
|
961
|
+
}, {
|
|
962
|
+
readonly name: "resetTickFilter";
|
|
963
|
+
readonly type: "int24";
|
|
964
|
+
}, {
|
|
965
|
+
readonly name: "feeControlNumerator";
|
|
966
|
+
readonly type: "uint256";
|
|
967
|
+
}, {
|
|
968
|
+
readonly name: "decayFilterBps";
|
|
969
|
+
readonly type: "uint24";
|
|
970
|
+
}];
|
|
971
|
+
}];
|
|
972
|
+
readonly stateMutability: "view";
|
|
973
|
+
}, {
|
|
974
|
+
readonly type: "function";
|
|
975
|
+
readonly name: "poolFeeVars";
|
|
976
|
+
readonly inputs: readonly [{
|
|
977
|
+
readonly name: "poolId";
|
|
978
|
+
readonly type: "bytes32";
|
|
979
|
+
}];
|
|
980
|
+
readonly outputs: readonly [{
|
|
981
|
+
readonly name: "";
|
|
982
|
+
readonly type: "tuple";
|
|
983
|
+
readonly components: readonly [{
|
|
984
|
+
readonly name: "referenceTick";
|
|
985
|
+
readonly type: "int24";
|
|
986
|
+
}, {
|
|
987
|
+
readonly name: "resetTick";
|
|
988
|
+
readonly type: "int24";
|
|
989
|
+
}, {
|
|
990
|
+
readonly name: "resetTickTimestamp";
|
|
991
|
+
readonly type: "uint256";
|
|
992
|
+
}, {
|
|
993
|
+
readonly name: "lastSwapTimestamp";
|
|
994
|
+
readonly type: "uint256";
|
|
995
|
+
}, {
|
|
996
|
+
readonly name: "appliedVR";
|
|
997
|
+
readonly type: "uint24";
|
|
998
|
+
}, {
|
|
999
|
+
readonly name: "prevVA";
|
|
1000
|
+
readonly type: "uint24";
|
|
1001
|
+
}];
|
|
1002
|
+
}];
|
|
1003
|
+
readonly stateMutability: "view";
|
|
1004
|
+
}, {
|
|
1005
|
+
readonly type: "function";
|
|
1006
|
+
readonly name: "poolCreationTimestamp";
|
|
1007
|
+
readonly inputs: readonly [{
|
|
1008
|
+
readonly name: "";
|
|
1009
|
+
readonly type: "bytes32";
|
|
1010
|
+
}];
|
|
1011
|
+
readonly outputs: readonly [{
|
|
1012
|
+
readonly name: "";
|
|
1013
|
+
readonly type: "uint256";
|
|
1014
|
+
}];
|
|
1015
|
+
readonly stateMutability: "view";
|
|
1016
|
+
}, {
|
|
1017
|
+
readonly type: "function";
|
|
1018
|
+
readonly name: "protocolFee";
|
|
1019
|
+
readonly inputs: readonly [];
|
|
1020
|
+
readonly outputs: readonly [{
|
|
1021
|
+
readonly name: "";
|
|
1022
|
+
readonly type: "uint24";
|
|
1023
|
+
}];
|
|
1024
|
+
readonly stateMutability: "view";
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly type: "function";
|
|
1027
|
+
readonly name: "factory";
|
|
1028
|
+
readonly inputs: readonly [];
|
|
1029
|
+
readonly outputs: readonly [{
|
|
1030
|
+
readonly name: "";
|
|
1031
|
+
readonly type: "address";
|
|
1032
|
+
}];
|
|
1033
|
+
readonly stateMutability: "view";
|
|
1034
|
+
}, {
|
|
1035
|
+
readonly type: "function";
|
|
1036
|
+
readonly name: "poolManager";
|
|
1037
|
+
readonly inputs: readonly [];
|
|
1038
|
+
readonly outputs: readonly [{
|
|
1039
|
+
readonly name: "";
|
|
1040
|
+
readonly type: "address";
|
|
1041
|
+
}];
|
|
1042
|
+
readonly stateMutability: "view";
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly type: "function";
|
|
1045
|
+
readonly name: "locker";
|
|
1046
|
+
readonly inputs: readonly [];
|
|
1047
|
+
readonly outputs: readonly [{
|
|
1048
|
+
readonly name: "";
|
|
1049
|
+
readonly type: "address";
|
|
1050
|
+
}];
|
|
1051
|
+
readonly stateMutability: "view";
|
|
1052
|
+
}, {
|
|
1053
|
+
readonly type: "function";
|
|
1054
|
+
readonly name: "mevModule";
|
|
1055
|
+
readonly inputs: readonly [{
|
|
1056
|
+
readonly name: "";
|
|
1057
|
+
readonly type: "bytes32";
|
|
1058
|
+
}];
|
|
1059
|
+
readonly outputs: readonly [{
|
|
1060
|
+
readonly name: "";
|
|
1061
|
+
readonly type: "address";
|
|
1062
|
+
}];
|
|
1063
|
+
readonly stateMutability: "view";
|
|
1064
|
+
}, {
|
|
1065
|
+
readonly type: "function";
|
|
1066
|
+
readonly name: "mevModuleEnabled";
|
|
1067
|
+
readonly inputs: readonly [{
|
|
1068
|
+
readonly name: "";
|
|
1069
|
+
readonly type: "bytes32";
|
|
1070
|
+
}];
|
|
1071
|
+
readonly outputs: readonly [{
|
|
1072
|
+
readonly name: "";
|
|
1073
|
+
readonly type: "bool";
|
|
1074
|
+
}];
|
|
1075
|
+
readonly stateMutability: "view";
|
|
1076
|
+
}];
|
|
1077
|
+
|
|
1078
|
+
declare const LiquidVaultAbi: readonly [{
|
|
1079
|
+
readonly type: "function";
|
|
1080
|
+
readonly name: "allocation";
|
|
1081
|
+
readonly inputs: readonly [{
|
|
1082
|
+
readonly name: "";
|
|
1083
|
+
readonly type: "address";
|
|
1084
|
+
}];
|
|
1085
|
+
readonly outputs: readonly [{
|
|
1086
|
+
readonly name: "token";
|
|
1087
|
+
readonly type: "address";
|
|
1088
|
+
}, {
|
|
1089
|
+
readonly name: "amountTotal";
|
|
1090
|
+
readonly type: "uint256";
|
|
1091
|
+
}, {
|
|
1092
|
+
readonly name: "amountClaimed";
|
|
1093
|
+
readonly type: "uint256";
|
|
1094
|
+
}, {
|
|
1095
|
+
readonly name: "lockupEndTime";
|
|
1096
|
+
readonly type: "uint256";
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly name: "vestingEndTime";
|
|
1099
|
+
readonly type: "uint256";
|
|
1100
|
+
}, {
|
|
1101
|
+
readonly name: "admin";
|
|
1102
|
+
readonly type: "address";
|
|
1103
|
+
}];
|
|
1104
|
+
readonly stateMutability: "view";
|
|
1105
|
+
}, {
|
|
1106
|
+
readonly type: "function";
|
|
1107
|
+
readonly name: "amountAvailableToClaim";
|
|
1108
|
+
readonly inputs: readonly [{
|
|
1109
|
+
readonly name: "token";
|
|
1110
|
+
readonly type: "address";
|
|
1111
|
+
}];
|
|
1112
|
+
readonly outputs: readonly [{
|
|
1113
|
+
readonly name: "";
|
|
1114
|
+
readonly type: "uint256";
|
|
1115
|
+
}];
|
|
1116
|
+
readonly stateMutability: "view";
|
|
1117
|
+
}, {
|
|
1118
|
+
readonly type: "function";
|
|
1119
|
+
readonly name: "claim";
|
|
1120
|
+
readonly inputs: readonly [{
|
|
1121
|
+
readonly name: "token";
|
|
1122
|
+
readonly type: "address";
|
|
1123
|
+
}];
|
|
1124
|
+
readonly outputs: readonly [];
|
|
1125
|
+
readonly stateMutability: "nonpayable";
|
|
1126
|
+
}];
|
|
1127
|
+
|
|
1128
|
+
declare const LiquidSniperAuctionV2Abi: readonly [{
|
|
1129
|
+
readonly type: "function";
|
|
1130
|
+
readonly name: "nextAuctionBlock";
|
|
1131
|
+
readonly inputs: readonly [{
|
|
1132
|
+
readonly name: "poolId";
|
|
1133
|
+
readonly type: "bytes32";
|
|
1134
|
+
}];
|
|
1135
|
+
readonly outputs: readonly [{
|
|
1136
|
+
readonly name: "nextAuctionBlock";
|
|
1137
|
+
readonly type: "uint256";
|
|
1138
|
+
}];
|
|
1139
|
+
readonly stateMutability: "view";
|
|
1140
|
+
}, {
|
|
1141
|
+
readonly type: "function";
|
|
1142
|
+
readonly name: "round";
|
|
1143
|
+
readonly inputs: readonly [{
|
|
1144
|
+
readonly name: "poolId";
|
|
1145
|
+
readonly type: "bytes32";
|
|
1146
|
+
}];
|
|
1147
|
+
readonly outputs: readonly [{
|
|
1148
|
+
readonly name: "round";
|
|
1149
|
+
readonly type: "uint256";
|
|
1150
|
+
}];
|
|
1151
|
+
readonly stateMutability: "view";
|
|
1152
|
+
}, {
|
|
1153
|
+
readonly type: "function";
|
|
1154
|
+
readonly name: "gasPeg";
|
|
1155
|
+
readonly inputs: readonly [{
|
|
1156
|
+
readonly name: "poolId";
|
|
1157
|
+
readonly type: "bytes32";
|
|
1158
|
+
}];
|
|
1159
|
+
readonly outputs: readonly [{
|
|
1160
|
+
readonly name: "gasPeg";
|
|
1161
|
+
readonly type: "uint256";
|
|
1162
|
+
}];
|
|
1163
|
+
readonly stateMutability: "view";
|
|
1164
|
+
}, {
|
|
1165
|
+
readonly type: "function";
|
|
1166
|
+
readonly name: "feeConfig";
|
|
1167
|
+
readonly inputs: readonly [{
|
|
1168
|
+
readonly name: "poolId";
|
|
1169
|
+
readonly type: "bytes32";
|
|
1170
|
+
}];
|
|
1171
|
+
readonly outputs: readonly [{
|
|
1172
|
+
readonly name: "startingFee";
|
|
1173
|
+
readonly type: "uint24";
|
|
1174
|
+
}, {
|
|
1175
|
+
readonly name: "endingFee";
|
|
1176
|
+
readonly type: "uint24";
|
|
1177
|
+
}, {
|
|
1178
|
+
readonly name: "secondsToDecay";
|
|
1179
|
+
readonly type: "uint256";
|
|
1180
|
+
}];
|
|
1181
|
+
readonly stateMutability: "view";
|
|
1182
|
+
}, {
|
|
1183
|
+
readonly type: "function";
|
|
1184
|
+
readonly name: "getFee";
|
|
1185
|
+
readonly inputs: readonly [{
|
|
1186
|
+
readonly name: "poolId";
|
|
1187
|
+
readonly type: "bytes32";
|
|
1188
|
+
}];
|
|
1189
|
+
readonly outputs: readonly [{
|
|
1190
|
+
readonly name: "";
|
|
1191
|
+
readonly type: "uint24";
|
|
1192
|
+
}];
|
|
1193
|
+
readonly stateMutability: "view";
|
|
1194
|
+
}, {
|
|
1195
|
+
readonly type: "function";
|
|
1196
|
+
readonly name: "poolDecayStartTime";
|
|
1197
|
+
readonly inputs: readonly [{
|
|
1198
|
+
readonly name: "poolId";
|
|
1199
|
+
readonly type: "bytes32";
|
|
1200
|
+
}];
|
|
1201
|
+
readonly outputs: readonly [{
|
|
1202
|
+
readonly name: "poolDecayStartTime";
|
|
1203
|
+
readonly type: "uint256";
|
|
1204
|
+
}];
|
|
1205
|
+
readonly stateMutability: "view";
|
|
1206
|
+
}, {
|
|
1207
|
+
readonly type: "function";
|
|
1208
|
+
readonly name: "maxRounds";
|
|
1209
|
+
readonly inputs: readonly [];
|
|
1210
|
+
readonly outputs: readonly [{
|
|
1211
|
+
readonly name: "";
|
|
1212
|
+
readonly type: "uint256";
|
|
1213
|
+
}];
|
|
1214
|
+
readonly stateMutability: "view";
|
|
1215
|
+
}, {
|
|
1216
|
+
readonly type: "function";
|
|
1217
|
+
readonly name: "blocksBetweenAuction";
|
|
1218
|
+
readonly inputs: readonly [];
|
|
1219
|
+
readonly outputs: readonly [{
|
|
1220
|
+
readonly name: "";
|
|
1221
|
+
readonly type: "uint256";
|
|
1222
|
+
}];
|
|
1223
|
+
readonly stateMutability: "view";
|
|
1224
|
+
}, {
|
|
1225
|
+
readonly type: "function";
|
|
1226
|
+
readonly name: "blocksBetweenDeploymentAndFirstAuction";
|
|
1227
|
+
readonly inputs: readonly [];
|
|
1228
|
+
readonly outputs: readonly [{
|
|
1229
|
+
readonly name: "";
|
|
1230
|
+
readonly type: "uint256";
|
|
1231
|
+
}];
|
|
1232
|
+
readonly stateMutability: "view";
|
|
1233
|
+
}, {
|
|
1234
|
+
readonly type: "function";
|
|
1235
|
+
readonly name: "paymentPerGasUnit";
|
|
1236
|
+
readonly inputs: readonly [];
|
|
1237
|
+
readonly outputs: readonly [{
|
|
1238
|
+
readonly name: "";
|
|
1239
|
+
readonly type: "uint256";
|
|
1240
|
+
}];
|
|
1241
|
+
readonly stateMutability: "view";
|
|
1242
|
+
}];
|
|
1243
|
+
|
|
1244
|
+
declare const LiquidSniperUtilV2Abi: readonly [{
|
|
1245
|
+
readonly type: "function";
|
|
1246
|
+
readonly name: "bidInAuction";
|
|
1247
|
+
readonly inputs: readonly [{
|
|
1248
|
+
readonly name: "swapParams";
|
|
1249
|
+
readonly type: "tuple";
|
|
1250
|
+
readonly components: readonly [{
|
|
1251
|
+
readonly name: "poolKey";
|
|
1252
|
+
readonly type: "tuple";
|
|
1253
|
+
readonly components: readonly [{
|
|
1254
|
+
readonly name: "currency0";
|
|
1255
|
+
readonly type: "address";
|
|
1256
|
+
}, {
|
|
1257
|
+
readonly name: "currency1";
|
|
1258
|
+
readonly type: "address";
|
|
1259
|
+
}, {
|
|
1260
|
+
readonly name: "fee";
|
|
1261
|
+
readonly type: "uint24";
|
|
1262
|
+
}, {
|
|
1263
|
+
readonly name: "tickSpacing";
|
|
1264
|
+
readonly type: "int24";
|
|
1265
|
+
}, {
|
|
1266
|
+
readonly name: "hooks";
|
|
1267
|
+
readonly type: "address";
|
|
1268
|
+
}];
|
|
1269
|
+
}, {
|
|
1270
|
+
readonly name: "zeroForOne";
|
|
1271
|
+
readonly type: "bool";
|
|
1272
|
+
}, {
|
|
1273
|
+
readonly name: "amountIn";
|
|
1274
|
+
readonly type: "uint128";
|
|
1275
|
+
}, {
|
|
1276
|
+
readonly name: "amountOutMinimum";
|
|
1277
|
+
readonly type: "uint128";
|
|
1278
|
+
}, {
|
|
1279
|
+
readonly name: "hookData";
|
|
1280
|
+
readonly type: "bytes";
|
|
1281
|
+
}];
|
|
1282
|
+
}, {
|
|
1283
|
+
readonly name: "round";
|
|
1284
|
+
readonly type: "uint256";
|
|
1285
|
+
}];
|
|
1286
|
+
readonly outputs: readonly [];
|
|
1287
|
+
readonly stateMutability: "payable";
|
|
1288
|
+
}, {
|
|
1289
|
+
readonly type: "function";
|
|
1290
|
+
readonly name: "getTxGasPriceForBidAmount";
|
|
1291
|
+
readonly inputs: readonly [{
|
|
1292
|
+
readonly name: "auctionGasPeg";
|
|
1293
|
+
readonly type: "uint256";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly name: "desiredBidAmount";
|
|
1296
|
+
readonly type: "uint256";
|
|
1297
|
+
}];
|
|
1298
|
+
readonly outputs: readonly [{
|
|
1299
|
+
readonly name: "txGasPrice";
|
|
1300
|
+
readonly type: "uint256";
|
|
1301
|
+
}];
|
|
1302
|
+
readonly stateMutability: "view";
|
|
1303
|
+
}];
|
|
1304
|
+
|
|
1305
|
+
declare const LiquidAirdropV2Abi: readonly [{
|
|
1306
|
+
readonly type: "function";
|
|
1307
|
+
readonly name: "airdrops";
|
|
1308
|
+
readonly inputs: readonly [{
|
|
1309
|
+
readonly name: "token";
|
|
1310
|
+
readonly type: "address";
|
|
1311
|
+
}];
|
|
1312
|
+
readonly outputs: readonly [{
|
|
1313
|
+
readonly name: "admin";
|
|
1314
|
+
readonly type: "address";
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly name: "merkleRoot";
|
|
1317
|
+
readonly type: "bytes32";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly name: "totalSupply";
|
|
1320
|
+
readonly type: "uint256";
|
|
1321
|
+
}, {
|
|
1322
|
+
readonly name: "totalClaimed";
|
|
1323
|
+
readonly type: "uint256";
|
|
1324
|
+
}, {
|
|
1325
|
+
readonly name: "lockupEndTime";
|
|
1326
|
+
readonly type: "uint256";
|
|
1327
|
+
}, {
|
|
1328
|
+
readonly name: "vestingEndTime";
|
|
1329
|
+
readonly type: "uint256";
|
|
1330
|
+
}, {
|
|
1331
|
+
readonly name: "adminClaimTime";
|
|
1332
|
+
readonly type: "uint256";
|
|
1333
|
+
}, {
|
|
1334
|
+
readonly name: "adminClaimed";
|
|
1335
|
+
readonly type: "bool";
|
|
1336
|
+
}];
|
|
1337
|
+
readonly stateMutability: "view";
|
|
1338
|
+
}, {
|
|
1339
|
+
readonly type: "function";
|
|
1340
|
+
readonly name: "amountAvailableToClaim";
|
|
1341
|
+
readonly inputs: readonly [{
|
|
1342
|
+
readonly name: "token";
|
|
1343
|
+
readonly type: "address";
|
|
1344
|
+
}, {
|
|
1345
|
+
readonly name: "recipient";
|
|
1346
|
+
readonly type: "address";
|
|
1347
|
+
}, {
|
|
1348
|
+
readonly name: "allocatedAmount";
|
|
1349
|
+
readonly type: "uint256";
|
|
1350
|
+
}];
|
|
1351
|
+
readonly outputs: readonly [{
|
|
1352
|
+
readonly name: "";
|
|
1353
|
+
readonly type: "uint256";
|
|
1354
|
+
}];
|
|
1355
|
+
readonly stateMutability: "view";
|
|
1356
|
+
}, {
|
|
1357
|
+
readonly type: "function";
|
|
1358
|
+
readonly name: "claim";
|
|
1359
|
+
readonly inputs: readonly [{
|
|
1360
|
+
readonly name: "token";
|
|
1361
|
+
readonly type: "address";
|
|
1362
|
+
}, {
|
|
1363
|
+
readonly name: "recipient";
|
|
1364
|
+
readonly type: "address";
|
|
1365
|
+
}, {
|
|
1366
|
+
readonly name: "allocatedAmount";
|
|
1367
|
+
readonly type: "uint256";
|
|
1368
|
+
}, {
|
|
1369
|
+
readonly name: "proof";
|
|
1370
|
+
readonly type: "bytes32[]";
|
|
1371
|
+
}];
|
|
1372
|
+
readonly outputs: readonly [];
|
|
1373
|
+
readonly stateMutability: "nonpayable";
|
|
1374
|
+
}, {
|
|
1375
|
+
readonly type: "function";
|
|
1376
|
+
readonly name: "CLAIM_EXPIRATION_INTERVAL";
|
|
1377
|
+
readonly inputs: readonly [];
|
|
1378
|
+
readonly outputs: readonly [{
|
|
1379
|
+
readonly name: "";
|
|
1380
|
+
readonly type: "uint256";
|
|
1381
|
+
}];
|
|
1382
|
+
readonly stateMutability: "view";
|
|
1383
|
+
}, {
|
|
1384
|
+
readonly type: "function";
|
|
1385
|
+
readonly name: "MIN_LOCKUP_DURATION";
|
|
1386
|
+
readonly inputs: readonly [];
|
|
1387
|
+
readonly outputs: readonly [{
|
|
1388
|
+
readonly name: "";
|
|
1389
|
+
readonly type: "uint256";
|
|
1390
|
+
}];
|
|
1391
|
+
readonly stateMutability: "view";
|
|
1392
|
+
}];
|
|
1393
|
+
|
|
1394
|
+
declare const LiquidPoolExtensionAllowlistAbi: readonly [{
|
|
1395
|
+
readonly type: "function";
|
|
1396
|
+
readonly name: "enabledExtensions";
|
|
1397
|
+
readonly inputs: readonly [{
|
|
1398
|
+
readonly name: "extension";
|
|
1399
|
+
readonly type: "address";
|
|
1400
|
+
}];
|
|
1401
|
+
readonly outputs: readonly [{
|
|
1402
|
+
readonly name: "enabled";
|
|
1403
|
+
readonly type: "bool";
|
|
1404
|
+
}];
|
|
1405
|
+
readonly stateMutability: "view";
|
|
1406
|
+
}];
|
|
1407
|
+
|
|
1408
|
+
declare const LiquidMevBlockDelayAbi: readonly [{
|
|
1409
|
+
readonly type: "function";
|
|
1410
|
+
readonly name: "blockDelay";
|
|
1411
|
+
readonly inputs: readonly [];
|
|
1412
|
+
readonly outputs: readonly [{
|
|
1413
|
+
readonly name: "";
|
|
1414
|
+
readonly type: "uint256";
|
|
1415
|
+
}];
|
|
1416
|
+
readonly stateMutability: "view";
|
|
1417
|
+
}, {
|
|
1418
|
+
readonly type: "function";
|
|
1419
|
+
readonly name: "poolUnlockTime";
|
|
1420
|
+
readonly inputs: readonly [{
|
|
1421
|
+
readonly name: "poolId";
|
|
1422
|
+
readonly type: "bytes32";
|
|
1423
|
+
}];
|
|
1424
|
+
readonly outputs: readonly [{
|
|
1425
|
+
readonly name: "";
|
|
1426
|
+
readonly type: "uint256";
|
|
1427
|
+
}];
|
|
1428
|
+
readonly stateMutability: "view";
|
|
1429
|
+
}];
|
|
1430
|
+
|
|
1431
|
+
declare const LiquidLpLockerAbi: readonly [{
|
|
1432
|
+
readonly type: "function";
|
|
1433
|
+
readonly name: "tokenRewards";
|
|
1434
|
+
readonly inputs: readonly [{
|
|
1435
|
+
readonly name: "token";
|
|
1436
|
+
readonly type: "address";
|
|
1437
|
+
}];
|
|
1438
|
+
readonly outputs: readonly [{
|
|
1439
|
+
readonly name: "";
|
|
1440
|
+
readonly type: "tuple";
|
|
1441
|
+
readonly components: readonly [{
|
|
1442
|
+
readonly name: "token";
|
|
1443
|
+
readonly type: "address";
|
|
1444
|
+
}, {
|
|
1445
|
+
readonly name: "poolKey";
|
|
1446
|
+
readonly type: "tuple";
|
|
1447
|
+
readonly components: readonly [{
|
|
1448
|
+
readonly name: "currency0";
|
|
1449
|
+
readonly type: "address";
|
|
1450
|
+
}, {
|
|
1451
|
+
readonly name: "currency1";
|
|
1452
|
+
readonly type: "address";
|
|
1453
|
+
}, {
|
|
1454
|
+
readonly name: "fee";
|
|
1455
|
+
readonly type: "uint24";
|
|
1456
|
+
}, {
|
|
1457
|
+
readonly name: "tickSpacing";
|
|
1458
|
+
readonly type: "int24";
|
|
1459
|
+
}, {
|
|
1460
|
+
readonly name: "hooks";
|
|
1461
|
+
readonly type: "address";
|
|
1462
|
+
}];
|
|
1463
|
+
}, {
|
|
1464
|
+
readonly name: "positionId";
|
|
1465
|
+
readonly type: "uint256";
|
|
1466
|
+
}, {
|
|
1467
|
+
readonly name: "numPositions";
|
|
1468
|
+
readonly type: "uint256";
|
|
1469
|
+
}, {
|
|
1470
|
+
readonly name: "rewardBps";
|
|
1471
|
+
readonly type: "uint16[]";
|
|
1472
|
+
}, {
|
|
1473
|
+
readonly name: "rewardAdmins";
|
|
1474
|
+
readonly type: "address[]";
|
|
1475
|
+
}, {
|
|
1476
|
+
readonly name: "rewardRecipients";
|
|
1477
|
+
readonly type: "address[]";
|
|
1478
|
+
}];
|
|
1479
|
+
}];
|
|
1480
|
+
readonly stateMutability: "view";
|
|
1481
|
+
}, {
|
|
1482
|
+
readonly type: "function";
|
|
1483
|
+
readonly name: "collectRewards";
|
|
1484
|
+
readonly inputs: readonly [{
|
|
1485
|
+
readonly name: "token";
|
|
1486
|
+
readonly type: "address";
|
|
1487
|
+
}];
|
|
1488
|
+
readonly outputs: readonly [];
|
|
1489
|
+
readonly stateMutability: "nonpayable";
|
|
1490
|
+
}, {
|
|
1491
|
+
readonly type: "function";
|
|
1492
|
+
readonly name: "collectRewardsWithoutUnlock";
|
|
1493
|
+
readonly inputs: readonly [{
|
|
1494
|
+
readonly name: "token";
|
|
1495
|
+
readonly type: "address";
|
|
1496
|
+
}];
|
|
1497
|
+
readonly outputs: readonly [];
|
|
1498
|
+
readonly stateMutability: "nonpayable";
|
|
1499
|
+
}, {
|
|
1500
|
+
readonly type: "function";
|
|
1501
|
+
readonly name: "updateRewardAdmin";
|
|
1502
|
+
readonly inputs: readonly [{
|
|
1503
|
+
readonly name: "token";
|
|
1504
|
+
readonly type: "address";
|
|
1505
|
+
}, {
|
|
1506
|
+
readonly name: "rewardIndex";
|
|
1507
|
+
readonly type: "uint256";
|
|
1508
|
+
}, {
|
|
1509
|
+
readonly name: "newAdmin";
|
|
1510
|
+
readonly type: "address";
|
|
1511
|
+
}];
|
|
1512
|
+
readonly outputs: readonly [];
|
|
1513
|
+
readonly stateMutability: "nonpayable";
|
|
1514
|
+
}, {
|
|
1515
|
+
readonly type: "function";
|
|
1516
|
+
readonly name: "updateRewardRecipient";
|
|
1517
|
+
readonly inputs: readonly [{
|
|
1518
|
+
readonly name: "token";
|
|
1519
|
+
readonly type: "address";
|
|
1520
|
+
}, {
|
|
1521
|
+
readonly name: "rewardIndex";
|
|
1522
|
+
readonly type: "uint256";
|
|
1523
|
+
}, {
|
|
1524
|
+
readonly name: "newRecipient";
|
|
1525
|
+
readonly type: "address";
|
|
1526
|
+
}];
|
|
1527
|
+
readonly outputs: readonly [];
|
|
1528
|
+
readonly stateMutability: "nonpayable";
|
|
1529
|
+
}, {
|
|
1530
|
+
readonly type: "function";
|
|
1531
|
+
readonly name: "version";
|
|
1532
|
+
readonly inputs: readonly [];
|
|
1533
|
+
readonly outputs: readonly [{
|
|
1534
|
+
readonly name: "";
|
|
1535
|
+
readonly type: "string";
|
|
1536
|
+
}];
|
|
1537
|
+
readonly stateMutability: "view";
|
|
1538
|
+
}];
|
|
1539
|
+
|
|
1540
|
+
declare const ERC20Abi: readonly [{
|
|
1541
|
+
readonly type: "function";
|
|
1542
|
+
readonly name: "name";
|
|
1543
|
+
readonly inputs: readonly [];
|
|
1544
|
+
readonly outputs: readonly [{
|
|
1545
|
+
readonly name: "";
|
|
1546
|
+
readonly type: "string";
|
|
1547
|
+
}];
|
|
1548
|
+
readonly stateMutability: "view";
|
|
1549
|
+
}, {
|
|
1550
|
+
readonly type: "function";
|
|
1551
|
+
readonly name: "symbol";
|
|
1552
|
+
readonly inputs: readonly [];
|
|
1553
|
+
readonly outputs: readonly [{
|
|
1554
|
+
readonly name: "";
|
|
1555
|
+
readonly type: "string";
|
|
1556
|
+
}];
|
|
1557
|
+
readonly stateMutability: "view";
|
|
1558
|
+
}, {
|
|
1559
|
+
readonly type: "function";
|
|
1560
|
+
readonly name: "decimals";
|
|
1561
|
+
readonly inputs: readonly [];
|
|
1562
|
+
readonly outputs: readonly [{
|
|
1563
|
+
readonly name: "";
|
|
1564
|
+
readonly type: "uint8";
|
|
1565
|
+
}];
|
|
1566
|
+
readonly stateMutability: "view";
|
|
1567
|
+
}, {
|
|
1568
|
+
readonly type: "function";
|
|
1569
|
+
readonly name: "totalSupply";
|
|
1570
|
+
readonly inputs: readonly [];
|
|
1571
|
+
readonly outputs: readonly [{
|
|
1572
|
+
readonly name: "";
|
|
1573
|
+
readonly type: "uint256";
|
|
1574
|
+
}];
|
|
1575
|
+
readonly stateMutability: "view";
|
|
1576
|
+
}, {
|
|
1577
|
+
readonly type: "function";
|
|
1578
|
+
readonly name: "balanceOf";
|
|
1579
|
+
readonly inputs: readonly [{
|
|
1580
|
+
readonly name: "account";
|
|
1581
|
+
readonly type: "address";
|
|
1582
|
+
}];
|
|
1583
|
+
readonly outputs: readonly [{
|
|
1584
|
+
readonly name: "";
|
|
1585
|
+
readonly type: "uint256";
|
|
1586
|
+
}];
|
|
1587
|
+
readonly stateMutability: "view";
|
|
1588
|
+
}, {
|
|
1589
|
+
readonly type: "function";
|
|
1590
|
+
readonly name: "allowance";
|
|
1591
|
+
readonly inputs: readonly [{
|
|
1592
|
+
readonly name: "owner";
|
|
1593
|
+
readonly type: "address";
|
|
1594
|
+
}, {
|
|
1595
|
+
readonly name: "spender";
|
|
1596
|
+
readonly type: "address";
|
|
1597
|
+
}];
|
|
1598
|
+
readonly outputs: readonly [{
|
|
1599
|
+
readonly name: "";
|
|
1600
|
+
readonly type: "uint256";
|
|
1601
|
+
}];
|
|
1602
|
+
readonly stateMutability: "view";
|
|
1603
|
+
}, {
|
|
1604
|
+
readonly type: "function";
|
|
1605
|
+
readonly name: "approve";
|
|
1606
|
+
readonly inputs: readonly [{
|
|
1607
|
+
readonly name: "spender";
|
|
1608
|
+
readonly type: "address";
|
|
1609
|
+
}, {
|
|
1610
|
+
readonly name: "value";
|
|
1611
|
+
readonly type: "uint256";
|
|
1612
|
+
}];
|
|
1613
|
+
readonly outputs: readonly [{
|
|
1614
|
+
readonly name: "";
|
|
1615
|
+
readonly type: "bool";
|
|
1616
|
+
}];
|
|
1617
|
+
readonly stateMutability: "nonpayable";
|
|
1618
|
+
}, {
|
|
1619
|
+
readonly type: "function";
|
|
1620
|
+
readonly name: "transfer";
|
|
1621
|
+
readonly inputs: readonly [{
|
|
1622
|
+
readonly name: "to";
|
|
1623
|
+
readonly type: "address";
|
|
1624
|
+
}, {
|
|
1625
|
+
readonly name: "value";
|
|
1626
|
+
readonly type: "uint256";
|
|
1627
|
+
}];
|
|
1628
|
+
readonly outputs: readonly [{
|
|
1629
|
+
readonly name: "";
|
|
1630
|
+
readonly type: "bool";
|
|
1631
|
+
}];
|
|
1632
|
+
readonly stateMutability: "nonpayable";
|
|
1633
|
+
}];
|
|
1634
|
+
|
|
1635
|
+
export { ADDRESSES, type AirdropInfo, DEFAULT_CHAIN, DEFAULT_CHAIN_ID, type DeployTokenParams, type DeployTokenResult, type DeploymentConfig, type DeploymentInfo, type DevBuyParams, ERC20Abi, EXTERNAL, type ExtensionConfig, FEE, LiquidAirdropV2Abi, LiquidFactoryAbi, LiquidFeeLockerAbi, LiquidHookDynamicFeeV2Abi, LiquidLpLockerAbi, LiquidMevBlockDelayAbi, LiquidPoolExtensionAllowlistAbi, LiquidSDK, type LiquidSDKConfig, LiquidSniperAuctionV2Abi, LiquidSniperUtilV2Abi, LiquidVaultAbi, type LockerConfig, type MevModuleConfig, type PoolConfig, type PoolDynamicConfigVars, type PoolDynamicFeeVars, type PoolKey, type SniperAuctionFeeConfig, type SniperAuctionState, TOKEN, type TokenConfig, type TokenCreatedEvent, type TokenRewardInfo, type VaultAllocation };
|