@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sign-global/tokentable-core",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -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
@@ -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 {