@flaunch/sdk 0.7.1 → 0.8.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.
Files changed (56) hide show
  1. package/README.md +7 -7
  2. package/dist/abi/AnyPositionManager.d.ts +1922 -0
  3. package/dist/abi/AnyPositionManager.d.ts.map +1 -0
  4. package/dist/abi/FeeEscrow.d.ts +282 -0
  5. package/dist/abi/FeeEscrow.d.ts.map +1 -0
  6. package/dist/abi/ReferralEscrow.d.ts +321 -0
  7. package/dist/abi/ReferralEscrow.d.ts.map +1 -0
  8. package/dist/abi/index.cjs +10989 -1717
  9. package/dist/abi/index.cjs.map +1 -1
  10. package/dist/abi/index.d.ts +18 -0
  11. package/dist/abi/index.d.ts.map +1 -1
  12. package/dist/abi/index.js +10972 -1718
  13. package/dist/abi/index.js.map +1 -1
  14. package/dist/addresses/index.cjs +16 -0
  15. package/dist/addresses/index.cjs.map +1 -1
  16. package/dist/addresses/index.js +14 -1
  17. package/dist/addresses/index.js.map +1 -1
  18. package/dist/addresses.d.ts +3 -0
  19. package/dist/addresses.d.ts.map +1 -1
  20. package/dist/clients/AnyPositionManagerClient.d.ts +87 -0
  21. package/dist/clients/AnyPositionManagerClient.d.ts.map +1 -0
  22. package/dist/clients/FairLaunchClient.d.ts +3 -0
  23. package/dist/clients/FairLaunchClient.d.ts.map +1 -1
  24. package/dist/clients/FeeEscrowClient.d.ts +39 -0
  25. package/dist/clients/FeeEscrowClient.d.ts.map +1 -0
  26. package/dist/clients/FlaunchPositionManagerClient.d.ts +12 -0
  27. package/dist/clients/FlaunchPositionManagerClient.d.ts.map +1 -1
  28. package/dist/clients/InitialPriceClient.d.ts +4 -0
  29. package/dist/clients/InitialPriceClient.d.ts.map +1 -1
  30. package/dist/clients/MemecoinClient.d.ts +5 -0
  31. package/dist/clients/MemecoinClient.d.ts.map +1 -1
  32. package/dist/clients/QuoterClient.d.ts +6 -6
  33. package/dist/clients/QuoterClient.d.ts.map +1 -1
  34. package/dist/clients/ReferralEscrowClient.d.ts +40 -0
  35. package/dist/clients/ReferralEscrowClient.d.ts.map +1 -0
  36. package/dist/hooks/index.cjs +2 -2
  37. package/dist/hooks/index.cjs.map +1 -1
  38. package/dist/hooks/index.js +2 -2
  39. package/dist/hooks/index.js.map +1 -1
  40. package/dist/index.cjs.js +2859 -391
  41. package/dist/index.cjs.js.map +1 -1
  42. package/dist/index.d.ts +2 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.esm.js +2859 -413
  45. package/dist/index.esm.js.map +1 -1
  46. package/dist/index.umd.js +1 -1
  47. package/dist/index.umd.js.map +1 -1
  48. package/dist/sdk/FlaunchSDK.d.ts +136 -90
  49. package/dist/sdk/FlaunchSDK.d.ts.map +1 -1
  50. package/dist/sdk/drift.d.ts +21 -0
  51. package/dist/sdk/drift.d.ts.map +1 -0
  52. package/dist/types.d.ts +9 -0
  53. package/dist/types.d.ts.map +1 -1
  54. package/dist/utils/universalRouter.d.ts +2 -2
  55. package/dist/utils/universalRouter.d.ts.map +1 -1
  56. package/package.json +1 -1
@@ -1,20 +1,22 @@
1
1
  import { Drift, HexString, ReadWriteAdapter, type Address } from "@delvtech/drift";
2
- import { ReadFlaunchPositionManager, WatchPoolCreatedParams, WatchPoolSwapParams as WatchPoolSwapParamsPositionManager } from "../clients/FlaunchPositionManagerClient";
2
+ import { ReadFlaunchPositionManager, ReadWriteFlaunchPositionManager, WatchPoolCreatedParams, WatchPoolSwapParams as WatchPoolSwapParamsPositionManager } from "../clients/FlaunchPositionManagerClient";
3
3
  import { ReadPoolManager, PositionInfoParams } from "../clients/PoolManagerClient";
