@flaunch/sdk 0.3.0 → 0.4.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 +78 -0
- package/dist/abi/BidWallV1_1.d.ts +740 -0
- package/dist/abi/BidWallV1_1.d.ts.map +1 -0
- package/dist/abi/FairLaunchV1_1.d.ts +522 -0
- package/dist/abi/FairLaunchV1_1.d.ts.map +1 -0
- package/dist/abi/FastFlaunchZap.d.ts +30 -20
- package/dist/abi/FastFlaunchZap.d.ts.map +1 -1
- package/dist/abi/FlaunchPositionManagerV1_1.d.ts +2053 -0
- package/dist/abi/FlaunchPositionManagerV1_1.d.ts.map +1 -0
- package/dist/abi/FlaunchV1_1.d.ts +850 -0
- package/dist/abi/FlaunchV1_1.d.ts.map +1 -0
- package/dist/abi/FlaunchZap.d.ts +330 -0
- package/dist/abi/FlaunchZap.d.ts.map +1 -0
- package/dist/abi/RevenueManager.d.ts +648 -0
- package/dist/abi/RevenueManager.d.ts.map +1 -0
- package/dist/abi/TreasuryManagerFactory.d.ts +434 -0
- package/dist/abi/TreasuryManagerFactory.d.ts.map +1 -0
- package/dist/abi/index.cjs +27 -58
- package/dist/abi/index.cjs.map +1 -1
- package/dist/abi/index.js +27 -58
- package/dist/abi/index.js.map +1 -1
- package/dist/addresses/index.cjs +127 -91
- package/dist/addresses/index.cjs.map +1 -1
- package/dist/addresses/index.js +121 -92
- package/dist/addresses/index.js.map +1 -1
- package/dist/addresses.d.ts +7 -0
- package/dist/addresses.d.ts.map +1 -1
- package/dist/clients/BidWallClient.d.ts +20 -0
- package/dist/clients/BidWallClient.d.ts.map +1 -1
- package/dist/clients/BidWallV1_1Client.d.ts +46 -0
- package/dist/clients/BidWallV1_1Client.d.ts.map +1 -0
- package/dist/clients/FairLaunchClient.d.ts +20 -0
- package/dist/clients/FairLaunchClient.d.ts.map +1 -1
- package/dist/clients/FairLaunchV1_1Client.d.ts +50 -0
- package/dist/clients/FairLaunchV1_1Client.d.ts.map +1 -0
- package/dist/clients/FastFlaunchClient.d.ts +40 -0
- package/dist/clients/FastFlaunchClient.d.ts.map +1 -1
- package/dist/clients/FlaunchClient.d.ts +20 -0
- package/dist/clients/FlaunchClient.d.ts.map +1 -1
- package/dist/clients/FlaunchPositionManagerV1_1Client.d.ts +90 -0
- package/dist/clients/FlaunchPositionManagerV1_1Client.d.ts.map +1 -0
- package/dist/clients/FlaunchV1_1Client.d.ts +31 -0
- package/dist/clients/FlaunchV1_1Client.d.ts.map +1 -0
- package/dist/clients/FlaunchZapClient.d.ts +70 -0
- package/dist/clients/FlaunchZapClient.d.ts.map +1 -0
- package/dist/clients/MemecoinClient.d.ts +27 -0
- package/dist/clients/MemecoinClient.d.ts.map +1 -1
- package/dist/clients/Permit2Client.d.ts +17 -0
- package/dist/clients/Permit2Client.d.ts.map +1 -1
- package/dist/clients/QuoterClient.d.ts +39 -3
- package/dist/clients/QuoterClient.d.ts.map +1 -1
- package/dist/clients/RevenueManagerClient.d.ts +42 -0
- package/dist/clients/RevenueManagerClient.d.ts.map +1 -0
- package/dist/clients/StateViewClient.d.ts +30 -0
- package/dist/clients/StateViewClient.d.ts.map +1 -1
- package/dist/clients/TreasuryManagerFactoryClient.d.ts +24 -0
- package/dist/clients/TreasuryManagerFactoryClient.d.ts.map +1 -0
- package/dist/helpers/chainIdToChain.d.ts +5 -0
- package/dist/helpers/chainIdToChain.d.ts.map +1 -0
- package/dist/helpers/index.cjs +5310 -0
- package/dist/helpers/index.cjs.map +1 -1
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +5313 -4
- package/dist/helpers/index.js.map +1 -1
- package/dist/hooks/FlaunchPositionManagerHooks.d.ts +42 -0
- package/dist/hooks/FlaunchPositionManagerHooks.d.ts.map +1 -1
- package/dist/hooks/index.cjs +95 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +94 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs.js +16748 -11289
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +16742 -11291
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/sdk/FlaunchSDK.d.ts +288 -15
- package/dist/sdk/FlaunchSDK.d.ts.map +1 -1
- package/dist/utils/universalRouter.d.ts +2 -0
- package/dist/utils/universalRouter.d.ts.map +1 -1
- package/package.json +8 -3
package/dist/sdk/FlaunchSDK.d.ts
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { Drift, HexString, ReadWriteAdapter, type Address } from "@delvtech/drift";
|
|
2
|
-
import { ReadFlaunchPositionManager,
|
|
2
|
+
import { ReadFlaunchPositionManager, 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
7
|
import { ReadWriteFastFlaunchZap, FastFlaunchParams, FastFlaunchIPFSParams } from "../clients/FastFlaunchClient";
|
|
8
|
+
import { ReadWriteFlaunchZap, FlaunchWithRevenueManagerParams, FlaunchWithRevenueManagerIPFSParams } from "../clients/FlaunchZapClient";
|
|
8
9
|
import { ReadFlaunch } from "../clients/FlaunchClient";
|
|
9
10
|
import { ReadQuoter } from "clients/QuoterClient";
|
|
11
|
+
import { ReadPermit2 } from "clients/Permit2Client";
|
|
12
|
+
import { ReadFlaunchPositionManagerV1_1, ReadWriteFlaunchPositionManagerV1_1, FlaunchParams, FlaunchIPFSParams } from "clients/FlaunchPositionManagerV1_1Client";
|
|
13
|
+
import { ReadBidWallV1_1 } from "clients/BidWallV1_1Client";
|
|
14
|
+
import { ReadFairLaunchV1_1 } from "clients/FairLaunchV1_1Client";
|
|
15
|
+
import { ReadFlaunchV1_1 } from "clients/FlaunchV1_1Client";
|
|
16
|
+
import { ReadWriteTreasuryManagerFactory } from "clients/TreasuryManagerFactoryClient";
|
|
10
17
|
import { CoinMetadata } from "types";
|
|
11
18
|
import { PermitSingle } from "utils/universalRouter";
|
|
12
|
-
import { ReadPermit2 } from "clients/Permit2Client";
|
|
13
19
|
type WatchPoolSwapParams = Omit<WatchPoolSwapParamsPositionManager<boolean>, "flETHIsCurrencyZero"> & {
|
|
14
20
|
filterByCoin?: Address;
|
|
15
21
|
};
|
|
@@ -38,33 +44,107 @@ type SellCoinParams = {
|
|
|
38
44
|
permitSingle?: PermitSingle;
|
|
39
45
|
signature?: HexString;
|
|
40
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Base class for interacting with Flaunch protocol in read-only mode
|
|
49
|
+
*/
|
|
41
50
|
export declare class ReadFlaunchSDK {
|
|
42
51
|
readonly drift: Drift;
|
|
43
52
|
readonly chainId: number;
|
|
44
53
|
readonly TICK_SPACING = 60;
|
|
45
54
|
readonly readPositionManager: ReadFlaunchPositionManager;
|
|
55
|
+
readonly readPositionManagerV1_1: ReadFlaunchPositionManagerV1_1;
|
|
46
56
|
readonly readPoolManager: ReadPoolManager;
|
|
47
57
|
readonly readStateView: ReadStateView;
|
|
48
58
|
readonly readFairLaunch: ReadFairLaunch;
|
|
59
|
+
readonly readFairLaunchV1_1: ReadFairLaunchV1_1;
|
|
49
60
|
readonly readBidWall: ReadBidWall;
|
|
61
|
+
readonly readBidWallV1_1: ReadBidWallV1_1;
|
|
50
62
|
readonly readFlaunch: ReadFlaunch;
|
|
63
|
+
readonly readFlaunchV1_1: ReadFlaunchV1_1;
|
|
51
64
|
readonly readQuoter: ReadQuoter;
|
|
52
65
|
readonly readPermit2: ReadPermit2;
|
|
53
66
|
constructor(chainId: number, drift?: Drift);
|
|
67
|
+
/**
|
|
68
|
+
* Checks if a given coin address is a valid Flaunch coin (either V1 or V1.1)
|
|
69
|
+
* @param coinAddress - The address of the coin to check
|
|
70
|
+
* @returns Promise<boolean> - True if the coin is valid, false otherwise
|
|
71
|
+
*/
|
|
54
72
|
isValidCoin(coinAddress: Address): Promise<boolean>;
|
|
73
|
+
/**
|
|
74
|
+
* Checks if a given coin address is a V1 Flaunch coin
|
|
75
|
+
* @param coinAddress - The address of the coin to check
|
|
76
|
+
* @returns Promise<boolean> - True if the coin is V1, false if V1.1
|
|
77
|
+
*/
|
|
78
|
+
isV1Coin(coinAddress: Address): Promise<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* Retrieves metadata for a given Flaunch coin
|
|
81
|
+
* @param coinAddress - The address of the coin
|
|
82
|
+
* @returns Promise<CoinMetadata & { symbol: string }> - The coin's metadata including name, symbol, description, and social links
|
|
83
|
+
*/
|
|
55
84
|
getCoinMetadata(coinAddress: Address): Promise<CoinMetadata & {
|
|
56
85
|
symbol: string;
|
|
57
86
|
}>;
|
|
87
|
+
/**
|
|
88
|
+
* Watches for pool creation events on V1 contracts
|
|
89
|
+
* @param params - Parameters for watching pool creation
|
|
90
|
+
* @returns Subscription to pool creation events
|
|
91
|
+
*/
|
|
92
|
+
watchPoolCreatedV1(params: WatchPoolCreatedParams): Promise<{
|
|
93
|
+
cleanup: () => void;
|
|
94
|
+
pollPoolCreatedNow: () => Promise<void>;
|
|
95
|
+
}>;
|
|
96
|
+
/**
|
|
97
|
+
* Watches for pool creation events on V1.1 contracts
|
|
98
|
+
* @param params - Parameters for watching pool creation
|
|
99
|
+
* @returns Subscription to pool creation events
|
|
100
|
+
*/
|
|
58
101
|
watchPoolCreated(params: WatchPoolCreatedParams): Promise<{
|
|
59
102
|
cleanup: () => void;
|
|
60
103
|
pollPoolCreatedNow: () => Promise<void>;
|
|
61
104
|
}>;
|
|
105
|
+
/**
|
|
106
|
+
* Polls for current pool creation events on V1 contracts
|
|
107
|
+
* @returns Current pool creation events or undefined if polling is not available
|
|
108
|
+
*/
|
|
109
|
+
pollPoolCreatedNowV1(): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Polls for current pool creation events on V1.1 contracts
|
|
112
|
+
* @returns Current pool creation events or undefined if polling is not available
|
|
113
|
+
*/
|
|
62
114
|
pollPoolCreatedNow(): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Watches for pool swap events on V1 contracts
|
|
117
|
+
* @param params - Parameters for watching pool swaps including optional coin filter
|
|
118
|
+
* @returns Subscription to pool swap events
|
|
119
|
+
*/
|
|
120
|
+
watchPoolSwapV1(params: WatchPoolSwapParams): Promise<{
|
|
121
|
+
cleanup: () => void;
|
|
122
|
+
pollPoolSwapNow: () => Promise<void>;
|
|
123
|
+
}>;
|
|
124
|
+
/**
|
|
125
|
+
* Watches for pool swap events on V1.1 contracts
|
|
126
|
+
* @param params - Parameters for watching pool swaps including optional coin filter
|
|
127
|
+
* @returns Subscription to pool swap events
|
|
128
|
+
*/
|
|
63
129
|
watchPoolSwap(params: WatchPoolSwapParams): Promise<{
|
|
64
130
|
cleanup: () => void;
|
|
65
131
|
pollPoolSwapNow: () => Promise<void>;
|
|
66
132
|
}>;
|
|
133
|
+
/**
|
|
134
|
+
* Polls for current pool swap events on V1 contracts
|
|
135
|
+
* @returns Current pool swap events or undefined if polling is not available
|
|
136
|
+
*/
|
|
137
|
+
pollPoolSwapNowV1(): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Polls for current pool swap events on V1.1 contracts
|
|
140
|
+
* @returns Current pool swap events or undefined if polling is not available
|
|
141
|
+
*/
|
|
67
142
|
pollPoolSwapNow(): Promise<void>;
|
|
143
|
+
/**
|
|
144
|
+
* Gets information about a liquidity position
|
|
145
|
+
* @param params - Parameters for querying position info
|
|
146
|
+
* @returns Position information from the state view contract
|
|
147
|
+
*/
|
|
68
148
|
positionInfo(params: PositionInfoParams): Promise<{
|
|
69
149
|
liquidity: bigint;
|
|
70
150
|
feeGrowthInside0LastX128: bigint;
|
|
@@ -74,10 +154,33 @@ export declare class ReadFlaunchSDK {
|
|
|
74
154
|
feeGrowthInside0LastX128: bigint;
|
|
75
155
|
feeGrowthInside1LastX128: bigint;
|
|
76
156
|
}>;
|
|
77
|
-
|
|
78
|
-
|
|
157
|
+
/**
|
|
158
|
+
* Gets the current tick for a given coin's pool
|
|
159
|
+
* @param coinAddress - The address of the coin
|
|
160
|
+
* @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
|
|
161
|
+
* @returns Promise<number> - The current tick of the pool
|
|
162
|
+
*/
|
|
163
|
+
currentTick(coinAddress: Address, isV1Coin?: boolean): Promise<number>;
|
|
164
|
+
/**
|
|
165
|
+
* Calculates the coin price in ETH based on the current tick
|
|
166
|
+
* @param coinAddress - The address of the coin
|
|
167
|
+
* @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
|
|
168
|
+
* @returns Promise<string> - The price of the coin in ETH with 18 decimals precision
|
|
169
|
+
*/
|
|
170
|
+
coinPriceInETH(coinAddress: Address, isV1Coin?: boolean): Promise<string>;
|
|
171
|
+
/**
|
|
172
|
+
* Gets the current ETH/USDC price
|
|
173
|
+
* @param drift - Optional drift instance to get price from Base Mainnet
|
|
174
|
+
* @returns Promise<number> - The current ETH/USDC price
|
|
175
|
+
*/
|
|
79
176
|
getETHUSDCPrice(drift?: Drift): Promise<number>;
|
|
80
|
-
|
|
177
|
+
/**
|
|
178
|
+
* Gets information about a fair launch for a given coin
|
|
179
|
+
* @param coinAddress - The address of the coin
|
|
180
|
+
* @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
|
|
181
|
+
* @returns Fair launch information from the appropriate contract version
|
|
182
|
+
*/
|
|
183
|
+
fairLaunchInfo(coinAddress: Address, isV1Coin?: boolean): Promise<{
|
|
81
184
|
startsAt: bigint;
|
|
82
185
|
endsAt: bigint;
|
|
83
186
|
initialTick: number;
|
|
@@ -85,42 +188,179 @@ export declare class ReadFlaunchSDK {
|
|
|
85
188
|
supply: bigint;
|
|
86
189
|
closed: boolean;
|
|
87
190
|
}>;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
191
|
+
/**
|
|
192
|
+
* Checks if a fair launch is currently active for a given coin
|
|
193
|
+
* @param coinAddress - The address of the coin
|
|
194
|
+
* @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
|
|
195
|
+
* @returns Promise<boolean> - True if fair launch is active, false otherwise
|
|
196
|
+
*/
|
|
197
|
+
isFairLaunchActive(coinAddress: Address, isV1Coin?: boolean): Promise<boolean>;
|
|
198
|
+
/**
|
|
199
|
+
* Gets the duration of a fair launch for a given coin
|
|
200
|
+
* @param coinAddress - The address of the coin
|
|
201
|
+
* @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
|
|
202
|
+
* @returns Promise<number> - The duration in seconds (30 minutes for V1, variable for V1.1)
|
|
203
|
+
*/
|
|
204
|
+
fairLaunchDuration(coinAddress: Address, isV1Coin?: boolean): Promise<number | bigint>;
|
|
205
|
+
/**
|
|
206
|
+
* Gets the initial tick for a fair launch
|
|
207
|
+
* @param coinAddress - The address of the coin
|
|
208
|
+
* @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
|
|
209
|
+
* @returns Promise<number> - The initial tick value
|
|
210
|
+
*/
|
|
211
|
+
initialTick(coinAddress: Address, isV1Coin?: boolean): Promise<number>;
|
|
212
|
+
/**
|
|
213
|
+
* Gets information about the ETH-only position in a fair launch
|
|
214
|
+
* @param coinAddress - The address of the coin
|
|
215
|
+
* @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
|
|
216
|
+
* @returns Promise<{flETHAmount: bigint, coinAmount: bigint, tickLower: number, tickUpper: number}> - Position details
|
|
217
|
+
*/
|
|
218
|
+
fairLaunchETHOnlyPosition(coinAddress: Address, isV1Coin?: boolean): Promise<{
|
|
92
219
|
flETHAmount: bigint;
|
|
93
220
|
coinAmount: bigint;
|
|
94
221
|
tickLower: number;
|
|
95
222
|
tickUpper: number;
|
|
96
223
|
}>;
|
|
97
|
-
|
|
224
|
+
/**
|
|
225
|
+
* Gets information about the coin-only position in a fair launch
|
|
226
|
+
* @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
|
|
228
|
+
* @returns Promise<{flETHAmount: bigint, coinAmount: bigint, tickLower: number, tickUpper: number}> - Position details
|
|
229
|
+
*/
|
|
230
|
+
fairLaunchCoinOnlyPosition(coinAddress: Address, isV1Coin?: boolean): Promise<{
|
|
98
231
|
flETHAmount: bigint;
|
|
99
232
|
coinAmount: bigint;
|
|
100
233
|
tickLower: number;
|
|
101
234
|
tickUpper: number;
|
|
102
235
|
}>;
|
|
103
|
-
|
|
236
|
+
/**
|
|
237
|
+
* Gets information about the bid wall position for a coin
|
|
238
|
+
* @param coinAddress - The address of the coin
|
|
239
|
+
* @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
|
|
240
|
+
* @returns Promise<{flETHAmount: bigint, coinAmount: bigint, pendingEth: bigint, tickLower: number, tickUpper: number}> - Bid wall position details
|
|
241
|
+
*/
|
|
242
|
+
bidWallPosition(coinAddress: Address, isV1Coin?: boolean): Promise<{
|
|
104
243
|
flETHAmount: bigint;
|
|
105
244
|
coinAmount: bigint;
|
|
106
245
|
pendingEth: bigint;
|
|
107
246
|
tickLower: number;
|
|
108
247
|
tickUpper: number;
|
|
109
248
|
}>;
|
|
110
|
-
|
|
249
|
+
/**
|
|
250
|
+
* Gets the claimable balance of ETH for the recipient from a revenue manager
|
|
251
|
+
* @param params - Parameters for checking the balance
|
|
252
|
+
* @param params.revenueManagerAddress - The address of the revenue manager
|
|
253
|
+
* @param params.recipient - The address of the recipient to check
|
|
254
|
+
* @returns Promise<bigint> - The claimable balance of ETH
|
|
255
|
+
*/
|
|
256
|
+
revenueManagerBalance(params: {
|
|
257
|
+
revenueManagerAddress: Address;
|
|
258
|
+
recipient: Address;
|
|
259
|
+
}): Promise<bigint>;
|
|
260
|
+
/**
|
|
261
|
+
* Gets the claimable balance of ETH for the protocol from a revenue manager
|
|
262
|
+
* @param revenueManagerAddress - The address of the revenue manager
|
|
263
|
+
* @returns Promise<bigint> - The claimable balance of ETH
|
|
264
|
+
*/
|
|
265
|
+
revenueManagerProtocolBalance(revenueManagerAddress: Address): Promise<bigint>;
|
|
266
|
+
/**
|
|
267
|
+
* Gets the pool ID for a given coin
|
|
268
|
+
* @param coinAddress - The address of the coin
|
|
269
|
+
* @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
|
|
270
|
+
* @returns Promise<string> - The pool ID
|
|
271
|
+
*/
|
|
272
|
+
poolId(coinAddress: Address, isV1Coin?: boolean): Promise<`0x${string}`>;
|
|
273
|
+
/**
|
|
274
|
+
* Determines if flETH is currency0 in the pool
|
|
275
|
+
* @param coinAddress - The address of the coin
|
|
276
|
+
* @returns boolean - True if flETH is currency0, false otherwise
|
|
277
|
+
*/
|
|
111
278
|
flETHIsCurrencyZero(coinAddress: Address): boolean;
|
|
112
279
|
}
|
|
113
280
|
export declare class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
114
|
-
|
|
281
|
+
drift: Drift<ReadWriteAdapter>;
|
|
282
|
+
readonly readWritePositionManagerV1_1: ReadWriteFlaunchPositionManagerV1_1;
|
|
115
283
|
readonly readWriteFastFlaunchZap: ReadWriteFastFlaunchZap;
|
|
284
|
+
readonly readWriteFlaunchZap: ReadWriteFlaunchZap;
|
|
285
|
+
readonly readWriteTreasuryManagerFactory: ReadWriteTreasuryManagerFactory;
|
|
116
286
|
constructor(chainId: number, drift?: Drift<ReadWriteAdapter>);
|
|
287
|
+
/**
|
|
288
|
+
* Deploys a new revenue manager
|
|
289
|
+
* @param params - Parameters for deploying the revenue manager
|
|
290
|
+
* @param params.protocolRecipient - The address of the protocol recipient
|
|
291
|
+
* @param params.protocolFeePercent - The percentage of the protocol fee
|
|
292
|
+
* @returns Address of the deployed revenue manager
|
|
293
|
+
*/
|
|
294
|
+
deployRevenueManager(params: {
|
|
295
|
+
protocolRecipient: Address;
|
|
296
|
+
protocolFeePercent: number;
|
|
297
|
+
}): Promise<Address>;
|
|
298
|
+
/**
|
|
299
|
+
* Creates a new Flaunch on V1.1
|
|
300
|
+
* @param params - Parameters for creating the Flaunch
|
|
301
|
+
* @returns Transaction response
|
|
302
|
+
*/
|
|
117
303
|
flaunch(params: FlaunchParams): Promise<`0x${string}`>;
|
|
304
|
+
/**
|
|
305
|
+
* Creates a new Flaunch on V1.1 with IPFS metadata
|
|
306
|
+
* @param params - Parameters for creating the Flaunch with IPFS data
|
|
307
|
+
* @returns Transaction response
|
|
308
|
+
*/
|
|
118
309
|
flaunchIPFS(params: FlaunchIPFSParams): Promise<`0x${string}`>;
|
|
310
|
+
/**
|
|
311
|
+
* Creates a new fast Flaunch on V1.1
|
|
312
|
+
* @param params - Parameters for creating the fast Flaunch
|
|
313
|
+
* @throws Error if FastFlaunchZap is not deployed on the current chain
|
|
314
|
+
* @returns Transaction response
|
|
315
|
+
*/
|
|
119
316
|
fastFlaunch(params: FastFlaunchParams): Promise<`0x${string}`>;
|
|
317
|
+
/**
|
|
318
|
+
* Creates a new fast Flaunch on V1.1 with IPFS metadata
|
|
319
|
+
* @param params - Parameters for creating the fast Flaunch with IPFS data
|
|
320
|
+
* @throws Error if FastFlaunchZap is not deployed on the current chain
|
|
321
|
+
* @returns Transaction response
|
|
322
|
+
*/
|
|
120
323
|
fastFlaunchIPFS(params: FastFlaunchIPFSParams): Promise<`0x${string}`>;
|
|
324
|
+
/**
|
|
325
|
+
* Creates a new Flaunch with revenue manager configuration
|
|
326
|
+
* @param params - Parameters for creating the Flaunch with revenue manager
|
|
327
|
+
* @throws Error if FlaunchZap is not deployed on the current chain
|
|
328
|
+
* @returns Transaction response
|
|
329
|
+
*/
|
|
330
|
+
flaunchWithRevenueManager(params: FlaunchWithRevenueManagerParams): Promise<`0x${string}`>;
|
|
331
|
+
/**
|
|
332
|
+
* Creates a new Flaunch with revenue manager configuration and IPFS metadata
|
|
333
|
+
* @param params - Parameters for creating the Flaunch with revenue manager and IPFS data
|
|
334
|
+
* @throws Error if FlaunchZap is not deployed on the current chain
|
|
335
|
+
* @returns Transaction response
|
|
336
|
+
*/
|
|
337
|
+
flaunchIPFSWithRevenueManager(params: FlaunchWithRevenueManagerIPFSParams): Promise<`0x${string}`>;
|
|
338
|
+
/**
|
|
339
|
+
* Gets the balance of a specific coin for the connected wallet
|
|
340
|
+
* @param coinAddress - The address of the coin to check
|
|
341
|
+
* @returns Promise<bigint> - The balance of the coin
|
|
342
|
+
*/
|
|
121
343
|
coinBalance(coinAddress: Address): Promise<bigint>;
|
|
122
|
-
|
|
123
|
-
|
|
344
|
+
/**
|
|
345
|
+
* Buys a coin with ETH
|
|
346
|
+
* @param params - Parameters for buying the coin including amount, slippage, and referrer
|
|
347
|
+
* @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
|
|
348
|
+
* @returns Transaction response for the buy operation
|
|
349
|
+
*/
|
|
350
|
+
buyCoin(params: BuyCoinParams, isV1Coin?: boolean): Promise<`0x${string}`>;
|
|
351
|
+
/**
|
|
352
|
+
* Sells a coin for ETH
|
|
353
|
+
* @param params - Parameters for selling the coin including amount, slippage, permit data, and referrer
|
|
354
|
+
* @param isV1Coin - Optional flag to specify if coin is V1. If not provided, will be determined automatically
|
|
355
|
+
* @returns Transaction response for the sell operation
|
|
356
|
+
*/
|
|
357
|
+
sellCoin(params: SellCoinParams, isV1Coin?: boolean): Promise<`0x${string}`>;
|
|
358
|
+
/**
|
|
359
|
+
* Gets the typed data for a Permit2 signature
|
|
360
|
+
* @param coinAddress - The address of the coin to permit
|
|
361
|
+
* @param deadline - Optional deadline for the permit (defaults to 10 years)
|
|
362
|
+
* @returns The typed data object for signing
|
|
363
|
+
*/
|
|
124
364
|
getPermit2TypedData(coinAddress: Address, deadline?: bigint): Promise<{
|
|
125
365
|
typedData: {
|
|
126
366
|
primaryType: string;
|
|
@@ -134,10 +374,43 @@ export declare class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
134
374
|
};
|
|
135
375
|
permitSingle: PermitSingle;
|
|
136
376
|
}>;
|
|
377
|
+
/**
|
|
378
|
+
* Gets the current Permit2 allowance and nonce for a coin
|
|
379
|
+
* @param coinAddress - The address of the coin to check
|
|
380
|
+
* @returns Promise<{allowance: bigint, nonce: bigint}> - Current allowance and nonce
|
|
381
|
+
*/
|
|
137
382
|
getPermit2AllowanceAndNonce(coinAddress: Address): Promise<{
|
|
138
383
|
allowance: bigint;
|
|
139
384
|
nonce: number;
|
|
140
385
|
}>;
|
|
386
|
+
/**
|
|
387
|
+
* Claims the protocol's share of the revenue
|
|
388
|
+
* @param params - Parameters for claiming the protocol's share of the revenue
|
|
389
|
+
* @returns Transaction response
|
|
390
|
+
*/
|
|
391
|
+
revenueManagerProtocolClaim(params: {
|
|
392
|
+
revenueManagerAddress: Address;
|
|
393
|
+
}): Promise<`0x${string}`>;
|
|
394
|
+
/**
|
|
395
|
+
* Claims the total creator's share of the revenue from a revenue manager
|
|
396
|
+
* @param params - Parameters for claiming the creator's share of the revenue
|
|
397
|
+
* @returns Transaction response
|
|
398
|
+
*/
|
|
399
|
+
revenueManagerCreatorClaim(params: {
|
|
400
|
+
revenueManagerAddress: Address;
|
|
401
|
+
}): Promise<`0x${string}`>;
|
|
402
|
+
/**
|
|
403
|
+
* Claims the creator's share of the revenue from specific flaunch tokens
|
|
404
|
+
* @param params - Parameters for claiming the creator's share of the revenue
|
|
405
|
+
* @returns Transaction response
|
|
406
|
+
*/
|
|
407
|
+
revenueManagerCreatorClaimForTokens(params: {
|
|
408
|
+
revenueManagerAddress: Address;
|
|
409
|
+
flaunchTokens: {
|
|
410
|
+
flaunch: Address;
|
|
411
|
+
tokenId: bigint;
|
|
412
|
+
}[];
|
|
413
|
+
}): Promise<`0x${string}`>;
|
|
141
414
|
}
|
|
142
415
|
export {};
|
|
143
416
|
//# sourceMappingURL=FlaunchSDK.d.ts.map
|
|
@@ -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;
|
|
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;AA+BzB,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,EACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,mCAAmC,EACpC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,EACnC,aAAa,EACb,iBAAiB,EAClB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;A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AE;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"}
|
|
@@ -21,6 +21,7 @@ export declare const ethToMemecoin: (params: {
|
|
|
21
21
|
amountOutMin?: bigint;
|
|
22
22
|
amountOut?: bigint;
|
|
23
23
|
amountInMax?: bigint;
|
|
24
|
+
isV1Coin?: boolean;
|
|
24
25
|
}) => {
|
|
25
26
|
calldata: `0x${string}`;
|
|
26
27
|
commands: `0x${string}`;
|
|
@@ -34,6 +35,7 @@ export declare const memecoinToEthWithPermit2: (params: {
|
|
|
34
35
|
permitSingle: PermitSingle | undefined;
|
|
35
36
|
signature: Hex | undefined;
|
|
36
37
|
referrer: Address | null;
|
|
38
|
+
isV1Coin?: boolean;
|
|
37
39
|
}) => {
|
|
38
40
|
calldata: `0x${string}`;
|
|
39
41
|
commands: `0x${string}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"universalRouter.d.ts","sourceRoot":"","sources":["../../src/utils/universalRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAGP,GAAG,EAMJ,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"universalRouter.d.ts","sourceRoot":"","sources":["../../src/utils/universalRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAGP,GAAG,EAMJ,MAAM,MAAM,CAAC;AAWd,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,aAAa,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AAG;IACF,SAAS,EAAE;QACT,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE;YACN,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;YAChB,iBAAiB,EAAE,OAAO,CAAC;SAC5B,CAAC;QACF,KAAK,EAAE,OAAO,YAAY,CAAC;QAC3B,OAAO,EAAE,YAAY,CAAC;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.
|
|
3
|
+
"version": "0.4.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>",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"files": [
|
|
58
58
|
"dist"
|
|
59
59
|
],
|
|
60
|
+
"packageManager": "pnpm@8.15.4",
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
62
63
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -67,7 +68,9 @@
|
|
|
67
68
|
"rimraf": "^6.0.1",
|
|
68
69
|
"rollup": "^2.75.6",
|
|
69
70
|
"tslib": "^2.4.0",
|
|
70
|
-
"typescript": "^5.3.3"
|
|
71
|
+
"typescript": "^5.3.3",
|
|
72
|
+
"typedoc": "^0.25.12",
|
|
73
|
+
"typedoc-plugin-markdown": "^3.17.1"
|
|
71
74
|
},
|
|
72
75
|
"dependencies": {
|
|
73
76
|
"@uniswap/v3-sdk": "^3.24.1",
|
|
@@ -83,6 +86,8 @@
|
|
|
83
86
|
"dev": "rollup -c -w",
|
|
84
87
|
"clean": "rimraf dist",
|
|
85
88
|
"prebuild": "npm run clean",
|
|
86
|
-
"typecheck": "tsc --noEmit"
|
|
89
|
+
"typecheck": "tsc --noEmit",
|
|
90
|
+
"docs:generate": "typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts --excludeExternals --exclude '**/abi/**' --includeVersion",
|
|
91
|
+
"docs:llms": "node scripts/generate-llms-doc.js"
|
|
87
92
|
}
|
|
88
93
|
}
|