@flaunch/sdk 0.1.0 → 0.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Flaunch SDK
2
2
 
3
- [![npm version](https://badge.fury.io/js/@flaunch/sdk.svg)](https://npmjs.com/package/@flaunch/sdk)
3
+ [![npm version](https://badge.fury.io/js/%40flaunch%2Fsdk.svg)](https://npmjs.com/package/@flaunch/sdk)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
 
6
6
  A TypeScript SDK for seamless interaction with the Flaunch protocol and Uniswap V4.
@@ -202,6 +202,7 @@ if (allowance < parseEther(coinAmount)) {
202
202
 
203
203
  - $10k starting market cap
204
204
  - 60% of the total supply goes to the fair launch
205
+ - 80% dev / 20% community split
205
206
 
206
207
  _**Fast Flaunch doesn't incur any protocol fees!**_
207
208
 
@@ -210,7 +211,6 @@ const hash = await flaunchWrite.fastFlaunchIPFS({
210
211
  name: "Test",
211
212
  symbol: "TEST",
212
213
  creator: address,
213
- creatorFeeAllocationPercent: 30,
214
214
  metadata: {
215
215
  base64Image: imageData, // refer to the code below, on how to generate this base64Image
216
216
  description: "Your memecoin description",
@@ -1,75 +1,71 @@
1
1
  export declare const FastFlaunchZapAbi: readonly [{
2
+ readonly type: "constructor";
2
3
  readonly inputs: readonly [{
3
- readonly internalType: "contract PositionManager";
4
4
  readonly name: "_positionManager";
5
5
  readonly type: "address";
6
+ readonly internalType: "contract PositionManager";
6
7
  }];
7
8
  readonly stateMutability: "nonpayable";
8
- readonly type: "constructor";
9
9
  }, {
10
+ readonly type: "function";
11
+ readonly name: "FAIR_LAUNCH_SUPPLY";
10
12
  readonly inputs: readonly [];
11
- readonly name: "fairLaunchSupply";
12
13
  readonly outputs: readonly [{
13
- readonly internalType: "uint256";
14
14
  readonly name: "";
15
15
  readonly type: "uint256";
16
+ readonly internalType: "uint256";
16
17
  }];
17
18
  readonly stateMutability: "view";
19
+ }, {
18
20
  readonly type: "function";
21
+ readonly name: "USDC_MARKET_CAP";
22
+ readonly inputs: readonly [];
23
+ readonly outputs: readonly [{
24
+ readonly name: "";
25
+ readonly type: "uint256";
26
+ readonly internalType: "uint256";
27
+ }];
28
+ readonly stateMutability: "view";
19
29
  }, {
30
+ readonly type: "function";
31
+ readonly name: "flaunch";
20
32
  readonly inputs: readonly [{
33
+ readonly name: "_params";
34
+ readonly type: "tuple";
35
+ readonly internalType: "struct FastFlaunchZap.FastFlaunchParams";
21
36
  readonly components: readonly [{
22
- readonly internalType: "string";
23
37
  readonly name: "name";
24
38
  readonly type: "string";
25
- }, {
26
39
  readonly internalType: "string";
40
+ }, {
27
41
  readonly name: "symbol";
28
42
  readonly type: "string";
29
- }, {
30
43
  readonly internalType: "string";
44
+ }, {
31
45
  readonly name: "tokenUri";
32
46
  readonly type: "string";
47
+ readonly internalType: "string";
33
48
  }, {
34
- readonly internalType: "address";
35
49
  readonly name: "creator";
36
50
  readonly type: "address";
37
- }, {
38
- readonly internalType: "uint24";
39
- readonly name: "creatorFeeAllocation";
40
- readonly type: "uint24";
51
+ readonly internalType: "address";
41
52
  }];
42
- readonly internalType: "struct FastFlaunchZap.FastFlaunchParams";
43
- readonly name: "_params";
44
- readonly type: "tuple";
45
53
  }];
46
- readonly name: "flaunch";
47
54
  readonly outputs: readonly [{
48
- readonly internalType: "address";
49
55
  readonly name: "memecoin_";
50
56
  readonly type: "address";
57
+ readonly internalType: "address";
51
58
  }];
52
59
  readonly stateMutability: "nonpayable";
53
- readonly type: "function";
54
60
  }, {
55
- readonly inputs: readonly [];
56
- readonly name: "positionManager";
57
- readonly outputs: readonly [{
58
- readonly internalType: "contract PositionManager";
59
- readonly name: "";
60
- readonly type: "address";
61
- }];
62
- readonly stateMutability: "view";
63
61
  readonly type: "function";
64
- }, {
62
+ readonly name: "positionManager";
65
63
  readonly inputs: readonly [];
66
- readonly name: "usdcMarketCap";
67
64
  readonly outputs: readonly [{
68
- readonly internalType: "uint256";
69
65
  readonly name: "";
70
- readonly type: "uint256";
66
+ readonly type: "address";
67
+ readonly internalType: "contract PositionManager";
71
68
  }];
72
69
  readonly stateMutability: "view";
73
- readonly type: "function";
74
70
  }];
75
71
  //# sourceMappingURL=FastFlaunchZap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FastFlaunchZap.d.ts","sourceRoot":"","sources":["../../src/abi/FastFlaunchZap.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2DpB,CAAC"}
1
+ {"version":3,"file":"FastFlaunchZap.d.ts","sourceRoot":"","sources":["../../src/abi/FastFlaunchZap.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4FpB,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