@flaunch/sdk 0.8.0 → 0.8.2
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 +36 -0
- package/dist/abi/AnyBidWall.d.ts +740 -0
- package/dist/abi/AnyBidWall.d.ts.map +1 -0
- package/dist/abi/AnyPositionManager.d.ts +27 -27
- package/dist/abi/TokenImporter.d.ts +288 -0
- package/dist/abi/TokenImporter.d.ts.map +1 -0
- package/dist/abi/index.cjs +25 -25
- package/dist/abi/index.cjs.map +1 -1
- package/dist/abi/index.js +25 -25
- package/dist/abi/index.js.map +1 -1
- package/dist/addresses/index.cjs +50 -3
- package/dist/addresses/index.cjs.map +1 -1
- package/dist/addresses/index.js +42 -4
- package/dist/addresses/index.js.map +1 -1
- package/dist/addresses.d.ts +11 -0
- package/dist/addresses.d.ts.map +1 -1
- package/dist/clients/AnyBidWall.d.ts +46 -0
- package/dist/clients/AnyBidWall.d.ts.map +1 -0
- package/dist/clients/AnyPositionManagerClient.d.ts +8 -0
- package/dist/clients/AnyPositionManagerClient.d.ts.map +1 -1
- package/dist/clients/FlaunchPositionManagerClient.d.ts +8 -0
- package/dist/clients/FlaunchPositionManagerClient.d.ts.map +1 -1
- package/dist/clients/FlaunchPositionManagerV1_1Client.d.ts +8 -0
- package/dist/clients/FlaunchPositionManagerV1_1Client.d.ts.map +1 -1
- package/dist/clients/FlaunchZapClient.d.ts +41 -1
- package/dist/clients/FlaunchZapClient.d.ts.map +1 -1
- package/dist/clients/TokenImporter.d.ts +41 -0
- package/dist/clients/TokenImporter.d.ts.map +1 -0
- package/dist/index.cjs.js +3121 -1852
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +3106 -1853
- 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 +87 -3
- package/dist/sdk/FlaunchSDK.d.ts.map +1 -1
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/parseSwap.d.ts +43 -0
- package/dist/utils/parseSwap.d.ts.map +1 -0
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ _Note: Add this `llms-full.txt` file into Cursor IDE / LLMs to provide context a
|
|
|
28
28
|
- [Selling with Permit2](#selling-with-permit2)
|
|
29
29
|
- [Flaunching a Memecoin](#flaunching-a-memecoin)
|
|
30
30
|
- [How to generate Base64Image from file upload](#how-to-generate-base64image-from-user-uploaded-file)
|
|
31
|
+
- [Flaunch with Address Fee Splits](#flaunch-with-address-fee-splits)
|
|
31
32
|
- [Advanced Integration: Revenue Sharing with RevenueManager](#advanced-integration-revenue-sharing-with-revenuemanager)
|
|
32
33
|
- [All SDK functions](#all-sdk-functions)
|
|
33
34
|
- [React Hooks](#react-hooks)
|
|
@@ -251,6 +252,41 @@ const handleImageChange = useCallback(
|
|
|
251
252
|
/>;
|
|
252
253
|
```
|
|
253
254
|
|
|
255
|
+
### Flaunch with Address Fee Splits
|
|
256
|
+
|
|
257
|
+
You can flaunch a coin and share the revenue with the creator and an array of recipients, each with a different percentage share.\
|
|
258
|
+
Example below of a creator splitting 50% of their revenue with 2 addresses, with 30% and 70% share respectively:
|
|
259
|
+
|
|
260
|
+
```ts
|
|
261
|
+
await flaunchWrite.flaunchIPFSWithSplitManager({
|
|
262
|
+
name: "...",
|
|
263
|
+
symbol: "...",
|
|
264
|
+
metadata: {
|
|
265
|
+
base64Image: "...",
|
|
266
|
+
},
|
|
267
|
+
pinataConfig: {
|
|
268
|
+
jwt: "...",
|
|
269
|
+
},
|
|
270
|
+
fairLaunchPercent: 40,
|
|
271
|
+
fairLaunchDuration: 30 * 60, // 30 mins
|
|
272
|
+
initialMarketCapUSD: 1_000,
|
|
273
|
+
creator: "0x...",
|
|
274
|
+
creatorFeeAllocationPercent: 100,
|
|
275
|
+
// **Note:** Split related params
|
|
276
|
+
creatorSplitPercent: 50,
|
|
277
|
+
splitReceivers: [
|
|
278
|
+
{
|
|
279
|
+
address: "0x123...",
|
|
280
|
+
percent: 30,
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
address: "0xabc...",
|
|
284
|
+
percent: 70,
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
});
|
|
288
|
+
```
|
|
289
|
+
|
|
254
290
|
### Advanced Integration: Revenue Sharing with RevenueManager
|
|
255
291
|
|
|
256
292
|
For platforms building on top of Flaunch, the `RevenueManager` contract enables sophisticated revenue-sharing models. It allows platforms to automatically take a protocol fee from the trading fees generated by memecoins launched through their integration.
|