@snagsolutions/sdk 0.1.0-alpha.215 → 0.1.0-alpha.217
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 +16 -0
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.d.ts.map +1 -1
- package/index.js +4 -1
- package/index.js.map +1 -1
- package/index.mjs +4 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +1 -1
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +2 -2
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +2 -1
- package/resources/loyalty/transactions/index.d.ts.map +1 -1
- package/resources/loyalty/transactions/index.js +3 -1
- package/resources/loyalty/transactions/index.js.map +1 -1
- package/resources/loyalty/transactions/index.mjs +1 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -1
- package/resources/loyalty/transactions/posts.d.ts +145 -0
- package/resources/loyalty/transactions/posts.d.ts.map +1 -0
- package/resources/loyalty/transactions/posts.js +32 -0
- package/resources/loyalty/transactions/posts.js.map +1 -0
- package/resources/loyalty/transactions/posts.mjs +28 -0
- package/resources/loyalty/transactions/posts.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +143 -1
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js +34 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs +34 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -1
- package/resources/minting/allowlist.d.ts +84 -0
- package/resources/minting/allowlist.d.ts.map +1 -0
- package/resources/minting/allowlist.js +42 -0
- package/resources/minting/allowlist.js.map +1 -0
- package/resources/minting/allowlist.mjs +38 -0
- package/resources/minting/allowlist.mjs.map +1 -0
- package/resources/minting/contracts.d.ts +164 -0
- package/resources/minting/contracts.d.ts.map +1 -0
- package/resources/minting/contracts.js +30 -0
- package/resources/minting/contracts.js.map +1 -0
- package/resources/minting/contracts.mjs +26 -0
- package/resources/minting/contracts.mjs.map +1 -0
- package/resources/minting/index.d.ts +5 -0
- package/resources/minting/index.d.ts.map +1 -0
- package/resources/minting/index.js +13 -0
- package/resources/minting/index.js.map +1 -0
- package/resources/minting/index.mjs +6 -0
- package/resources/minting/index.mjs.map +1 -0
- package/resources/minting/minting.d.ts +142 -0
- package/resources/minting/minting.d.ts.map +1 -0
- package/resources/minting/minting.js +79 -0
- package/resources/minting/minting.js.map +1 -0
- package/resources/minting/minting.mjs +52 -0
- package/resources/minting/minting.mjs.map +1 -0
- package/resources/minting/status.d.ts +44 -0
- package/resources/minting/status.d.ts.map +1 -0
- package/resources/minting/status.js +33 -0
- package/resources/minting/status.js.map +1 -0
- package/resources/minting/status.mjs +29 -0
- package/resources/minting/status.mjs.map +1 -0
- package/resources/minting.d.ts +1 -94
- package/resources/minting.d.ts.map +1 -1
- package/resources/minting.js +15 -11
- package/resources/minting.js.map +1 -1
- package/resources/minting.mjs +1 -9
- package/resources/minting.mjs.map +1 -1
- package/resources/token-claims.d.ts +160 -0
- package/resources/token-claims.d.ts.map +1 -0
- package/resources/token-claims.js +46 -0
- package/resources/token-claims.js.map +1 -0
- package/resources/token-claims.mjs +42 -0
- package/resources/token-claims.mjs.map +1 -0
- package/src/index.ts +42 -1
- package/src/resources/index.ts +22 -1
- package/src/resources/loyalty/index.ts +4 -0
- package/src/resources/loyalty/loyalty.ts +8 -0
- package/src/resources/loyalty/transactions/index.ts +11 -0
- package/src/resources/loyalty/transactions/posts.ts +221 -0
- package/src/resources/loyalty/transactions/transactions.ts +194 -0
- package/src/resources/minting/allowlist.ts +116 -0
- package/src/resources/minting/contracts.ts +405 -0
- package/src/resources/minting/index.ts +29 -0
- package/src/resources/minting/minting.ts +277 -0
- package/src/resources/minting/status.ts +70 -0
- package/src/resources/minting.ts +1 -176
- package/src/resources/token-claims.ts +307 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
|
|
6
|
+
export class Status extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get the status of a mint
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const status = await client.minting.status.retrieve('id');
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<StatusRetrieveResponse> {
|
|
16
|
+
return this._client.get(`/api/minting/status/${id}`, options);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Update the status of a mint
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const status = await client.minting.status.update('id', {
|
|
25
|
+
* status: 'failed',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
update(
|
|
30
|
+
id: string,
|
|
31
|
+
body: StatusUpdateParams,
|
|
32
|
+
options?: Core.RequestOptions,
|
|
33
|
+
): Core.APIPromise<StatusUpdateResponse> {
|
|
34
|
+
return this._client.post(`/api/minting/status/${id}`, { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface StatusRetrieveResponse {
|
|
39
|
+
errorCode: number | null;
|
|
40
|
+
|
|
41
|
+
errorMessage: string | null;
|
|
42
|
+
|
|
43
|
+
price: number | null;
|
|
44
|
+
|
|
45
|
+
relayerTxId: string | null;
|
|
46
|
+
|
|
47
|
+
status: 'minted' | 'minting' | 'failed' | 'generatingSignature';
|
|
48
|
+
|
|
49
|
+
txHash: string | null;
|
|
50
|
+
|
|
51
|
+
signature?: unknown;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface StatusUpdateResponse {
|
|
55
|
+
message: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface StatusUpdateParams {
|
|
59
|
+
status: 'failed' | 'minted';
|
|
60
|
+
|
|
61
|
+
txHash?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export declare namespace Status {
|
|
65
|
+
export {
|
|
66
|
+
type StatusRetrieveResponse as StatusRetrieveResponse,
|
|
67
|
+
type StatusUpdateResponse as StatusUpdateResponse,
|
|
68
|
+
type StatusUpdateParams as StatusUpdateParams,
|
|
69
|
+
};
|
|
70
|
+
}
|
package/src/resources/minting.ts
CHANGED
|
@@ -1,178 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import * as Core from '../core';
|
|
5
|
-
|
|
6
|
-
export class Minting extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Returns minting assets and any relevant context
|
|
9
|
-
*/
|
|
10
|
-
getAssets(
|
|
11
|
-
query: MintingGetAssetsParams,
|
|
12
|
-
options?: Core.RequestOptions,
|
|
13
|
-
): Core.APIPromise<MintingGetAssetsResponse> {
|
|
14
|
-
return this._client.get('/api/minting/assets', { query, ...options });
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Schema for getting minting assets response
|
|
20
|
-
*/
|
|
21
|
-
export interface MintingGetAssetsResponse {
|
|
22
|
-
/**
|
|
23
|
-
* Array of minting assets
|
|
24
|
-
*/
|
|
25
|
-
data: Array<MintingGetAssetsResponse.Data>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Indicates if more pages are available
|
|
29
|
-
*/
|
|
30
|
-
hasNextPage: boolean;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export namespace MintingGetAssetsResponse {
|
|
34
|
-
export interface Data {
|
|
35
|
-
/**
|
|
36
|
-
* UUID of the minting asset
|
|
37
|
-
*/
|
|
38
|
-
id: string;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface MintingGetAssetsParams {
|
|
43
|
-
/**
|
|
44
|
-
* Organization ID
|
|
45
|
-
*/
|
|
46
|
-
organizationId: string;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Website ID
|
|
50
|
-
*/
|
|
51
|
-
websiteId: string;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Contract Address
|
|
55
|
-
*/
|
|
56
|
-
contractAddress?: string;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Currency Type
|
|
60
|
-
*/
|
|
61
|
-
currencyType?: 'loyalty' | 'native' | null;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Whether to include deleted assets in the response
|
|
65
|
-
*/
|
|
66
|
-
includeDeleted?: boolean | null;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Whether to include metadata in the response
|
|
70
|
-
*/
|
|
71
|
-
includeMetadata?: boolean | null;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Whether to include listed assets in the response
|
|
75
|
-
*/
|
|
76
|
-
isListed?: boolean | null;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Minting Contract Asset ID
|
|
80
|
-
*/
|
|
81
|
-
mintingContractAssetId?: string | null;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Comma-separated list of Minting Contract UUIDs
|
|
85
|
-
*/
|
|
86
|
-
mintingContractIds?: string | null;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Network
|
|
90
|
-
*/
|
|
91
|
-
network?:
|
|
92
|
-
| 'abstract'
|
|
93
|
-
| 'abstractTestnet'
|
|
94
|
-
| 'apechain'
|
|
95
|
-
| 'arbitrum'
|
|
96
|
-
| 'avalanche'
|
|
97
|
-
| 'avalancheFuji'
|
|
98
|
-
| 'base'
|
|
99
|
-
| 'baseSepolia'
|
|
100
|
-
| 'berachain'
|
|
101
|
-
| 'berachainArtio'
|
|
102
|
-
| 'berachainBepolia'
|
|
103
|
-
| 'binance'
|
|
104
|
-
| 'bscTestnet'
|
|
105
|
-
| 'campTestnet'
|
|
106
|
-
| 'fantom'
|
|
107
|
-
| 'fantomTestnet'
|
|
108
|
-
| 'flowMainnet'
|
|
109
|
-
| 'mainnet'
|
|
110
|
-
| 'nexusTestnet'
|
|
111
|
-
| 'optimism'
|
|
112
|
-
| 'polygon'
|
|
113
|
-
| 'polygon_mumbai'
|
|
114
|
-
| 'skaleNebula'
|
|
115
|
-
| 'skaleEuropa'
|
|
116
|
-
| 'skaleCalypso'
|
|
117
|
-
| 'solana'
|
|
118
|
-
| 'sophon'
|
|
119
|
-
| 'sophonTestnet'
|
|
120
|
-
| 'sui'
|
|
121
|
-
| 'superseed'
|
|
122
|
-
| 'superseedSepolia'
|
|
123
|
-
| 'vanar'
|
|
124
|
-
| 'xai'
|
|
125
|
-
| 'zksync'
|
|
126
|
-
| 'coti'
|
|
127
|
-
| 'cotiTestnet'
|
|
128
|
-
| 'morph'
|
|
129
|
-
| 'morphTestnet'
|
|
130
|
-
| 'morphHolesky'
|
|
131
|
-
| 'ultra'
|
|
132
|
-
| 'ultraTestnet'
|
|
133
|
-
| 'nitrograph'
|
|
134
|
-
| 'sepolia'
|
|
135
|
-
| 'optimism_sepolia'
|
|
136
|
-
| 'arbitrumSepolia'
|
|
137
|
-
| 'goerli'
|
|
138
|
-
| 'optimism_goerli'
|
|
139
|
-
| 'arbitrumGoerli'
|
|
140
|
-
| 'basecamp'
|
|
141
|
-
| 'somnia'
|
|
142
|
-
| 'zkverify'
|
|
143
|
-
| 'polkadot'
|
|
144
|
-
| 'kusama'
|
|
145
|
-
| 'flow_cadence';
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Sort Key
|
|
149
|
-
*/
|
|
150
|
-
sortBy?: 'price' | 'startsAt' | 'assetNr' | null;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Sort Dir
|
|
154
|
-
*/
|
|
155
|
-
sortDir?: 'asc' | 'desc' | null;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Status
|
|
159
|
-
*/
|
|
160
|
-
status?: 'active' | 'past' | null;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Token ID
|
|
164
|
-
*/
|
|
165
|
-
tokenId?: string | Array<number> | null;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Wallet Address
|
|
169
|
-
*/
|
|
170
|
-
walletAddress?: string | Array<string>;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export declare namespace Minting {
|
|
174
|
-
export {
|
|
175
|
-
type MintingGetAssetsResponse as MintingGetAssetsResponse,
|
|
176
|
-
type MintingGetAssetsParams as MintingGetAssetsParams,
|
|
177
|
-
};
|
|
178
|
-
}
|
|
3
|
+
export * from './minting/index';
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
6
|
+
|
|
7
|
+
export class TokenClaims extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get a token claim by id
|
|
10
|
+
*/
|
|
11
|
+
retrieve(
|
|
12
|
+
pathId: string,
|
|
13
|
+
query: TokenClaimRetrieveParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Core.APIPromise<TokenClaimRetrieveResponse> {
|
|
16
|
+
return this._client.get(`/api/token_claims/${pathId}`, { query, ...options });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Get all available token claims for a given website and organization
|
|
21
|
+
*/
|
|
22
|
+
list(query?: TokenClaimListParams, options?: Core.RequestOptions): Core.APIPromise<TokenClaimListResponse>;
|
|
23
|
+
list(options?: Core.RequestOptions): Core.APIPromise<TokenClaimListResponse>;
|
|
24
|
+
list(
|
|
25
|
+
query: TokenClaimListParams | Core.RequestOptions = {},
|
|
26
|
+
options?: Core.RequestOptions,
|
|
27
|
+
): Core.APIPromise<TokenClaimListResponse> {
|
|
28
|
+
if (isRequestOptions(query)) {
|
|
29
|
+
return this.list({}, query);
|
|
30
|
+
}
|
|
31
|
+
return this._client.get('/api/token_claims', { query, ...options });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Check if a wallet address is eligible for a token claim
|
|
36
|
+
*/
|
|
37
|
+
checkEligibility(
|
|
38
|
+
pathId: string,
|
|
39
|
+
query: TokenClaimCheckEligibilityParams,
|
|
40
|
+
options?: Core.RequestOptions,
|
|
41
|
+
): Core.APIPromise<TokenClaimCheckEligibilityResponse> {
|
|
42
|
+
return this._client.get(`/api/token_claims/${pathId}/eligibility`, { query, ...options });
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Get a token claim proof for a given wallet address
|
|
47
|
+
*/
|
|
48
|
+
getProof(
|
|
49
|
+
pathId: string,
|
|
50
|
+
query: TokenClaimGetProofParams,
|
|
51
|
+
options?: Core.RequestOptions,
|
|
52
|
+
): Core.APIPromise<TokenClaimGetProofResponse> {
|
|
53
|
+
return this._client.get(`/api/token_claims/${pathId}/proof`, { query, ...options });
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Get all users part of a token claim
|
|
58
|
+
*/
|
|
59
|
+
listUsers(
|
|
60
|
+
id: string,
|
|
61
|
+
query?: TokenClaimListUsersParams,
|
|
62
|
+
options?: Core.RequestOptions,
|
|
63
|
+
): Core.APIPromise<TokenClaimListUsersResponse>;
|
|
64
|
+
listUsers(id: string, options?: Core.RequestOptions): Core.APIPromise<TokenClaimListUsersResponse>;
|
|
65
|
+
listUsers(
|
|
66
|
+
id: string,
|
|
67
|
+
query: TokenClaimListUsersParams | Core.RequestOptions = {},
|
|
68
|
+
options?: Core.RequestOptions,
|
|
69
|
+
): Core.APIPromise<TokenClaimListUsersResponse> {
|
|
70
|
+
if (isRequestOptions(query)) {
|
|
71
|
+
return this.listUsers(id, {}, query);
|
|
72
|
+
}
|
|
73
|
+
return this._client.get(`/api/token_claims/${id}/users`, { query, ...options });
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Update a user claim status after a user has claimed
|
|
78
|
+
*/
|
|
79
|
+
updateClaim(
|
|
80
|
+
id: string,
|
|
81
|
+
body: TokenClaimUpdateClaimParams,
|
|
82
|
+
options?: Core.RequestOptions,
|
|
83
|
+
): Core.APIPromise<TokenClaimUpdateClaimResponse> {
|
|
84
|
+
return this._client.post(`/api/token_claims/${id}/claim`, { body, ...options });
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface TokenClaimRetrieveResponse {
|
|
89
|
+
tokenClaimId: string;
|
|
90
|
+
|
|
91
|
+
totalAllocation: number;
|
|
92
|
+
|
|
93
|
+
walletAddress: string;
|
|
94
|
+
|
|
95
|
+
proof?: unknown;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface TokenClaimListResponse {
|
|
99
|
+
data: Array<TokenClaimListResponse.Data>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export namespace TokenClaimListResponse {
|
|
103
|
+
export interface Data {
|
|
104
|
+
id: string;
|
|
105
|
+
|
|
106
|
+
claimContractAddress: string | null;
|
|
107
|
+
|
|
108
|
+
contract: Data.Contract;
|
|
109
|
+
|
|
110
|
+
csvUrl: string | null;
|
|
111
|
+
|
|
112
|
+
dataJobId: string | null;
|
|
113
|
+
|
|
114
|
+
endTime: string | null;
|
|
115
|
+
|
|
116
|
+
geoBlock: Array<string>;
|
|
117
|
+
|
|
118
|
+
isDraft: boolean;
|
|
119
|
+
|
|
120
|
+
name: string;
|
|
121
|
+
|
|
122
|
+
relayerId: string | null;
|
|
123
|
+
|
|
124
|
+
stakingContractAddress: string | null;
|
|
125
|
+
|
|
126
|
+
startTime: string | null;
|
|
127
|
+
|
|
128
|
+
totalAllocatedAmount: number;
|
|
129
|
+
|
|
130
|
+
totalClaimedAmount: number;
|
|
131
|
+
|
|
132
|
+
totalWalletsAllocated: number;
|
|
133
|
+
|
|
134
|
+
updatedAt: string;
|
|
135
|
+
|
|
136
|
+
claimAndStake?: boolean;
|
|
137
|
+
|
|
138
|
+
isStakingOptional?: boolean;
|
|
139
|
+
|
|
140
|
+
maxBonus?: number;
|
|
141
|
+
|
|
142
|
+
minLockup?: number;
|
|
143
|
+
|
|
144
|
+
minLockupForMultiplier?: number;
|
|
145
|
+
|
|
146
|
+
multiplier?: number;
|
|
147
|
+
|
|
148
|
+
stakingContractType?: 'linear' | 'timelock' | null;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export namespace Data {
|
|
152
|
+
export interface Contract {
|
|
153
|
+
id: string;
|
|
154
|
+
|
|
155
|
+
address: string;
|
|
156
|
+
|
|
157
|
+
chainId: number;
|
|
158
|
+
|
|
159
|
+
name: string | null;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface TokenClaimCheckEligibilityResponse {
|
|
165
|
+
alreadyClaimed: boolean;
|
|
166
|
+
|
|
167
|
+
amount: number;
|
|
168
|
+
|
|
169
|
+
claimContractAddress: string | null;
|
|
170
|
+
|
|
171
|
+
claimedAt: string | null;
|
|
172
|
+
|
|
173
|
+
eligible: boolean;
|
|
174
|
+
|
|
175
|
+
stakes: Array<TokenClaimCheckEligibilityResponse.Stake>;
|
|
176
|
+
|
|
177
|
+
tokenClaimId: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export namespace TokenClaimCheckEligibilityResponse {
|
|
181
|
+
export interface Stake {
|
|
182
|
+
amount: string;
|
|
183
|
+
|
|
184
|
+
claimable: string;
|
|
185
|
+
|
|
186
|
+
claimed: string;
|
|
187
|
+
|
|
188
|
+
duration: number;
|
|
189
|
+
|
|
190
|
+
stakeId: string;
|
|
191
|
+
|
|
192
|
+
startTime: string;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface TokenClaimGetProofResponse {
|
|
197
|
+
tokenClaimId: string;
|
|
198
|
+
|
|
199
|
+
totalAllocation: number;
|
|
200
|
+
|
|
201
|
+
walletAddress: string;
|
|
202
|
+
|
|
203
|
+
proof?: unknown;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface TokenClaimListUsersResponse {
|
|
207
|
+
data: Array<TokenClaimListUsersResponse.Data>;
|
|
208
|
+
|
|
209
|
+
hasNextPage: boolean;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export namespace TokenClaimListUsersResponse {
|
|
213
|
+
export interface Data {
|
|
214
|
+
id: string;
|
|
215
|
+
|
|
216
|
+
amount: number;
|
|
217
|
+
|
|
218
|
+
claimedAt: string | null;
|
|
219
|
+
|
|
220
|
+
user: Data.User;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export namespace Data {
|
|
224
|
+
export interface User {
|
|
225
|
+
id: string;
|
|
226
|
+
|
|
227
|
+
walletAddress: string;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface TokenClaimUpdateClaimResponse {
|
|
233
|
+
data: TokenClaimUpdateClaimResponse.Data;
|
|
234
|
+
|
|
235
|
+
message: string;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export namespace TokenClaimUpdateClaimResponse {
|
|
239
|
+
export interface Data {
|
|
240
|
+
claimedAt: string;
|
|
241
|
+
|
|
242
|
+
tokenClaimId: string;
|
|
243
|
+
|
|
244
|
+
totalAllocation: number;
|
|
245
|
+
|
|
246
|
+
walletAddress: string;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface TokenClaimRetrieveParams {
|
|
251
|
+
query_id: string;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface TokenClaimListParams {
|
|
255
|
+
contractId?: string;
|
|
256
|
+
|
|
257
|
+
organizationId?: string;
|
|
258
|
+
|
|
259
|
+
websiteId?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface TokenClaimCheckEligibilityParams {
|
|
263
|
+
query_id: string;
|
|
264
|
+
|
|
265
|
+
walletAddress: string;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface TokenClaimGetProofParams {
|
|
269
|
+
query_id: string;
|
|
270
|
+
|
|
271
|
+
walletAddress: string;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface TokenClaimListUsersParams {
|
|
275
|
+
limit?: number;
|
|
276
|
+
|
|
277
|
+
sortBy?: 'claimedAt' | 'amount';
|
|
278
|
+
|
|
279
|
+
sortOrder?: 'asc' | 'desc';
|
|
280
|
+
|
|
281
|
+
startingAfter?: string;
|
|
282
|
+
|
|
283
|
+
walletAddress?: string;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface TokenClaimUpdateClaimParams {
|
|
287
|
+
txHash: string;
|
|
288
|
+
|
|
289
|
+
walletAddress: string;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export declare namespace TokenClaims {
|
|
293
|
+
export {
|
|
294
|
+
type TokenClaimRetrieveResponse as TokenClaimRetrieveResponse,
|
|
295
|
+
type TokenClaimListResponse as TokenClaimListResponse,
|
|
296
|
+
type TokenClaimCheckEligibilityResponse as TokenClaimCheckEligibilityResponse,
|
|
297
|
+
type TokenClaimGetProofResponse as TokenClaimGetProofResponse,
|
|
298
|
+
type TokenClaimListUsersResponse as TokenClaimListUsersResponse,
|
|
299
|
+
type TokenClaimUpdateClaimResponse as TokenClaimUpdateClaimResponse,
|
|
300
|
+
type TokenClaimRetrieveParams as TokenClaimRetrieveParams,
|
|
301
|
+
type TokenClaimListParams as TokenClaimListParams,
|
|
302
|
+
type TokenClaimCheckEligibilityParams as TokenClaimCheckEligibilityParams,
|
|
303
|
+
type TokenClaimGetProofParams as TokenClaimGetProofParams,
|
|
304
|
+
type TokenClaimListUsersParams as TokenClaimListUsersParams,
|
|
305
|
+
type TokenClaimUpdateClaimParams as TokenClaimUpdateClaimParams,
|
|
306
|
+
};
|
|
307
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.217'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.217";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.217'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.217'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|