@flaunch/sdk 0.1.1 → 0.3.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 (50) hide show
  1. package/README.md +2 -2
  2. package/dist/abi/BidWall.d.ts +493 -0
  3. package/dist/abi/BidWall.d.ts.map +1 -0
  4. package/dist/abi/FastFlaunchZap.d.ts +27 -31
  5. package/dist/abi/FastFlaunchZap.d.ts.map +1 -1
  6. package/dist/abi/StateView.d.ts +278 -0
  7. package/dist/abi/StateView.d.ts.map +1 -0
  8. package/dist/abi/index.cjs +60 -27
  9. package/dist/abi/index.cjs.map +1 -1
  10. package/dist/abi/index.js +60 -27
  11. package/dist/abi/index.js.map +1 -1
  12. package/dist/addresses/index.cjs +195 -138
  13. package/dist/addresses/index.cjs.map +1 -1
  14. package/dist/addresses/index.js +193 -139
  15. package/dist/addresses/index.js.map +1 -1
  16. package/dist/addresses.d.ts +6 -1
  17. package/dist/addresses.d.ts.map +1 -1
  18. package/dist/clients/BidWallClient.d.ts +25 -0
  19. package/dist/clients/BidWallClient.d.ts.map +1 -0
  20. package/dist/clients/FairLaunchClient.d.ts +1 -1
  21. package/dist/clients/FairLaunchClient.d.ts.map +1 -1
  22. package/dist/clients/FastFlaunchClient.d.ts +3 -5
  23. package/dist/clients/FastFlaunchClient.d.ts.map +1 -1
  24. package/dist/clients/FlaunchClient.d.ts +1 -1
  25. package/dist/clients/FlaunchClient.d.ts.map +1 -1
  26. package/dist/clients/FlaunchPositionManagerClient.d.ts +2 -2
  27. package/dist/clients/FlaunchPositionManagerClient.d.ts.map +1 -1
  28. package/dist/clients/MemecoinClient.d.ts +1 -1
  29. package/dist/clients/MemecoinClient.d.ts.map +1 -1
  30. package/dist/clients/Permit2Client.d.ts +1 -1
  31. package/dist/clients/Permit2Client.d.ts.map +1 -1
  32. package/dist/clients/PoolManagerClient.d.ts +1 -1
  33. package/dist/clients/PoolManagerClient.d.ts.map +1 -1
  34. package/dist/clients/QuoterClient.d.ts +2 -1
  35. package/dist/clients/QuoterClient.d.ts.map +1 -1
  36. package/dist/clients/StateViewClient.d.ts +33 -0
  37. package/dist/clients/StateViewClient.d.ts.map +1 -0
  38. package/dist/index.cjs.js +1074 -219
  39. package/dist/index.cjs.js.map +1 -1
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.esm.js +1066 -221
  43. package/dist/index.esm.js.map +1 -1
  44. package/dist/index.umd.js +1 -1
  45. package/dist/index.umd.js.map +1 -1
  46. package/dist/sdk/FlaunchSDK.d.ts +31 -9
  47. package/dist/sdk/FlaunchSDK.d.ts.map +1 -1
  48. package/dist/utils/univ4.d.ts +5 -0
  49. package/dist/utils/univ4.d.ts.map +1 -1
  50. package/package.json +1 -1