4
4
  import { ReadStateView } from "../clients/StateViewClient";
5
5
  import { ReadFairLaunch } from "../clients/FairLaunchClient";
6
6
  import { ReadBidWall } from "../clients/BidWallClient";
7
- import { ReadWriteFastFlaunchZap, FastFlaunchParams, FastFlaunchIPFSParams } from "../clients/FastFlaunchClient";
8
7
  import { ReadFlaunchZap, ReadWriteFlaunchZap, FlaunchParams, FlaunchIPFSParams, FlaunchWithRevenueManagerParams, FlaunchWithRevenueManagerIPFSParams } from "../clients/FlaunchZapClient";
9
8
  import { ReadFlaunch } from "../clients/FlaunchClient";
10
9
  import { ReadQuoter } from "clients/QuoterClient";
11
10
  import { ReadPermit2, ReadWritePermit2 } from "clients/Permit2Client";
12
11
  import { ReadFlaunchPositionManagerV1_1, ReadWriteFlaunchPositionManagerV1_1 } from "clients/FlaunchPositionManagerV1_1Client";
12
+ import { AnyFlaunchParams, ReadAnyPositionManager, ReadWriteAnyPositionManager } from "clients/AnyPositionManagerClient";
13
+ import { ReadFeeEscrow, ReadWriteFeeEscrow } from "clients/FeeEscrowClient";
14
+ import { ReadReferralEscrow, ReadWriteReferralEscrow } from "clients/ReferralEscrowClient";
13
15
  import { ReadBidWallV1_1 } from "clients/BidWallV1_1Client";
14
16
  import { ReadFairLaunchV1_1 } from "clients/FairLaunchV1_1Client";
15
17
  import { ReadFlaunchV1_1 } from "clients/FlaunchV1_1Client";
16
18
  import { ReadWriteTreasuryManagerFactory } from "clients/TreasuryManagerFactoryClient";
17
- import { CoinMetadata } from "types";
19
+ import { CoinMetadata, FlaunchVersion } from "types";
18
20
  import { PermitSingle } from "utils/universalRouter";
