@sign-global/tokentable-core 1.2.2 → 1.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.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/constants/index.ts +1 -0
- package/src/services/airdrop/index.ts +7 -0
- package/src/types/index.ts +2 -1
package/package.json
CHANGED
package/src/constants/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ export const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
|
|
|
3
3
|
|
|
4
4
|
export const CONST = {
|
|
5
5
|
TWITTER_AUTH_SUCCESS: 'twitter:auth:success',
|
|
6
|
+
DISCORD_AUTH_SUCCESS: 'discord:auth:success',
|
|
6
7
|
GOOGLE_AUTH_SUCCESS: 'google:auth:success',
|
|
7
8
|
WELCOME_SIGNATURE_STATEMENT: 'Welcome to TokenTable!'
|
|
8
9
|
} as const;
|
|
@@ -114,6 +114,13 @@ export const connectGoogleApi = async (data: SocialConnectParams, baseURL?: stri
|
|
|
114
114
|
});
|
|
115
115
|
};
|
|
116
116
|
|
|
117
|
+
export const connectDiscordApi = async (data: SocialConnectParams, baseURL?: string): Promise<SidResponse> => {
|
|
118
|
+
const client = createApiClient(baseURL);
|
|
119
|
+
return client.post('/airdrop-open/connect-discord', data, {
|
|
120
|
+
headers: getSidHeader(data.projectId)
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
|
|
117
124
|
export const checkEligibility = async (
|
|
118
125
|
data: { projectId: string },
|
|
119
126
|
baseURL?: string
|
package/src/types/index.ts
CHANGED
|
@@ -80,7 +80,8 @@ export enum AirdropSigIdentityTypeEnum {
|
|
|
80
80
|
SolanaWallet = 'Solana Wallet',
|
|
81
81
|
EVMWallet = 'EVM Wallet',
|
|
82
82
|
TONWallet = 'TON Wallet',
|
|
83
|
-
Google = 'Google Account'
|
|
83
|
+
Google = 'Google Account',
|
|
84
|
+
Discord = 'Discord Account'
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
export interface IProjectExtra {
|