@@ -0,0 +1,278 @@
1
+ export declare const StateViewAbi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "contract IPoolManager";
4
+ readonly name: "_poolManager";
5
+ readonly type: "address";
6
+ }];
7
+ readonly stateMutability: "nonpayable";
8
+ readonly type: "constructor";
9
+ }, {
10
+ readonly inputs: readonly [{
11
+ readonly internalType: "PoolId";
12
+ readonly name: "poolId";
13
+ readonly type: "bytes32";
14
+ }];
15
+ readonly name: "getFeeGrowthGlobals";
16
+ readonly outputs: readonly [{
17
+ readonly internalType: "uint256";
18
+ readonly name: "feeGrowthGlobal0";
19
+ readonly type: "uint256";
20
+ }, {
21
+ readonly internalType: "uint256";
22
+ readonly name: "feeGrowthGlobal1";
23
+ readonly type: "uint256";
24
+ }];
25
+ readonly stateMutability: "view";
26
+ readonly type: "function";
27
+ }, {
28
+ readonly inputs: readonly [{
29
+ readonly internalType: "PoolId";
30
+ readonly name: "poolId";
31
+ readonly type: "bytes32";
32
+ }, {
33
+ readonly internalType: "int24";
34
+ readonly name: "tickLower";
35
+ readonly type: "int24";
36
+ }, {
37
+ readonly internalType: "int24";
38
+ readonly name: "tickUpper";
39
+ readonly type: "int24";
40
+ }];
41
+ readonly name: "getFeeGrowthInside";
42
+ readonly outputs: readonly [{
43
+ readonly internalType: "uint256";
44
+ readonly name: "feeGrowthInside0X128";
45
+ readonly type: "uint256";
46
+ }, {
47
+ readonly internalType: "uint256";
48
+ readonly name: "feeGrowthInside1X128";
49
+ readonly type: "uint256";
50
+ }];
51
+ readonly stateMutability: "view";
52
+ readonly type: "function";
53
+ }, {
54
+ readonly inputs: readonly [{
55
+ readonly internalType: "PoolId";
56
+ readonly name: "poolId";
57
+ readonly type: "bytes32";
58
+ }];
59
+ readonly name: "getLiquidity";
60
+ readonly outputs: readonly [{
61
+ readonly internalType: "uint128";
62
+ readonly name: "liquidity";
63
+ readonly type: "uint128";
64
+ }];
65
+ readonly stateMutability: "view";
66
+ readonly type: "function";
67
+ }, {
68
+ readonly inputs: readonly [{
69
+ readonly internalType: "PoolId";
70
+ readonly name: "poolId";
71
+ readonly type: "bytes32";
72
+ }, {
73
+ readonly internalType: "bytes32";
74
+ readonly name: "positionId";
75
+ readonly type: "bytes32";
76
+ }];
77
+ readonly name: "getPositionInfo";
78
+ readonly outputs: readonly [{
79
+ readonly internalType: "uint128";
80
+ readonly name: "liquidity";
81
+ readonly type: "uint128";
82
+ }, {
83
+ readonly internalType: "uint256";
84
+ readonly name: "feeGrowthInside0LastX128";
85
+ readonly type: "uint256";
86
+ }, {
87
+ readonly internalType: "uint256";
88
+ readonly name: "feeGrowthInside1LastX128";
89
+ readonly type: "uint256";
90
+ }];
91
+ readonly stateMutability: "view";
92
+ readonly type: "function";
93
+ }, {
94
+ readonly inputs: readonly [{
95
+ readonly internalType: "PoolId";
96
+ readonly name: "poolId";
97
+ readonly type: "bytes32";
98
+ }, {
99
+ readonly internalType: "address";
100
+ readonly name: "owner";
101
+ readonly type: "address";
102
+ }, {
103
+ readonly internalType: "int24";
104
+ readonly name: "tickLower";
105
+ readonly type: "int24";
106
+ }, {
107
+ readonly internalType: "int24";
108
+ readonly name: "tickUpper";
109
+ readonly type: "int24";
110
+ }, {
111
+ readonly internalType: "bytes32";
112
+ readonly name: "salt";
113
+ readonly type: "bytes32";
114
+ }];
115
+ readonly name: "getPositionInfo";
116
+ readonly outputs: readonly [{
117
+ readonly internalType: "uint128";
118
+ readonly name: "liquidity";
119
+ readonly type: "uint128";
120
+ }, {
121
+ readonly internalType: "uint256";
122
+ readonly name: "feeGrowthInside0LastX128";
123
+ readonly type: "uint256";
124
+ }, {
125
+ readonly internalType: "uint256";
126
+ readonly name: "feeGrowthInside1LastX128";
127
+ readonly type: "uint256";
128
+ }];
129
+ readonly stateMutability: "view";
130
+ readonly type: "function";
131
+ }, {
132
+ readonly inputs: readonly [{
133
+ readonly internalType: "PoolId";
134
+ readonly name: "poolId";
135
+ readonly type: "bytes32";
136
+ }, {
137
+ readonly internalType: "bytes32";
138
+ readonly name: "positionId";
139
+ readonly type: "bytes32";
140
+ }];
141
+ readonly name: "getPositionLiquidity";
142
+ readonly outputs: readonly [{
143
+ readonly internalType: "uint128";
144
+ readonly name: "liquidity";
145
+ readonly type: "uint128";
146
+ }];
147
+ readonly stateMutability: "view";
148
+ readonly type: "function";
149
+ }, {
150
+ readonly inputs: readonly [{
151
+ readonly internalType: "PoolId";
152
+ readonly name: "poolId";
153
+ readonly type: "bytes32";
154
+ }];
155
+ readonly name: "getSlot0";
156
+ readonly outputs: readonly [{
157
+ readonly internalType: "uint160";
158
+ readonly name: "sqrtPriceX96";
159
+ readonly type: "uint160";
160
+ }, {
161
+ readonly internalType: "int24";
162
+ readonly name: "tick";
163
+ readonly type: "int24";
164
+ }, {
165
+ readonly internalType: "uint24";
166
+ readonly name: "protocolFee";
167
+ readonly type: "uint24";
168
+ }, {
169
+ readonly internalType: "uint24";
170
+ readonly name: "lpFee";
171
+ readonly type: "uint24";
172
+ }];
173
+ readonly stateMutability: "view";
174
+ readonly type: "function";
175
+ }, {
176
+ readonly inputs: readonly [{
177
+ readonly internalType: "PoolId";
178
+ readonly name: "poolId";
179
+ readonly type: "bytes32";
180
+ }, {
181
+ readonly internalType: "int16";
182
+ readonly name: "tick";
183
+ readonly type: "int16";
184
+ }];
185
+ readonly name: "getTickBitmap";
186
+ readonly outputs: readonly [{
187
+ readonly internalType: "uint256";
188
+ readonly name: "tickBitmap";
189
+ readonly type: "uint256";
190
+ }];
191
+ readonly stateMutability: "view";
192
+ readonly type: "function";
193
+ }, {
194
+ readonly inputs: readonly [{
195
+ readonly internalType: "PoolId";
196
+ readonly name: "poolId";
197
+ readonly type: "bytes32";
198
+ }, {
199
+ readonly internalType: "int24";
200
+ readonly name: "tick";
201
+ readonly type: "int24";
202
+ }];
203
+ readonly name: "getTickFeeGrowthOutside";
204
+ readonly outputs: readonly [{
205
+ readonly internalType: "uint256";
206
+ readonly name: "feeGrowthOutside0X128";
207
+ readonly type: "uint256";
208
+ }, {
209
+ readonly internalType: "uint256";
210
+ readonly name: "feeGrowthOutside1X128";
211
+ readonly type: "uint256";
212
+ }];
213
+ readonly stateMutability: "view";
214
+ readonly type: "function";
215
+ }, {
216
+ readonly inputs: readonly [{
217
+ readonly internalType: "PoolId";
218
+ readonly name: "poolId";
219
+ readonly type: "bytes32";
220
+ }, {
221
+ readonly internalType: "int24";
222
+ readonly name: "tick";
223
+ readonly type: "int24";
224
+ }];
225
+ readonly name: "getTickInfo";
226
+ readonly outputs: readonly [{
227
+ readonly internalType: "uint128";
228
+ readonly name: "liquidityGross";
229
+ readonly type: "uint128";
230
+ }, {
231
+ readonly internalType: "int128";
232
+ readonly name: "liquidityNet";
233
+ readonly type: "int128";
234
+ }, {
235
+ readonly internalType: "uint256";
236
+ readonly name: "feeGrowthOutside0X128";
237
+ readonly type: "uint256";
238
+ }, {
239
+ readonly internalType: "uint256";
240
+ readonly name: "feeGrowthOutside1X128";
241
+ readonly type: "uint256";
242
+ }];
243
+ readonly stateMutability: "view";
244
+ readonly type: "function";
245
+ }, {
246
+ readonly inputs: readonly [{
247
+ readonly internalType: "PoolId";
248
+ readonly name: "poolId";
249
+ readonly type: "bytes32";
250
+ }, {
251
+ readonly internalType: "int24";
252
+ readonly name: "tick";
253
+ readonly type: "int24";
254
+ }];
255
+ readonly name: "getTickLiquidity";
256
+ readonly outputs: readonly [{
257
+ readonly internalType: "uint128";
258
+ readonly name: "liquidityGross";
259
+ readonly type: "uint128";
260
+ }, {
261
+ readonly internalType: "int128";
262
+ readonly name: "liquidityNet";
263
+ readonly type: "int128";
264
+ }];
265
+ readonly stateMutability: "view";
266
+ readonly type: "function";
267
+ }, {
268
+ readonly inputs: readonly [];
269
+ readonly name: "poolManager";
270
+ readonly outputs: readonly [{
271
+ readonly internalType: "contract IPoolManager";
272
+ readonly name: "";
273
+ readonly type: "address";
274
+ }];
275
+ readonly stateMutability: "view";
276
+ readonly type: "function";
277
+ }];
278
+ //# sourceMappingURL=StateView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StateView.d.ts","sourceRoot":"","sources":["../../src/abi/StateView.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoMf,CAAC"}
@@ -252,62 +252,95 @@ const FairLaunchAbi = [
252
252
 
253
253
  const FastFlaunchZapAbi = [
254
254
  {
255
+ type: "constructor",
255
256
  inputs: [
256
257
  {
257
- internalType: "contract PositionManager",
258
258
  name: "_positionManager",
259
259
  type: "address",
260
+ internalType: "contract PositionManager",
260
261
  },
261
262
  ],
262
263
  stateMutability: "nonpayable",
263
- type: "constructor",
264
264
  },
265
265
  {
266
+ type: "function",
267
+ name: "FAIR_LAUNCH_SUPPLY",
266
268
  inputs: [],
267
- name: "fairLaunchSupply",
268
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
269
+ outputs: [
270
+ {
271
+ name: "",
272
+ type: "uint256",
273
+ internalType: "uint256",
274
+ },
275
+ ],
269
276
  stateMutability: "view",
277
+ },
278
+ {
270
279
  type: "function",
280
+ name: "USDC_MARKET_CAP",
281
+ inputs: [],
282
+ outputs: [
283
+ {
284
+ name: "",
285
+ type: "uint256",
286
+ internalType: "uint256",
287
+ },
288
+ ],
289
+ stateMutability: "view",
271
290
  },
272
291
  {
292
+ type: "function",
293
+ name: "flaunch",
273
294
  inputs: [
274
295
  {
296
+ name: "_params",
297
+ type: "tuple",
298
+ internalType: "struct FastFlaunchZap.FastFlaunchParams",
275
299
  components: [
276
- { internalType: "string", name: "name", type: "string" },
277
- { internalType: "string", name: "symbol", type: "string" },
278
- { internalType: "string", name: "tokenUri", type: "string" },
279
- { internalType: "address", name: "creator", type: "address" },
280
300
  {
281
- internalType: "uint24",
282
- name: "creatorFeeAllocation",
283
- type: "uint24",
301
+ name: "name",
302
+ type: "string",
303
+ internalType: "string",
304
+ },
305
+ {
306
+ name: "symbol",
307
+ type: "string",
308
+ internalType: "string",
309
+ },
310
+ {
311
+ name: "tokenUri",
312
+ type: "string",
313
+ internalType: "string",
314
+ },
315
+ {
316
+ name: "creator",
317
+ type: "address",
318
+ internalType: "address",
284
319
  },
285
320
  ],
286
- internalType: "struct FastFlaunchZap.FastFlaunchParams",
287
- name: "_params",
288
- type: "tuple",
289
321
  },
290
322
  ],
291
- name: "flaunch",
292
- outputs: [{ internalType: "address", name: "memecoin_", type: "address" }],
323
+ outputs: [
324
+ {
325
+ name: "memecoin_",
326
+ type: "address",
327
+ internalType: "address",
328
+ },
329
+ ],
293
330
  stateMutability: "nonpayable",
294
- type: "function",
295
331
  },
296
332
  {
297
- inputs: [],
333
+ type: "function",
298
334
  name: "positionManager",
335
+ inputs: [],
299
336
  outputs: [
300
- { internalType: "contract PositionManager", name: "", type: "address" },
337
+ {
338
+ name: "",
339
+ type: "address",
340
+ internalType: "contract PositionManager",
341
+ },
301
342
  ],
302
343
  stateMutability: "view",
303
- type: "function",
304
- },
305
- {
306
- inputs: [],
307
- name: "usdcMarketCap",
308
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
309
- stateMutability: "view",
310
- type: "function",
311
344
  },
312
345
  ];
313
346