pons-client 0.1.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 +152 -0
- package/dist/index.cjs +1061 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1862 -0
- package/dist/index.d.ts +1862 -0
- package/dist/index.js +1021 -0
- package/dist/index.js.map +1 -0
- package/package.json +68 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,1862 @@
|
|
|
1
|
+
import { Address, Hex, Account, WalletClient, PublicClient } from 'viem';
|
|
2
|
+
export { Address, Hex, decodeEventLog } from 'viem';
|
|
3
|
+
|
|
4
|
+
/** Robinhood Chain chain ID */
|
|
5
|
+
declare const ROBINHOOD_CHAIN_ID: 4663;
|
|
6
|
+
/** Basis points denominator (100%) */
|
|
7
|
+
declare const BPS: 10000n;
|
|
8
|
+
/** Zero address — used for native ETH pair */
|
|
9
|
+
declare const ZERO_ADDRESS: Address;
|
|
10
|
+
declare const ADDRESSES: {
|
|
11
|
+
readonly factory: Address;
|
|
12
|
+
readonly memeHook: Address;
|
|
13
|
+
readonly feeEscrow: Address;
|
|
14
|
+
readonly buybackVault: Address;
|
|
15
|
+
readonly launchLocker: Address;
|
|
16
|
+
readonly launchAndBuy: Address;
|
|
17
|
+
readonly launchDeployer: Address;
|
|
18
|
+
readonly graduationExecutor: Address;
|
|
19
|
+
readonly graduationGuard: Address;
|
|
20
|
+
};
|
|
21
|
+
declare const PHASE: {
|
|
22
|
+
readonly NotGraduated: 0;
|
|
23
|
+
readonly Swept: 1;
|
|
24
|
+
readonly PoolCreated: 2;
|
|
25
|
+
readonly Rescued: 3;
|
|
26
|
+
};
|
|
27
|
+
type Phase = (typeof PHASE)[keyof typeof PHASE];
|
|
28
|
+
/** Snipe tax decays over 5 seconds (in nanoseconds) */
|
|
29
|
+
declare const SNIPE_TAX_DECAY_NS: 5000000000n;
|
|
30
|
+
/** Maximum number of snipe tax exemptions per launch */
|
|
31
|
+
declare const MAX_SNIPE_EXEMPTIONS: 32;
|
|
32
|
+
/** Buyback vesting duration (5 years in seconds) */
|
|
33
|
+
declare const VESTING_DURATION_SECS: 157680000n;
|
|
34
|
+
/** Migration claim window (90 days in seconds) */
|
|
35
|
+
declare const MIGRATION_CLAIM_WINDOW_SECS: 7776000n;
|
|
36
|
+
|
|
37
|
+
interface LaunchConfig {
|
|
38
|
+
supply: bigint;
|
|
39
|
+
curveFeeBps: bigint;
|
|
40
|
+
phantomQuote: bigint;
|
|
41
|
+
graduationThreshold: bigint;
|
|
42
|
+
poolFee: number;
|
|
43
|
+
tickSpacing: number;
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
}
|
|
46
|
+
interface LaunchConfigWithId extends LaunchConfig {
|
|
47
|
+
id: bigint;
|
|
48
|
+
}
|
|
49
|
+
interface LaunchedToken {
|
|
50
|
+
token: Address;
|
|
51
|
+
curve: Address;
|
|
52
|
+
deployer: Address;
|
|
53
|
+
creatorFeeRecipient: Address;
|
|
54
|
+
pairToken: Address;
|
|
55
|
+
graduationThreshold: bigint;
|
|
56
|
+
poolFee: number;
|
|
57
|
+
tickSpacing: number;
|
|
58
|
+
creatorTaxBps: number;
|
|
59
|
+
buybackEnabled: boolean;
|
|
60
|
+
phase: number;
|
|
61
|
+
sweptQuote: bigint;
|
|
62
|
+
sweptTokens: bigint;
|
|
63
|
+
sweptAt: bigint;
|
|
64
|
+
exists: boolean;
|
|
65
|
+
}
|
|
66
|
+
interface Socials {
|
|
67
|
+
twitter: string;
|
|
68
|
+
telegram: string;
|
|
69
|
+
discord: string;
|
|
70
|
+
website: string;
|
|
71
|
+
farcaster: string;
|
|
72
|
+
}
|
|
73
|
+
interface TokenParams {
|
|
74
|
+
name: string;
|
|
75
|
+
symbol: string;
|
|
76
|
+
logo: string;
|
|
77
|
+
description: string;
|
|
78
|
+
socials: Socials;
|
|
79
|
+
creatorFeeRecipient: Address;
|
|
80
|
+
creatorTaxBps: number;
|
|
81
|
+
buybackEnabled: boolean;
|
|
82
|
+
expectedEconomics: Hex;
|
|
83
|
+
salt: Hex;
|
|
84
|
+
}
|
|
85
|
+
interface TokenInfo {
|
|
86
|
+
tokenDeployer: Address;
|
|
87
|
+
tokenLogo: string;
|
|
88
|
+
tokenDescription: string;
|
|
89
|
+
tokenSocials: Socials;
|
|
90
|
+
}
|
|
91
|
+
interface CurveReserves {
|
|
92
|
+
quoteReserve: bigint;
|
|
93
|
+
tokenReserve: bigint;
|
|
94
|
+
}
|
|
95
|
+
interface CurveState {
|
|
96
|
+
reserves: CurveReserves;
|
|
97
|
+
realQuoteReserve: bigint;
|
|
98
|
+
sellableTokens: bigint;
|
|
99
|
+
graduationThreshold: bigint;
|
|
100
|
+
readyToGraduate: boolean;
|
|
101
|
+
graduated: boolean;
|
|
102
|
+
feeBps: bigint;
|
|
103
|
+
creatorTaxBps: bigint;
|
|
104
|
+
buybackEnabled: boolean;
|
|
105
|
+
isNativeQuote: boolean;
|
|
106
|
+
pairToken: Address;
|
|
107
|
+
}
|
|
108
|
+
interface BuyQuote {
|
|
109
|
+
tokensOut: bigint;
|
|
110
|
+
spent: bigint;
|
|
111
|
+
refund: bigint;
|
|
112
|
+
}
|
|
113
|
+
interface SellQuote {
|
|
114
|
+
quoteOut: bigint;
|
|
115
|
+
}
|
|
116
|
+
interface BuyResult {
|
|
117
|
+
tokensOut: bigint;
|
|
118
|
+
hash: `0x${string}`;
|
|
119
|
+
}
|
|
120
|
+
interface SellResult {
|
|
121
|
+
quoteOut: bigint;
|
|
122
|
+
hash: `0x${string}`;
|
|
123
|
+
}
|
|
124
|
+
interface PoolKey {
|
|
125
|
+
currency0: Address;
|
|
126
|
+
currency1: Address;
|
|
127
|
+
fee: number;
|
|
128
|
+
tickSpacing: number;
|
|
129
|
+
hooks: Address;
|
|
130
|
+
}
|
|
131
|
+
interface FeePolicy {
|
|
132
|
+
protocolFeeRecipient: Address;
|
|
133
|
+
protocolFeeShareBps: number;
|
|
134
|
+
buybackBurnBps: number;
|
|
135
|
+
hookFeeBps: number;
|
|
136
|
+
maxInternalPriceImpactBps: number;
|
|
137
|
+
}
|
|
138
|
+
interface FeeBalance {
|
|
139
|
+
native: bigint;
|
|
140
|
+
erc20: Record<Address, bigint>;
|
|
141
|
+
}
|
|
142
|
+
interface VestingState {
|
|
143
|
+
totalLocked: bigint;
|
|
144
|
+
totalReleased: bigint;
|
|
145
|
+
vestedAmount: bigint;
|
|
146
|
+
releasable: bigint;
|
|
147
|
+
vestingStart: bigint;
|
|
148
|
+
vestingDuration: bigint;
|
|
149
|
+
progress: number;
|
|
150
|
+
}
|
|
151
|
+
interface PendingTakeover {
|
|
152
|
+
proposedRecipient: Address;
|
|
153
|
+
effectiveAt: bigint;
|
|
154
|
+
expiresAt: bigint;
|
|
155
|
+
isPending: boolean;
|
|
156
|
+
}
|
|
157
|
+
interface QuoteAsset {
|
|
158
|
+
asset: Address;
|
|
159
|
+
graduationThreshold: bigint;
|
|
160
|
+
decimals: number;
|
|
161
|
+
}
|
|
162
|
+
/** Minimal wallet interface — only what the client needs for write operations */
|
|
163
|
+
interface PonsWallet {
|
|
164
|
+
account: Account;
|
|
165
|
+
writeContract: WalletClient["writeContract"];
|
|
166
|
+
}
|
|
167
|
+
interface PonsClientConfig {
|
|
168
|
+
/** RPC URL for Robinhood Chain */
|
|
169
|
+
rpcUrl: string;
|
|
170
|
+
/** Optional wallet for write operations (signing + sending transactions) */
|
|
171
|
+
wallet?: PonsWallet;
|
|
172
|
+
/** Optional public client override */
|
|
173
|
+
publicClient?: PublicClient;
|
|
174
|
+
/** Chain override (defaults to Robinhood Chain 4663) */
|
|
175
|
+
chainId?: number;
|
|
176
|
+
}
|
|
177
|
+
interface FactoryModule {
|
|
178
|
+
openLaunchConfigs(): Promise<LaunchConfigWithId[]>;
|
|
179
|
+
getLaunchConfig(id: bigint): Promise<LaunchConfig>;
|
|
180
|
+
getLaunchedToken(token: Address): Promise<LaunchedToken>;
|
|
181
|
+
previewLaunchEconomics(configId: bigint, pairToken: Address): Promise<Hex>;
|
|
182
|
+
launchFee(): Promise<bigint>;
|
|
183
|
+
canLaunch(address: Address): Promise<boolean>;
|
|
184
|
+
maxCreatorTaxBps(): Promise<bigint>;
|
|
185
|
+
approvedPairTokens(pairToken: Address): Promise<boolean>;
|
|
186
|
+
pairTokenEconomics(pairToken: Address): Promise<{
|
|
187
|
+
phantomQuote: bigint;
|
|
188
|
+
graduationThreshold: bigint;
|
|
189
|
+
decimals: number;
|
|
190
|
+
}>;
|
|
191
|
+
launchToken(params: TokenParams, configId: bigint, pairToken: Address, snipeTaxExemptions?: Address[]): Promise<`0x${string}`>;
|
|
192
|
+
launchAndBuy(params: TokenParams, configId: bigint, pairToken: Address, quoteIn: bigint, minTokensOut: bigint, recipient: Address, snipeTaxExemptions?: Address[]): Promise<{
|
|
193
|
+
hash: `0x${string}`;
|
|
194
|
+
token: Address;
|
|
195
|
+
curve: Address;
|
|
196
|
+
tokensOut: bigint;
|
|
197
|
+
}>;
|
|
198
|
+
}
|
|
199
|
+
interface CurveModule {
|
|
200
|
+
buy(curve: Address, quoteIn: bigint, minTokensOut: bigint, recipient: Address, value?: bigint): Promise<BuyResult>;
|
|
201
|
+
sell(curve: Address, tokensIn: bigint, minQuoteOut: bigint, recipient: Address): Promise<SellResult>;
|
|
202
|
+
quoteBuy(curve: Address, quoteIn: bigint, recipient: Address): Promise<BuyQuote>;
|
|
203
|
+
quoteSell(curve: Address, tokensIn: bigint): Promise<SellQuote>;
|
|
204
|
+
getState(curve: Address): Promise<CurveState>;
|
|
205
|
+
getReserves(curve: Address): Promise<CurveReserves>;
|
|
206
|
+
sellableTokens(curve: Address): Promise<bigint>;
|
|
207
|
+
readyToGraduate(curve: Address): Promise<boolean>;
|
|
208
|
+
currentSnipeTaxBps(curve: Address, recipient: Address): Promise<bigint>;
|
|
209
|
+
}
|
|
210
|
+
interface PoolModule {
|
|
211
|
+
buildPoolKey(launch: LaunchedToken): PoolKey;
|
|
212
|
+
getPoolId(launch: LaunchedToken): `0x${string}`;
|
|
213
|
+
pendingFees(poolId: `0x${string}`, currency: Address): Promise<bigint>;
|
|
214
|
+
pendingCreatorTax(poolId: `0x${string}`, currency: Address): Promise<bigint>;
|
|
215
|
+
}
|
|
216
|
+
interface FeesModule {
|
|
217
|
+
getBalance(recipient: Address): Promise<bigint>;
|
|
218
|
+
getERC20Balance(recipient: Address, token: Address): Promise<bigint>;
|
|
219
|
+
claim(): Promise<`0x${string}`>;
|
|
220
|
+
claimToken(token: Address): Promise<`0x${string}`>;
|
|
221
|
+
getUnsweptBalance(curve: Address, creatorFeeRecipient: Address): Promise<{
|
|
222
|
+
pendingFees: bigint;
|
|
223
|
+
pendingCreatorTax: bigint;
|
|
224
|
+
}>;
|
|
225
|
+
getHookPendingFees(poolId: `0x${string}`, quoteCurrency: Address): Promise<{
|
|
226
|
+
pendingFees: bigint;
|
|
227
|
+
pendingCreatorTax: bigint;
|
|
228
|
+
}>;
|
|
229
|
+
getFeePolicy(token: Address): Promise<FeePolicy>;
|
|
230
|
+
}
|
|
231
|
+
interface BuybackModule {
|
|
232
|
+
getState(token: Address): Promise<VestingState>;
|
|
233
|
+
release(token: Address): Promise<`0x${string}`>;
|
|
234
|
+
}
|
|
235
|
+
interface EventsModule {
|
|
236
|
+
getLaunches(fromBlock: bigint, toBlock?: bigint | "latest"): Promise<LaunchEvent[]>;
|
|
237
|
+
getTrades(curve: Address, fromBlock: bigint, toBlock?: bigint | "latest"): Promise<TradeEvent[]>;
|
|
238
|
+
getFeeSweeps(hook: Address, fromBlock: bigint, toBlock?: bigint | "latest"): Promise<FeeSweepEvent[]>;
|
|
239
|
+
getTakeoverProposals(fromBlock: bigint, toBlock?: bigint | "latest"): Promise<TakeoverProposalEvent[]>;
|
|
240
|
+
}
|
|
241
|
+
interface TakeoverModule {
|
|
242
|
+
getPending(token: Address): Promise<PendingTakeover>;
|
|
243
|
+
}
|
|
244
|
+
interface MigrationModule {
|
|
245
|
+
getStatus(migrationAddress: Address): Promise<MigrationStatus>;
|
|
246
|
+
deposit(migrationAddress: Address, amount: bigint): Promise<`0x${string}`>;
|
|
247
|
+
claim(migrationAddress: Address): Promise<`0x${string}`>;
|
|
248
|
+
}
|
|
249
|
+
interface LaunchEvent {
|
|
250
|
+
token: Address;
|
|
251
|
+
curve: Address;
|
|
252
|
+
deployer: Address;
|
|
253
|
+
pairToken: Address;
|
|
254
|
+
launchConfigId: bigint;
|
|
255
|
+
graduationThreshold: bigint;
|
|
256
|
+
blockNumber: bigint;
|
|
257
|
+
transactionHash: `0x${string}`;
|
|
258
|
+
}
|
|
259
|
+
interface TradeEvent {
|
|
260
|
+
type: "buy" | "sell";
|
|
261
|
+
buyer?: Address;
|
|
262
|
+
seller?: Address;
|
|
263
|
+
recipient: Address;
|
|
264
|
+
quoteIn?: bigint;
|
|
265
|
+
tokensIn?: bigint;
|
|
266
|
+
tokensOut?: bigint;
|
|
267
|
+
quoteOut?: bigint;
|
|
268
|
+
fee: bigint;
|
|
269
|
+
tax: bigint;
|
|
270
|
+
blockNumber: bigint;
|
|
271
|
+
transactionHash: `0x${string}`;
|
|
272
|
+
}
|
|
273
|
+
interface FeeSweepEvent {
|
|
274
|
+
poolId: `0x${string}`;
|
|
275
|
+
quoteFees: bigint;
|
|
276
|
+
tokenFees: bigint;
|
|
277
|
+
blockNumber: bigint;
|
|
278
|
+
transactionHash: `0x${string}`;
|
|
279
|
+
}
|
|
280
|
+
interface TakeoverProposalEvent {
|
|
281
|
+
token: Address;
|
|
282
|
+
newRecipient: Address;
|
|
283
|
+
effectiveAt: bigint;
|
|
284
|
+
blockNumber: bigint;
|
|
285
|
+
transactionHash: `0x${string}`;
|
|
286
|
+
}
|
|
287
|
+
interface MigrationStatus {
|
|
288
|
+
mandate: bigint;
|
|
289
|
+
totalDeposited: bigint;
|
|
290
|
+
settled: boolean;
|
|
291
|
+
claimable: boolean;
|
|
292
|
+
epochs: MigrationEpoch[];
|
|
293
|
+
}
|
|
294
|
+
interface MigrationEpoch {
|
|
295
|
+
rate: bigint;
|
|
296
|
+
cap: bigint;
|
|
297
|
+
deposited: bigint;
|
|
298
|
+
closed: boolean;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
type ContractAddresses$7 = {
|
|
302
|
+
factory: Address;
|
|
303
|
+
launchAndBuy: Address;
|
|
304
|
+
};
|
|
305
|
+
declare function createFactoryModule(publicClient: PublicClient, wallet: PonsWallet | undefined, addresses: ContractAddresses$7): FactoryModule;
|
|
306
|
+
|
|
307
|
+
type ContractAddresses$6 = Record<string, Address>;
|
|
308
|
+
declare function createCurveModule(publicClient: PublicClient, wallet: PonsWallet | undefined, _addresses: ContractAddresses$6): CurveModule;
|
|
309
|
+
|
|
310
|
+
type ContractAddresses$5 = {
|
|
311
|
+
memeHook: Address;
|
|
312
|
+
};
|
|
313
|
+
declare function createPoolModule(publicClient: PublicClient, addresses: ContractAddresses$5): PoolModule;
|
|
314
|
+
|
|
315
|
+
type ContractAddresses$4 = {
|
|
316
|
+
feeEscrow: Address;
|
|
317
|
+
factory: Address;
|
|
318
|
+
memeHook: Address;
|
|
319
|
+
};
|
|
320
|
+
declare function createFesModule(publicClient: PublicClient, wallet: PonsWallet | undefined, addresses: ContractAddresses$4): FeesModule;
|
|
321
|
+
|
|
322
|
+
type ContractAddresses$3 = {
|
|
323
|
+
buybackVault: Address;
|
|
324
|
+
};
|
|
325
|
+
declare function createBuybackModule(publicClient: PublicClient, wallet: PonsWallet | undefined, addresses: ContractAddresses$3): BuybackModule;
|
|
326
|
+
|
|
327
|
+
type ContractAddresses$2 = {
|
|
328
|
+
factory: Address;
|
|
329
|
+
memeHook: Address;
|
|
330
|
+
};
|
|
331
|
+
declare function createEventsModule(publicClient: PublicClient, addresses: ContractAddresses$2): EventsModule;
|
|
332
|
+
|
|
333
|
+
type ContractAddresses$1 = {
|
|
334
|
+
factory: Address;
|
|
335
|
+
};
|
|
336
|
+
declare function createTakeoverModule(publicClient: PublicClient, addresses: ContractAddresses$1): TakeoverModule;
|
|
337
|
+
|
|
338
|
+
type ContractAddresses = Record<string, Address>;
|
|
339
|
+
declare function createMigrationModule(publicClient: PublicClient, wallet: PonsWallet | undefined, _addresses: ContractAddresses): MigrationModule;
|
|
340
|
+
|
|
341
|
+
interface PonsClient {
|
|
342
|
+
publicClient: PublicClient;
|
|
343
|
+
wallet: PonsWallet | undefined;
|
|
344
|
+
chainId: number;
|
|
345
|
+
factory: ReturnType<typeof createFactoryModule>;
|
|
346
|
+
curve: ReturnType<typeof createCurveModule>;
|
|
347
|
+
pool: ReturnType<typeof createPoolModule>;
|
|
348
|
+
fees: ReturnType<typeof createFesModule>;
|
|
349
|
+
buyback: ReturnType<typeof createBuybackModule>;
|
|
350
|
+
events: ReturnType<typeof createEventsModule>;
|
|
351
|
+
takeover: ReturnType<typeof createTakeoverModule>;
|
|
352
|
+
migration: ReturnType<typeof createMigrationModule>;
|
|
353
|
+
}
|
|
354
|
+
/** Type for the deployed addresses record */
|
|
355
|
+
type DeployedAddresses = typeof ADDRESSES;
|
|
356
|
+
/**
|
|
357
|
+
* Create a typed Pons v2 client.
|
|
358
|
+
*
|
|
359
|
+
* @example
|
|
360
|
+
* ```ts
|
|
361
|
+
* import { createPonsClient } from '@robhdev/pons-client';
|
|
362
|
+
*
|
|
363
|
+
* // Read-only client
|
|
364
|
+
* const pons = createPonsClient({ rpcUrl: 'https://...' });
|
|
365
|
+
* const configs = await pons.factory.openLaunchConfigs();
|
|
366
|
+
*
|
|
367
|
+
* // Write client with wallet
|
|
368
|
+
* const pons = createPonsClient({
|
|
369
|
+
* rpcUrl: 'https://...',
|
|
370
|
+
* wallet: walletClient,
|
|
371
|
+
* });
|
|
372
|
+
* await pons.factory.launchToken(params, 0n, ZERO_ADDRESS);
|
|
373
|
+
* ```
|
|
374
|
+
*/
|
|
375
|
+
declare function createPonsClient(config: PonsClientConfig): PonsClient;
|
|
376
|
+
|
|
377
|
+
declare const factoryAbi: readonly [{
|
|
378
|
+
readonly name: "launchConfigCount";
|
|
379
|
+
readonly type: "function";
|
|
380
|
+
readonly stateMutability: "view";
|
|
381
|
+
readonly inputs: readonly [];
|
|
382
|
+
readonly outputs: readonly [{
|
|
383
|
+
readonly type: "uint256";
|
|
384
|
+
}];
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "getLaunchConfig";
|
|
387
|
+
readonly type: "function";
|
|
388
|
+
readonly stateMutability: "view";
|
|
389
|
+
readonly inputs: readonly [{
|
|
390
|
+
readonly type: "uint256";
|
|
391
|
+
readonly name: "id";
|
|
392
|
+
}];
|
|
393
|
+
readonly outputs: readonly [{
|
|
394
|
+
readonly type: "tuple";
|
|
395
|
+
readonly components: readonly [{
|
|
396
|
+
readonly type: "uint256";
|
|
397
|
+
readonly name: "supply";
|
|
398
|
+
}, {
|
|
399
|
+
readonly type: "uint256";
|
|
400
|
+
readonly name: "curveFeeBps";
|
|
401
|
+
}, {
|
|
402
|
+
readonly type: "uint256";
|
|
403
|
+
readonly name: "phantomQuote";
|
|
404
|
+
}, {
|
|
405
|
+
readonly type: "uint256";
|
|
406
|
+
readonly name: "graduationThreshold";
|
|
407
|
+
}, {
|
|
408
|
+
readonly type: "uint24";
|
|
409
|
+
readonly name: "poolFee";
|
|
410
|
+
}, {
|
|
411
|
+
readonly type: "int24";
|
|
412
|
+
readonly name: "tickSpacing";
|
|
413
|
+
}, {
|
|
414
|
+
readonly type: "bool";
|
|
415
|
+
readonly name: "enabled";
|
|
416
|
+
}];
|
|
417
|
+
}];
|
|
418
|
+
}, {
|
|
419
|
+
readonly name: "getLaunchedToken";
|
|
420
|
+
readonly type: "function";
|
|
421
|
+
readonly stateMutability: "view";
|
|
422
|
+
readonly inputs: readonly [{
|
|
423
|
+
readonly type: "address";
|
|
424
|
+
readonly name: "token";
|
|
425
|
+
}];
|
|
426
|
+
readonly outputs: readonly [{
|
|
427
|
+
readonly type: "tuple";
|
|
428
|
+
readonly components: readonly [{
|
|
429
|
+
readonly type: "address";
|
|
430
|
+
readonly name: "token";
|
|
431
|
+
}, {
|
|
432
|
+
readonly type: "address";
|
|
433
|
+
readonly name: "curve";
|
|
434
|
+
}, {
|
|
435
|
+
readonly type: "address";
|
|
436
|
+
readonly name: "deployer";
|
|
437
|
+
}, {
|
|
438
|
+
readonly type: "address";
|
|
439
|
+
readonly name: "creatorFeeRecipient";
|
|
440
|
+
}, {
|
|
441
|
+
readonly type: "address";
|
|
442
|
+
readonly name: "pairToken";
|
|
443
|
+
}, {
|
|
444
|
+
readonly type: "uint256";
|
|
445
|
+
readonly name: "graduationThreshold";
|
|
446
|
+
}, {
|
|
447
|
+
readonly type: "uint24";
|
|
448
|
+
readonly name: "poolFee";
|
|
449
|
+
}, {
|
|
450
|
+
readonly type: "int24";
|
|
451
|
+
readonly name: "tickSpacing";
|
|
452
|
+
}, {
|
|
453
|
+
readonly type: "uint16";
|
|
454
|
+
readonly name: "creatorTaxBps";
|
|
455
|
+
}, {
|
|
456
|
+
readonly type: "bool";
|
|
457
|
+
readonly name: "buybackEnabled";
|
|
458
|
+
}, {
|
|
459
|
+
readonly type: "uint8";
|
|
460
|
+
readonly name: "phase";
|
|
461
|
+
}, {
|
|
462
|
+
readonly type: "uint256";
|
|
463
|
+
readonly name: "sweptQuote";
|
|
464
|
+
}, {
|
|
465
|
+
readonly type: "uint256";
|
|
466
|
+
readonly name: "sweptTokens";
|
|
467
|
+
}, {
|
|
468
|
+
readonly type: "uint256";
|
|
469
|
+
readonly name: "sweptAt";
|
|
470
|
+
}, {
|
|
471
|
+
readonly type: "bool";
|
|
472
|
+
readonly name: "exists";
|
|
473
|
+
}];
|
|
474
|
+
}];
|
|
475
|
+
}, {
|
|
476
|
+
readonly name: "previewLaunchEconomics";
|
|
477
|
+
readonly type: "function";
|
|
478
|
+
readonly stateMutability: "view";
|
|
479
|
+
readonly inputs: readonly [{
|
|
480
|
+
readonly type: "uint256";
|
|
481
|
+
readonly name: "launchConfigId";
|
|
482
|
+
}, {
|
|
483
|
+
readonly type: "address";
|
|
484
|
+
readonly name: "pairToken";
|
|
485
|
+
}];
|
|
486
|
+
readonly outputs: readonly [{
|
|
487
|
+
readonly type: "bytes32";
|
|
488
|
+
}];
|
|
489
|
+
}, {
|
|
490
|
+
readonly name: "launchFee";
|
|
491
|
+
readonly type: "function";
|
|
492
|
+
readonly stateMutability: "view";
|
|
493
|
+
readonly inputs: readonly [];
|
|
494
|
+
readonly outputs: readonly [{
|
|
495
|
+
readonly type: "uint256";
|
|
496
|
+
}];
|
|
497
|
+
}, {
|
|
498
|
+
readonly name: "canLaunch";
|
|
499
|
+
readonly type: "function";
|
|
500
|
+
readonly stateMutability: "view";
|
|
501
|
+
readonly inputs: readonly [{
|
|
502
|
+
readonly type: "address";
|
|
503
|
+
readonly name: "launcher";
|
|
504
|
+
}];
|
|
505
|
+
readonly outputs: readonly [{
|
|
506
|
+
readonly type: "bool";
|
|
507
|
+
}];
|
|
508
|
+
}, {
|
|
509
|
+
readonly name: "maxCreatorTaxBps";
|
|
510
|
+
readonly type: "function";
|
|
511
|
+
readonly stateMutability: "view";
|
|
512
|
+
readonly inputs: readonly [];
|
|
513
|
+
readonly outputs: readonly [{
|
|
514
|
+
readonly type: "uint16";
|
|
515
|
+
}];
|
|
516
|
+
}, {
|
|
517
|
+
readonly name: "approvedPairTokens";
|
|
518
|
+
readonly type: "function";
|
|
519
|
+
readonly stateMutability: "view";
|
|
520
|
+
readonly inputs: readonly [{
|
|
521
|
+
readonly type: "address";
|
|
522
|
+
readonly name: "pairToken";
|
|
523
|
+
}];
|
|
524
|
+
readonly outputs: readonly [{
|
|
525
|
+
readonly type: "bool";
|
|
526
|
+
}];
|
|
527
|
+
}, {
|
|
528
|
+
readonly name: "pairTokenEconomics";
|
|
529
|
+
readonly type: "function";
|
|
530
|
+
readonly stateMutability: "view";
|
|
531
|
+
readonly inputs: readonly [{
|
|
532
|
+
readonly type: "address";
|
|
533
|
+
readonly name: "pairToken";
|
|
534
|
+
}];
|
|
535
|
+
readonly outputs: readonly [{
|
|
536
|
+
readonly type: "uint256";
|
|
537
|
+
readonly name: "phantomQuote";
|
|
538
|
+
}, {
|
|
539
|
+
readonly type: "uint256";
|
|
540
|
+
readonly name: "graduationThreshold";
|
|
541
|
+
}, {
|
|
542
|
+
readonly type: "uint8";
|
|
543
|
+
readonly name: "decimals";
|
|
544
|
+
}];
|
|
545
|
+
}, {
|
|
546
|
+
readonly name: "getLaunchFeePolicy";
|
|
547
|
+
readonly type: "function";
|
|
548
|
+
readonly stateMutability: "view";
|
|
549
|
+
readonly inputs: readonly [{
|
|
550
|
+
readonly type: "address";
|
|
551
|
+
readonly name: "token";
|
|
552
|
+
}];
|
|
553
|
+
readonly outputs: readonly [{
|
|
554
|
+
readonly type: "tuple";
|
|
555
|
+
readonly components: readonly [{
|
|
556
|
+
readonly type: "address";
|
|
557
|
+
readonly name: "protocolFeeRecipient";
|
|
558
|
+
}, {
|
|
559
|
+
readonly type: "uint16";
|
|
560
|
+
readonly name: "protocolFeeShareBps";
|
|
561
|
+
}, {
|
|
562
|
+
readonly type: "uint16";
|
|
563
|
+
readonly name: "buybackBurnBps";
|
|
564
|
+
}, {
|
|
565
|
+
readonly type: "uint16";
|
|
566
|
+
readonly name: "hookFeeBps";
|
|
567
|
+
}, {
|
|
568
|
+
readonly type: "uint16";
|
|
569
|
+
readonly name: "maxInternalPriceImpactBps";
|
|
570
|
+
}];
|
|
571
|
+
}];
|
|
572
|
+
}, {
|
|
573
|
+
readonly name: "pendingCreatorFeeRecipient";
|
|
574
|
+
readonly type: "function";
|
|
575
|
+
readonly stateMutability: "view";
|
|
576
|
+
readonly inputs: readonly [{
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
readonly name: "token";
|
|
579
|
+
}];
|
|
580
|
+
readonly outputs: readonly [{
|
|
581
|
+
readonly type: "address";
|
|
582
|
+
readonly name: "recipient";
|
|
583
|
+
}, {
|
|
584
|
+
readonly type: "uint256";
|
|
585
|
+
readonly name: "effectiveAt";
|
|
586
|
+
}, {
|
|
587
|
+
readonly type: "uint256";
|
|
588
|
+
readonly name: "expiresAt";
|
|
589
|
+
}];
|
|
590
|
+
}, {
|
|
591
|
+
readonly name: "launchToken";
|
|
592
|
+
readonly type: "function";
|
|
593
|
+
readonly stateMutability: "payable";
|
|
594
|
+
readonly inputs: readonly [{
|
|
595
|
+
readonly type: "tuple";
|
|
596
|
+
readonly components: readonly [{
|
|
597
|
+
readonly type: "string";
|
|
598
|
+
readonly name: "name";
|
|
599
|
+
}, {
|
|
600
|
+
readonly type: "string";
|
|
601
|
+
readonly name: "symbol";
|
|
602
|
+
}, {
|
|
603
|
+
readonly type: "string";
|
|
604
|
+
readonly name: "logo";
|
|
605
|
+
}, {
|
|
606
|
+
readonly type: "string";
|
|
607
|
+
readonly name: "description";
|
|
608
|
+
}, {
|
|
609
|
+
readonly name: "socials";
|
|
610
|
+
readonly type: "tuple";
|
|
611
|
+
readonly components: readonly [{
|
|
612
|
+
readonly type: "string";
|
|
613
|
+
readonly name: "twitter";
|
|
614
|
+
}, {
|
|
615
|
+
readonly type: "string";
|
|
616
|
+
readonly name: "telegram";
|
|
617
|
+
}, {
|
|
618
|
+
readonly type: "string";
|
|
619
|
+
readonly name: "discord";
|
|
620
|
+
}, {
|
|
621
|
+
readonly type: "string";
|
|
622
|
+
readonly name: "website";
|
|
623
|
+
}, {
|
|
624
|
+
readonly type: "string";
|
|
625
|
+
readonly name: "farcaster";
|
|
626
|
+
}];
|
|
627
|
+
}, {
|
|
628
|
+
readonly type: "address";
|
|
629
|
+
readonly name: "creatorFeeRecipient";
|
|
630
|
+
}, {
|
|
631
|
+
readonly type: "uint16";
|
|
632
|
+
readonly name: "creatorTaxBps";
|
|
633
|
+
}, {
|
|
634
|
+
readonly type: "bool";
|
|
635
|
+
readonly name: "buybackEnabled";
|
|
636
|
+
}, {
|
|
637
|
+
readonly type: "bytes32";
|
|
638
|
+
readonly name: "expectedEconomics";
|
|
639
|
+
}, {
|
|
640
|
+
readonly type: "bytes32";
|
|
641
|
+
readonly name: "salt";
|
|
642
|
+
}];
|
|
643
|
+
readonly name: "params";
|
|
644
|
+
}, {
|
|
645
|
+
readonly type: "uint256";
|
|
646
|
+
readonly name: "launchConfigId";
|
|
647
|
+
}, {
|
|
648
|
+
readonly type: "address";
|
|
649
|
+
readonly name: "pairToken";
|
|
650
|
+
}];
|
|
651
|
+
readonly outputs: readonly [{
|
|
652
|
+
readonly type: "address";
|
|
653
|
+
readonly name: "token";
|
|
654
|
+
}, {
|
|
655
|
+
readonly type: "address";
|
|
656
|
+
readonly name: "curve";
|
|
657
|
+
}];
|
|
658
|
+
}, {
|
|
659
|
+
readonly name: "launchToken";
|
|
660
|
+
readonly type: "function";
|
|
661
|
+
readonly stateMutability: "payable";
|
|
662
|
+
readonly inputs: readonly [{
|
|
663
|
+
readonly type: "tuple";
|
|
664
|
+
readonly components: readonly [{
|
|
665
|
+
readonly type: "string";
|
|
666
|
+
readonly name: "name";
|
|
667
|
+
}, {
|
|
668
|
+
readonly type: "string";
|
|
669
|
+
readonly name: "symbol";
|
|
670
|
+
}, {
|
|
671
|
+
readonly type: "string";
|
|
672
|
+
readonly name: "logo";
|
|
673
|
+
}, {
|
|
674
|
+
readonly type: "string";
|
|
675
|
+
readonly name: "description";
|
|
676
|
+
}, {
|
|
677
|
+
readonly name: "socials";
|
|
678
|
+
readonly type: "tuple";
|
|
679
|
+
readonly components: readonly [{
|
|
680
|
+
readonly type: "string";
|
|
681
|
+
readonly name: "twitter";
|
|
682
|
+
}, {
|
|
683
|
+
readonly type: "string";
|
|
684
|
+
readonly name: "telegram";
|
|
685
|
+
}, {
|
|
686
|
+
readonly type: "string";
|
|
687
|
+
readonly name: "discord";
|
|
688
|
+
}, {
|
|
689
|
+
readonly type: "string";
|
|
690
|
+
readonly name: "website";
|
|
691
|
+
}, {
|
|
692
|
+
readonly type: "string";
|
|
693
|
+
readonly name: "farcaster";
|
|
694
|
+
}];
|
|
695
|
+
}, {
|
|
696
|
+
readonly type: "address";
|
|
697
|
+
readonly name: "creatorFeeRecipient";
|
|
698
|
+
}, {
|
|
699
|
+
readonly type: "uint16";
|
|
700
|
+
readonly name: "creatorTaxBps";
|
|
701
|
+
}, {
|
|
702
|
+
readonly type: "bool";
|
|
703
|
+
readonly name: "buybackEnabled";
|
|
704
|
+
}, {
|
|
705
|
+
readonly type: "bytes32";
|
|
706
|
+
readonly name: "expectedEconomics";
|
|
707
|
+
}, {
|
|
708
|
+
readonly type: "bytes32";
|
|
709
|
+
readonly name: "salt";
|
|
710
|
+
}];
|
|
711
|
+
readonly name: "params";
|
|
712
|
+
}, {
|
|
713
|
+
readonly type: "uint256";
|
|
714
|
+
readonly name: "launchConfigId";
|
|
715
|
+
}, {
|
|
716
|
+
readonly type: "address";
|
|
717
|
+
readonly name: "pairToken";
|
|
718
|
+
}, {
|
|
719
|
+
readonly type: "address[]";
|
|
720
|
+
readonly name: "snipeTaxExemptions";
|
|
721
|
+
}];
|
|
722
|
+
readonly outputs: readonly [{
|
|
723
|
+
readonly type: "address";
|
|
724
|
+
readonly name: "token";
|
|
725
|
+
}, {
|
|
726
|
+
readonly type: "address";
|
|
727
|
+
readonly name: "curve";
|
|
728
|
+
}];
|
|
729
|
+
}, {
|
|
730
|
+
readonly name: "createGraduatedPool";
|
|
731
|
+
readonly type: "function";
|
|
732
|
+
readonly stateMutability: "nonpayable";
|
|
733
|
+
readonly inputs: readonly [{
|
|
734
|
+
readonly type: "address";
|
|
735
|
+
readonly name: "token";
|
|
736
|
+
}];
|
|
737
|
+
readonly outputs: readonly [];
|
|
738
|
+
}, {
|
|
739
|
+
readonly name: "transferCreatorFeeRecipient";
|
|
740
|
+
readonly type: "function";
|
|
741
|
+
readonly stateMutability: "nonpayable";
|
|
742
|
+
readonly inputs: readonly [{
|
|
743
|
+
readonly type: "address";
|
|
744
|
+
readonly name: "token";
|
|
745
|
+
}, {
|
|
746
|
+
readonly type: "address";
|
|
747
|
+
readonly name: "newRecipient";
|
|
748
|
+
}];
|
|
749
|
+
readonly outputs: readonly [];
|
|
750
|
+
}, {
|
|
751
|
+
readonly name: "TokenLaunched";
|
|
752
|
+
readonly type: "event";
|
|
753
|
+
readonly inputs: readonly [{
|
|
754
|
+
readonly type: "address";
|
|
755
|
+
readonly name: "token";
|
|
756
|
+
readonly indexed: true;
|
|
757
|
+
}, {
|
|
758
|
+
readonly type: "address";
|
|
759
|
+
readonly name: "curve";
|
|
760
|
+
readonly indexed: true;
|
|
761
|
+
}, {
|
|
762
|
+
readonly type: "address";
|
|
763
|
+
readonly name: "deployer";
|
|
764
|
+
readonly indexed: true;
|
|
765
|
+
}, {
|
|
766
|
+
readonly type: "address";
|
|
767
|
+
readonly name: "pairToken";
|
|
768
|
+
}, {
|
|
769
|
+
readonly type: "uint256";
|
|
770
|
+
readonly name: "launchConfigId";
|
|
771
|
+
}, {
|
|
772
|
+
readonly type: "uint256";
|
|
773
|
+
readonly name: "graduationThreshold";
|
|
774
|
+
}];
|
|
775
|
+
}, {
|
|
776
|
+
readonly name: "LaunchSwept";
|
|
777
|
+
readonly type: "event";
|
|
778
|
+
readonly inputs: readonly [{
|
|
779
|
+
readonly type: "address";
|
|
780
|
+
readonly name: "token";
|
|
781
|
+
readonly indexed: true;
|
|
782
|
+
}, {
|
|
783
|
+
readonly type: "uint256";
|
|
784
|
+
readonly name: "sweptQuote";
|
|
785
|
+
}, {
|
|
786
|
+
readonly type: "uint256";
|
|
787
|
+
readonly name: "sweptTokens";
|
|
788
|
+
}];
|
|
789
|
+
}, {
|
|
790
|
+
readonly name: "PoolGraduated";
|
|
791
|
+
readonly type: "event";
|
|
792
|
+
readonly inputs: readonly [{
|
|
793
|
+
readonly type: "address";
|
|
794
|
+
readonly name: "token";
|
|
795
|
+
readonly indexed: true;
|
|
796
|
+
}, {
|
|
797
|
+
readonly type: "address";
|
|
798
|
+
readonly name: "pool";
|
|
799
|
+
readonly indexed: true;
|
|
800
|
+
}];
|
|
801
|
+
}, {
|
|
802
|
+
readonly name: "CreatorFeeRecipientChangeProposed";
|
|
803
|
+
readonly type: "event";
|
|
804
|
+
readonly inputs: readonly [{
|
|
805
|
+
readonly type: "address";
|
|
806
|
+
readonly name: "token";
|
|
807
|
+
readonly indexed: true;
|
|
808
|
+
}, {
|
|
809
|
+
readonly type: "address";
|
|
810
|
+
readonly name: "newRecipient";
|
|
811
|
+
readonly indexed: true;
|
|
812
|
+
}, {
|
|
813
|
+
readonly type: "uint256";
|
|
814
|
+
readonly name: "effectiveAt";
|
|
815
|
+
}];
|
|
816
|
+
}, {
|
|
817
|
+
readonly name: "CreatorFeeRecipientUpdated";
|
|
818
|
+
readonly type: "event";
|
|
819
|
+
readonly inputs: readonly [{
|
|
820
|
+
readonly type: "address";
|
|
821
|
+
readonly name: "token";
|
|
822
|
+
readonly indexed: true;
|
|
823
|
+
}, {
|
|
824
|
+
readonly type: "address";
|
|
825
|
+
readonly name: "oldRecipient";
|
|
826
|
+
readonly indexed: true;
|
|
827
|
+
}, {
|
|
828
|
+
readonly type: "address";
|
|
829
|
+
readonly name: "newRecipient";
|
|
830
|
+
readonly indexed: true;
|
|
831
|
+
}];
|
|
832
|
+
}];
|
|
833
|
+
|
|
834
|
+
declare const curveAbi: readonly [{
|
|
835
|
+
readonly name: "getReserves";
|
|
836
|
+
readonly type: "function";
|
|
837
|
+
readonly stateMutability: "view";
|
|
838
|
+
readonly inputs: readonly [];
|
|
839
|
+
readonly outputs: readonly [{
|
|
840
|
+
readonly type: "uint256";
|
|
841
|
+
readonly name: "quoteReserve";
|
|
842
|
+
}, {
|
|
843
|
+
readonly type: "uint256";
|
|
844
|
+
readonly name: "tokenReserve";
|
|
845
|
+
}];
|
|
846
|
+
}, {
|
|
847
|
+
readonly name: "realQuoteReserve";
|
|
848
|
+
readonly type: "function";
|
|
849
|
+
readonly stateMutability: "view";
|
|
850
|
+
readonly inputs: readonly [];
|
|
851
|
+
readonly outputs: readonly [{
|
|
852
|
+
readonly type: "uint256";
|
|
853
|
+
}];
|
|
854
|
+
}, {
|
|
855
|
+
readonly name: "sellableTokens";
|
|
856
|
+
readonly type: "function";
|
|
857
|
+
readonly stateMutability: "view";
|
|
858
|
+
readonly inputs: readonly [];
|
|
859
|
+
readonly outputs: readonly [{
|
|
860
|
+
readonly type: "uint256";
|
|
861
|
+
}];
|
|
862
|
+
}, {
|
|
863
|
+
readonly name: "reservedTokens";
|
|
864
|
+
readonly type: "function";
|
|
865
|
+
readonly stateMutability: "view";
|
|
866
|
+
readonly inputs: readonly [];
|
|
867
|
+
readonly outputs: readonly [{
|
|
868
|
+
readonly type: "uint256";
|
|
869
|
+
}];
|
|
870
|
+
}, {
|
|
871
|
+
readonly name: "graduationThreshold";
|
|
872
|
+
readonly type: "function";
|
|
873
|
+
readonly stateMutability: "view";
|
|
874
|
+
readonly inputs: readonly [];
|
|
875
|
+
readonly outputs: readonly [{
|
|
876
|
+
readonly type: "uint256";
|
|
877
|
+
}];
|
|
878
|
+
}, {
|
|
879
|
+
readonly name: "readyToGraduate";
|
|
880
|
+
readonly type: "function";
|
|
881
|
+
readonly stateMutability: "view";
|
|
882
|
+
readonly inputs: readonly [];
|
|
883
|
+
readonly outputs: readonly [{
|
|
884
|
+
readonly type: "bool";
|
|
885
|
+
}];
|
|
886
|
+
}, {
|
|
887
|
+
readonly name: "graduated";
|
|
888
|
+
readonly type: "function";
|
|
889
|
+
readonly stateMutability: "view";
|
|
890
|
+
readonly inputs: readonly [];
|
|
891
|
+
readonly outputs: readonly [{
|
|
892
|
+
readonly type: "bool";
|
|
893
|
+
}];
|
|
894
|
+
}, {
|
|
895
|
+
readonly name: "feeBps";
|
|
896
|
+
readonly type: "function";
|
|
897
|
+
readonly stateMutability: "view";
|
|
898
|
+
readonly inputs: readonly [];
|
|
899
|
+
readonly outputs: readonly [{
|
|
900
|
+
readonly type: "uint256";
|
|
901
|
+
}];
|
|
902
|
+
}, {
|
|
903
|
+
readonly name: "creatorTaxBps";
|
|
904
|
+
readonly type: "function";
|
|
905
|
+
readonly stateMutability: "view";
|
|
906
|
+
readonly inputs: readonly [];
|
|
907
|
+
readonly outputs: readonly [{
|
|
908
|
+
readonly type: "uint256";
|
|
909
|
+
}];
|
|
910
|
+
}, {
|
|
911
|
+
readonly name: "buybackEnabled";
|
|
912
|
+
readonly type: "function";
|
|
913
|
+
readonly stateMutability: "view";
|
|
914
|
+
readonly inputs: readonly [];
|
|
915
|
+
readonly outputs: readonly [{
|
|
916
|
+
readonly type: "bool";
|
|
917
|
+
}];
|
|
918
|
+
}, {
|
|
919
|
+
readonly name: "isNativeQuote";
|
|
920
|
+
readonly type: "function";
|
|
921
|
+
readonly stateMutability: "view";
|
|
922
|
+
readonly inputs: readonly [];
|
|
923
|
+
readonly outputs: readonly [{
|
|
924
|
+
readonly type: "bool";
|
|
925
|
+
}];
|
|
926
|
+
}, {
|
|
927
|
+
readonly name: "pairToken";
|
|
928
|
+
readonly type: "function";
|
|
929
|
+
readonly stateMutability: "view";
|
|
930
|
+
readonly inputs: readonly [];
|
|
931
|
+
readonly outputs: readonly [{
|
|
932
|
+
readonly type: "address";
|
|
933
|
+
}];
|
|
934
|
+
}, {
|
|
935
|
+
readonly name: "currentSnipeTaxBps";
|
|
936
|
+
readonly type: "function";
|
|
937
|
+
readonly stateMutability: "view";
|
|
938
|
+
readonly inputs: readonly [{
|
|
939
|
+
readonly type: "address";
|
|
940
|
+
readonly name: "recipient";
|
|
941
|
+
}];
|
|
942
|
+
readonly outputs: readonly [{
|
|
943
|
+
readonly type: "uint256";
|
|
944
|
+
}];
|
|
945
|
+
}, {
|
|
946
|
+
readonly name: "quoteFeeBalance";
|
|
947
|
+
readonly type: "function";
|
|
948
|
+
readonly stateMutability: "view";
|
|
949
|
+
readonly inputs: readonly [];
|
|
950
|
+
readonly outputs: readonly [{
|
|
951
|
+
readonly type: "uint256";
|
|
952
|
+
}];
|
|
953
|
+
}, {
|
|
954
|
+
readonly name: "creatorTaxBalance";
|
|
955
|
+
readonly type: "function";
|
|
956
|
+
readonly stateMutability: "view";
|
|
957
|
+
readonly inputs: readonly [];
|
|
958
|
+
readonly outputs: readonly [{
|
|
959
|
+
readonly type: "uint256";
|
|
960
|
+
}];
|
|
961
|
+
}, {
|
|
962
|
+
readonly name: "buy";
|
|
963
|
+
readonly type: "function";
|
|
964
|
+
readonly stateMutability: "payable";
|
|
965
|
+
readonly inputs: readonly [{
|
|
966
|
+
readonly type: "uint256";
|
|
967
|
+
readonly name: "quoteIn";
|
|
968
|
+
}, {
|
|
969
|
+
readonly type: "uint256";
|
|
970
|
+
readonly name: "minTokensOut";
|
|
971
|
+
}, {
|
|
972
|
+
readonly type: "address";
|
|
973
|
+
readonly name: "recipient";
|
|
974
|
+
}];
|
|
975
|
+
readonly outputs: readonly [{
|
|
976
|
+
readonly type: "uint256";
|
|
977
|
+
readonly name: "tokensOut";
|
|
978
|
+
}];
|
|
979
|
+
}, {
|
|
980
|
+
readonly name: "sell";
|
|
981
|
+
readonly type: "function";
|
|
982
|
+
readonly stateMutability: "nonpayable";
|
|
983
|
+
readonly inputs: readonly [{
|
|
984
|
+
readonly type: "uint256";
|
|
985
|
+
readonly name: "tokensIn";
|
|
986
|
+
}, {
|
|
987
|
+
readonly type: "uint256";
|
|
988
|
+
readonly name: "minQuoteOut";
|
|
989
|
+
}, {
|
|
990
|
+
readonly type: "address";
|
|
991
|
+
readonly name: "recipient";
|
|
992
|
+
}];
|
|
993
|
+
readonly outputs: readonly [{
|
|
994
|
+
readonly type: "uint256";
|
|
995
|
+
readonly name: "quoteOut";
|
|
996
|
+
}];
|
|
997
|
+
}, {
|
|
998
|
+
readonly name: "sweepFees";
|
|
999
|
+
readonly type: "function";
|
|
1000
|
+
readonly stateMutability: "nonpayable";
|
|
1001
|
+
readonly inputs: readonly [{
|
|
1002
|
+
readonly type: "uint256";
|
|
1003
|
+
readonly name: "minBuybackTokensOut";
|
|
1004
|
+
}];
|
|
1005
|
+
readonly outputs: readonly [];
|
|
1006
|
+
}, {
|
|
1007
|
+
readonly name: "CurveBuy";
|
|
1008
|
+
readonly type: "event";
|
|
1009
|
+
readonly inputs: readonly [{
|
|
1010
|
+
readonly type: "address";
|
|
1011
|
+
readonly name: "buyer";
|
|
1012
|
+
readonly indexed: true;
|
|
1013
|
+
}, {
|
|
1014
|
+
readonly type: "address";
|
|
1015
|
+
readonly name: "recipient";
|
|
1016
|
+
readonly indexed: true;
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly type: "uint256";
|
|
1019
|
+
readonly name: "quoteIn";
|
|
1020
|
+
}, {
|
|
1021
|
+
readonly type: "uint256";
|
|
1022
|
+
readonly name: "tokensOut";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly type: "uint256";
|
|
1025
|
+
readonly name: "fee";
|
|
1026
|
+
}, {
|
|
1027
|
+
readonly type: "uint256";
|
|
1028
|
+
readonly name: "tax";
|
|
1029
|
+
}];
|
|
1030
|
+
}, {
|
|
1031
|
+
readonly name: "CurveSell";
|
|
1032
|
+
readonly type: "event";
|
|
1033
|
+
readonly inputs: readonly [{
|
|
1034
|
+
readonly type: "address";
|
|
1035
|
+
readonly name: "seller";
|
|
1036
|
+
readonly indexed: true;
|
|
1037
|
+
}, {
|
|
1038
|
+
readonly type: "address";
|
|
1039
|
+
readonly name: "recipient";
|
|
1040
|
+
readonly indexed: true;
|
|
1041
|
+
}, {
|
|
1042
|
+
readonly type: "uint256";
|
|
1043
|
+
readonly name: "tokensIn";
|
|
1044
|
+
}, {
|
|
1045
|
+
readonly type: "uint256";
|
|
1046
|
+
readonly name: "quoteOut";
|
|
1047
|
+
}, {
|
|
1048
|
+
readonly type: "uint256";
|
|
1049
|
+
readonly name: "fee";
|
|
1050
|
+
}, {
|
|
1051
|
+
readonly type: "uint256";
|
|
1052
|
+
readonly name: "tax";
|
|
1053
|
+
}];
|
|
1054
|
+
}, {
|
|
1055
|
+
readonly name: "CurveBuyRefunded";
|
|
1056
|
+
readonly type: "event";
|
|
1057
|
+
readonly inputs: readonly [{
|
|
1058
|
+
readonly type: "address";
|
|
1059
|
+
readonly name: "buyer";
|
|
1060
|
+
readonly indexed: true;
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly type: "uint256";
|
|
1063
|
+
readonly name: "refundedQuote";
|
|
1064
|
+
}];
|
|
1065
|
+
}, {
|
|
1066
|
+
readonly name: "CurveCompleted";
|
|
1067
|
+
readonly type: "event";
|
|
1068
|
+
readonly inputs: readonly [{
|
|
1069
|
+
readonly type: "address";
|
|
1070
|
+
readonly name: "token";
|
|
1071
|
+
readonly indexed: true;
|
|
1072
|
+
}];
|
|
1073
|
+
}, {
|
|
1074
|
+
readonly name: "CurveGraduated";
|
|
1075
|
+
readonly type: "event";
|
|
1076
|
+
readonly inputs: readonly [{
|
|
1077
|
+
readonly type: "address";
|
|
1078
|
+
readonly name: "token";
|
|
1079
|
+
readonly indexed: true;
|
|
1080
|
+
}];
|
|
1081
|
+
}, {
|
|
1082
|
+
readonly name: "AutoGraduationFailed";
|
|
1083
|
+
readonly type: "event";
|
|
1084
|
+
readonly inputs: readonly [{
|
|
1085
|
+
readonly type: "address";
|
|
1086
|
+
readonly name: "token";
|
|
1087
|
+
readonly indexed: true;
|
|
1088
|
+
}];
|
|
1089
|
+
}, {
|
|
1090
|
+
readonly name: "FeesSwept";
|
|
1091
|
+
readonly type: "event";
|
|
1092
|
+
readonly inputs: readonly [{
|
|
1093
|
+
readonly type: "uint256";
|
|
1094
|
+
readonly name: "quoteFees";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly type: "uint256";
|
|
1097
|
+
readonly name: "tokenFees";
|
|
1098
|
+
}, {
|
|
1099
|
+
readonly type: "uint256";
|
|
1100
|
+
readonly name: "buybackTokens";
|
|
1101
|
+
}];
|
|
1102
|
+
}, {
|
|
1103
|
+
readonly name: "BuybackLocked";
|
|
1104
|
+
readonly type: "event";
|
|
1105
|
+
readonly inputs: readonly [{
|
|
1106
|
+
readonly type: "address";
|
|
1107
|
+
readonly name: "token";
|
|
1108
|
+
readonly indexed: true;
|
|
1109
|
+
}, {
|
|
1110
|
+
readonly type: "uint256";
|
|
1111
|
+
readonly name: "quoteSpent";
|
|
1112
|
+
}, {
|
|
1113
|
+
readonly type: "uint256";
|
|
1114
|
+
readonly name: "tokensLocked";
|
|
1115
|
+
}];
|
|
1116
|
+
}];
|
|
1117
|
+
|
|
1118
|
+
declare const tokenAbi: readonly [{
|
|
1119
|
+
readonly name: "name";
|
|
1120
|
+
readonly type: "function";
|
|
1121
|
+
readonly stateMutability: "view";
|
|
1122
|
+
readonly inputs: readonly [];
|
|
1123
|
+
readonly outputs: readonly [{
|
|
1124
|
+
readonly type: "string";
|
|
1125
|
+
}];
|
|
1126
|
+
}, {
|
|
1127
|
+
readonly name: "symbol";
|
|
1128
|
+
readonly type: "function";
|
|
1129
|
+
readonly stateMutability: "view";
|
|
1130
|
+
readonly inputs: readonly [];
|
|
1131
|
+
readonly outputs: readonly [{
|
|
1132
|
+
readonly type: "string";
|
|
1133
|
+
}];
|
|
1134
|
+
}, {
|
|
1135
|
+
readonly name: "decimals";
|
|
1136
|
+
readonly type: "function";
|
|
1137
|
+
readonly stateMutability: "view";
|
|
1138
|
+
readonly inputs: readonly [];
|
|
1139
|
+
readonly outputs: readonly [{
|
|
1140
|
+
readonly type: "uint8";
|
|
1141
|
+
}];
|
|
1142
|
+
}, {
|
|
1143
|
+
readonly name: "totalSupply";
|
|
1144
|
+
readonly type: "function";
|
|
1145
|
+
readonly stateMutability: "view";
|
|
1146
|
+
readonly inputs: readonly [];
|
|
1147
|
+
readonly outputs: readonly [{
|
|
1148
|
+
readonly type: "uint256";
|
|
1149
|
+
}];
|
|
1150
|
+
}, {
|
|
1151
|
+
readonly name: "balanceOf";
|
|
1152
|
+
readonly type: "function";
|
|
1153
|
+
readonly stateMutability: "view";
|
|
1154
|
+
readonly inputs: readonly [{
|
|
1155
|
+
readonly type: "address";
|
|
1156
|
+
readonly name: "account";
|
|
1157
|
+
}];
|
|
1158
|
+
readonly outputs: readonly [{
|
|
1159
|
+
readonly type: "uint256";
|
|
1160
|
+
}];
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly name: "transfer";
|
|
1163
|
+
readonly type: "function";
|
|
1164
|
+
readonly stateMutability: "nonpayable";
|
|
1165
|
+
readonly inputs: readonly [{
|
|
1166
|
+
readonly type: "address";
|
|
1167
|
+
readonly name: "to";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly type: "uint256";
|
|
1170
|
+
readonly name: "amount";
|
|
1171
|
+
}];
|
|
1172
|
+
readonly outputs: readonly [{
|
|
1173
|
+
readonly type: "bool";
|
|
1174
|
+
}];
|
|
1175
|
+
}, {
|
|
1176
|
+
readonly name: "allowance";
|
|
1177
|
+
readonly type: "function";
|
|
1178
|
+
readonly stateMutability: "view";
|
|
1179
|
+
readonly inputs: readonly [{
|
|
1180
|
+
readonly type: "address";
|
|
1181
|
+
readonly name: "owner";
|
|
1182
|
+
}, {
|
|
1183
|
+
readonly type: "address";
|
|
1184
|
+
readonly name: "spender";
|
|
1185
|
+
}];
|
|
1186
|
+
readonly outputs: readonly [{
|
|
1187
|
+
readonly type: "uint256";
|
|
1188
|
+
}];
|
|
1189
|
+
}, {
|
|
1190
|
+
readonly name: "approve";
|
|
1191
|
+
readonly type: "function";
|
|
1192
|
+
readonly stateMutability: "nonpayable";
|
|
1193
|
+
readonly inputs: readonly [{
|
|
1194
|
+
readonly type: "address";
|
|
1195
|
+
readonly name: "spender";
|
|
1196
|
+
}, {
|
|
1197
|
+
readonly type: "uint256";
|
|
1198
|
+
readonly name: "amount";
|
|
1199
|
+
}];
|
|
1200
|
+
readonly outputs: readonly [{
|
|
1201
|
+
readonly type: "bool";
|
|
1202
|
+
}];
|
|
1203
|
+
}, {
|
|
1204
|
+
readonly name: "transferFrom";
|
|
1205
|
+
readonly type: "function";
|
|
1206
|
+
readonly stateMutability: "nonpayable";
|
|
1207
|
+
readonly inputs: readonly [{
|
|
1208
|
+
readonly type: "address";
|
|
1209
|
+
readonly name: "from";
|
|
1210
|
+
}, {
|
|
1211
|
+
readonly type: "address";
|
|
1212
|
+
readonly name: "to";
|
|
1213
|
+
}, {
|
|
1214
|
+
readonly type: "uint256";
|
|
1215
|
+
readonly name: "amount";
|
|
1216
|
+
}];
|
|
1217
|
+
readonly outputs: readonly [{
|
|
1218
|
+
readonly type: "bool";
|
|
1219
|
+
}];
|
|
1220
|
+
}, {
|
|
1221
|
+
readonly name: "getTokenInfo";
|
|
1222
|
+
readonly type: "function";
|
|
1223
|
+
readonly stateMutability: "view";
|
|
1224
|
+
readonly inputs: readonly [];
|
|
1225
|
+
readonly outputs: readonly [{
|
|
1226
|
+
readonly type: "address";
|
|
1227
|
+
readonly name: "tokenDeployer";
|
|
1228
|
+
}, {
|
|
1229
|
+
readonly type: "string";
|
|
1230
|
+
readonly name: "tokenLogo";
|
|
1231
|
+
}, {
|
|
1232
|
+
readonly type: "string";
|
|
1233
|
+
readonly name: "tokenDescription";
|
|
1234
|
+
}, {
|
|
1235
|
+
readonly type: "tuple";
|
|
1236
|
+
readonly components: readonly [{
|
|
1237
|
+
readonly type: "string";
|
|
1238
|
+
readonly name: "twitter";
|
|
1239
|
+
}, {
|
|
1240
|
+
readonly type: "string";
|
|
1241
|
+
readonly name: "telegram";
|
|
1242
|
+
}, {
|
|
1243
|
+
readonly type: "string";
|
|
1244
|
+
readonly name: "discord";
|
|
1245
|
+
}, {
|
|
1246
|
+
readonly type: "string";
|
|
1247
|
+
readonly name: "website";
|
|
1248
|
+
}, {
|
|
1249
|
+
readonly type: "string";
|
|
1250
|
+
readonly name: "farcaster";
|
|
1251
|
+
}];
|
|
1252
|
+
readonly name: "tokenSocials";
|
|
1253
|
+
}];
|
|
1254
|
+
}, {
|
|
1255
|
+
readonly name: "Transfer";
|
|
1256
|
+
readonly type: "event";
|
|
1257
|
+
readonly inputs: readonly [{
|
|
1258
|
+
readonly type: "address";
|
|
1259
|
+
readonly name: "from";
|
|
1260
|
+
readonly indexed: true;
|
|
1261
|
+
}, {
|
|
1262
|
+
readonly type: "address";
|
|
1263
|
+
readonly name: "to";
|
|
1264
|
+
readonly indexed: true;
|
|
1265
|
+
}, {
|
|
1266
|
+
readonly type: "uint256";
|
|
1267
|
+
readonly name: "value";
|
|
1268
|
+
}];
|
|
1269
|
+
}, {
|
|
1270
|
+
readonly name: "Approval";
|
|
1271
|
+
readonly type: "event";
|
|
1272
|
+
readonly inputs: readonly [{
|
|
1273
|
+
readonly type: "address";
|
|
1274
|
+
readonly name: "owner";
|
|
1275
|
+
readonly indexed: true;
|
|
1276
|
+
}, {
|
|
1277
|
+
readonly type: "address";
|
|
1278
|
+
readonly name: "spender";
|
|
1279
|
+
readonly indexed: true;
|
|
1280
|
+
}, {
|
|
1281
|
+
readonly type: "uint256";
|
|
1282
|
+
readonly name: "value";
|
|
1283
|
+
}];
|
|
1284
|
+
}];
|
|
1285
|
+
|
|
1286
|
+
declare const hookAbi: readonly [{
|
|
1287
|
+
readonly name: "pendingFees";
|
|
1288
|
+
readonly type: "function";
|
|
1289
|
+
readonly stateMutability: "view";
|
|
1290
|
+
readonly inputs: readonly [{
|
|
1291
|
+
readonly type: "bytes32";
|
|
1292
|
+
readonly name: "poolId";
|
|
1293
|
+
}, {
|
|
1294
|
+
readonly type: "address";
|
|
1295
|
+
readonly name: "currency";
|
|
1296
|
+
}];
|
|
1297
|
+
readonly outputs: readonly [{
|
|
1298
|
+
readonly type: "uint256";
|
|
1299
|
+
}];
|
|
1300
|
+
}, {
|
|
1301
|
+
readonly name: "pendingCreatorTax";
|
|
1302
|
+
readonly type: "function";
|
|
1303
|
+
readonly stateMutability: "view";
|
|
1304
|
+
readonly inputs: readonly [{
|
|
1305
|
+
readonly type: "bytes32";
|
|
1306
|
+
readonly name: "poolId";
|
|
1307
|
+
}, {
|
|
1308
|
+
readonly type: "address";
|
|
1309
|
+
readonly name: "currency";
|
|
1310
|
+
}];
|
|
1311
|
+
readonly outputs: readonly [{
|
|
1312
|
+
readonly type: "uint256";
|
|
1313
|
+
}];
|
|
1314
|
+
}, {
|
|
1315
|
+
readonly name: "PoolRegistered";
|
|
1316
|
+
readonly type: "event";
|
|
1317
|
+
readonly inputs: readonly [{
|
|
1318
|
+
readonly type: "bytes32";
|
|
1319
|
+
readonly name: "poolId";
|
|
1320
|
+
readonly indexed: true;
|
|
1321
|
+
}, {
|
|
1322
|
+
readonly type: "address";
|
|
1323
|
+
readonly name: "token";
|
|
1324
|
+
readonly indexed: true;
|
|
1325
|
+
}, {
|
|
1326
|
+
readonly type: "address";
|
|
1327
|
+
readonly name: "quoteToken";
|
|
1328
|
+
readonly indexed: true;
|
|
1329
|
+
}];
|
|
1330
|
+
}, {
|
|
1331
|
+
readonly name: "PoolFeesSwept";
|
|
1332
|
+
readonly type: "event";
|
|
1333
|
+
readonly inputs: readonly [{
|
|
1334
|
+
readonly type: "bytes32";
|
|
1335
|
+
readonly name: "poolId";
|
|
1336
|
+
readonly indexed: true;
|
|
1337
|
+
}, {
|
|
1338
|
+
readonly type: "uint256";
|
|
1339
|
+
readonly name: "quoteFees";
|
|
1340
|
+
}, {
|
|
1341
|
+
readonly type: "uint256";
|
|
1342
|
+
readonly name: "tokenFees";
|
|
1343
|
+
}, {
|
|
1344
|
+
readonly type: "uint256";
|
|
1345
|
+
readonly name: "buybackTokens";
|
|
1346
|
+
}];
|
|
1347
|
+
}, {
|
|
1348
|
+
readonly name: "PoolConversionSkipped";
|
|
1349
|
+
readonly type: "event";
|
|
1350
|
+
readonly inputs: readonly [{
|
|
1351
|
+
readonly type: "bytes32";
|
|
1352
|
+
readonly name: "poolId";
|
|
1353
|
+
readonly indexed: true;
|
|
1354
|
+
}, {
|
|
1355
|
+
readonly type: "string";
|
|
1356
|
+
readonly name: "reason";
|
|
1357
|
+
}];
|
|
1358
|
+
}, {
|
|
1359
|
+
readonly name: "PoolBuybackSkipped";
|
|
1360
|
+
readonly type: "event";
|
|
1361
|
+
readonly inputs: readonly [{
|
|
1362
|
+
readonly type: "bytes32";
|
|
1363
|
+
readonly name: "poolId";
|
|
1364
|
+
readonly indexed: true;
|
|
1365
|
+
}, {
|
|
1366
|
+
readonly type: "string";
|
|
1367
|
+
readonly name: "reason";
|
|
1368
|
+
}];
|
|
1369
|
+
}];
|
|
1370
|
+
|
|
1371
|
+
declare const escrowAbi: readonly [{
|
|
1372
|
+
readonly name: "balanceOf";
|
|
1373
|
+
readonly type: "function";
|
|
1374
|
+
readonly stateMutability: "view";
|
|
1375
|
+
readonly inputs: readonly [{
|
|
1376
|
+
readonly type: "address";
|
|
1377
|
+
readonly name: "recipient";
|
|
1378
|
+
}];
|
|
1379
|
+
readonly outputs: readonly [{
|
|
1380
|
+
readonly type: "uint256";
|
|
1381
|
+
}];
|
|
1382
|
+
}, {
|
|
1383
|
+
readonly name: "balanceOfToken";
|
|
1384
|
+
readonly type: "function";
|
|
1385
|
+
readonly stateMutability: "view";
|
|
1386
|
+
readonly inputs: readonly [{
|
|
1387
|
+
readonly type: "address";
|
|
1388
|
+
readonly name: "recipient";
|
|
1389
|
+
}, {
|
|
1390
|
+
readonly type: "address";
|
|
1391
|
+
readonly name: "token";
|
|
1392
|
+
}];
|
|
1393
|
+
readonly outputs: readonly [{
|
|
1394
|
+
readonly type: "uint256";
|
|
1395
|
+
}];
|
|
1396
|
+
}, {
|
|
1397
|
+
readonly name: "claim";
|
|
1398
|
+
readonly type: "function";
|
|
1399
|
+
readonly stateMutability: "nonpayable";
|
|
1400
|
+
readonly inputs: readonly [];
|
|
1401
|
+
readonly outputs: readonly [];
|
|
1402
|
+
}, {
|
|
1403
|
+
readonly name: "claimToken";
|
|
1404
|
+
readonly type: "function";
|
|
1405
|
+
readonly stateMutability: "nonpayable";
|
|
1406
|
+
readonly inputs: readonly [{
|
|
1407
|
+
readonly type: "address";
|
|
1408
|
+
readonly name: "token";
|
|
1409
|
+
}];
|
|
1410
|
+
readonly outputs: readonly [];
|
|
1411
|
+
}, {
|
|
1412
|
+
readonly name: "Credited";
|
|
1413
|
+
readonly type: "event";
|
|
1414
|
+
readonly inputs: readonly [{
|
|
1415
|
+
readonly type: "address";
|
|
1416
|
+
readonly name: "recipient";
|
|
1417
|
+
readonly indexed: true;
|
|
1418
|
+
}, {
|
|
1419
|
+
readonly type: "uint256";
|
|
1420
|
+
readonly name: "amount";
|
|
1421
|
+
}];
|
|
1422
|
+
}, {
|
|
1423
|
+
readonly name: "Claimed";
|
|
1424
|
+
readonly type: "event";
|
|
1425
|
+
readonly inputs: readonly [{
|
|
1426
|
+
readonly type: "address";
|
|
1427
|
+
readonly name: "recipient";
|
|
1428
|
+
readonly indexed: true;
|
|
1429
|
+
}, {
|
|
1430
|
+
readonly type: "uint256";
|
|
1431
|
+
readonly name: "amount";
|
|
1432
|
+
}];
|
|
1433
|
+
}, {
|
|
1434
|
+
readonly name: "CreditedToken";
|
|
1435
|
+
readonly type: "event";
|
|
1436
|
+
readonly inputs: readonly [{
|
|
1437
|
+
readonly type: "address";
|
|
1438
|
+
readonly name: "recipient";
|
|
1439
|
+
readonly indexed: true;
|
|
1440
|
+
}, {
|
|
1441
|
+
readonly type: "address";
|
|
1442
|
+
readonly name: "token";
|
|
1443
|
+
readonly indexed: true;
|
|
1444
|
+
}, {
|
|
1445
|
+
readonly type: "uint256";
|
|
1446
|
+
readonly name: "amount";
|
|
1447
|
+
}];
|
|
1448
|
+
}, {
|
|
1449
|
+
readonly name: "ClaimedToken";
|
|
1450
|
+
readonly type: "event";
|
|
1451
|
+
readonly inputs: readonly [{
|
|
1452
|
+
readonly type: "address";
|
|
1453
|
+
readonly name: "recipient";
|
|
1454
|
+
readonly indexed: true;
|
|
1455
|
+
}, {
|
|
1456
|
+
readonly type: "address";
|
|
1457
|
+
readonly name: "token";
|
|
1458
|
+
readonly indexed: true;
|
|
1459
|
+
}, {
|
|
1460
|
+
readonly type: "uint256";
|
|
1461
|
+
readonly name: "amount";
|
|
1462
|
+
}];
|
|
1463
|
+
}];
|
|
1464
|
+
|
|
1465
|
+
declare const vaultAbi: readonly [{
|
|
1466
|
+
readonly name: "totalLocked";
|
|
1467
|
+
readonly type: "function";
|
|
1468
|
+
readonly stateMutability: "view";
|
|
1469
|
+
readonly inputs: readonly [{
|
|
1470
|
+
readonly type: "address";
|
|
1471
|
+
readonly name: "token";
|
|
1472
|
+
}];
|
|
1473
|
+
readonly outputs: readonly [{
|
|
1474
|
+
readonly type: "uint256";
|
|
1475
|
+
}];
|
|
1476
|
+
}, {
|
|
1477
|
+
readonly name: "totalReleased";
|
|
1478
|
+
readonly type: "function";
|
|
1479
|
+
readonly stateMutability: "view";
|
|
1480
|
+
readonly inputs: readonly [{
|
|
1481
|
+
readonly type: "address";
|
|
1482
|
+
readonly name: "token";
|
|
1483
|
+
}];
|
|
1484
|
+
readonly outputs: readonly [{
|
|
1485
|
+
readonly type: "uint256";
|
|
1486
|
+
}];
|
|
1487
|
+
}, {
|
|
1488
|
+
readonly name: "vestedAmount";
|
|
1489
|
+
readonly type: "function";
|
|
1490
|
+
readonly stateMutability: "view";
|
|
1491
|
+
readonly inputs: readonly [{
|
|
1492
|
+
readonly type: "address";
|
|
1493
|
+
readonly name: "token";
|
|
1494
|
+
}];
|
|
1495
|
+
readonly outputs: readonly [{
|
|
1496
|
+
readonly type: "uint256";
|
|
1497
|
+
}];
|
|
1498
|
+
}, {
|
|
1499
|
+
readonly name: "releasable";
|
|
1500
|
+
readonly type: "function";
|
|
1501
|
+
readonly stateMutability: "view";
|
|
1502
|
+
readonly inputs: readonly [{
|
|
1503
|
+
readonly type: "address";
|
|
1504
|
+
readonly name: "token";
|
|
1505
|
+
}];
|
|
1506
|
+
readonly outputs: readonly [{
|
|
1507
|
+
readonly type: "uint256";
|
|
1508
|
+
}];
|
|
1509
|
+
}, {
|
|
1510
|
+
readonly name: "vestingStart";
|
|
1511
|
+
readonly type: "function";
|
|
1512
|
+
readonly stateMutability: "view";
|
|
1513
|
+
readonly inputs: readonly [{
|
|
1514
|
+
readonly type: "address";
|
|
1515
|
+
readonly name: "token";
|
|
1516
|
+
}];
|
|
1517
|
+
readonly outputs: readonly [{
|
|
1518
|
+
readonly type: "uint256";
|
|
1519
|
+
}];
|
|
1520
|
+
}, {
|
|
1521
|
+
readonly name: "VESTING_DURATION";
|
|
1522
|
+
readonly type: "function";
|
|
1523
|
+
readonly stateMutability: "view";
|
|
1524
|
+
readonly inputs: readonly [];
|
|
1525
|
+
readonly outputs: readonly [{
|
|
1526
|
+
readonly type: "uint256";
|
|
1527
|
+
}];
|
|
1528
|
+
}, {
|
|
1529
|
+
readonly name: "release";
|
|
1530
|
+
readonly type: "function";
|
|
1531
|
+
readonly stateMutability: "nonpayable";
|
|
1532
|
+
readonly inputs: readonly [{
|
|
1533
|
+
readonly type: "address";
|
|
1534
|
+
readonly name: "token";
|
|
1535
|
+
}];
|
|
1536
|
+
readonly outputs: readonly [{
|
|
1537
|
+
readonly type: "uint256";
|
|
1538
|
+
readonly name: "released";
|
|
1539
|
+
}];
|
|
1540
|
+
}, {
|
|
1541
|
+
readonly name: "Locked";
|
|
1542
|
+
readonly type: "event";
|
|
1543
|
+
readonly inputs: readonly [{
|
|
1544
|
+
readonly type: "address";
|
|
1545
|
+
readonly name: "token";
|
|
1546
|
+
readonly indexed: true;
|
|
1547
|
+
}, {
|
|
1548
|
+
readonly type: "uint256";
|
|
1549
|
+
readonly name: "amount";
|
|
1550
|
+
}, {
|
|
1551
|
+
readonly type: "uint256";
|
|
1552
|
+
readonly name: "vestingStart";
|
|
1553
|
+
}];
|
|
1554
|
+
}, {
|
|
1555
|
+
readonly name: "Released";
|
|
1556
|
+
readonly type: "event";
|
|
1557
|
+
readonly inputs: readonly [{
|
|
1558
|
+
readonly type: "address";
|
|
1559
|
+
readonly name: "token";
|
|
1560
|
+
readonly indexed: true;
|
|
1561
|
+
}, {
|
|
1562
|
+
readonly type: "address";
|
|
1563
|
+
readonly name: "recipient";
|
|
1564
|
+
readonly indexed: true;
|
|
1565
|
+
}, {
|
|
1566
|
+
readonly type: "uint256";
|
|
1567
|
+
readonly name: "amount";
|
|
1568
|
+
}];
|
|
1569
|
+
}];
|
|
1570
|
+
|
|
1571
|
+
declare const routerAbi: readonly [{
|
|
1572
|
+
readonly name: "launchAndBuy";
|
|
1573
|
+
readonly type: "function";
|
|
1574
|
+
readonly stateMutability: "payable";
|
|
1575
|
+
readonly inputs: readonly [{
|
|
1576
|
+
readonly type: "tuple";
|
|
1577
|
+
readonly components: readonly [{
|
|
1578
|
+
readonly type: "string";
|
|
1579
|
+
readonly name: "name";
|
|
1580
|
+
}, {
|
|
1581
|
+
readonly type: "string";
|
|
1582
|
+
readonly name: "symbol";
|
|
1583
|
+
}, {
|
|
1584
|
+
readonly type: "string";
|
|
1585
|
+
readonly name: "logo";
|
|
1586
|
+
}, {
|
|
1587
|
+
readonly type: "string";
|
|
1588
|
+
readonly name: "description";
|
|
1589
|
+
}, {
|
|
1590
|
+
readonly name: "socials";
|
|
1591
|
+
readonly type: "tuple";
|
|
1592
|
+
readonly components: readonly [{
|
|
1593
|
+
readonly type: "string";
|
|
1594
|
+
readonly name: "twitter";
|
|
1595
|
+
}, {
|
|
1596
|
+
readonly type: "string";
|
|
1597
|
+
readonly name: "telegram";
|
|
1598
|
+
}, {
|
|
1599
|
+
readonly type: "string";
|
|
1600
|
+
readonly name: "discord";
|
|
1601
|
+
}, {
|
|
1602
|
+
readonly type: "string";
|
|
1603
|
+
readonly name: "website";
|
|
1604
|
+
}, {
|
|
1605
|
+
readonly type: "string";
|
|
1606
|
+
readonly name: "farcaster";
|
|
1607
|
+
}];
|
|
1608
|
+
}, {
|
|
1609
|
+
readonly type: "address";
|
|
1610
|
+
readonly name: "creatorFeeRecipient";
|
|
1611
|
+
}, {
|
|
1612
|
+
readonly type: "uint16";
|
|
1613
|
+
readonly name: "creatorTaxBps";
|
|
1614
|
+
}, {
|
|
1615
|
+
readonly type: "bool";
|
|
1616
|
+
readonly name: "buybackEnabled";
|
|
1617
|
+
}, {
|
|
1618
|
+
readonly type: "bytes32";
|
|
1619
|
+
readonly name: "expectedEconomics";
|
|
1620
|
+
}, {
|
|
1621
|
+
readonly type: "bytes32";
|
|
1622
|
+
readonly name: "salt";
|
|
1623
|
+
}];
|
|
1624
|
+
readonly name: "params";
|
|
1625
|
+
}, {
|
|
1626
|
+
readonly type: "uint256";
|
|
1627
|
+
readonly name: "launchConfigId";
|
|
1628
|
+
}, {
|
|
1629
|
+
readonly type: "address";
|
|
1630
|
+
readonly name: "pairToken";
|
|
1631
|
+
}, {
|
|
1632
|
+
readonly type: "uint256";
|
|
1633
|
+
readonly name: "quoteIn";
|
|
1634
|
+
}, {
|
|
1635
|
+
readonly type: "uint256";
|
|
1636
|
+
readonly name: "minTokensOut";
|
|
1637
|
+
}, {
|
|
1638
|
+
readonly type: "address";
|
|
1639
|
+
readonly name: "recipient";
|
|
1640
|
+
}, {
|
|
1641
|
+
readonly type: "address[]";
|
|
1642
|
+
readonly name: "snipeTaxExemptions";
|
|
1643
|
+
}];
|
|
1644
|
+
readonly outputs: readonly [{
|
|
1645
|
+
readonly type: "address";
|
|
1646
|
+
readonly name: "token";
|
|
1647
|
+
}, {
|
|
1648
|
+
readonly type: "address";
|
|
1649
|
+
readonly name: "curve";
|
|
1650
|
+
}, {
|
|
1651
|
+
readonly type: "uint256";
|
|
1652
|
+
readonly name: "tokensOut";
|
|
1653
|
+
}];
|
|
1654
|
+
}];
|
|
1655
|
+
|
|
1656
|
+
declare const poolManagerAbi: readonly [{
|
|
1657
|
+
readonly name: "getPool";
|
|
1658
|
+
readonly type: "function";
|
|
1659
|
+
readonly stateMutability: "view";
|
|
1660
|
+
readonly inputs: readonly [{
|
|
1661
|
+
readonly type: "tuple";
|
|
1662
|
+
readonly components: readonly [{
|
|
1663
|
+
readonly type: "address";
|
|
1664
|
+
readonly name: "currency0";
|
|
1665
|
+
}, {
|
|
1666
|
+
readonly type: "address";
|
|
1667
|
+
readonly name: "currency1";
|
|
1668
|
+
}, {
|
|
1669
|
+
readonly type: "uint24";
|
|
1670
|
+
readonly name: "fee";
|
|
1671
|
+
}, {
|
|
1672
|
+
readonly type: "int24";
|
|
1673
|
+
readonly name: "tickSpacing";
|
|
1674
|
+
}, {
|
|
1675
|
+
readonly type: "address";
|
|
1676
|
+
readonly name: "hooks";
|
|
1677
|
+
}];
|
|
1678
|
+
readonly name: "key";
|
|
1679
|
+
}];
|
|
1680
|
+
readonly outputs: readonly [{
|
|
1681
|
+
readonly type: "uint160";
|
|
1682
|
+
readonly name: "sqrtPriceX96";
|
|
1683
|
+
}, {
|
|
1684
|
+
readonly type: "int24";
|
|
1685
|
+
readonly name: "tick";
|
|
1686
|
+
}, {
|
|
1687
|
+
readonly type: "uint24";
|
|
1688
|
+
readonly name: "protocolFeesToken0";
|
|
1689
|
+
}, {
|
|
1690
|
+
readonly type: "uint24";
|
|
1691
|
+
readonly name: "protocolFeesToken1";
|
|
1692
|
+
}, {
|
|
1693
|
+
readonly type: "uint24";
|
|
1694
|
+
readonly name: "lpFeesToken0";
|
|
1695
|
+
}, {
|
|
1696
|
+
readonly type: "uint24";
|
|
1697
|
+
readonly name: "lpFeesToken1";
|
|
1698
|
+
}];
|
|
1699
|
+
}, {
|
|
1700
|
+
readonly name: "getSlot0";
|
|
1701
|
+
readonly type: "function";
|
|
1702
|
+
readonly stateMutability: "view";
|
|
1703
|
+
readonly inputs: readonly [{
|
|
1704
|
+
readonly type: "bytes32";
|
|
1705
|
+
readonly name: "poolId";
|
|
1706
|
+
}];
|
|
1707
|
+
readonly outputs: readonly [{
|
|
1708
|
+
readonly type: "uint160";
|
|
1709
|
+
readonly name: "sqrtPriceX96";
|
|
1710
|
+
}, {
|
|
1711
|
+
readonly type: "int24";
|
|
1712
|
+
readonly name: "tick";
|
|
1713
|
+
}, {
|
|
1714
|
+
readonly type: "uint24";
|
|
1715
|
+
readonly name: "protocolFeesToken0";
|
|
1716
|
+
}, {
|
|
1717
|
+
readonly type: "uint24";
|
|
1718
|
+
readonly name: "protocolFeesToken1";
|
|
1719
|
+
}, {
|
|
1720
|
+
readonly type: "uint24";
|
|
1721
|
+
readonly name: "lpFeesToken0";
|
|
1722
|
+
}, {
|
|
1723
|
+
readonly type: "uint24";
|
|
1724
|
+
readonly name: "lpFeesToken1";
|
|
1725
|
+
}];
|
|
1726
|
+
}, {
|
|
1727
|
+
readonly name: "Swap";
|
|
1728
|
+
readonly type: "event";
|
|
1729
|
+
readonly inputs: readonly [{
|
|
1730
|
+
readonly type: "bytes32";
|
|
1731
|
+
readonly name: "poolId";
|
|
1732
|
+
readonly indexed: true;
|
|
1733
|
+
}, {
|
|
1734
|
+
readonly type: "address";
|
|
1735
|
+
readonly name: "sender";
|
|
1736
|
+
readonly indexed: true;
|
|
1737
|
+
}, {
|
|
1738
|
+
readonly type: "int256";
|
|
1739
|
+
readonly name: "amount0";
|
|
1740
|
+
}, {
|
|
1741
|
+
readonly type: "int256";
|
|
1742
|
+
readonly name: "amount1";
|
|
1743
|
+
}, {
|
|
1744
|
+
readonly type: "uint160";
|
|
1745
|
+
readonly name: "sqrtPriceX96";
|
|
1746
|
+
}, {
|
|
1747
|
+
readonly type: "uint128";
|
|
1748
|
+
readonly name: "liquidity";
|
|
1749
|
+
}, {
|
|
1750
|
+
readonly type: "int24";
|
|
1751
|
+
readonly name: "tick";
|
|
1752
|
+
}];
|
|
1753
|
+
}, {
|
|
1754
|
+
readonly name: "Initialize";
|
|
1755
|
+
readonly type: "event";
|
|
1756
|
+
readonly inputs: readonly [{
|
|
1757
|
+
readonly type: "bytes32";
|
|
1758
|
+
readonly name: "poolId";
|
|
1759
|
+
readonly indexed: true;
|
|
1760
|
+
}, {
|
|
1761
|
+
readonly type: "address";
|
|
1762
|
+
readonly name: "currency0";
|
|
1763
|
+
readonly indexed: true;
|
|
1764
|
+
}, {
|
|
1765
|
+
readonly type: "address";
|
|
1766
|
+
readonly name: "currency1";
|
|
1767
|
+
readonly indexed: true;
|
|
1768
|
+
}, {
|
|
1769
|
+
readonly type: "int24";
|
|
1770
|
+
readonly name: "tickSpacing";
|
|
1771
|
+
}, {
|
|
1772
|
+
readonly type: "address";
|
|
1773
|
+
readonly name: "hooks";
|
|
1774
|
+
}];
|
|
1775
|
+
}];
|
|
1776
|
+
|
|
1777
|
+
/**
|
|
1778
|
+
* Normalize an address to checksummed form.
|
|
1779
|
+
* Returns ZERO_ADDRESS for nullish inputs.
|
|
1780
|
+
*/
|
|
1781
|
+
declare function normalizeAddress(address?: Address | string | null): Address;
|
|
1782
|
+
/**
|
|
1783
|
+
* Check if a value looks like a valid Ethereum address.
|
|
1784
|
+
*/
|
|
1785
|
+
declare function isValidAddress(address: string): address is Address;
|
|
1786
|
+
/**
|
|
1787
|
+
* Format a native ETH value (18 decimals) to a human-readable string.
|
|
1788
|
+
*/
|
|
1789
|
+
declare function formatETH(value: bigint): string;
|
|
1790
|
+
/**
|
|
1791
|
+
* Format a token amount using its decimal count.
|
|
1792
|
+
*/
|
|
1793
|
+
declare function formatTokenAmount(value: bigint, decimals: number): string;
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* Shorten an address for display: 0x1234...5678
|
|
1797
|
+
*/
|
|
1798
|
+
declare function shortenAddress(address: Address): string;
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* Ceiling division: ⌈a / b⌉
|
|
1802
|
+
*/
|
|
1803
|
+
declare function ceilDiv(a: bigint, b: bigint): bigint;
|
|
1804
|
+
/**
|
|
1805
|
+
* Constant product amountOut: given `inAmount` going in, compute how much
|
|
1806
|
+
* comes out. No fees applied — caller deducts fees before or after.
|
|
1807
|
+
*
|
|
1808
|
+
* Formula: out = (in * reserveOut) / (reserveIn + in)
|
|
1809
|
+
*/
|
|
1810
|
+
declare function amountOut(inAmount: bigint, reserveIn: bigint, reserveOut: bigint): bigint;
|
|
1811
|
+
/**
|
|
1812
|
+
* Constant product amountIn: given `outAmount` desired out, compute how much
|
|
1813
|
+
* must go in. Includes +1n rounding up.
|
|
1814
|
+
*
|
|
1815
|
+
* Formula: in = (out * reserveIn) / (reserveOut - out) + 1
|
|
1816
|
+
*/
|
|
1817
|
+
declare function amountIn(outAmount: bigint, reserveIn: bigint, reserveOut: bigint): bigint;
|
|
1818
|
+
/**
|
|
1819
|
+
* Apply a basis-point fee to an amount.
|
|
1820
|
+
* Returns the fee amount (not the net).
|
|
1821
|
+
*/
|
|
1822
|
+
declare function applyBps(amount: bigint, bps: bigint): bigint;
|
|
1823
|
+
/**
|
|
1824
|
+
* Subtract a basis-point fee from an amount, returning the net.
|
|
1825
|
+
*/
|
|
1826
|
+
declare function subtractBps(amount: bigint, bps: bigint): bigint;
|
|
1827
|
+
/**
|
|
1828
|
+
* Compute the marginal price of one token in the quote asset.
|
|
1829
|
+
* Returns a floating-point number for display purposes only.
|
|
1830
|
+
*/
|
|
1831
|
+
declare function marginalPrice(quoteReserve: bigint, tokenReserve: bigint): number;
|
|
1832
|
+
/**
|
|
1833
|
+
* Compute graduation progress as a fraction (0..1).
|
|
1834
|
+
*/
|
|
1835
|
+
declare function graduationProgress(raised: bigint, threshold: bigint): number;
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* Validate an Ethereum address. Throws if invalid.
|
|
1839
|
+
*/
|
|
1840
|
+
declare function requireValidAddress(address: Address, label: string): void;
|
|
1841
|
+
/**
|
|
1842
|
+
* Validate creator tax is within protocol bounds.
|
|
1843
|
+
*/
|
|
1844
|
+
declare function requireValidCreatorTax(taxBps: number, maxBps: bigint): void;
|
|
1845
|
+
/**
|
|
1846
|
+
* Validate snipe tax exemption list length.
|
|
1847
|
+
*/
|
|
1848
|
+
declare function requireValidExemptions(exemptions: Address[]): void;
|
|
1849
|
+
/**
|
|
1850
|
+
* Validate that a quote amount is positive.
|
|
1851
|
+
*/
|
|
1852
|
+
declare function requirePositiveAmount(amount: bigint, label: string): void;
|
|
1853
|
+
/**
|
|
1854
|
+
* Validate slippage tolerance (0-10000 bps).
|
|
1855
|
+
*/
|
|
1856
|
+
declare function requireValidSlippage(slippageBps: number): void;
|
|
1857
|
+
/**
|
|
1858
|
+
* Compute minimum output from a quoted amount and slippage tolerance.
|
|
1859
|
+
*/
|
|
1860
|
+
declare function minOutputWithSlippage(quoted: bigint, slippageBps: number): bigint;
|
|
1861
|
+
|
|
1862
|
+
export { ADDRESSES, BPS, type BuyQuote, type BuyResult, type BuybackModule, type CurveModule, type CurveReserves, type CurveState, type DeployedAddresses, type EventsModule, type FactoryModule, type FeeBalance, type FeePolicy, type FeeSweepEvent, type FeesModule, type LaunchConfig, type LaunchConfigWithId, type LaunchEvent, type LaunchedToken, MAX_SNIPE_EXEMPTIONS, MIGRATION_CLAIM_WINDOW_SECS, type MigrationEpoch, type MigrationModule, type MigrationStatus, PHASE, type PendingTakeover, type Phase, type PonsClient, type PonsClientConfig, type PonsWallet, type PoolKey, type PoolModule, type QuoteAsset, ROBINHOOD_CHAIN_ID, SNIPE_TAX_DECAY_NS, type SellQuote, type SellResult, type Socials, type TakeoverModule, type TakeoverProposalEvent, type TokenInfo, type TokenParams, type TradeEvent, VESTING_DURATION_SECS, type VestingState, ZERO_ADDRESS, amountIn, amountOut, applyBps, ceilDiv, createPonsClient, curveAbi, escrowAbi, factoryAbi, formatETH, formatTokenAmount, graduationProgress, hookAbi, isValidAddress, marginalPrice, minOutputWithSlippage, normalizeAddress, poolManagerAbi, requirePositiveAmount, requireValidAddress, requireValidCreatorTax, requireValidExemptions, requireValidSlippage, routerAbi, shortenAddress, subtractBps, tokenAbi, vaultAbi };
|