19
21
  type WatchPoolSwapParams = Omit<WatchPoolSwapParamsPositionManager<boolean>, "flETHIsCurrencyZero"> & {
20
22
  filterByCoin?: Address;
@@ -53,6 +55,9 @@ export declare class ReadFlaunchSDK {
53
55
  readonly TICK_SPACING = 60;
54
56
  readonly readPositionManager: ReadFlaunchPositionManager;
55
57
  readonly readPositionManagerV1_1: ReadFlaunchPositionManagerV1_1;
58
+ readonly readAnyPositionManager: ReadAnyPositionManager;
59
+ readonly readFeeEscrow: ReadFeeEscrow;
60
+ readonly readReferralEscrow: ReadReferralEscrow;
56
61
  readonly readFlaunchZap: ReadFlaunchZap;
57
62
  readonly readPoolManager: ReadPoolManager;
58
63
  readonly readStateView: ReadStateView;
@@ -67,17 +72,35 @@ export declare class ReadFlaunchSDK {
67
72
  resolveIPFS: (value: string) => string;
68
73
  constructor(chainId: number, drift?: Drift);
69
74
  /**
70
- * Checks if a given coin address is a valid Flaunch coin (either V1 or V1.1)
75
+ * Checks if a given coin address is a valid Flaunch coin (supports all versions)
71
76
  * @param coinAddress - The address of the coin to check
72
77
  * @returns Promise<boolean> - True if the coin is valid, false otherwise
73
78
  */
74
79
  isValidCoin(coinAddress: Address): Promise<boolean>;
75
80
  /**
76
- * Checks if a given coin address is a V1 Flaunch coin
81
+ * Determines the version of a Flaunch coin
77
82
  * @param coinAddress - The address of the coin to check
78
- * @returns Promise<boolean> - True if the coin is V1, false if V1.1
83
+ * @returns Promise<FlaunchVersion> - The version of the coin
79
84
  */
80
- isV1Coin(coinAddress: Address): Promise<boolean>;
85
+ getCoinVersion(coinAddress: Address): Promise<FlaunchVersion>;
86
+ /**
87
+ * Gets the position manager address for a given version
88
+ * @param version - The version to get the position manager address for
89
+ */
90
+ getPositionManager(version: FlaunchVersion): ReadFlaunchPositionManager | ReadFlaunchPositionManagerV1_1 | ReadAnyPositionManager;
91
+ /**
92
+ * Gets the fair launch address for a given version
93
+ * @param version - The version to get the fair launch address for
94
+ */
95
+ getFairLaunch(version: FlaunchVersion): ReadFairLaunch | ReadFairLaunchV1_1;
96
+ /**
97
+ * Gets the bid wall address for a given version
98
+ * @param version - The version to get the bid wall address for
99
+ */
100
+ getBidWall(version: FlaunchVersion): ReadBidWall | ReadBidWallV1_1;
101
+ getPositionManagerAddress(version: FlaunchVersion): `0x${string}`;
102
+ getFairLaunchAddress(version: FlaunchVersion): `0x${string}`;
103
+ getBidWallAddress(version: FlaunchVersion): `0x${string}`;
81
104
  /**
82
105
  * Retrieves metadata for a given Flaunch coin
83
106
  * @param coinAddress - The address of the coin
@@ -118,61 +141,37 @@ export declare class ReadFlaunchSDK {
118
141
  telegramUrl: any;
119
142
  }[]>;
120
143
  /**
121
- * Watches for pool creation events on V1 contracts
122
- * @param params - Parameters for watching pool creation
123
- * @returns Subscription to pool creation events
124
- */
125
- watchPoolCreatedV1(params: WatchPoolCreatedParams): Promise<{
126
- cleanup: () => void;
127
- pollPoolCreatedNow: () => Promise<void>;
128
- }>;
129
- /**
130
- * Watches for pool creation events on V1.1 contracts
144
+ * Watches for pool creation events
131
145
  * @param params - Parameters for watching pool creation
146
+ * @param version - Version of Flaunch to use (defaults to V1_1)
132
147
  * @returns Subscription to pool creation events
133
148
  */
134
- watchPoolCreated(params: WatchPoolCreatedParams): Promise<{
149
+ watchPoolCreated(params: WatchPoolCreatedParams, version?: FlaunchVersion): Promise<{
135
150
  cleanup: () => void;
136
151
  pollPoolCreatedNow: () => Promise<void>;
137
152
  }>;
138
153
  /**
139
- * Polls for current pool creation events on V1 contracts
140
- * @returns Current pool creation events or undefined if polling is not available
141
- */
142
- pollPoolCreatedNowV1(): Promise<void> | undefined;
143
- /**
144
- * Polls for current pool creation events on V1.1 contracts
154
+ * Polls for current pool creation events
155
+ * @param version - Version of Flaunch to use (defaults to V1_1)
145
156
  * @returns Current pool creation events or undefined if polling is not available
146
157
  */
147
- pollPoolCreatedNow(): Promise<void> | undefined;
148
- /**
149
- * Watches for pool swap events on V1 contracts
150
- * @param params - Parameters for watching pool swaps including optional coin filter
151
- * @returns Subscription to pool swap events
152
- */
153
- watchPoolSwapV1(params: WatchPoolSwapParams): Promise<{
154
- cleanup: () => void;
155
- pollPoolSwapNow: () => Promise<void>;
156
- }>;
158
+ pollPoolCreatedNow(version?: FlaunchVersion): Promise<void> | undefined;
157
159
  /**
158
- * Watches for pool swap events on V1.1 contracts
160
+ * Watches for pool swap events
159
161
  * @param params - Parameters for watching pool swaps including optional coin filter
162
+ * @param version - Version of Flaunch to use (defaults to V1_1)
160
163
  * @returns Subscription to pool swap events
161
164
  */
162
- watchPoolSwap(params: WatchPoolSwapParams): Promise<{
165
+ watchPoolSwap(params: WatchPoolSwapParams, version?: FlaunchVersion): Promise<{
163
166
  cleanup: () => void;
164
167
  pollPoolSwapNow: () => Promise<void>;
165
168
  }>;
166
169
  /**
167
- * Polls for current pool swap events on V1 contracts
170
+ * Polls for current pool swap events
171
+ * @param version - Version of Flaunch to use (defaults to V1_1)
168
172
  * @returns Current pool swap events or undefined if polling is not available
169
173
  */
170
- pollPoolSwapNowV1(): Promise<void> | undefined;
171
- /**
172
- * Polls for current pool swap events on V1.1 contracts
173
- * @returns Current pool swap events or undefined if polling is not available
174
- */
175
- pollPoolSwapNow(): Promise<void> | undefined;
174
+ pollPoolSwapNow(version?: FlaunchVersion): Promise<void> | undefined;
176
175
  /**
177
176
  * Gets information about a liquidity position
178
177
  * @param params - Parameters for querying position info
@@ -190,30 +189,50 @@ export declare class ReadFlaunchSDK {
190
189
  /**
191
190
  * Gets the current tick for a given coin's pool
192
191
  * @param coinAddress - The address of the coin
193
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
192
+ * @param version - Optional specific version to use. If not provided, will be determined automatically
194
193
  * @returns Promise<number> - The current tick of the pool
195
194
  */
196
- currentTick(coinAddress: Address, isV1Coin?: boolean): Promise<number>;
195
+ currentTick(coinAddress: Address, version?: FlaunchVersion): Promise<number>;
197
196
  /**
198
197
  * Calculates the coin price in ETH based on the current tick
199
198
  * @param coinAddress - The address of the coin
200
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
199
+ * @param version - Optional specific version to use. If not provided, will be determined automatically
201
200
  * @returns Promise<string> - The price of the coin in ETH with 18 decimals precision
202
201
  */
203
- coinPriceInETH(coinAddress: Address, isV1Coin?: boolean): Promise<string>;
202
+ coinPriceInETH(coinAddress: Address, version?: FlaunchVersion): Promise<string>;
203
+ /**
204
+ * Calculates the coin price in USD based on the current ETH/USDC price
205
+ * @param coinAddress - The address of the coin
206
+ * @param version - Optional specific version to use. If not provided, will be determined automatically
207
+ * @returns Promise<string> - The price of the coin in USD with 2 decimal precision
208
+ */
209
+ coinPriceInUSD({ coinAddress, version, drift, }: {
210
+ coinAddress: Address;
211
+ version?: FlaunchVersion;
212
+ drift?: Drift;
213
+ }): Promise<string>;
214
+ coinMarketCapInUSD({ coinAddress, version, drift, }: {
215
+ coinAddress: Address;
216
+ version?: FlaunchVersion;
217
+ drift?: Drift;
218
+ }): Promise<string>;
204
219
  /**
205
220
  * Gets the current ETH/USDC price
206
221
  * @param drift - Optional drift instance to get price from Base Mainnet
207
222
  * @returns Promise<number> - The current ETH/USDC price
208
223
  */
209
224
  getETHUSDCPrice(drift?: Drift): Promise<number>;
225
+ initialSqrtPriceX96(params: {
226
+ coinAddress: Address;
227
+ initialMarketCapUSD: number;
228
+ }): Promise<bigint>;
210
229
  /**
211
230
  * Gets information about a fair launch for a given coin
212
231
  * @param coinAddress - The address of the coin
213
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
232
+ * @param version - Optional specific version to use. If not provided, will be determined automatically
214
233
  * @returns Fair launch information from the appropriate contract version
215
234
  */
216
- fairLaunchInfo(coinAddress: Address, isV1Coin?: boolean): Promise<{
235
+ fairLaunchInfo(coinAddress: Address, version?: FlaunchVersion): Promise<{
217
236
  startsAt: bigint;
218
237
  endsAt: bigint;
219
238
  initialTick: number;
@@ -224,31 +243,31 @@ export declare class ReadFlaunchSDK {
224
243
  /**
225
244
  * Checks if a fair launch is currently active for a given coin
226
245
  * @param coinAddress - The address of the coin
227
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
246
+ * @param version - Optional specific version to use. If not provided, will be determined automatically
228
247
  * @returns Promise<boolean> - True if fair launch is active, false otherwise
229
248
  */
230
- isFairLaunchActive(coinAddress: Address, isV1Coin?: boolean): Promise<boolean>;
249
+ isFairLaunchActive(coinAddress: Address, version?: FlaunchVersion): Promise<boolean>;
231
250
  /**
232
251
  * Gets the duration of a fair launch for a given coin
233
252
  * @param coinAddress - The address of the coin
234
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
253
+ * @param version - Optional specific version to use. If not provided, will be determined automatically
235
254
  * @returns Promise<number> - The duration in seconds (30 minutes for V1, variable for V1.1)
236
255
  */
237
- fairLaunchDuration(coinAddress: Address, isV1Coin?: boolean): Promise<number | bigint>;
256
+ fairLaunchDuration(coinAddress: Address, version?: FlaunchVersion): Promise<number | bigint>;
238
257
  /**
239
258
  * Gets the initial tick for a fair launch
240
259
  * @param coinAddress - The address of the coin
241
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
260
+ * @param version - Optional specific version to use. If not provided, will be determined automatically
242
261
  * @returns Promise<number> - The initial tick value
243
262
  */
244
- initialTick(coinAddress: Address, isV1Coin?: boolean): Promise<number>;
263
+ initialTick(coinAddress: Address, version?: FlaunchVersion): Promise<number>;
245
264
  /**
246
265
  * Gets information about the ETH-only position in a fair launch
247
266
  * @param coinAddress - The address of the coin
248
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
267
+ * @param version - Optional specific version to use. If not provided, will be determined automatically
249
268
  * @returns Promise<{flETHAmount: bigint, coinAmount: bigint, tickLower: number, tickUpper: number}> - Position details
250
269
  */
251
- fairLaunchETHOnlyPosition(coinAddress: Address, isV1Coin?: boolean): Promise<{
270
+ fairLaunchETHOnlyPosition(coinAddress: Address, version?: FlaunchVersion): Promise<{
252
271
  flETHAmount: bigint;
253
272
  coinAmount: bigint;
254
273
  tickLower: number;
@@ -257,10 +276,10 @@ export declare class ReadFlaunchSDK {
257
276
  /**
258
277
  * Gets information about the coin-only position in a fair launch
259
278
  * @param coinAddress - The address of the coin
260
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
279
+ * @param version - Optional specific version to use. If not provided, will be determined automatically
261
280
  * @returns Promise<{flETHAmount: bigint, coinAmount: bigint, tickLower: number, tickUpper: number}> - Position details
262
281
  */
263
- fairLaunchCoinOnlyPosition(coinAddress: Address, isV1Coin?: boolean): Promise<{
282
+ fairLaunchCoinOnlyPosition(coinAddress: Address, version?: FlaunchVersion): Promise<{
264
283
  flETHAmount: bigint;
265
284
  coinAmount: bigint;
266
285
  tickLower: number;
@@ -269,16 +288,30 @@ export declare class ReadFlaunchSDK {
269
288
  /**
270
289
  * Gets information about the bid wall position for a coin
271
290
  * @param coinAddress - The address of the coin
272
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
291
+ * @param version - Optional specific version to use. If not provided, will be determined automatically
273
292
  * @returns Promise<{flETHAmount: bigint, coinAmount: bigint, pendingEth: bigint, tickLower: number, tickUpper: number}> - Bid wall position details
274
293
  */
275
- bidWallPosition(coinAddress: Address, isV1Coin?: boolean): Promise<{
294
+ bidWallPosition(coinAddress: Address, version?: FlaunchVersion): Promise<{
276
295
  flETHAmount: bigint;
277
296
  coinAmount: bigint;
278
297
  pendingEth: bigint;
279
298
  tickLower: number;
280
299
  tickUpper: number;
281
300
  }>;
301
+ /**
302
+ * Gets the ETH balance for the creator to claim
303
+ * @param creator - The address of the creator to check
304
+ * @param isV1 - Optional boolean to check the balance for V1. V1.1 & AnyPositionManager use the same FeeEscrow contract
305
+ * @returns The balance of the creator
306
+ */
307
+ creatorRevenue(creator: Address, isV1?: boolean): Promise<bigint>;
308
+ /**
309
+ * Gets the balance of a recipient for a given coin
310
+ * @param recipient - The address of the recipient to check
311
+ * @param coinAddress - The address of the coin
312
+ * @returns Promise<bigint> - The balance of the recipient
313
+ */
314
+ referralBalance(recipient: Address, coinAddress: Address): Promise<bigint>;
282
315
  /**
283
316
  * Gets the claimable balance of ETH for the recipient from a revenue manager
284
317
  * @param params - Parameters for checking the balance
@@ -335,10 +368,10 @@ export declare class ReadFlaunchSDK {
335
368
  /**
336
369
  * Gets the pool ID for a given coin
337
370
  * @param coinAddress - The address of the coin
338
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
371
+ * @param version - Optional specific version to use
339
372
  * @returns Promise<string> - The pool ID
340
373
  */
341
- poolId(coinAddress: Address, isV1Coin?: boolean): Promise<`0x${string}`>;
374
+ poolId(coinAddress: Address, version?: FlaunchVersion): Promise<`0x${string}`>;
342
375
  /**
343
376
  * Gets the flaunching fee for a given initial price and slippage percent
344
377
  * @param params.sender - The address of the sender
@@ -367,26 +400,26 @@ export declare class ReadFlaunchSDK {
367
400
  * Gets a quote for selling an exact amount of tokens for ETH
368
401
  * @param coinAddress - The address of the token to sell
369
402
  * @param amountIn - The exact amount of tokens to sell
370
- * @param isV1Coin - Optional flag to specify if token is V1. If not provided, V1.1 is assumed
403
+ * @param version - Optional specific version to use
371
404
  * @returns Promise<bigint> - The expected amount of ETH to receive
372
405
  */
373
- getSellQuoteExactInput(coinAddress: Address, amountIn: bigint, isV1Coin?: boolean): Promise<bigint>;
406
+ getSellQuoteExactInput(coinAddress: Address, amountIn: bigint, version?: FlaunchVersion): Promise<bigint>;
374
407
  /**
375
408
  * Gets a quote for buying tokens with an exact amount of ETH
376
409
  * @param coinAddress - The address of the token to buy
377
410
  * @param ethIn - The exact amount of ETH to spend
378
- * @param isV1Coin - Optional flag to specify if token is V1. If not provided, V1.1 is assumed
411
+ * @param version - Optional specific version to use
379
412
  * @returns Promise<bigint> - The expected amount of tokens to receive
380
413
  */
381
- getBuyQuoteExactInput(coinAddress: Address, amountIn: bigint, isV1Coin?: boolean): Promise<bigint>;
414
+ getBuyQuoteExactInput(coinAddress: Address, amountIn: bigint, version?: FlaunchVersion): Promise<bigint>;
382
415
  /**
383
416
  * Gets a quote for buying an exact amount of tokens with ETH
384
417
  * @param coinAddress - The address of the token to buy
385
418
  * @param coinOut - The exact amount of tokens to receive
386
- * @param isV1Coin - Optional flag to specify if token is V1. If not provided, V1.1 is assumed
419
+ * @param version - Optional specific version to use
387
420
  * @returns Promise<bigint> - The required amount of ETH to spend
388
421
  */
389
- getBuyQuoteExactOutput(coinAddress: Address, amountOut: bigint, isV1Coin?: boolean): Promise<bigint>;
422
+ getBuyQuoteExactOutput(coinAddress: Address, amountOut: bigint, version?: FlaunchVersion): Promise<bigint>;
390
423
  /**
391
424
  * Determines if flETH is currency0 in the pool
392
425
  * @param coinAddress - The address of the coin
@@ -403,8 +436,11 @@ export declare class ReadFlaunchSDK {
403
436
  }
404
437
  export declare class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
405
438
  drift: Drift<ReadWriteAdapter>;
439
+ readonly readWritePositionManager: ReadWriteFlaunchPositionManager;
406
440
  readonly readWritePositionManagerV1_1: ReadWriteFlaunchPositionManagerV1_1;
407
- readonly readWriteFastFlaunchZap: ReadWriteFastFlaunchZap;
441
+ readonly readWriteAnyPositionManager: ReadWriteAnyPositionManager;
442
+ readonly readWriteFeeEscrow: ReadWriteFeeEscrow;
443
+ readonly readWriteReferralEscrow: ReadWriteReferralEscrow;
408
444
  readonly readWriteFlaunchZap: ReadWriteFlaunchZap;
409
445
  readonly readWriteTreasuryManagerFactory: ReadWriteTreasuryManagerFactory;
410
446
  readonly readWritePermit2: ReadWritePermit2;
@@ -421,31 +457,17 @@ export declare class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
421
457
  protocolFeePercent: number;
422
458
  }): Promise<Address>;
423
459
  /**
424
- * Creates a new Flaunch on V1.1
460
+ * Creates a new Flaunch on the specified version
425
461
  * @param params - Parameters for creating the Flaunch
426
462
  * @returns Transaction response
427
463
  */
428
464
  flaunch(params: FlaunchParams): Promise<`0x${string}`>;
429
465
  /**
430
- * Creates a new Flaunch on V1.1 with IPFS metadata
466
+ * Creates a new Flaunch with IPFS metadata and optional version specification
431
467
  * @param params - Parameters for creating the Flaunch with IPFS data
432
468
  * @returns Transaction response
433
469
  */
434
470
  flaunchIPFS(params: FlaunchIPFSParams): Promise<`0x${string}`>;
435
- /**
436
- * Creates a new fast Flaunch on V1.1
437
- * @param params - Parameters for creating the fast Flaunch
438
- * @throws Error if FastFlaunchZap is not deployed on the current chain
439
- * @returns Transaction response
440
- */
441
- fastFlaunch(params: FastFlaunchParams): Promise<`0x${string}`>;
442
- /**
443
- * Creates a new fast Flaunch on V1.1 with IPFS metadata
444
- * @param params - Parameters for creating the fast Flaunch with IPFS data
445
- * @throws Error if FastFlaunchZap is not deployed on the current chain
446
- * @returns Transaction response
447
- */
448
- fastFlaunchIPFS(params: FastFlaunchIPFSParams): Promise<`0x${string}`>;
449
471
  /**
450
472
  * Creates a new Flaunch with revenue manager configuration
451
473
  * @param params - Parameters for creating the Flaunch with revenue manager
@@ -460,6 +482,12 @@ export declare class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
460
482
  * @returns Transaction response
461
483
  */
462
484
  flaunchIPFSWithRevenueManager(params: FlaunchWithRevenueManagerIPFSParams): Promise<`0x${string}`>;
485
+ /**
486
+ * Creates a new Flaunch with AnyPositionManager for external coins
487
+ * @param params - Parameters for creating the Flaunch with AnyPositionManager
488
+ * @returns Transaction response
489
+ */
490
+ anyFlaunch(params: AnyFlaunchParams): Promise<`0x${string}`>;
463
491
  /**
464
492
  * Gets the balance of a specific coin for the connected wallet
465
493
  * @param coinAddress - The address of the coin to check
@@ -469,17 +497,17 @@ export declare class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
469
497
  /**
470
498
  * Buys a coin with ETH
471
499
  * @param params - Parameters for buying the coin including amount, slippage, and referrer
472
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
500
+ * @param version - Optional specific version to use. If not provided, will determine automatically
473
501
  * @returns Transaction response for the buy operation
474
502
  */
475
- buyCoin(params: BuyCoinParams, isV1Coin?: boolean): Promise<`0x${string}`>;
503
+ buyCoin(params: BuyCoinParams, version?: FlaunchVersion): Promise<`0x${string}`>;
476
504
  /**
477
505
  * Sells a coin for ETH
478
506
  * @param params - Parameters for selling the coin including amount, slippage, permit data, and referrer
479
- * @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
507
+ * @param version - Optional specific version to use. If not provided, will determine automatically
480
508
  * @returns Transaction response for the sell operation
481
509
  */
482
- sellCoin(params: SellCoinParams, isV1Coin?: boolean): Promise<`0x${string}`>;
510
+ sellCoin(params: SellCoinParams, version?: FlaunchVersion): Promise<`0x${string}`>;
483
511
  /**
484
512
  * Gets the typed data for a Permit2 signature
485
513
  * @param coinAddress - The address of the coin to permit
@@ -508,6 +536,24 @@ export declare class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
508
536
  allowance: bigint;
509
537
  nonce: number;
510
538
  }>;
539
+ /**
540
+ * Withdraws the creator's share of the revenue
541
+ * @param params - Parameters for withdrawing the creator's share of the revenue
542
+ * @param params.recipient - The address to withdraw the revenue to. Defaults to the connected wallet
543
+ * @param params.isV1 - Optional boolean to withdraw from V1. V1.1 & AnyPositionManager use the same FeeEscrow contract
544
+ * @returns Transaction response
545
+ */
546
+ withdrawCreatorRevenue(params: {
547
+ recipient?: Address;
548
+ isV1?: boolean;
549
+ }): Promise<`0x${string}`>;
550
+ /**
551
+ * Claims the referral balance for a given recipient
552
+ * @param coins - The addresses of the coins to claim
553
+ * @param recipient - The address of the recipient to claim the balance for
554
+ * @returns Transaction response
555
+ */
556
+ claimReferralBalance(coins: Address[], recipient: Address): Promise<`0x${string}`>;
511
557
  /**
512
558
  * Claims the protocol's share of the revenue
513
559
  * @param params - Parameters for claiming the protocol's share of the revenue
@@ -1 +1 @@
1
- {"version":3,"file":"FlaunchSDK.d.ts","sourceRoot":"","sources":["../../src/sdk/FlaunchSDK.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,KAAK,OAAO,EACb,MAAM,iBAAiB,CAAC;AAiCzB,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,IAAI,kCAAkC,EAC1D,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,eAAe,EACf,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB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OAIG;IACH,UAAU,CAAC,MAAM,EAAE,gBAAgB;IAInC;;;;OAIG;IACG,WAAW,CAAC,WAAW,EAAE,OAAO;IAOtC;;;;;OAKG;IACG,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc;IAyE7D;;;;;OAKG;IACG,QAAQ,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc;IAgD/D;;;;;OAKG;IACG,mBAAmB,CAAC,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM;;;;;;;;;;;;;IAgBjE;;;;OAIG;IACG,2BAA2B,CAAC,WAAW,EAAE,OAAO;;;;IAatD;;;;;;OAMG;IACG,sBAAsB,CAAC,MAAM,EAAE;QACnC,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB;IAUD;;;;;OAKG;IACH,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO;IAIzD;;;;OAIG;IACH,2BAA2B,CAAC,MAAM,EAAE;QAAE,qBAAqB,EAAE,OAAO,CAAA;KAAE;IAQtE;;;;OAIG;IACH,0BAA0B,CAAC,MAAM,EAAE;QAAE,qBAAqB,EAAE,OAAO,CAAA;KAAE;IAQrE;;;;OAIG;IACH,mCAAmC,CAAC,MAAM,EAAE;QAC1C,qBAAqB,EAAE,OAAO,CAAC;QAC/B,aAAa,EAAE;YAAE,OAAO,EAAE,OAAO,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACxD;CAOF"}
@@ -0,0 +1,21 @@
1
+ import { Drift, ReadWriteAdapter } from "@delvtech/drift";
2
+ import type { PublicClient, WalletClient } from "viem";
3
+ export type CreateDriftParams = {
4
+ publicClient: PublicClient;
5
+ walletClient?: WalletClient;
6
+ };
7
+ /**
8
+ * Creates a read-only Drift instance with only public client
9
+ * @param params - Parameters with only publicClient
10
+ * @returns Drift instance for read-only operations
11
+ * @throws Error if publicClient.chain is not configured
12
+ */
13
+ export declare function createDrift(params: Omit<CreateDriftParams, "walletClient">): Drift;
14
+ /**
15
+ * Creates a read-write Drift instance with both public and wallet clients
16
+ * @param params - Parameters with both publicClient and walletClient
17
+ * @returns Drift instance for read and write operations
18
+ * @throws Error if publicClient.chain is not configured
19
+ */
20
+ export declare function createDrift(params: Required<CreateDriftParams>): Drift<ReadWriteAdapter>;
21
+ //# sourceMappingURL=drift.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drift.d.ts","sourceRoot":"","sources":["../../src/sdk/drift.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EACL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,cAAc,CAAC,GAC9C,KAAK,CAAC;AACT;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAClC,KAAK,CAAC,gBAAgB,CAAC,CAAC"}
package/dist/types.d.ts CHANGED
@@ -31,4 +31,13 @@ export interface IPFSParams {
31
31
  };
32
32
  pinataConfig: PinataConfig;
33
33
  }
34
+ /**
35
+ * Enumeration of Flaunch contract versions
36
+ */
37
+ export declare enum FlaunchVersion {
38
+ V1 = "V1",
39
+ V1_1 = "V1_1",
40
+ V1_1_1 = "V1_1_1",
41
+ ANY = "ANY"
42
+ }
34
43
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAA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EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ"}
@@ -24,7 +24,7 @@ export declare const ethToMemecoin: (params: {
24
24
  amountOutMin?: bigint;
25
25
  amountOut?: bigint;
26
26
  amountInMax?: bigint;
27
- isV1Coin?: boolean;
27
+ positionManagerAddress: Address;
28
28
  }) => {
29
29
  calldata: `0x${string}`;
30
30
  commands: `0x${string}`;
@@ -38,7 +38,7 @@ export declare const memecoinToEthWithPermit2: (params: {
38
38
  permitSingle: PermitSingle | undefined;
39
39
  signature: Hex | undefined;
40
40
  referrer: Address | null;
41
- isV1Coin?: boolean;
41
+ positionManagerAddress: Address;
42
42
  }) => {
43
43
  calldata: `0x${string}`;
44
44
  commands: `0x${string}`;
@@ -1 +1 @@
1
- {"version":3,"file":"universalRouter.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KACvB,CAAC;IACF,YAAY,EAAE,YAAY,CAAC;CA8B5B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flaunch/sdk",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Flaunch SDK to easily interact with the Flaunch protocol",
5
5
  "license": "MIT",
6
6
  "author": "Apoorv Lathey <apoorv@flayer.io>",