four-flap-meme-sdk 4.0.5 → 4.0.7
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.en.md +0 -15
- package/README.zh-CN.md +0 -15
- package/dist/bundle/four-meme/core/create-openfour.d.ts +0 -3
- package/dist/bundle/four-meme/core/create-openfour.js +0 -3
- package/dist/bundle/four-meme/core/create-token.js +0 -3
- package/dist/bundle/four-meme/types/index.d.ts +0 -6
- package/dist/core/clients/four.d.ts +0 -3
- package/dist/core/clients/four.js +0 -3
- package/dist/domains/flap/ipfs.d.ts +0 -3
- package/dist/domains/flap/ipfs.js +0 -4
- package/dist/domains/flows/create.d.ts +0 -3
- package/dist/domains/flows/create.js +0 -3
- package/dist/domains/four/contracts/tm-bundle-create.js +0 -3
- package/dist/domains/four/contracts/tm-bundle-helpers.d.ts +0 -3
- package/dist/domains/openfour/types.d.ts +0 -3
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -410,9 +410,6 @@ const result = await createTokenFlow({
|
|
|
410
410
|
webUrl: 'https://example.com',
|
|
411
411
|
twitterUrl: 'https://twitter.com/...',
|
|
412
412
|
telegramUrl: 'https://t.me/...',
|
|
413
|
-
githubUrl: 'https://github.com/...',
|
|
414
|
-
youtubeUrl: 'https://youtube.com/...',
|
|
415
|
-
deboxUrl: 'https://debox.pro/...',
|
|
416
413
|
}
|
|
417
414
|
});
|
|
418
415
|
|
|
@@ -446,9 +443,6 @@ console.log('Your address:', result.accountAddress);
|
|
|
446
443
|
| `webUrl` | string | ❌ | Project website |
|
|
447
444
|
| `twitterUrl` | string | ❌ | Twitter/X profile |
|
|
448
445
|
| `telegramUrl` | string | ❌ | Telegram group/channel |
|
|
449
|
-
| `githubUrl` | string | ❌ | GitHub |
|
|
450
|
-
| `youtubeUrl` | string | ❌ | YouTube |
|
|
451
|
-
| `deboxUrl` | string | ❌ | DeBox |
|
|
452
446
|
|
|
453
447
|
### Return Value:
|
|
454
448
|
|
|
@@ -543,9 +537,6 @@ const { createArg, signature } = await four.createToken(accessToken, {
|
|
|
543
537
|
webUrl: 'https://...',
|
|
544
538
|
twitterUrl: 'https://...',
|
|
545
539
|
telegramUrl: 'https://...',
|
|
546
|
-
githubUrl: 'https://...',
|
|
547
|
-
youtubeUrl: 'https://...',
|
|
548
|
-
deboxUrl: 'https://...',
|
|
549
540
|
});
|
|
550
541
|
```
|
|
551
542
|
|
|
@@ -1045,9 +1036,6 @@ const { createArg, signature } = await four.createToken(
|
|
|
1045
1036
|
webUrl?: string, // Optional website
|
|
1046
1037
|
twitterUrl?: string, // Optional Twitter
|
|
1047
1038
|
telegramUrl?: string, // Optional Telegram
|
|
1048
|
-
githubUrl?: string, // Optional GitHub
|
|
1049
|
-
youtubeUrl?: string, // Optional YouTube
|
|
1050
|
-
deboxUrl?: string // Optional DeBox
|
|
1051
1039
|
}
|
|
1052
1040
|
);
|
|
1053
1041
|
```
|
|
@@ -2152,9 +2140,6 @@ const cid = await uploadTokenMeta(
|
|
|
2152
2140
|
website: 'https://example.com',
|
|
2153
2141
|
twitter: 'https://x.com/mytoken',
|
|
2154
2142
|
telegram: 'https://t.me/mytoken',
|
|
2155
|
-
github: 'https://github.com/mytoken',
|
|
2156
|
-
youtube: 'https://youtube.com/@mytoken',
|
|
2157
|
-
debox: 'https://debox.pro/mytoken',
|
|
2158
2143
|
},
|
|
2159
2144
|
'https://your-ipfs-graphql.example'
|
|
2160
2145
|
);
|
package/README.zh-CN.md
CHANGED
|
@@ -425,9 +425,6 @@ const result = await createTokenFlow({
|
|
|
425
425
|
webUrl: 'https://example.com',
|
|
426
426
|
twitterUrl: 'https://twitter.com/...',
|
|
427
427
|
telegramUrl: 'https://t.me/...',
|
|
428
|
-
githubUrl: 'https://github.com/...',
|
|
429
|
-
youtubeUrl: 'https://youtube.com/...',
|
|
430
|
-
deboxUrl: 'https://debox.pro/...',
|
|
431
428
|
}
|
|
432
429
|
});
|
|
433
430
|
|
|
@@ -463,9 +460,6 @@ console.log('你的地址:', result.accountAddress);
|
|
|
463
460
|
| `webUrl` | string | ❌ | 项目网站 |
|
|
464
461
|
| `twitterUrl` | string | ❌ | Twitter/X 账号 |
|
|
465
462
|
| `telegramUrl` | string | ❌ | Telegram 群组/频道 |
|
|
466
|
-
| `githubUrl` | string | ❌ | GitHub |
|
|
467
|
-
| `youtubeUrl` | string | ❌ | YouTube |
|
|
468
|
-
| `deboxUrl` | string | ❌ | DeBox |
|
|
469
463
|
|
|
470
464
|
### 返回值:
|
|
471
465
|
|
|
@@ -561,9 +555,6 @@ const { createArg, signature } = await four.createToken(accessToken, {
|
|
|
561
555
|
webUrl: 'https://...',
|
|
562
556
|
twitterUrl: 'https://...',
|
|
563
557
|
telegramUrl: 'https://...',
|
|
564
|
-
githubUrl: 'https://...',
|
|
565
|
-
youtubeUrl: 'https://...',
|
|
566
|
-
deboxUrl: 'https://...',
|
|
567
558
|
});
|
|
568
559
|
```
|
|
569
560
|
|
|
@@ -1045,9 +1036,6 @@ const { createArg, signature } = await four.createToken(
|
|
|
1045
1036
|
webUrl?: string, // 可选网站
|
|
1046
1037
|
twitterUrl?: string, // 可选 Twitter
|
|
1047
1038
|
telegramUrl?: string, // 可选 Telegram
|
|
1048
|
-
githubUrl?: string, // 可选 GitHub
|
|
1049
|
-
youtubeUrl?: string, // 可选 YouTube
|
|
1050
|
-
deboxUrl?: string // 可选 DeBox
|
|
1051
1039
|
}
|
|
1052
1040
|
);
|
|
1053
1041
|
```
|
|
@@ -2518,9 +2506,6 @@ const cid = await uploadTokenMeta(imageFile as File, {
|
|
|
2518
2506
|
website: 'https://example.com',
|
|
2519
2507
|
twitter: 'https://x.com/mytoken',
|
|
2520
2508
|
telegram: 'https://t.me/mytoken',
|
|
2521
|
-
github: 'https://github.com/mytoken',
|
|
2522
|
-
youtube: 'https://youtube.com/@mytoken',
|
|
2523
|
-
debox: 'https://debox.pro/mytoken',
|
|
2524
2509
|
}, 'https://your-ipfs-graphql.example');
|
|
2525
2510
|
```
|
|
2526
2511
|
|
|
@@ -57,9 +57,6 @@ export async function createOpenFourTokenMerkle(params) {
|
|
|
57
57
|
webUrl: tokenInfo.webUrl,
|
|
58
58
|
twitterUrl: tokenInfo.twitterUrl,
|
|
59
59
|
telegramUrl: tokenInfo.telegramUrl,
|
|
60
|
-
githubUrl: tokenInfo.githubUrl,
|
|
61
|
-
youtubeUrl: tokenInfo.youtubeUrl,
|
|
62
|
-
deboxUrl: tokenInfo.deboxUrl,
|
|
63
60
|
presaleQuote: preSale,
|
|
64
61
|
feePlan: Boolean(tokenInfo.feePlan),
|
|
65
62
|
initParams: tokenInfo.initParams,
|
|
@@ -41,9 +41,6 @@ export async function createTokenWithBundleBuyMerkle(params) {
|
|
|
41
41
|
webUrl: tokenInfo.webUrl,
|
|
42
42
|
twitterUrl: tokenInfo.twitterUrl,
|
|
43
43
|
telegramUrl: tokenInfo.telegramUrl,
|
|
44
|
-
githubUrl: tokenInfo.githubUrl,
|
|
45
|
-
youtubeUrl: tokenInfo.youtubeUrl,
|
|
46
|
-
deboxUrl: tokenInfo.deboxUrl,
|
|
47
44
|
preSale: effectivePreSaleStr || '0',
|
|
48
45
|
onlyMPC: false,
|
|
49
46
|
...(tokenInfo.feePlan ? { feePlan: true } : {}),
|
|
@@ -102,9 +102,6 @@ export type FourCreateWithBundleBuyMerkleParams = {
|
|
|
102
102
|
webUrl?: string;
|
|
103
103
|
twitterUrl?: string;
|
|
104
104
|
telegramUrl?: string;
|
|
105
|
-
githubUrl?: string;
|
|
106
|
-
youtubeUrl?: string;
|
|
107
|
-
deboxUrl?: string;
|
|
108
105
|
/** ✅ AntiSniperFeeMode(开盘高税模式) */
|
|
109
106
|
feePlan?: boolean;
|
|
110
107
|
/** ✅ 税币配置(Tax Token, creatorType=5) */
|
|
@@ -131,9 +128,6 @@ export type FourCreateWithBundleBuySignParams = {
|
|
|
131
128
|
webUrl?: string;
|
|
132
129
|
twitterUrl?: string;
|
|
133
130
|
telegramUrl?: string;
|
|
134
|
-
githubUrl?: string;
|
|
135
|
-
youtubeUrl?: string;
|
|
136
|
-
deboxUrl?: string;
|
|
137
131
|
/** ✅ AntiSniperFeeMode(开盘高税模式) */
|
|
138
132
|
feePlan?: boolean;
|
|
139
133
|
/** ✅ 税币配置(Tax Token, creatorType=5) */
|
|
@@ -14,9 +14,6 @@ export function buildCreateTokenReq(custom, raisedToken) {
|
|
|
14
14
|
webUrl: custom.webUrl,
|
|
15
15
|
twitterUrl: custom.twitterUrl,
|
|
16
16
|
telegramUrl: custom.telegramUrl,
|
|
17
|
-
githubUrl: custom.githubUrl,
|
|
18
|
-
youtubeUrl: custom.youtubeUrl,
|
|
19
|
-
deboxUrl: custom.deboxUrl,
|
|
20
17
|
preSale: custom.preSale,
|
|
21
18
|
onlyMPC: custom.onlyMPC ?? false,
|
|
22
19
|
...(custom.feePlan ? { feePlan: true } : {}),
|
|
@@ -12,10 +12,6 @@ function toOfficialIpfsMeta(meta) {
|
|
|
12
12
|
website: emptyToNull(meta.website),
|
|
13
13
|
telegram: emptyToNull(meta.telegram),
|
|
14
14
|
twitter: emptyToNull(meta.twitter),
|
|
15
|
-
github: emptyToNull(meta.github),
|
|
16
|
-
youtube: emptyToNull(meta.youtube),
|
|
17
|
-
debox: emptyToNull(meta.debox),
|
|
18
|
-
buy: null,
|
|
19
15
|
};
|
|
20
16
|
}
|
|
21
17
|
/**
|
|
@@ -71,9 +71,6 @@ export async function createTokenFlow(input) {
|
|
|
71
71
|
webUrl: input.payload.webUrl,
|
|
72
72
|
twitterUrl: input.payload.twitterUrl,
|
|
73
73
|
telegramUrl: input.payload.telegramUrl,
|
|
74
|
-
githubUrl: input.payload.githubUrl,
|
|
75
|
-
youtubeUrl: input.payload.youtubeUrl,
|
|
76
|
-
deboxUrl: input.payload.deboxUrl,
|
|
77
74
|
preSale: input.payload.preSale,
|
|
78
75
|
onlyMPC: input.payload.onlyMPC ?? false,
|
|
79
76
|
lpTradingFee: 0.0025,
|
|
@@ -70,9 +70,6 @@ export async function createTokenWithBundleBuy(params) {
|
|
|
70
70
|
webUrl: tokenInfo.webUrl,
|
|
71
71
|
twitterUrl: tokenInfo.twitterUrl,
|
|
72
72
|
telegramUrl: tokenInfo.telegramUrl,
|
|
73
|
-
githubUrl: tokenInfo.githubUrl,
|
|
74
|
-
youtubeUrl: tokenInfo.youtubeUrl,
|
|
75
|
-
deboxUrl: tokenInfo.deboxUrl,
|
|
76
73
|
preSale: tokenInfo.preSale || '0',
|
|
77
74
|
onlyMPC: false,
|
|
78
75
|
lpTradingFee: 0.0025,
|
|
@@ -69,9 +69,6 @@ export type FourCreateWithBundleBuyParams = {
|
|
|
69
69
|
webUrl?: string;
|
|
70
70
|
twitterUrl?: string;
|
|
71
71
|
telegramUrl?: string;
|
|
72
|
-
githubUrl?: string;
|
|
73
|
-
youtubeUrl?: string;
|
|
74
|
-
deboxUrl?: string;
|
|
75
72
|
tokenTaxInfo?: FourTokenTaxInfo;
|
|
76
73
|
feePlan?: boolean;
|
|
77
74
|
quoteSymbol?: string;
|
|
@@ -61,9 +61,6 @@ export type OpenFourCreateReq = {
|
|
|
61
61
|
webUrl?: string;
|
|
62
62
|
telegramUrl?: string;
|
|
63
63
|
twitterUrl?: string;
|
|
64
|
-
githubUrl?: string;
|
|
65
|
-
youtubeUrl?: string;
|
|
66
|
-
deboxUrl?: string;
|
|
67
64
|
presaleQuote: string | number;
|
|
68
65
|
feePlan: boolean;
|
|
69
66
|
initParams: OpenFourInitParams;
|