@dropsy/airdrop 0.2.6 → 0.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/dist/index.d.mts +486 -1028
- package/dist/index.d.ts +486 -1028
- package/dist/index.js +1537 -2709
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1699 -2911
- package/dist/index.mjs.map +1 -1
- package/package.json +66 -59
- package/readme.md +60 -153
- package/generate-md.js +0 -71
package/dist/index.d.ts
CHANGED
|
@@ -1,99 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReadonlyUint8Array, Address, FixedSizeEncoder, FixedSizeDecoder, FixedSizeCodec, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, WritableSignerAccount, AccountSignerMeta, Encoder, Decoder, Codec, TransactionSigner, Option, OptionOrNullable, ProgramDerivedAddressBump } from '@solana/kit';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
6
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
7
|
-
* to add features, then rerun Codama to update it.
|
|
8
|
-
*
|
|
9
|
-
* @see https://github.com/codama-idl/codama
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
declare const AFFILIATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
13
|
-
declare function getAffiliateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
14
|
-
type Affiliate = {
|
|
15
|
-
discriminator: ReadonlyUint8Array;
|
|
16
|
-
master: Address;
|
|
17
|
-
authority: Address;
|
|
18
|
-
totalEarned: bigint;
|
|
19
|
-
referrals: number;
|
|
20
|
-
level: number;
|
|
21
|
-
bump: number;
|
|
22
|
-
};
|
|
23
|
-
type AffiliateArgs = {
|
|
24
|
-
master: Address;
|
|
25
|
-
authority: Address;
|
|
26
|
-
totalEarned: number | bigint;
|
|
27
|
-
referrals: number;
|
|
28
|
-
level: number;
|
|
29
|
-
bump: number;
|
|
30
|
-
};
|
|
31
|
-
/** Gets the encoder for {@link AffiliateArgs} account data. */
|
|
32
|
-
declare function getAffiliateEncoder(): FixedSizeEncoder<AffiliateArgs>;
|
|
33
|
-
/** Gets the decoder for {@link Affiliate} account data. */
|
|
34
|
-
declare function getAffiliateDecoder(): FixedSizeDecoder<Affiliate>;
|
|
35
|
-
/** Gets the codec for {@link Affiliate} account data. */
|
|
36
|
-
declare function getAffiliateCodec(): FixedSizeCodec<AffiliateArgs, Affiliate>;
|
|
37
|
-
declare function decodeAffiliate<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Affiliate, TAddress>;
|
|
38
|
-
declare function decodeAffiliate<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Affiliate, TAddress>;
|
|
39
|
-
declare function fetchAffiliate<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Affiliate, TAddress>>;
|
|
40
|
-
declare function fetchMaybeAffiliate<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Affiliate, TAddress>>;
|
|
41
|
-
declare function fetchAllAffiliate(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Affiliate>[]>;
|
|
42
|
-
declare function fetchAllMaybeAffiliate(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Affiliate>[]>;
|
|
43
|
-
declare function getAffiliateSize(): number;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
47
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
48
|
-
* to add features, then rerun Codama to update it.
|
|
49
|
-
*
|
|
50
|
-
* @see https://github.com/codama-idl/codama
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
declare const AFFILIATE_MASTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
54
|
-
declare function getAffiliateMasterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
55
|
-
type AffiliateMaster = {
|
|
56
|
-
discriminator: ReadonlyUint8Array;
|
|
57
|
-
authority: Address;
|
|
58
|
-
tokenMint: Address;
|
|
59
|
-
affiliatesCreated: bigint;
|
|
60
|
-
maxAffiliatesAllowed: bigint;
|
|
61
|
-
totalFeesCollected: bigint;
|
|
62
|
-
affiliateCreationFee: bigint;
|
|
63
|
-
affiliateUpgradeAmount: bigint;
|
|
64
|
-
affiliateWithdrawFeeBasis: number;
|
|
65
|
-
burnPercentageBasis: number;
|
|
66
|
-
treasuryPercentageBasis: number;
|
|
67
|
-
upgradeRewardPercentageBasis: number;
|
|
68
|
-
bump: number;
|
|
69
|
-
};
|
|
70
|
-
type AffiliateMasterArgs = {
|
|
71
|
-
authority: Address;
|
|
72
|
-
tokenMint: Address;
|
|
73
|
-
affiliatesCreated: number | bigint;
|
|
74
|
-
maxAffiliatesAllowed: number | bigint;
|
|
75
|
-
totalFeesCollected: number | bigint;
|
|
76
|
-
affiliateCreationFee: number | bigint;
|
|
77
|
-
affiliateUpgradeAmount: number | bigint;
|
|
78
|
-
affiliateWithdrawFeeBasis: number;
|
|
79
|
-
burnPercentageBasis: number;
|
|
80
|
-
treasuryPercentageBasis: number;
|
|
81
|
-
upgradeRewardPercentageBasis: number;
|
|
82
|
-
bump: number;
|
|
83
|
-
};
|
|
84
|
-
/** Gets the encoder for {@link AffiliateMasterArgs} account data. */
|
|
85
|
-
declare function getAffiliateMasterEncoder(): FixedSizeEncoder<AffiliateMasterArgs>;
|
|
86
|
-
/** Gets the decoder for {@link AffiliateMaster} account data. */
|
|
87
|
-
declare function getAffiliateMasterDecoder(): FixedSizeDecoder<AffiliateMaster>;
|
|
88
|
-
/** Gets the codec for {@link AffiliateMaster} account data. */
|
|
89
|
-
declare function getAffiliateMasterCodec(): FixedSizeCodec<AffiliateMasterArgs, AffiliateMaster>;
|
|
90
|
-
declare function decodeAffiliateMaster<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<AffiliateMaster, TAddress>;
|
|
91
|
-
declare function decodeAffiliateMaster<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<AffiliateMaster, TAddress>;
|
|
92
|
-
declare function fetchAffiliateMaster<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<AffiliateMaster, TAddress>>;
|
|
93
|
-
declare function fetchMaybeAffiliateMaster<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<AffiliateMaster, TAddress>>;
|
|
94
|
-
declare function fetchAllAffiliateMaster(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<AffiliateMaster>[]>;
|
|
95
|
-
declare function fetchAllMaybeAffiliateMaster(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<AffiliateMaster>[]>;
|
|
96
|
-
declare function getAffiliateMasterSize(): number;
|
|
1
|
+
import { ReadonlyUint8Array, Address, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, Instruction, InstructionWithData, TransactionSigner, AccountMeta, InstructionWithAccounts, WritableAccount, WritableSignerAccount, AccountSignerMeta, ReadonlyAccount, Codec, Decoder, Encoder, OptionOrNullable, Option } from '@solana/kit';
|
|
97
2
|
|
|
98
3
|
/**
|
|
99
4
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -104,14 +9,13 @@ declare function getAffiliateMasterSize(): number;
|
|
|
104
9
|
*/
|
|
105
10
|
|
|
106
11
|
declare const AIRDROP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
107
|
-
declare function getAirdropDiscriminatorBytes(): ReadonlyUint8Array
|
|
12
|
+
declare function getAirdropDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
108
13
|
type Airdrop = {
|
|
109
14
|
discriminator: ReadonlyUint8Array;
|
|
110
15
|
master: Address;
|
|
111
16
|
authority: Address;
|
|
112
17
|
mint: Address;
|
|
113
18
|
delegateAuthority: Address;
|
|
114
|
-
presale: Address;
|
|
115
19
|
merkleRoot: ReadonlyUint8Array;
|
|
116
20
|
supply: bigint;
|
|
117
21
|
boost: bigint;
|
|
@@ -130,7 +34,6 @@ type AirdropArgs = {
|
|
|
130
34
|
authority: Address;
|
|
131
35
|
mint: Address;
|
|
132
36
|
delegateAuthority: Address;
|
|
133
|
-
presale: Address;
|
|
134
37
|
merkleRoot: ReadonlyUint8Array;
|
|
135
38
|
supply: number | bigint;
|
|
136
39
|
boost: number | bigint;
|
|
@@ -167,29 +70,43 @@ declare function getAirdropSize(): number;
|
|
|
167
70
|
*/
|
|
168
71
|
|
|
169
72
|
declare const AIRDROP_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
170
|
-
declare function getAirdropConfigDiscriminatorBytes(): ReadonlyUint8Array
|
|
73
|
+
declare function getAirdropConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
171
74
|
type AirdropConfig = {
|
|
172
75
|
discriminator: ReadonlyUint8Array;
|
|
173
|
-
|
|
76
|
+
authority: Address;
|
|
77
|
+
protocolTreasury: Address;
|
|
78
|
+
wlRoot: ReadonlyUint8Array;
|
|
79
|
+
protocolFee: bigint;
|
|
80
|
+
airdropMasterCreateFee: bigint;
|
|
81
|
+
maxClaimFee: bigint;
|
|
82
|
+
maxActionFee: bigint;
|
|
174
83
|
minAirdropDuration: bigint;
|
|
84
|
+
defaultAirdropDuration: bigint;
|
|
175
85
|
maxAirdropDuration: bigint;
|
|
176
86
|
updateGracePeriod: bigint;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
withdrawFeeBasis: bigint;
|
|
180
|
-
perBoostAmount: bigint;
|
|
87
|
+
masterFeeBps: number;
|
|
88
|
+
version: number;
|
|
181
89
|
bump: number;
|
|
90
|
+
padding: ReadonlyUint8Array;
|
|
91
|
+
reserved: ReadonlyUint8Array;
|
|
182
92
|
};
|
|
183
93
|
type AirdropConfigArgs = {
|
|
184
|
-
|
|
94
|
+
authority: Address;
|
|
95
|
+
protocolTreasury: Address;
|
|
96
|
+
wlRoot: ReadonlyUint8Array;
|
|
97
|
+
protocolFee: number | bigint;
|
|
98
|
+
airdropMasterCreateFee: number | bigint;
|
|
99
|
+
maxClaimFee: number | bigint;
|
|
100
|
+
maxActionFee: number | bigint;
|
|
185
101
|
minAirdropDuration: number | bigint;
|
|
102
|
+
defaultAirdropDuration: number | bigint;
|
|
186
103
|
maxAirdropDuration: number | bigint;
|
|
187
104
|
updateGracePeriod: number | bigint;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
withdrawFeeBasis: number | bigint;
|
|
191
|
-
perBoostAmount: number | bigint;
|
|
105
|
+
masterFeeBps: number;
|
|
106
|
+
version: number;
|
|
192
107
|
bump: number;
|
|
108
|
+
padding: ReadonlyUint8Array;
|
|
109
|
+
reserved: ReadonlyUint8Array;
|
|
193
110
|
};
|
|
194
111
|
/** Gets the encoder for {@link AirdropConfigArgs} account data. */
|
|
195
112
|
declare function getAirdropConfigEncoder(): FixedSizeEncoder<AirdropConfigArgs>;
|
|
@@ -214,43 +131,37 @@ declare function getAirdropConfigSize(): number;
|
|
|
214
131
|
*/
|
|
215
132
|
|
|
216
133
|
declare const AIRDROP_MASTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
217
|
-
declare function getAirdropMasterDiscriminatorBytes(): ReadonlyUint8Array
|
|
134
|
+
declare function getAirdropMasterDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
218
135
|
type AirdropMaster = {
|
|
219
136
|
discriminator: ReadonlyUint8Array;
|
|
220
|
-
|
|
137
|
+
creator: Address;
|
|
221
138
|
authority: Address;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
airdropCreationFee: bigint;
|
|
139
|
+
treasury: Address;
|
|
140
|
+
points: bigint;
|
|
141
|
+
totalClaimCount: bigint;
|
|
142
|
+
monetizedClaimQuota: bigint;
|
|
143
|
+
monetizedClaimCount: bigint;
|
|
228
144
|
airdropUpdateFee: bigint;
|
|
229
|
-
|
|
145
|
+
airdropCreationFee: bigint;
|
|
230
146
|
airdropClaimFee: bigint;
|
|
231
147
|
airdropDelegateFee: bigint;
|
|
232
|
-
airdropDepositFee: bigint;
|
|
233
148
|
bitmapCreationFee: bigint;
|
|
234
|
-
bitmapCloseFee: bigint;
|
|
235
149
|
bump: number;
|
|
236
150
|
padding: ReadonlyUint8Array;
|
|
237
151
|
};
|
|
238
152
|
type AirdropMasterArgs = {
|
|
239
|
-
|
|
153
|
+
creator: Address;
|
|
240
154
|
authority: Address;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
airdropCreationFee: number | bigint;
|
|
155
|
+
treasury: Address;
|
|
156
|
+
points: number | bigint;
|
|
157
|
+
totalClaimCount: number | bigint;
|
|
158
|
+
monetizedClaimQuota: number | bigint;
|
|
159
|
+
monetizedClaimCount: number | bigint;
|
|
247
160
|
airdropUpdateFee: number | bigint;
|
|
248
|
-
|
|
161
|
+
airdropCreationFee: number | bigint;
|
|
249
162
|
airdropClaimFee: number | bigint;
|
|
250
163
|
airdropDelegateFee: number | bigint;
|
|
251
|
-
airdropDepositFee: number | bigint;
|
|
252
164
|
bitmapCreationFee: number | bigint;
|
|
253
|
-
bitmapCloseFee: number | bigint;
|
|
254
165
|
bump: number;
|
|
255
166
|
padding: ReadonlyUint8Array;
|
|
256
167
|
};
|
|
@@ -276,79 +187,40 @@ declare function getAirdropMasterSize(): number;
|
|
|
276
187
|
* @see https://github.com/codama-idl/codama
|
|
277
188
|
*/
|
|
278
189
|
|
|
279
|
-
declare const
|
|
280
|
-
declare function
|
|
281
|
-
type
|
|
190
|
+
declare const BITMAP_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
191
|
+
declare function getBitmapAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
192
|
+
type BitmapAccount = {
|
|
282
193
|
discriminator: ReadonlyUint8Array;
|
|
283
194
|
authority: Address;
|
|
284
195
|
airdrop: Address;
|
|
285
|
-
claimedBitmap: ReadonlyUint8Array;
|
|
286
196
|
total: number;
|
|
197
|
+
claimedBitmap: ReadonlyUint8Array;
|
|
287
198
|
id: number;
|
|
288
199
|
version: number;
|
|
289
200
|
bump: number;
|
|
290
201
|
};
|
|
291
|
-
type
|
|
202
|
+
type BitmapAccountArgs = {
|
|
292
203
|
authority: Address;
|
|
293
204
|
airdrop: Address;
|
|
294
|
-
claimedBitmap: ReadonlyUint8Array;
|
|
295
205
|
total: number;
|
|
206
|
+
claimedBitmap: ReadonlyUint8Array;
|
|
296
207
|
id: number;
|
|
297
208
|
version: number;
|
|
298
209
|
bump: number;
|
|
299
210
|
};
|
|
300
|
-
/** Gets the encoder for {@link
|
|
301
|
-
declare function
|
|
302
|
-
/** Gets the decoder for {@link
|
|
303
|
-
declare function
|
|
304
|
-
/** Gets the codec for {@link
|
|
305
|
-
declare function
|
|
306
|
-
declare function
|
|
307
|
-
declare function
|
|
308
|
-
declare function
|
|
309
|
-
declare function
|
|
310
|
-
declare function
|
|
311
|
-
declare function
|
|
312
|
-
declare function
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
316
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
317
|
-
* to add features, then rerun Codama to update it.
|
|
318
|
-
*
|
|
319
|
-
* @see https://github.com/codama-idl/codama
|
|
320
|
-
*/
|
|
321
|
-
|
|
322
|
-
declare const MASTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
323
|
-
declare function getMasterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
324
|
-
type Master = {
|
|
325
|
-
discriminator: ReadonlyUint8Array;
|
|
326
|
-
authority: Address;
|
|
327
|
-
treasury: Address;
|
|
328
|
-
tokenMint: Address;
|
|
329
|
-
protocolFee: bigint;
|
|
330
|
-
bump: number;
|
|
331
|
-
};
|
|
332
|
-
type MasterArgs = {
|
|
333
|
-
authority: Address;
|
|
334
|
-
treasury: Address;
|
|
335
|
-
tokenMint: Address;
|
|
336
|
-
protocolFee: number | bigint;
|
|
337
|
-
bump: number;
|
|
338
|
-
};
|
|
339
|
-
/** Gets the encoder for {@link MasterArgs} account data. */
|
|
340
|
-
declare function getMasterEncoder(): FixedSizeEncoder<MasterArgs>;
|
|
341
|
-
/** Gets the decoder for {@link Master} account data. */
|
|
342
|
-
declare function getMasterDecoder(): FixedSizeDecoder<Master>;
|
|
343
|
-
/** Gets the codec for {@link Master} account data. */
|
|
344
|
-
declare function getMasterCodec(): FixedSizeCodec<MasterArgs, Master>;
|
|
345
|
-
declare function decodeMaster<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Master, TAddress>;
|
|
346
|
-
declare function decodeMaster<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Master, TAddress>;
|
|
347
|
-
declare function fetchMaster<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Master, TAddress>>;
|
|
348
|
-
declare function fetchMaybeMaster<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Master, TAddress>>;
|
|
349
|
-
declare function fetchAllMaster(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Master>[]>;
|
|
350
|
-
declare function fetchAllMaybeMaster(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Master>[]>;
|
|
351
|
-
declare function getMasterSize(): number;
|
|
211
|
+
/** Gets the encoder for {@link BitmapAccountArgs} account data. */
|
|
212
|
+
declare function getBitmapAccountEncoder(): FixedSizeEncoder<BitmapAccountArgs>;
|
|
213
|
+
/** Gets the decoder for {@link BitmapAccount} account data. */
|
|
214
|
+
declare function getBitmapAccountDecoder(): FixedSizeDecoder<BitmapAccount>;
|
|
215
|
+
/** Gets the codec for {@link BitmapAccount} account data. */
|
|
216
|
+
declare function getBitmapAccountCodec(): FixedSizeCodec<BitmapAccountArgs, BitmapAccount>;
|
|
217
|
+
declare function decodeBitmapAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<BitmapAccount, TAddress>;
|
|
218
|
+
declare function decodeBitmapAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<BitmapAccount, TAddress>;
|
|
219
|
+
declare function fetchBitmapAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<BitmapAccount, TAddress>>;
|
|
220
|
+
declare function fetchMaybeBitmapAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<BitmapAccount, TAddress>>;
|
|
221
|
+
declare function fetchAllBitmapAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<BitmapAccount>[]>;
|
|
222
|
+
declare function fetchAllMaybeBitmapAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<BitmapAccount>[]>;
|
|
223
|
+
declare function getBitmapAccountSize(): number;
|
|
352
224
|
|
|
353
225
|
/**
|
|
354
226
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -359,158 +231,154 @@ declare function getMasterSize(): number;
|
|
|
359
231
|
*/
|
|
360
232
|
|
|
361
233
|
/** ValueOutOfRange: Value out of range */
|
|
362
|
-
declare const
|
|
234
|
+
declare const DROPSY_AIRDROP_ERROR__VALUE_OUT_OF_RANGE = 6001;
|
|
363
235
|
/** ValueBelowTheMinimum: Value below the minimum */
|
|
364
|
-
declare const
|
|
236
|
+
declare const DROPSY_AIRDROP_ERROR__VALUE_BELOW_THE_MINIMUM = 6002;
|
|
365
237
|
/** ValueExceedsMaximum: Value exceeds the maximum */
|
|
366
|
-
declare const
|
|
238
|
+
declare const DROPSY_AIRDROP_ERROR__VALUE_EXCEEDS_MAXIMUM = 6003;
|
|
367
239
|
/** InvalidPercentage: Invalid percentage (must be 0-100) */
|
|
368
|
-
declare const
|
|
240
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_PERCENTAGE = 6004;
|
|
369
241
|
/** InvalidTimestamp: Invalid timestamp or duration */
|
|
370
|
-
declare const
|
|
242
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_TIMESTAMP = 6006;
|
|
371
243
|
/** NonZeroValueRequired: Number must be non-zero */
|
|
372
|
-
declare const
|
|
244
|
+
declare const DROPSY_AIRDROP_ERROR__NON_ZERO_VALUE_REQUIRED = 6007;
|
|
373
245
|
/** InvalidPubKey: Invalid Pubkey provided */
|
|
374
|
-
declare const
|
|
246
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_PUB_KEY = 6008;
|
|
375
247
|
/** UnAuthorized: Invalid Authority Pubkey */
|
|
376
|
-
declare const
|
|
248
|
+
declare const DROPSY_AIRDROP_ERROR__UN_AUTHORIZED = 6009;
|
|
377
249
|
/** InvalidMutability: Invalid mutability Value */
|
|
378
|
-
declare const
|
|
250
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_MUTABILITY = 6010;
|
|
379
251
|
/** InvalidDelegatePermission: Invalid delegate permission Value */
|
|
380
|
-
declare const
|
|
252
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_DELEGATE_PERMISSION = 6011;
|
|
253
|
+
/** ClaimFeeTooHigh: Claim fee exceeds maximum allowed */
|
|
254
|
+
declare const DROPSY_AIRDROP_ERROR__CLAIM_FEE_TOO_HIGH = 6012;
|
|
255
|
+
/** ActionFeeTooHigh: Action fee exceeds maximum allowed */
|
|
256
|
+
declare const DROPSY_AIRDROP_ERROR__ACTION_FEE_TOO_HIGH = 6013;
|
|
381
257
|
/** AirdropNotStarted: Airdrop has not started yet */
|
|
382
|
-
declare const
|
|
258
|
+
declare const DROPSY_AIRDROP_ERROR__AIRDROP_NOT_STARTED = 6100;
|
|
383
259
|
/** AirdropEnded: Airdrop has already ended */
|
|
384
|
-
declare const
|
|
260
|
+
declare const DROPSY_AIRDROP_ERROR__AIRDROP_ENDED = 6101;
|
|
385
261
|
/** AirdropNotEnded: Airdrop not yet ended */
|
|
386
|
-
declare const
|
|
262
|
+
declare const DROPSY_AIRDROP_ERROR__AIRDROP_NOT_ENDED = 6102;
|
|
387
263
|
/** DurationTooShort: Airdrop duration must be at least 24 hours */
|
|
388
|
-
declare const
|
|
264
|
+
declare const DROPSY_AIRDROP_ERROR__DURATION_TOO_SHORT = 6103;
|
|
389
265
|
/** InvalidEndTime: Airdrop must end at least 24 hours in the future */
|
|
390
|
-
declare const
|
|
266
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_END_TIME = 6104;
|
|
391
267
|
/** InvalidVestingSchedule: Vesting schedule is invalid */
|
|
392
|
-
declare const
|
|
268
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_VESTING_SCHEDULE = 6105;
|
|
393
269
|
/** ImmutableAirdrop: Airdrop is immutable */
|
|
394
|
-
declare const
|
|
270
|
+
declare const DROPSY_AIRDROP_ERROR__IMMUTABLE_AIRDROP = 6106;
|
|
395
271
|
/** ImmutableField: The target field is immutable */
|
|
396
|
-
declare const
|
|
272
|
+
declare const DROPSY_AIRDROP_ERROR__IMMUTABLE_FIELD = 6107;
|
|
397
273
|
/** UpdateCutoffTimePassed: Airdrop updates are only allowed until cutoff time before start */
|
|
398
|
-
declare const
|
|
399
|
-
/** MaxAirdropsReached: Airdrop quota reached. Upgrade required for Airdrop Master. */
|
|
400
|
-
declare const DROPSY_ERROR__MAX_AIRDROPS_REACHED = 6109;
|
|
401
|
-
/** MaxClaimMapsReached: ClaimMap quota reached. Upgrade required for Airdrop Master. */
|
|
402
|
-
declare const DROPSY_ERROR__MAX_CLAIM_MAPS_REACHED = 6110;
|
|
274
|
+
declare const DROPSY_AIRDROP_ERROR__UPDATE_CUTOFF_TIME_PASSED = 6108;
|
|
403
275
|
/** InvalidAdmin: This Request Requires Admin Privileges */
|
|
404
|
-
declare const
|
|
276
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_ADMIN = 6200;
|
|
405
277
|
/** OwnerMismatch: Airdrop owner mismatch */
|
|
406
|
-
declare const
|
|
278
|
+
declare const DROPSY_AIRDROP_ERROR__OWNER_MISMATCH = 6201;
|
|
407
279
|
/** InvalidVaultAuthority: Invalid vault authority */
|
|
408
|
-
declare const
|
|
280
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_VAULT_AUTHORITY = 6202;
|
|
409
281
|
/** InvalidDestinationOwner: Destination account owner is not the signer */
|
|
410
|
-
declare const
|
|
282
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_DESTINATION_OWNER = 6203;
|
|
411
283
|
/** InvalidAffiliatePda: Mismatched affiliate PDA */
|
|
412
|
-
declare const
|
|
284
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_AFFILIATE_PDA = 6204;
|
|
413
285
|
/** Unauthorized: Not Authorized */
|
|
414
|
-
declare const
|
|
286
|
+
declare const DROPSY_AIRDROP_ERROR__UNAUTHORIZED = 6205;
|
|
415
287
|
/** InvalidOwner: Transaction sender is not the owner */
|
|
416
|
-
declare const
|
|
288
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_OWNER = 6206;
|
|
417
289
|
/** InvalidMint: Mint does not match stored state */
|
|
418
|
-
declare const
|
|
290
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_MINT = 6300;
|
|
419
291
|
/** MintMismatch: Provided mint doesn't match expected mint */
|
|
420
|
-
declare const
|
|
292
|
+
declare const DROPSY_AIRDROP_ERROR__MINT_MISMATCH = 6301;
|
|
421
293
|
/** VaultMintMismatch: Vault mint doesn't match airdrop mint */
|
|
422
|
-
declare const
|
|
294
|
+
declare const DROPSY_AIRDROP_ERROR__VAULT_MINT_MISMATCH = 6302;
|
|
423
295
|
/** DestinationMintMismatch: Destination mint doesn't match */
|
|
424
|
-
declare const
|
|
296
|
+
declare const DROPSY_AIRDROP_ERROR__DESTINATION_MINT_MISMATCH = 6303;
|
|
425
297
|
/** MintIsFrozen: Mint is frozen */
|
|
426
|
-
declare const
|
|
298
|
+
declare const DROPSY_AIRDROP_ERROR__MINT_IS_FROZEN = 6304;
|
|
427
299
|
/** InvalidMintOwner: Invalid token program owner */
|
|
428
|
-
declare const
|
|
300
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_MINT_OWNER = 6305;
|
|
429
301
|
/** MintIsNotInitialized: Mint must be initialized */
|
|
430
|
-
declare const
|
|
302
|
+
declare const DROPSY_AIRDROP_ERROR__MINT_IS_NOT_INITIALIZED = 6306;
|
|
431
303
|
/** MintHasFreezeAuthority: Mint has freeze authority */
|
|
432
|
-
declare const
|
|
304
|
+
declare const DROPSY_AIRDROP_ERROR__MINT_HAS_FREEZE_AUTHORITY = 6307;
|
|
433
305
|
/** NftNotAllowed: Fungible tokens only (no NFTs) */
|
|
434
|
-
declare const
|
|
306
|
+
declare const DROPSY_AIRDROP_ERROR__NFT_NOT_ALLOWED = 6308;
|
|
435
307
|
/** VaultHasDelegate: Vault has delegate set */
|
|
436
|
-
declare const
|
|
308
|
+
declare const DROPSY_AIRDROP_ERROR__VAULT_HAS_DELEGATE = 6401;
|
|
437
309
|
/** VaultFrozen: Vault is frozen */
|
|
438
|
-
declare const
|
|
310
|
+
declare const DROPSY_AIRDROP_ERROR__VAULT_FROZEN = 6402;
|
|
439
311
|
/** VaultHasCloseAuthority: Vault has close authority */
|
|
440
|
-
declare const
|
|
312
|
+
declare const DROPSY_AIRDROP_ERROR__VAULT_HAS_CLOSE_AUTHORITY = 6403;
|
|
441
313
|
/** InvalidAirdropPda: Invalid vault account */
|
|
442
|
-
declare const
|
|
314
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_PDA = 6404;
|
|
443
315
|
/** VaultNotInitialized: Vault not initialized */
|
|
444
|
-
declare const
|
|
316
|
+
declare const DROPSY_AIRDROP_ERROR__VAULT_NOT_INITIALIZED = 6405;
|
|
445
317
|
/** InsufficientVaultFunds: Insufficient vault funds */
|
|
446
|
-
declare const
|
|
318
|
+
declare const DROPSY_AIRDROP_ERROR__INSUFFICIENT_VAULT_FUNDS = 6406;
|
|
447
319
|
/** SourceHasDelegate: Source has delegate set */
|
|
448
|
-
declare const
|
|
320
|
+
declare const DROPSY_AIRDROP_ERROR__SOURCE_HAS_DELEGATE = 6450;
|
|
449
321
|
/** SourceAccountFrozen: Source account is frozen */
|
|
450
|
-
declare const
|
|
322
|
+
declare const DROPSY_AIRDROP_ERROR__SOURCE_ACCOUNT_FROZEN = 6451;
|
|
451
323
|
/** SourceHasCloseAuthority: Source has close authority */
|
|
452
|
-
declare const
|
|
324
|
+
declare const DROPSY_AIRDROP_ERROR__SOURCE_HAS_CLOSE_AUTHORITY = 6452;
|
|
453
325
|
/** InvalidProof: Invalid merkle proof */
|
|
454
|
-
declare const
|
|
326
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_PROOF = 6500;
|
|
455
327
|
/** AlreadyClaimed: Tokens already claimed */
|
|
456
|
-
declare const
|
|
328
|
+
declare const DROPSY_AIRDROP_ERROR__ALREADY_CLAIMED = 6501;
|
|
457
329
|
/** MissingBitmapPda: Missing bitmap PDA */
|
|
458
|
-
declare const
|
|
330
|
+
declare const DROPSY_AIRDROP_ERROR__MISSING_BITMAP_PDA = 6502;
|
|
459
331
|
/** InvalidBitmapAccount: Invalid bitmap account */
|
|
460
|
-
declare const
|
|
332
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_BITMAP_ACCOUNT = 6503;
|
|
461
333
|
/** InvalidBitmapIndex: Invalid bitmap index */
|
|
462
|
-
declare const
|
|
334
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_BITMAP_INDEX = 6504;
|
|
463
335
|
/** TooManyBitmaps: Too many bitmap accounts */
|
|
464
|
-
declare const
|
|
336
|
+
declare const DROPSY_AIRDROP_ERROR__TOO_MANY_BITMAPS = 6505;
|
|
465
337
|
/** BitmapTooLarge: Bitmap size exceeds limit */
|
|
466
|
-
declare const
|
|
338
|
+
declare const DROPSY_AIRDROP_ERROR__BITMAP_TOO_LARGE = 6506;
|
|
467
339
|
/** InvalidTotal: Invalid total claimers */
|
|
468
|
-
declare const
|
|
340
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_TOTAL = 6507;
|
|
469
341
|
/** BitmapAirdropMismatch: Bitmap/airdrop mismatch */
|
|
470
|
-
declare const
|
|
342
|
+
declare const DROPSY_AIRDROP_ERROR__BITMAP_AIRDROP_MISMATCH = 6508;
|
|
471
343
|
/** ActiveBitmapsExist: Active bitmaps exist */
|
|
472
|
-
declare const
|
|
344
|
+
declare const DROPSY_AIRDROP_ERROR__ACTIVE_BITMAPS_EXIST = 6509;
|
|
473
345
|
/** BitmapCountUnderflow: Bitmaps already closed */
|
|
474
|
-
declare const
|
|
346
|
+
declare const DROPSY_AIRDROP_ERROR__BITMAP_COUNT_UNDERFLOW = 6510;
|
|
475
347
|
/** InsufficientDeposit: Insufficient SOL deposit */
|
|
476
|
-
declare const
|
|
348
|
+
declare const DROPSY_AIRDROP_ERROR__INSUFFICIENT_DEPOSIT = 6600;
|
|
477
349
|
/** CreateFeeTooHigh: Create fee too high (>0.05 SOL) */
|
|
478
|
-
declare const
|
|
479
|
-
/** ClaimFeeTooHigh: Claim fee too high (>0.005 SOL) */
|
|
480
|
-
declare const DROPSY_ERROR__CLAIM_FEE_TOO_HIGH = 6602;
|
|
350
|
+
declare const DROPSY_AIRDROP_ERROR__CREATE_FEE_TOO_HIGH = 6601;
|
|
481
351
|
/** InsufficientFundsForFee: Insufficient funds for fee */
|
|
482
|
-
declare const
|
|
352
|
+
declare const DROPSY_AIRDROP_ERROR__INSUFFICIENT_FUNDS_FOR_FEE = 6603;
|
|
483
353
|
/** InvalidFeeVault: Invalid fee vault */
|
|
484
|
-
declare const
|
|
354
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT = 6604;
|
|
485
355
|
/** InvalidFeeVaultOwner: Invalid fee vault owner */
|
|
486
|
-
declare const
|
|
356
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_OWNER = 6605;
|
|
487
357
|
/** InvalidFeeVaultCurve: Fee vault not in curve */
|
|
488
|
-
declare const
|
|
358
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_CURVE = 6606;
|
|
489
359
|
/** InvalidPda: Invalid PDA account */
|
|
490
|
-
declare const
|
|
360
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_PDA = 6700;
|
|
491
361
|
/** InvalidAmount: Invalid amount */
|
|
492
|
-
declare const
|
|
362
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_AMOUNT = 6701;
|
|
493
363
|
/** Overflow: Arithmetic overflow */
|
|
494
|
-
declare const
|
|
364
|
+
declare const DROPSY_AIRDROP_ERROR__OVERFLOW = 6702;
|
|
495
365
|
/** VaultNotRentExempt: Vault not rent exempt */
|
|
496
|
-
declare const
|
|
366
|
+
declare const DROPSY_AIRDROP_ERROR__VAULT_NOT_RENT_EXEMPT = 6703;
|
|
497
367
|
/** InvalidTreasuryAccount: invalid treasury account */
|
|
498
|
-
declare const
|
|
368
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_TREASURY_ACCOUNT = 6704;
|
|
499
369
|
/** InvalidAirdropVersion: invalid airdrop version */
|
|
500
|
-
declare const
|
|
370
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VERSION = 6705;
|
|
501
371
|
/** InvalidVestingType: Invalid vesting type */
|
|
502
|
-
declare const
|
|
372
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_VESTING_TYPE = 6707;
|
|
503
373
|
/** VestingAccountRequired: vesting account required for vested airdrop */
|
|
504
|
-
declare const
|
|
374
|
+
declare const DROPSY_AIRDROP_ERROR__VESTING_ACCOUNT_REQUIRED = 6708;
|
|
505
375
|
/** InvalidParentAccount: Invalid Parent account provided */
|
|
506
|
-
declare const
|
|
376
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_PARENT_ACCOUNT = 6709;
|
|
507
377
|
/** InvalidAirdropVestingVersion: Airdrop version don't support vesting */
|
|
508
|
-
declare const
|
|
509
|
-
|
|
510
|
-
declare
|
|
511
|
-
|
|
512
|
-
declare function getDropsyErrorMessage(code: DropsyError): string;
|
|
513
|
-
declare function isDropsyError<TProgramErrorCode extends DropsyError>(error: unknown, transactionMessage: {
|
|
378
|
+
declare const DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VESTING_VERSION = 6710;
|
|
379
|
+
type DropsyAirdropError = typeof DROPSY_AIRDROP_ERROR__ACTION_FEE_TOO_HIGH | typeof DROPSY_AIRDROP_ERROR__ACTIVE_BITMAPS_EXIST | typeof DROPSY_AIRDROP_ERROR__AIRDROP_ENDED | typeof DROPSY_AIRDROP_ERROR__AIRDROP_NOT_ENDED | typeof DROPSY_AIRDROP_ERROR__AIRDROP_NOT_STARTED | typeof DROPSY_AIRDROP_ERROR__ALREADY_CLAIMED | typeof DROPSY_AIRDROP_ERROR__BITMAP_AIRDROP_MISMATCH | typeof DROPSY_AIRDROP_ERROR__BITMAP_COUNT_UNDERFLOW | typeof DROPSY_AIRDROP_ERROR__BITMAP_TOO_LARGE | typeof DROPSY_AIRDROP_ERROR__CLAIM_FEE_TOO_HIGH | typeof DROPSY_AIRDROP_ERROR__CREATE_FEE_TOO_HIGH | typeof DROPSY_AIRDROP_ERROR__DESTINATION_MINT_MISMATCH | typeof DROPSY_AIRDROP_ERROR__DURATION_TOO_SHORT | typeof DROPSY_AIRDROP_ERROR__IMMUTABLE_AIRDROP | typeof DROPSY_AIRDROP_ERROR__IMMUTABLE_FIELD | typeof DROPSY_AIRDROP_ERROR__INSUFFICIENT_DEPOSIT | typeof DROPSY_AIRDROP_ERROR__INSUFFICIENT_FUNDS_FOR_FEE | typeof DROPSY_AIRDROP_ERROR__INSUFFICIENT_VAULT_FUNDS | typeof DROPSY_AIRDROP_ERROR__INVALID_ADMIN | typeof DROPSY_AIRDROP_ERROR__INVALID_AFFILIATE_PDA | typeof DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_PDA | typeof DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VERSION | typeof DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VESTING_VERSION | typeof DROPSY_AIRDROP_ERROR__INVALID_AMOUNT | typeof DROPSY_AIRDROP_ERROR__INVALID_BITMAP_ACCOUNT | typeof DROPSY_AIRDROP_ERROR__INVALID_BITMAP_INDEX | typeof DROPSY_AIRDROP_ERROR__INVALID_DELEGATE_PERMISSION | typeof DROPSY_AIRDROP_ERROR__INVALID_DESTINATION_OWNER | typeof DROPSY_AIRDROP_ERROR__INVALID_END_TIME | typeof DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT | typeof DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_CURVE | typeof DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_OWNER | typeof DROPSY_AIRDROP_ERROR__INVALID_MINT | typeof DROPSY_AIRDROP_ERROR__INVALID_MINT_OWNER | typeof DROPSY_AIRDROP_ERROR__INVALID_MUTABILITY | typeof DROPSY_AIRDROP_ERROR__INVALID_OWNER | typeof DROPSY_AIRDROP_ERROR__INVALID_PARENT_ACCOUNT | typeof DROPSY_AIRDROP_ERROR__INVALID_PDA | typeof DROPSY_AIRDROP_ERROR__INVALID_PERCENTAGE | typeof DROPSY_AIRDROP_ERROR__INVALID_PROOF | typeof DROPSY_AIRDROP_ERROR__INVALID_PUB_KEY | typeof DROPSY_AIRDROP_ERROR__INVALID_TIMESTAMP | typeof DROPSY_AIRDROP_ERROR__INVALID_TOTAL | typeof DROPSY_AIRDROP_ERROR__INVALID_TREASURY_ACCOUNT | typeof DROPSY_AIRDROP_ERROR__INVALID_VAULT_AUTHORITY | typeof DROPSY_AIRDROP_ERROR__INVALID_VESTING_SCHEDULE | typeof DROPSY_AIRDROP_ERROR__INVALID_VESTING_TYPE | typeof DROPSY_AIRDROP_ERROR__MINT_HAS_FREEZE_AUTHORITY | typeof DROPSY_AIRDROP_ERROR__MINT_IS_FROZEN | typeof DROPSY_AIRDROP_ERROR__MINT_IS_NOT_INITIALIZED | typeof DROPSY_AIRDROP_ERROR__MINT_MISMATCH | typeof DROPSY_AIRDROP_ERROR__MISSING_BITMAP_PDA | typeof DROPSY_AIRDROP_ERROR__NFT_NOT_ALLOWED | typeof DROPSY_AIRDROP_ERROR__NON_ZERO_VALUE_REQUIRED | typeof DROPSY_AIRDROP_ERROR__OVERFLOW | typeof DROPSY_AIRDROP_ERROR__OWNER_MISMATCH | typeof DROPSY_AIRDROP_ERROR__SOURCE_ACCOUNT_FROZEN | typeof DROPSY_AIRDROP_ERROR__SOURCE_HAS_CLOSE_AUTHORITY | typeof DROPSY_AIRDROP_ERROR__SOURCE_HAS_DELEGATE | typeof DROPSY_AIRDROP_ERROR__TOO_MANY_BITMAPS | typeof DROPSY_AIRDROP_ERROR__UNAUTHORIZED | typeof DROPSY_AIRDROP_ERROR__UN_AUTHORIZED | typeof DROPSY_AIRDROP_ERROR__UPDATE_CUTOFF_TIME_PASSED | typeof DROPSY_AIRDROP_ERROR__VALUE_BELOW_THE_MINIMUM | typeof DROPSY_AIRDROP_ERROR__VALUE_EXCEEDS_MAXIMUM | typeof DROPSY_AIRDROP_ERROR__VALUE_OUT_OF_RANGE | typeof DROPSY_AIRDROP_ERROR__VAULT_FROZEN | typeof DROPSY_AIRDROP_ERROR__VAULT_HAS_CLOSE_AUTHORITY | typeof DROPSY_AIRDROP_ERROR__VAULT_HAS_DELEGATE | typeof DROPSY_AIRDROP_ERROR__VAULT_MINT_MISMATCH | typeof DROPSY_AIRDROP_ERROR__VAULT_NOT_INITIALIZED | typeof DROPSY_AIRDROP_ERROR__VAULT_NOT_RENT_EXEMPT | typeof DROPSY_AIRDROP_ERROR__VESTING_ACCOUNT_REQUIRED;
|
|
380
|
+
declare function getDropsyAirdropErrorMessage(code: DropsyAirdropError): string;
|
|
381
|
+
declare function isDropsyAirdropError<TProgramErrorCode extends DropsyAirdropError>(error: unknown, transactionMessage: {
|
|
514
382
|
instructions: Record<number, {
|
|
515
383
|
programAddress: Address;
|
|
516
384
|
}>;
|
|
@@ -528,46 +396,41 @@ declare function isDropsyError<TProgramErrorCode extends DropsyError>(error: unk
|
|
|
528
396
|
* @see https://github.com/codama-idl/codama
|
|
529
397
|
*/
|
|
530
398
|
|
|
531
|
-
declare const
|
|
532
|
-
declare enum
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
AirdropMaster = 4,
|
|
538
|
-
ClaimMap = 5,
|
|
539
|
-
Master = 6
|
|
399
|
+
declare const DROPSY_AIRDROP_PROGRAM_ADDRESS: Address<"BWd3s27cPuinNkZYqZvRbdfvpGyP9ff5rJZk4WhuNwDw">;
|
|
400
|
+
declare enum DropsyAirdropAccount {
|
|
401
|
+
Airdrop = 0,
|
|
402
|
+
AirdropConfig = 1,
|
|
403
|
+
AirdropMaster = 2,
|
|
404
|
+
BitmapAccount = 3
|
|
540
405
|
}
|
|
541
|
-
declare function
|
|
406
|
+
declare function identifyDropsyAirdropAccount(account: {
|
|
542
407
|
data: ReadonlyUint8Array;
|
|
543
|
-
} | ReadonlyUint8Array):
|
|
544
|
-
declare enum
|
|
408
|
+
} | ReadonlyUint8Array): DropsyAirdropAccount;
|
|
409
|
+
declare enum DropsyAirdropInstruction {
|
|
545
410
|
ClaimAirdrop = 0,
|
|
546
411
|
CreateAirdrop = 1,
|
|
547
|
-
|
|
412
|
+
CreateBitmap = 2,
|
|
548
413
|
DepositTokens = 3,
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
RedeemAirdropTokens = 6
|
|
414
|
+
InitializeAirdropConfig = 4,
|
|
415
|
+
InitializeAirdropMaster = 5
|
|
552
416
|
}
|
|
553
|
-
declare function
|
|
417
|
+
declare function identifyDropsyAirdropInstruction(instruction: {
|
|
554
418
|
data: ReadonlyUint8Array;
|
|
555
|
-
} | ReadonlyUint8Array):
|
|
556
|
-
type
|
|
557
|
-
instructionType:
|
|
419
|
+
} | ReadonlyUint8Array): DropsyAirdropInstruction;
|
|
420
|
+
type ParsedDropsyAirdropInstruction<TProgram extends string = "BWd3s27cPuinNkZYqZvRbdfvpGyP9ff5rJZk4WhuNwDw"> = ({
|
|
421
|
+
instructionType: DropsyAirdropInstruction.ClaimAirdrop;
|
|
558
422
|
} & ParsedClaimAirdropInstruction<TProgram>) | ({
|
|
559
|
-
instructionType:
|
|
423
|
+
instructionType: DropsyAirdropInstruction.CreateAirdrop;
|
|
560
424
|
} & ParsedCreateAirdropInstruction<TProgram>) | ({
|
|
561
|
-
instructionType:
|
|
562
|
-
} &
|
|
563
|
-
instructionType:
|
|
425
|
+
instructionType: DropsyAirdropInstruction.CreateBitmap;
|
|
426
|
+
} & ParsedCreateBitmapInstruction<TProgram>) | ({
|
|
427
|
+
instructionType: DropsyAirdropInstruction.DepositTokens;
|
|
564
428
|
} & ParsedDepositTokensInstruction<TProgram>) | ({
|
|
565
|
-
instructionType:
|
|
566
|
-
} &
|
|
567
|
-
instructionType:
|
|
568
|
-
} &
|
|
569
|
-
|
|
570
|
-
} & ParsedRedeemAirdropTokensInstruction<TProgram>);
|
|
429
|
+
instructionType: DropsyAirdropInstruction.InitializeAirdropConfig;
|
|
430
|
+
} & ParsedInitializeAirdropConfigInstruction<TProgram>) | ({
|
|
431
|
+
instructionType: DropsyAirdropInstruction.InitializeAirdropMaster;
|
|
432
|
+
} & ParsedInitializeAirdropMasterInstruction<TProgram>);
|
|
433
|
+
declare function parseDropsyAirdropInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedDropsyAirdropInstruction<TProgram>;
|
|
571
434
|
|
|
572
435
|
/**
|
|
573
436
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -578,24 +441,23 @@ type ParsedDropsyInstruction<TProgram extends string = "6Bd4YUkwyvZTPMt1bu13zvw9
|
|
|
578
441
|
*/
|
|
579
442
|
|
|
580
443
|
declare const CLAIM_AIRDROP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
581
|
-
declare function getClaimAirdropDiscriminatorBytes(): ReadonlyUint8Array
|
|
582
|
-
type ClaimAirdropInstruction<TProgram extends string = typeof
|
|
583
|
-
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
584
|
-
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
585
|
-
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
586
|
-
TAccountAirdropMaster extends string ? ReadonlyAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
587
|
-
TAccountAirdropMasterAuthority extends string ? ReadonlyAccount<TAccountAirdropMasterAuthority> : TAccountAirdropMasterAuthority,
|
|
588
|
-
TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
|
|
444
|
+
declare function getClaimAirdropDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
445
|
+
type ClaimAirdropInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountSourceTokenAccount extends string | AccountMeta<string> = string, TAccountDestinationTokenAccount extends string | AccountMeta<string> = string, TAccountClaimer extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountAirdropConfig extends string | AccountMeta<string> = string, TAccountProtocolTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountMasterCreator extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountBitmap extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
589
446
|
TAccountSourceTokenAccount extends string ? WritableAccount<TAccountSourceTokenAccount> : TAccountSourceTokenAccount,
|
|
590
447
|
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
591
|
-
TAccountAirdrop extends string ? ReadonlyAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
592
|
-
TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
|
|
593
|
-
TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
|
|
594
|
-
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
595
448
|
TAccountClaimer extends string ? WritableSignerAccount<TAccountClaimer> & AccountSignerMeta<TAccountClaimer> : TAccountClaimer,
|
|
449
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
596
450
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
597
451
|
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
598
452
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
453
|
+
TAccountAirdropConfig extends string ? ReadonlyAccount<TAccountAirdropConfig> : TAccountAirdropConfig,
|
|
454
|
+
TAccountProtocolTreasury extends string ? WritableAccount<TAccountProtocolTreasury> : TAccountProtocolTreasury,
|
|
455
|
+
TAccountAirdropMaster extends string ? ReadonlyAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
456
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
457
|
+
TAccountMasterCreator extends string ? ReadonlyAccount<TAccountMasterCreator> : TAccountMasterCreator,
|
|
458
|
+
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
459
|
+
TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
|
|
460
|
+
TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
|
|
599
461
|
...TRemainingAccounts
|
|
600
462
|
]>;
|
|
601
463
|
type ClaimAirdropInstructionData = {
|
|
@@ -614,78 +476,72 @@ type ClaimAirdropInstructionDataArgs = {
|
|
|
614
476
|
declare function getClaimAirdropInstructionDataEncoder(): Encoder<ClaimAirdropInstructionDataArgs>;
|
|
615
477
|
declare function getClaimAirdropInstructionDataDecoder(): Decoder<ClaimAirdropInstructionData>;
|
|
616
478
|
declare function getClaimAirdropInstructionDataCodec(): Codec<ClaimAirdropInstructionDataArgs, ClaimAirdropInstructionData>;
|
|
617
|
-
type ClaimAirdropAsyncInput<
|
|
618
|
-
master?: Address<TAccountMaster>;
|
|
619
|
-
config?: Address<TAccountConfig>;
|
|
620
|
-
treasury: Address<TAccountTreasury>;
|
|
621
|
-
airdropMaster?: Address<TAccountAirdropMaster>;
|
|
622
|
-
/** Check with authority */
|
|
623
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
624
|
-
affiliate?: Address<TAccountAffiliate>;
|
|
479
|
+
type ClaimAirdropAsyncInput<TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountClaimer extends string = string, TAccountMint extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountAirdrop extends string = string, TAccountAuthority extends string = string, TAccountBitmap extends string = string> = {
|
|
625
480
|
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
626
481
|
destinationTokenAccount?: Address<TAccountDestinationTokenAccount>;
|
|
627
|
-
airdrop?: Address<TAccountAirdrop>;
|
|
628
|
-
authority: Address<TAccountAuthority>;
|
|
629
|
-
bitmap: Address<TAccountBitmap>;
|
|
630
|
-
mint: Address<TAccountMint>;
|
|
631
482
|
claimer: TransactionSigner<TAccountClaimer>;
|
|
483
|
+
mint: Address<TAccountMint>;
|
|
632
484
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
633
485
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
634
486
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
487
|
+
airdropConfig?: Address<TAccountAirdropConfig>;
|
|
488
|
+
protocolTreasury: Address<TAccountProtocolTreasury>;
|
|
489
|
+
airdropMaster?: Address<TAccountAirdropMaster>;
|
|
490
|
+
treasury: Address<TAccountTreasury>;
|
|
491
|
+
masterCreator: Address<TAccountMasterCreator>;
|
|
492
|
+
airdrop: Address<TAccountAirdrop>;
|
|
493
|
+
authority: Address<TAccountAuthority>;
|
|
494
|
+
bitmap: Address<TAccountBitmap>;
|
|
635
495
|
index: ClaimAirdropInstructionDataArgs["index"];
|
|
636
496
|
proof: ClaimAirdropInstructionDataArgs["proof"];
|
|
637
497
|
amount: ClaimAirdropInstructionDataArgs["amount"];
|
|
638
498
|
claimMapIndex: ClaimAirdropInstructionDataArgs["claimMapIndex"];
|
|
639
499
|
};
|
|
640
|
-
declare function getClaimAirdropInstructionAsync<
|
|
500
|
+
declare function getClaimAirdropInstructionAsync<TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountClaimer extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountAuthority extends string, TAccountBitmap extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: ClaimAirdropAsyncInput<TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>, config?: {
|
|
641
501
|
programAddress?: TProgramAddress;
|
|
642
|
-
}): Promise<ClaimAirdropInstruction<TProgramAddress,
|
|
643
|
-
type ClaimAirdropInput<
|
|
644
|
-
master: Address<TAccountMaster>;
|
|
645
|
-
config: Address<TAccountConfig>;
|
|
646
|
-
treasury: Address<TAccountTreasury>;
|
|
647
|
-
airdropMaster: Address<TAccountAirdropMaster>;
|
|
648
|
-
/** Check with authority */
|
|
649
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
650
|
-
affiliate?: Address<TAccountAffiliate>;
|
|
502
|
+
}): Promise<ClaimAirdropInstruction<TProgramAddress, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>>;
|
|
503
|
+
type ClaimAirdropInput<TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountClaimer extends string = string, TAccountMint extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountAirdrop extends string = string, TAccountAuthority extends string = string, TAccountBitmap extends string = string> = {
|
|
651
504
|
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
652
505
|
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
653
|
-
airdrop: Address<TAccountAirdrop>;
|
|
654
|
-
authority: Address<TAccountAuthority>;
|
|
655
|
-
bitmap: Address<TAccountBitmap>;
|
|
656
|
-
mint: Address<TAccountMint>;
|
|
657
506
|
claimer: TransactionSigner<TAccountClaimer>;
|
|
507
|
+
mint: Address<TAccountMint>;
|
|
658
508
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
659
509
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
660
510
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
511
|
+
airdropConfig: Address<TAccountAirdropConfig>;
|
|
512
|
+
protocolTreasury: Address<TAccountProtocolTreasury>;
|
|
513
|
+
airdropMaster: Address<TAccountAirdropMaster>;
|
|
514
|
+
treasury: Address<TAccountTreasury>;
|
|
515
|
+
masterCreator: Address<TAccountMasterCreator>;
|
|
516
|
+
airdrop: Address<TAccountAirdrop>;
|
|
517
|
+
authority: Address<TAccountAuthority>;
|
|
518
|
+
bitmap: Address<TAccountBitmap>;
|
|
661
519
|
index: ClaimAirdropInstructionDataArgs["index"];
|
|
662
520
|
proof: ClaimAirdropInstructionDataArgs["proof"];
|
|
663
521
|
amount: ClaimAirdropInstructionDataArgs["amount"];
|
|
664
522
|
claimMapIndex: ClaimAirdropInstructionDataArgs["claimMapIndex"];
|
|
665
523
|
};
|
|
666
|
-
declare function getClaimAirdropInstruction<
|
|
524
|
+
declare function getClaimAirdropInstruction<TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountClaimer extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountAuthority extends string, TAccountBitmap extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: ClaimAirdropInput<TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>, config?: {
|
|
667
525
|
programAddress?: TProgramAddress;
|
|
668
|
-
}): ClaimAirdropInstruction<TProgramAddress,
|
|
669
|
-
type ParsedClaimAirdropInstruction<TProgram extends string = typeof
|
|
526
|
+
}): ClaimAirdropInstruction<TProgramAddress, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>;
|
|
527
|
+
type ParsedClaimAirdropInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
670
528
|
programAddress: Address<TProgram>;
|
|
671
529
|
accounts: {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
associatedTokenProgram: TAccountMetas[14];
|
|
688
|
-
systemProgram: TAccountMetas[15];
|
|
530
|
+
sourceTokenAccount: TAccountMetas[0];
|
|
531
|
+
destinationTokenAccount: TAccountMetas[1];
|
|
532
|
+
claimer: TAccountMetas[2];
|
|
533
|
+
mint: TAccountMetas[3];
|
|
534
|
+
tokenProgram: TAccountMetas[4];
|
|
535
|
+
associatedTokenProgram: TAccountMetas[5];
|
|
536
|
+
systemProgram: TAccountMetas[6];
|
|
537
|
+
airdropConfig: TAccountMetas[7];
|
|
538
|
+
protocolTreasury: TAccountMetas[8];
|
|
539
|
+
airdropMaster: TAccountMetas[9];
|
|
540
|
+
treasury: TAccountMetas[10];
|
|
541
|
+
masterCreator: TAccountMetas[11];
|
|
542
|
+
airdrop: TAccountMetas[12];
|
|
543
|
+
authority: TAccountMetas[13];
|
|
544
|
+
bitmap: TAccountMetas[14];
|
|
689
545
|
};
|
|
690
546
|
data: ClaimAirdropInstructionData;
|
|
691
547
|
};
|
|
@@ -700,14 +556,13 @@ declare function parseClaimAirdropInstruction<TProgram extends string, TAccountM
|
|
|
700
556
|
*/
|
|
701
557
|
|
|
702
558
|
declare const CREATE_AIRDROP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
703
|
-
declare function getCreateAirdropDiscriminatorBytes(): ReadonlyUint8Array
|
|
704
|
-
type CreateAirdropInstruction<TProgram extends string = typeof
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
559
|
+
declare function getCreateAirdropDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
560
|
+
type CreateAirdropInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountAirdropConfig extends string | AccountMeta<string> = string, TAccountProtocolTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountMasterCreator extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
561
|
+
TAccountAirdropConfig extends string ? ReadonlyAccount<TAccountAirdropConfig> : TAccountAirdropConfig,
|
|
562
|
+
TAccountProtocolTreasury extends string ? WritableAccount<TAccountProtocolTreasury> : TAccountProtocolTreasury,
|
|
708
563
|
TAccountAirdropMaster extends string ? ReadonlyAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
709
|
-
|
|
710
|
-
|
|
564
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
565
|
+
TAccountMasterCreator extends string ? ReadonlyAccount<TAccountMasterCreator> : TAccountMasterCreator,
|
|
711
566
|
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
712
567
|
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
713
568
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
@@ -736,14 +591,12 @@ type CreateAirdropInstructionDataArgs = {
|
|
|
736
591
|
declare function getCreateAirdropInstructionDataEncoder(): Encoder<CreateAirdropInstructionDataArgs>;
|
|
737
592
|
declare function getCreateAirdropInstructionDataDecoder(): Decoder<CreateAirdropInstructionData>;
|
|
738
593
|
declare function getCreateAirdropInstructionDataCodec(): Codec<CreateAirdropInstructionDataArgs, CreateAirdropInstructionData>;
|
|
739
|
-
type CreateAirdropAsyncInput<
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
treasury: Address<TAccountTreasury>;
|
|
594
|
+
type CreateAirdropAsyncInput<TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
595
|
+
airdropConfig?: Address<TAccountAirdropConfig>;
|
|
596
|
+
protocolTreasury: Address<TAccountProtocolTreasury>;
|
|
743
597
|
airdropMaster?: Address<TAccountAirdropMaster>;
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
affiliate?: Address<TAccountAffiliate>;
|
|
598
|
+
treasury: Address<TAccountTreasury>;
|
|
599
|
+
masterCreator: Address<TAccountMasterCreator>;
|
|
747
600
|
airdrop?: Address<TAccountAirdrop>;
|
|
748
601
|
mint: Address<TAccountMint>;
|
|
749
602
|
authority: TransactionSigner<TAccountAuthority>;
|
|
@@ -756,17 +609,15 @@ type CreateAirdropAsyncInput<TAccountMaster extends string = string, TAccountCon
|
|
|
756
609
|
delegateAuthority: CreateAirdropInstructionDataArgs["delegateAuthority"];
|
|
757
610
|
delegatePermissions: CreateAirdropInstructionDataArgs["delegatePermissions"];
|
|
758
611
|
};
|
|
759
|
-
declare function getCreateAirdropInstructionAsync<
|
|
612
|
+
declare function getCreateAirdropInstructionAsync<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateAirdropAsyncInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
760
613
|
programAddress?: TProgramAddress;
|
|
761
|
-
}): Promise<CreateAirdropInstruction<TProgramAddress,
|
|
762
|
-
type CreateAirdropInput<
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
treasury: Address<TAccountTreasury>;
|
|
614
|
+
}): Promise<CreateAirdropInstruction<TProgramAddress, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>>;
|
|
615
|
+
type CreateAirdropInput<TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
616
|
+
airdropConfig: Address<TAccountAirdropConfig>;
|
|
617
|
+
protocolTreasury: Address<TAccountProtocolTreasury>;
|
|
766
618
|
airdropMaster: Address<TAccountAirdropMaster>;
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
affiliate?: Address<TAccountAffiliate>;
|
|
619
|
+
treasury: Address<TAccountTreasury>;
|
|
620
|
+
masterCreator: Address<TAccountMasterCreator>;
|
|
770
621
|
airdrop: Address<TAccountAirdrop>;
|
|
771
622
|
mint: Address<TAccountMint>;
|
|
772
623
|
authority: TransactionSigner<TAccountAuthority>;
|
|
@@ -779,38 +630,25 @@ type CreateAirdropInput<TAccountMaster extends string = string, TAccountConfig e
|
|
|
779
630
|
delegateAuthority: CreateAirdropInstructionDataArgs["delegateAuthority"];
|
|
780
631
|
delegatePermissions: CreateAirdropInstructionDataArgs["delegatePermissions"];
|
|
781
632
|
};
|
|
782
|
-
declare function getCreateAirdropInstruction<
|
|
633
|
+
declare function getCreateAirdropInstruction<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateAirdropInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
783
634
|
programAddress?: TProgramAddress;
|
|
784
|
-
}): CreateAirdropInstruction<TProgramAddress,
|
|
785
|
-
type ParsedCreateAirdropInstruction<TProgram extends string = typeof
|
|
635
|
+
}): CreateAirdropInstruction<TProgramAddress, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>;
|
|
636
|
+
type ParsedCreateAirdropInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
786
637
|
programAddress: Address<TProgram>;
|
|
787
638
|
accounts: {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
authority: TAccountMetas[8];
|
|
798
|
-
systemProgram: TAccountMetas[9];
|
|
639
|
+
airdropConfig: TAccountMetas[0];
|
|
640
|
+
protocolTreasury: TAccountMetas[1];
|
|
641
|
+
airdropMaster: TAccountMetas[2];
|
|
642
|
+
treasury: TAccountMetas[3];
|
|
643
|
+
masterCreator: TAccountMetas[4];
|
|
644
|
+
airdrop: TAccountMetas[5];
|
|
645
|
+
mint: TAccountMetas[6];
|
|
646
|
+
authority: TAccountMetas[7];
|
|
647
|
+
systemProgram: TAccountMetas[8];
|
|
799
648
|
};
|
|
800
649
|
data: CreateAirdropInstructionData;
|
|
801
650
|
};
|
|
802
651
|
declare function parseCreateAirdropInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateAirdropInstruction<TProgram, TAccountMetas>;
|
|
803
|
-
type CreateAirdropV0Input = {
|
|
804
|
-
airdropMasterAuthority: Address;
|
|
805
|
-
treasury: Address;
|
|
806
|
-
airdrop: Address;
|
|
807
|
-
mint: Address;
|
|
808
|
-
authority: TransactionSigner<string>;
|
|
809
|
-
merkleRoot?: ReadonlyUint8Array | null;
|
|
810
|
-
startsAt?: number | null;
|
|
811
|
-
endsAt?: number | null;
|
|
812
|
-
};
|
|
813
|
-
declare function getCreateAirdropV0Instruction(input: CreateAirdropV0Input): Promise<CreateAirdropInstruction<Address<"6Bd4YUkwyvZTPMt1bu13zvw9t4TtoMTd6CFVMmaswB2M">, string, string, string, string, string, string, string, string, string, string, []>>;
|
|
814
652
|
|
|
815
653
|
/**
|
|
816
654
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -820,91 +658,84 @@ declare function getCreateAirdropV0Instruction(input: CreateAirdropV0Input): Pro
|
|
|
820
658
|
* @see https://github.com/codama-idl/codama
|
|
821
659
|
*/
|
|
822
660
|
|
|
823
|
-
declare const
|
|
824
|
-
declare function
|
|
825
|
-
type
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
661
|
+
declare const CREATE_BITMAP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
662
|
+
declare function getCreateBitmapDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
663
|
+
type CreateBitmapInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountAirdropConfig extends string | AccountMeta<string> = string, TAccountProtocolTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountMasterCreator extends string | AccountMeta<string> = string, TAccountBitmap extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
664
|
+
TAccountAirdropConfig extends string ? ReadonlyAccount<TAccountAirdropConfig> : TAccountAirdropConfig,
|
|
665
|
+
TAccountProtocolTreasury extends string ? WritableAccount<TAccountProtocolTreasury> : TAccountProtocolTreasury,
|
|
829
666
|
TAccountAirdropMaster extends string ? ReadonlyAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
830
|
-
|
|
831
|
-
|
|
667
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
668
|
+
TAccountMasterCreator extends string ? ReadonlyAccount<TAccountMasterCreator> : TAccountMasterCreator,
|
|
669
|
+
TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
|
|
832
670
|
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
833
671
|
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
834
|
-
TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
|
|
835
672
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
836
673
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
837
674
|
...TRemainingAccounts
|
|
838
675
|
]>;
|
|
839
|
-
type
|
|
676
|
+
type CreateBitmapInstructionData = {
|
|
840
677
|
discriminator: ReadonlyUint8Array;
|
|
841
678
|
id: number;
|
|
842
679
|
total: number;
|
|
843
680
|
};
|
|
844
|
-
type
|
|
681
|
+
type CreateBitmapInstructionDataArgs = {
|
|
845
682
|
id: number;
|
|
846
683
|
total: number;
|
|
847
684
|
};
|
|
848
|
-
declare function
|
|
849
|
-
declare function
|
|
850
|
-
declare function
|
|
851
|
-
type
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
treasury: Address<TAccountTreasury>;
|
|
685
|
+
declare function getCreateBitmapInstructionDataEncoder(): FixedSizeEncoder<CreateBitmapInstructionDataArgs>;
|
|
686
|
+
declare function getCreateBitmapInstructionDataDecoder(): FixedSizeDecoder<CreateBitmapInstructionData>;
|
|
687
|
+
declare function getCreateBitmapInstructionDataCodec(): FixedSizeCodec<CreateBitmapInstructionDataArgs, CreateBitmapInstructionData>;
|
|
688
|
+
type CreateBitmapAsyncInput<TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountBitmap extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
689
|
+
airdropConfig?: Address<TAccountAirdropConfig>;
|
|
690
|
+
protocolTreasury: Address<TAccountProtocolTreasury>;
|
|
855
691
|
airdropMaster?: Address<TAccountAirdropMaster>;
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
692
|
+
treasury: Address<TAccountTreasury>;
|
|
693
|
+
masterCreator: Address<TAccountMasterCreator>;
|
|
694
|
+
bitmap?: Address<TAccountBitmap>;
|
|
859
695
|
airdrop?: Address<TAccountAirdrop>;
|
|
860
696
|
mint: Address<TAccountMint>;
|
|
861
|
-
bitmap?: Address<TAccountBitmap>;
|
|
862
697
|
authority: TransactionSigner<TAccountAuthority>;
|
|
863
698
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
864
|
-
id:
|
|
865
|
-
total:
|
|
699
|
+
id: CreateBitmapInstructionDataArgs["id"];
|
|
700
|
+
total: CreateBitmapInstructionDataArgs["total"];
|
|
866
701
|
};
|
|
867
|
-
declare function
|
|
702
|
+
declare function getCreateBitmapInstructionAsync<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountBitmap extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateBitmapAsyncInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountBitmap, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
868
703
|
programAddress?: TProgramAddress;
|
|
869
|
-
}): Promise<
|
|
870
|
-
type
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
treasury: Address<TAccountTreasury>;
|
|
704
|
+
}): Promise<CreateBitmapInstruction<TProgramAddress, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountBitmap, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>>;
|
|
705
|
+
type CreateBitmapInput<TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountBitmap extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
706
|
+
airdropConfig: Address<TAccountAirdropConfig>;
|
|
707
|
+
protocolTreasury: Address<TAccountProtocolTreasury>;
|
|
874
708
|
airdropMaster: Address<TAccountAirdropMaster>;
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
709
|
+
treasury: Address<TAccountTreasury>;
|
|
710
|
+
masterCreator: Address<TAccountMasterCreator>;
|
|
711
|
+
bitmap: Address<TAccountBitmap>;
|
|
878
712
|
airdrop: Address<TAccountAirdrop>;
|
|
879
713
|
mint: Address<TAccountMint>;
|
|
880
|
-
bitmap: Address<TAccountBitmap>;
|
|
881
714
|
authority: TransactionSigner<TAccountAuthority>;
|
|
882
715
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
883
|
-
id:
|
|
884
|
-
total:
|
|
716
|
+
id: CreateBitmapInstructionDataArgs["id"];
|
|
717
|
+
total: CreateBitmapInstructionDataArgs["total"];
|
|
885
718
|
};
|
|
886
|
-
declare function
|
|
719
|
+
declare function getCreateBitmapInstruction<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountBitmap extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateBitmapInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountBitmap, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
887
720
|
programAddress?: TProgramAddress;
|
|
888
|
-
}):
|
|
889
|
-
type
|
|
721
|
+
}): CreateBitmapInstruction<TProgramAddress, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountBitmap, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>;
|
|
722
|
+
type ParsedCreateBitmapInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
890
723
|
programAddress: Address<TProgram>;
|
|
891
724
|
accounts: {
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
affiliate?: TAccountMetas[5] | undefined;
|
|
725
|
+
airdropConfig: TAccountMetas[0];
|
|
726
|
+
protocolTreasury: TAccountMetas[1];
|
|
727
|
+
airdropMaster: TAccountMetas[2];
|
|
728
|
+
treasury: TAccountMetas[3];
|
|
729
|
+
masterCreator: TAccountMetas[4];
|
|
730
|
+
bitmap: TAccountMetas[5];
|
|
899
731
|
airdrop: TAccountMetas[6];
|
|
900
732
|
mint: TAccountMetas[7];
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
systemProgram: TAccountMetas[10];
|
|
733
|
+
authority: TAccountMetas[8];
|
|
734
|
+
systemProgram: TAccountMetas[9];
|
|
904
735
|
};
|
|
905
|
-
data:
|
|
736
|
+
data: CreateBitmapInstructionData;
|
|
906
737
|
};
|
|
907
|
-
declare function
|
|
738
|
+
declare function parseCreateBitmapInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateBitmapInstruction<TProgram, TAccountMetas>;
|
|
908
739
|
|
|
909
740
|
/**
|
|
910
741
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -915,16 +746,10 @@ declare function parseCreateClaimMapInstruction<TProgram extends string, TAccoun
|
|
|
915
746
|
*/
|
|
916
747
|
|
|
917
748
|
declare const DEPOSIT_TOKENS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
918
|
-
declare function getDepositTokensDiscriminatorBytes(): ReadonlyUint8Array
|
|
919
|
-
type DepositTokensInstruction<TProgram extends string = typeof
|
|
920
|
-
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
921
|
-
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
922
|
-
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
923
|
-
TAccountAirdropMaster extends string ? ReadonlyAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
924
|
-
TAccountAirdropMasterAuthority extends string ? ReadonlyAccount<TAccountAirdropMasterAuthority> : TAccountAirdropMasterAuthority,
|
|
925
|
-
TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
|
|
749
|
+
declare function getDepositTokensDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
750
|
+
type DepositTokensInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountSourceTokenAccount extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
926
751
|
TAccountSourceTokenAccount extends string ? WritableAccount<TAccountSourceTokenAccount> : TAccountSourceTokenAccount,
|
|
927
|
-
|
|
752
|
+
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
928
753
|
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
929
754
|
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
930
755
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
@@ -943,16 +768,9 @@ type DepositTokensInstructionDataArgs = {
|
|
|
943
768
|
declare function getDepositTokensInstructionDataEncoder(): FixedSizeEncoder<DepositTokensInstructionDataArgs>;
|
|
944
769
|
declare function getDepositTokensInstructionDataDecoder(): FixedSizeDecoder<DepositTokensInstructionData>;
|
|
945
770
|
declare function getDepositTokensInstructionDataCodec(): FixedSizeCodec<DepositTokensInstructionDataArgs, DepositTokensInstructionData>;
|
|
946
|
-
type DepositTokensAsyncInput<
|
|
947
|
-
master?: Address<TAccountMaster>;
|
|
948
|
-
config?: Address<TAccountConfig>;
|
|
949
|
-
treasury: Address<TAccountTreasury>;
|
|
950
|
-
airdropMaster?: Address<TAccountAirdropMaster>;
|
|
951
|
-
/** Check with authority */
|
|
952
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
953
|
-
affiliate?: Address<TAccountAffiliate>;
|
|
771
|
+
type DepositTokensAsyncInput<TAccountSourceTokenAccount extends string = string, TAccountVault extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
954
772
|
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
955
|
-
|
|
773
|
+
vault?: Address<TAccountVault>;
|
|
956
774
|
airdrop?: Address<TAccountAirdrop>;
|
|
957
775
|
mint: Address<TAccountMint>;
|
|
958
776
|
authority: TransactionSigner<TAccountAuthority>;
|
|
@@ -961,19 +779,12 @@ type DepositTokensAsyncInput<TAccountMaster extends string = string, TAccountCon
|
|
|
961
779
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
962
780
|
amount: DepositTokensInstructionDataArgs["amount"];
|
|
963
781
|
};
|
|
964
|
-
declare function getDepositTokensInstructionAsync<
|
|
782
|
+
declare function getDepositTokensInstructionAsync<TAccountSourceTokenAccount extends string, TAccountVault extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: DepositTokensAsyncInput<TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
965
783
|
programAddress?: TProgramAddress;
|
|
966
|
-
}): Promise<DepositTokensInstruction<TProgramAddress,
|
|
967
|
-
type DepositTokensInput<
|
|
968
|
-
master: Address<TAccountMaster>;
|
|
969
|
-
config: Address<TAccountConfig>;
|
|
970
|
-
treasury: Address<TAccountTreasury>;
|
|
971
|
-
airdropMaster: Address<TAccountAirdropMaster>;
|
|
972
|
-
/** Check with authority */
|
|
973
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
974
|
-
affiliate?: Address<TAccountAffiliate>;
|
|
784
|
+
}): Promise<DepositTokensInstruction<TProgramAddress, TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
785
|
+
type DepositTokensInput<TAccountSourceTokenAccount extends string = string, TAccountVault extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
975
786
|
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
976
|
-
|
|
787
|
+
vault: Address<TAccountVault>;
|
|
977
788
|
airdrop: Address<TAccountAirdrop>;
|
|
978
789
|
mint: Address<TAccountMint>;
|
|
979
790
|
authority: TransactionSigner<TAccountAuthority>;
|
|
@@ -982,27 +793,20 @@ type DepositTokensInput<TAccountMaster extends string = string, TAccountConfig e
|
|
|
982
793
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
983
794
|
amount: DepositTokensInstructionDataArgs["amount"];
|
|
984
795
|
};
|
|
985
|
-
declare function getDepositTokensInstruction<
|
|
796
|
+
declare function getDepositTokensInstruction<TAccountSourceTokenAccount extends string, TAccountVault extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: DepositTokensInput<TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
986
797
|
programAddress?: TProgramAddress;
|
|
987
|
-
}): DepositTokensInstruction<TProgramAddress,
|
|
988
|
-
type ParsedDepositTokensInstruction<TProgram extends string = typeof
|
|
798
|
+
}): DepositTokensInstruction<TProgramAddress, TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
799
|
+
type ParsedDepositTokensInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
989
800
|
programAddress: Address<TProgram>;
|
|
990
801
|
accounts: {
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
destinationTokenAccount: TAccountMetas[7];
|
|
1000
|
-
airdrop: TAccountMetas[8];
|
|
1001
|
-
mint: TAccountMetas[9];
|
|
1002
|
-
authority: TAccountMetas[10];
|
|
1003
|
-
tokenProgram: TAccountMetas[11];
|
|
1004
|
-
associatedTokenProgram: TAccountMetas[12];
|
|
1005
|
-
systemProgram: TAccountMetas[13];
|
|
802
|
+
sourceTokenAccount: TAccountMetas[0];
|
|
803
|
+
vault: TAccountMetas[1];
|
|
804
|
+
airdrop: TAccountMetas[2];
|
|
805
|
+
mint: TAccountMetas[3];
|
|
806
|
+
authority: TAccountMetas[4];
|
|
807
|
+
tokenProgram: TAccountMetas[5];
|
|
808
|
+
associatedTokenProgram: TAccountMetas[6];
|
|
809
|
+
systemProgram: TAccountMetas[7];
|
|
1006
810
|
};
|
|
1007
811
|
data: DepositTokensInstructionData;
|
|
1008
812
|
};
|
|
@@ -1016,43 +820,92 @@ declare function parseDepositTokensInstruction<TProgram extends string, TAccount
|
|
|
1016
820
|
* @see https://github.com/codama-idl/codama
|
|
1017
821
|
*/
|
|
1018
822
|
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
type
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
823
|
+
declare const INITIALIZE_AIRDROP_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
824
|
+
declare function getInitializeAirdropConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
825
|
+
type InitializeAirdropConfigInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountProtocolTreasury extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = "79xcTj8QDPhqg7Bwvoz9CrckmGyo2JJXU9duVqJbCLxc", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
826
|
+
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
827
|
+
TAccountProtocolTreasury extends string ? ReadonlyAccount<TAccountProtocolTreasury> : TAccountProtocolTreasury,
|
|
828
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
829
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
830
|
+
...TRemainingAccounts
|
|
831
|
+
]>;
|
|
832
|
+
type InitializeAirdropConfigInstructionData = {
|
|
833
|
+
discriminator: ReadonlyUint8Array;
|
|
834
|
+
wlRoot: Option<ReadonlyUint8Array>;
|
|
835
|
+
airdropMasterCreateFee: Option<bigint>;
|
|
836
|
+
maxClaimFee: Option<bigint>;
|
|
837
|
+
maxActionFee: Option<bigint>;
|
|
838
|
+
minAirdropDuration: Option<bigint>;
|
|
839
|
+
defaultAirdropDuration: Option<bigint>;
|
|
840
|
+
maxAirdropDuration: Option<bigint>;
|
|
841
|
+
updateGracePeriod: Option<bigint>;
|
|
842
|
+
protocolFee: Option<bigint>;
|
|
843
|
+
masterFeeBps: Option<number>;
|
|
844
|
+
};
|
|
845
|
+
type InitializeAirdropConfigInstructionDataArgs = {
|
|
846
|
+
wlRoot: OptionOrNullable<ReadonlyUint8Array>;
|
|
847
|
+
airdropMasterCreateFee: OptionOrNullable<number | bigint>;
|
|
848
|
+
maxClaimFee: OptionOrNullable<number | bigint>;
|
|
849
|
+
maxActionFee: OptionOrNullable<number | bigint>;
|
|
850
|
+
minAirdropDuration: OptionOrNullable<number | bigint>;
|
|
851
|
+
defaultAirdropDuration: OptionOrNullable<number | bigint>;
|
|
852
|
+
maxAirdropDuration: OptionOrNullable<number | bigint>;
|
|
853
|
+
updateGracePeriod: OptionOrNullable<number | bigint>;
|
|
854
|
+
protocolFee: OptionOrNullable<number | bigint>;
|
|
855
|
+
masterFeeBps: OptionOrNullable<number>;
|
|
856
|
+
};
|
|
857
|
+
declare function getInitializeAirdropConfigInstructionDataEncoder(): Encoder<InitializeAirdropConfigInstructionDataArgs>;
|
|
858
|
+
declare function getInitializeAirdropConfigInstructionDataDecoder(): Decoder<InitializeAirdropConfigInstructionData>;
|
|
859
|
+
declare function getInitializeAirdropConfigInstructionDataCodec(): Codec<InitializeAirdropConfigInstructionDataArgs, InitializeAirdropConfigInstructionData>;
|
|
860
|
+
type InitializeAirdropConfigAsyncInput<TAccountConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
861
|
+
config?: Address<TAccountConfig>;
|
|
862
|
+
protocolTreasury: Address<TAccountProtocolTreasury>;
|
|
863
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
864
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
865
|
+
wlRoot: InitializeAirdropConfigInstructionDataArgs["wlRoot"];
|
|
866
|
+
airdropMasterCreateFee: InitializeAirdropConfigInstructionDataArgs["airdropMasterCreateFee"];
|
|
867
|
+
maxClaimFee: InitializeAirdropConfigInstructionDataArgs["maxClaimFee"];
|
|
868
|
+
maxActionFee: InitializeAirdropConfigInstructionDataArgs["maxActionFee"];
|
|
869
|
+
minAirdropDuration: InitializeAirdropConfigInstructionDataArgs["minAirdropDuration"];
|
|
870
|
+
defaultAirdropDuration: InitializeAirdropConfigInstructionDataArgs["defaultAirdropDuration"];
|
|
871
|
+
maxAirdropDuration: InitializeAirdropConfigInstructionDataArgs["maxAirdropDuration"];
|
|
872
|
+
updateGracePeriod: InitializeAirdropConfigInstructionDataArgs["updateGracePeriod"];
|
|
873
|
+
protocolFee: InitializeAirdropConfigInstructionDataArgs["protocolFee"];
|
|
874
|
+
masterFeeBps: InitializeAirdropConfigInstructionDataArgs["masterFeeBps"];
|
|
875
|
+
};
|
|
876
|
+
declare function getInitializeAirdropConfigInstructionAsync<TAccountConfig extends string, TAccountProtocolTreasury extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: InitializeAirdropConfigAsyncInput<TAccountConfig, TAccountProtocolTreasury, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
877
|
+
programAddress?: TProgramAddress;
|
|
878
|
+
}): Promise<InitializeAirdropConfigInstruction<TProgramAddress, TAccountConfig, TAccountProtocolTreasury, TAccountAuthority, TAccountSystemProgram>>;
|
|
879
|
+
type InitializeAirdropConfigInput<TAccountConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
880
|
+
config: Address<TAccountConfig>;
|
|
881
|
+
protocolTreasury: Address<TAccountProtocolTreasury>;
|
|
882
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
883
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
884
|
+
wlRoot: InitializeAirdropConfigInstructionDataArgs["wlRoot"];
|
|
885
|
+
airdropMasterCreateFee: InitializeAirdropConfigInstructionDataArgs["airdropMasterCreateFee"];
|
|
886
|
+
maxClaimFee: InitializeAirdropConfigInstructionDataArgs["maxClaimFee"];
|
|
887
|
+
maxActionFee: InitializeAirdropConfigInstructionDataArgs["maxActionFee"];
|
|
888
|
+
minAirdropDuration: InitializeAirdropConfigInstructionDataArgs["minAirdropDuration"];
|
|
889
|
+
defaultAirdropDuration: InitializeAirdropConfigInstructionDataArgs["defaultAirdropDuration"];
|
|
890
|
+
maxAirdropDuration: InitializeAirdropConfigInstructionDataArgs["maxAirdropDuration"];
|
|
891
|
+
updateGracePeriod: InitializeAirdropConfigInstructionDataArgs["updateGracePeriod"];
|
|
892
|
+
protocolFee: InitializeAirdropConfigInstructionDataArgs["protocolFee"];
|
|
893
|
+
masterFeeBps: InitializeAirdropConfigInstructionDataArgs["masterFeeBps"];
|
|
894
|
+
};
|
|
895
|
+
declare function getInitializeAirdropConfigInstruction<TAccountConfig extends string, TAccountProtocolTreasury extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: InitializeAirdropConfigInput<TAccountConfig, TAccountProtocolTreasury, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
896
|
+
programAddress?: TProgramAddress;
|
|
897
|
+
}): InitializeAirdropConfigInstruction<TProgramAddress, TAccountConfig, TAccountProtocolTreasury, TAccountAuthority, TAccountSystemProgram>;
|
|
898
|
+
type ParsedInitializeAirdropConfigInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
899
|
+
programAddress: Address<TProgram>;
|
|
900
|
+
accounts: {
|
|
901
|
+
config: TAccountMetas[0];
|
|
902
|
+
protocolTreasury: TAccountMetas[1];
|
|
903
|
+
authority: TAccountMetas[2];
|
|
904
|
+
systemProgram: TAccountMetas[3];
|
|
905
|
+
};
|
|
906
|
+
data: InitializeAirdropConfigInstructionData;
|
|
1052
907
|
};
|
|
1053
|
-
declare function
|
|
1054
|
-
declare function getAirdropBoostedDecoder(): FixedSizeDecoder<AirdropBoosted>;
|
|
1055
|
-
declare function getAirdropBoostedCodec(): FixedSizeCodec<AirdropBoostedArgs, AirdropBoosted>;
|
|
908
|
+
declare function parseInitializeAirdropConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeAirdropConfigInstruction<TProgram, TAccountMetas>;
|
|
1056
909
|
|
|
1057
910
|
/**
|
|
1058
911
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1062,38 +915,88 @@ declare function getAirdropBoostedCodec(): FixedSizeCodec<AirdropBoostedArgs, Ai
|
|
|
1062
915
|
* @see https://github.com/codama-idl/codama
|
|
1063
916
|
*/
|
|
1064
917
|
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
918
|
+
declare const INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
919
|
+
declare function getInitializeAirdropMasterDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
920
|
+
type InitializeAirdropMasterInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountProtocolTreasury extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAffiliate extends string | AccountMeta<string> = string, TAccountCreator extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
921
|
+
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
922
|
+
TAccountAirdropMaster extends string ? WritableAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
923
|
+
TAccountProtocolTreasury extends string ? WritableAccount<TAccountProtocolTreasury> : TAccountProtocolTreasury,
|
|
924
|
+
TAccountTreasury extends string ? ReadonlyAccount<TAccountTreasury> : TAccountTreasury,
|
|
925
|
+
TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
|
|
926
|
+
TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
|
|
927
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
928
|
+
...TRemainingAccounts
|
|
929
|
+
]>;
|
|
930
|
+
type InitializeAirdropMasterInstructionData = {
|
|
931
|
+
discriminator: ReadonlyUint8Array;
|
|
932
|
+
airdropUpdateFee: Option<bigint>;
|
|
933
|
+
airdropCreationFee: Option<bigint>;
|
|
934
|
+
airdropClaimFee: Option<bigint>;
|
|
935
|
+
airdropDelegateFee: Option<bigint>;
|
|
936
|
+
bitmapCreationFee: Option<bigint>;
|
|
937
|
+
discountProof: Option<Array<ReadonlyUint8Array>>;
|
|
1069
938
|
};
|
|
1070
|
-
type
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
939
|
+
type InitializeAirdropMasterInstructionDataArgs = {
|
|
940
|
+
airdropUpdateFee: OptionOrNullable<number | bigint>;
|
|
941
|
+
airdropCreationFee: OptionOrNullable<number | bigint>;
|
|
942
|
+
airdropClaimFee: OptionOrNullable<number | bigint>;
|
|
943
|
+
airdropDelegateFee: OptionOrNullable<number | bigint>;
|
|
944
|
+
bitmapCreationFee: OptionOrNullable<number | bigint>;
|
|
945
|
+
discountProof: OptionOrNullable<Array<ReadonlyUint8Array>>;
|
|
1074
946
|
};
|
|
1075
|
-
declare function
|
|
1076
|
-
declare function
|
|
1077
|
-
declare function
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
947
|
+
declare function getInitializeAirdropMasterInstructionDataEncoder(): Encoder<InitializeAirdropMasterInstructionDataArgs>;
|
|
948
|
+
declare function getInitializeAirdropMasterInstructionDataDecoder(): Decoder<InitializeAirdropMasterInstructionData>;
|
|
949
|
+
declare function getInitializeAirdropMasterInstructionDataCodec(): Codec<InitializeAirdropMasterInstructionDataArgs, InitializeAirdropMasterInstructionData>;
|
|
950
|
+
type InitializeAirdropMasterAsyncInput<TAccountConfig extends string = string, TAccountAirdropMaster extends string = string, TAccountProtocolTreasury extends string = string, TAccountTreasury extends string = string, TAccountAffiliate extends string = string, TAccountCreator extends string = string, TAccountSystemProgram extends string = string> = {
|
|
951
|
+
config?: Address<TAccountConfig>;
|
|
952
|
+
airdropMaster?: Address<TAccountAirdropMaster>;
|
|
953
|
+
protocolTreasury: Address<TAccountProtocolTreasury>;
|
|
954
|
+
treasury: Address<TAccountTreasury>;
|
|
955
|
+
affiliate?: Address<TAccountAffiliate>;
|
|
956
|
+
creator: TransactionSigner<TAccountCreator>;
|
|
957
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
958
|
+
airdropUpdateFee: InitializeAirdropMasterInstructionDataArgs["airdropUpdateFee"];
|
|
959
|
+
airdropCreationFee: InitializeAirdropMasterInstructionDataArgs["airdropCreationFee"];
|
|
960
|
+
airdropClaimFee: InitializeAirdropMasterInstructionDataArgs["airdropClaimFee"];
|
|
961
|
+
airdropDelegateFee: InitializeAirdropMasterInstructionDataArgs["airdropDelegateFee"];
|
|
962
|
+
bitmapCreationFee: InitializeAirdropMasterInstructionDataArgs["bitmapCreationFee"];
|
|
963
|
+
discountProof: InitializeAirdropMasterInstructionDataArgs["discountProof"];
|
|
964
|
+
};
|
|
965
|
+
declare function getInitializeAirdropMasterInstructionAsync<TAccountConfig extends string, TAccountAirdropMaster extends string, TAccountProtocolTreasury extends string, TAccountTreasury extends string, TAccountAffiliate extends string, TAccountCreator extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: InitializeAirdropMasterAsyncInput<TAccountConfig, TAccountAirdropMaster, TAccountProtocolTreasury, TAccountTreasury, TAccountAffiliate, TAccountCreator, TAccountSystemProgram>, config?: {
|
|
966
|
+
programAddress?: TProgramAddress;
|
|
967
|
+
}): Promise<InitializeAirdropMasterInstruction<TProgramAddress, TAccountConfig, TAccountAirdropMaster, TAccountProtocolTreasury, TAccountTreasury, TAccountAffiliate, TAccountCreator, TAccountSystemProgram>>;
|
|
968
|
+
type InitializeAirdropMasterInput<TAccountConfig extends string = string, TAccountAirdropMaster extends string = string, TAccountProtocolTreasury extends string = string, TAccountTreasury extends string = string, TAccountAffiliate extends string = string, TAccountCreator extends string = string, TAccountSystemProgram extends string = string> = {
|
|
969
|
+
config: Address<TAccountConfig>;
|
|
970
|
+
airdropMaster: Address<TAccountAirdropMaster>;
|
|
971
|
+
protocolTreasury: Address<TAccountProtocolTreasury>;
|
|
972
|
+
treasury: Address<TAccountTreasury>;
|
|
973
|
+
affiliate?: Address<TAccountAffiliate>;
|
|
974
|
+
creator: TransactionSigner<TAccountCreator>;
|
|
975
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
976
|
+
airdropUpdateFee: InitializeAirdropMasterInstructionDataArgs["airdropUpdateFee"];
|
|
977
|
+
airdropCreationFee: InitializeAirdropMasterInstructionDataArgs["airdropCreationFee"];
|
|
978
|
+
airdropClaimFee: InitializeAirdropMasterInstructionDataArgs["airdropClaimFee"];
|
|
979
|
+
airdropDelegateFee: InitializeAirdropMasterInstructionDataArgs["airdropDelegateFee"];
|
|
980
|
+
bitmapCreationFee: InitializeAirdropMasterInstructionDataArgs["bitmapCreationFee"];
|
|
981
|
+
discountProof: InitializeAirdropMasterInstructionDataArgs["discountProof"];
|
|
982
|
+
};
|
|
983
|
+
declare function getInitializeAirdropMasterInstruction<TAccountConfig extends string, TAccountAirdropMaster extends string, TAccountProtocolTreasury extends string, TAccountTreasury extends string, TAccountAffiliate extends string, TAccountCreator extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: InitializeAirdropMasterInput<TAccountConfig, TAccountAirdropMaster, TAccountProtocolTreasury, TAccountTreasury, TAccountAffiliate, TAccountCreator, TAccountSystemProgram>, config?: {
|
|
984
|
+
programAddress?: TProgramAddress;
|
|
985
|
+
}): InitializeAirdropMasterInstruction<TProgramAddress, TAccountConfig, TAccountAirdropMaster, TAccountProtocolTreasury, TAccountTreasury, TAccountAffiliate, TAccountCreator, TAccountSystemProgram>;
|
|
986
|
+
type ParsedInitializeAirdropMasterInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
987
|
+
programAddress: Address<TProgram>;
|
|
988
|
+
accounts: {
|
|
989
|
+
config: TAccountMetas[0];
|
|
990
|
+
airdropMaster: TAccountMetas[1];
|
|
991
|
+
protocolTreasury: TAccountMetas[2];
|
|
992
|
+
treasury: TAccountMetas[3];
|
|
993
|
+
affiliate?: TAccountMetas[4] | undefined;
|
|
994
|
+
creator: TAccountMetas[5];
|
|
995
|
+
systemProgram: TAccountMetas[6];
|
|
996
|
+
};
|
|
997
|
+
data: InitializeAirdropMasterInstructionData;
|
|
1092
998
|
};
|
|
1093
|
-
|
|
1094
|
-
declare function getAirdropDelegatedEncoder(): FixedSizeEncoder<AirdropDelegatedArgs>;
|
|
1095
|
-
declare function getAirdropDelegatedDecoder(): FixedSizeDecoder<AirdropDelegated>;
|
|
1096
|
-
declare function getAirdropDelegatedCodec(): FixedSizeCodec<AirdropDelegatedArgs, AirdropDelegated>;
|
|
999
|
+
declare function parseInitializeAirdropMasterInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeAirdropMasterInstruction<TProgram, TAccountMetas>;
|
|
1097
1000
|
|
|
1098
1001
|
/**
|
|
1099
1002
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1107,7 +1010,7 @@ type AirdropInitialized = {
|
|
|
1107
1010
|
airdrop: Address;
|
|
1108
1011
|
mint: Address;
|
|
1109
1012
|
authority: Address;
|
|
1110
|
-
|
|
1013
|
+
master: Address;
|
|
1111
1014
|
merkleRoot: ReadonlyUint8Array;
|
|
1112
1015
|
startTime: bigint;
|
|
1113
1016
|
endTime: bigint;
|
|
@@ -1117,7 +1020,7 @@ type AirdropInitializedArgs = {
|
|
|
1117
1020
|
airdrop: Address;
|
|
1118
1021
|
mint: Address;
|
|
1119
1022
|
authority: Address;
|
|
1120
|
-
|
|
1023
|
+
master: Address;
|
|
1121
1024
|
merkleRoot: ReadonlyUint8Array;
|
|
1122
1025
|
startTime: number | bigint;
|
|
1123
1026
|
endTime: number | bigint;
|
|
@@ -1135,98 +1038,15 @@ declare function getAirdropInitializedCodec(): FixedSizeCodec<AirdropInitialized
|
|
|
1135
1038
|
* @see https://github.com/codama-idl/codama
|
|
1136
1039
|
*/
|
|
1137
1040
|
|
|
1138
|
-
type
|
|
1139
|
-
airdrop: Address;
|
|
1140
|
-
updatedBy: Address;
|
|
1141
|
-
};
|
|
1142
|
-
type AirdropUpdatedArgs = AirdropUpdated;
|
|
1143
|
-
declare function getAirdropUpdatedEncoder(): FixedSizeEncoder<AirdropUpdatedArgs>;
|
|
1144
|
-
declare function getAirdropUpdatedDecoder(): FixedSizeDecoder<AirdropUpdated>;
|
|
1145
|
-
declare function getAirdropUpdatedCodec(): FixedSizeCodec<AirdropUpdatedArgs, AirdropUpdated>;
|
|
1146
|
-
|
|
1147
|
-
/**
|
|
1148
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1149
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1150
|
-
* to add features, then rerun Codama to update it.
|
|
1151
|
-
*
|
|
1152
|
-
* @see https://github.com/codama-idl/codama
|
|
1153
|
-
*/
|
|
1154
|
-
|
|
1155
|
-
type BaseDurationConfig = {
|
|
1156
|
-
minimum: bigint;
|
|
1157
|
-
maximum: bigint;
|
|
1158
|
-
updateGrace: bigint;
|
|
1159
|
-
};
|
|
1160
|
-
type BaseDurationConfigArgs = {
|
|
1161
|
-
minimum: number | bigint;
|
|
1162
|
-
maximum: number | bigint;
|
|
1163
|
-
updateGrace: number | bigint;
|
|
1164
|
-
};
|
|
1165
|
-
declare function getBaseDurationConfigEncoder(): FixedSizeEncoder<BaseDurationConfigArgs>;
|
|
1166
|
-
declare function getBaseDurationConfigDecoder(): FixedSizeDecoder<BaseDurationConfig>;
|
|
1167
|
-
declare function getBaseDurationConfigCodec(): FixedSizeCodec<BaseDurationConfigArgs, BaseDurationConfig>;
|
|
1168
|
-
|
|
1169
|
-
/**
|
|
1170
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1171
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1172
|
-
* to add features, then rerun Codama to update it.
|
|
1173
|
-
*
|
|
1174
|
-
* @see https://github.com/codama-idl/codama
|
|
1175
|
-
*/
|
|
1176
|
-
|
|
1177
|
-
type BaseFeatureFeeConfig = {
|
|
1178
|
-
creationFee: bigint;
|
|
1179
|
-
upgradeFee: bigint;
|
|
1180
|
-
withdrawFeeBasis: bigint;
|
|
1181
|
-
};
|
|
1182
|
-
type BaseFeatureFeeConfigArgs = {
|
|
1183
|
-
creationFee: number | bigint;
|
|
1184
|
-
upgradeFee: number | bigint;
|
|
1185
|
-
withdrawFeeBasis: number | bigint;
|
|
1186
|
-
};
|
|
1187
|
-
declare function getBaseFeatureFeeConfigEncoder(): FixedSizeEncoder<BaseFeatureFeeConfigArgs>;
|
|
1188
|
-
declare function getBaseFeatureFeeConfigDecoder(): FixedSizeDecoder<BaseFeatureFeeConfig>;
|
|
1189
|
-
declare function getBaseFeatureFeeConfigCodec(): FixedSizeCodec<BaseFeatureFeeConfigArgs, BaseFeatureFeeConfig>;
|
|
1190
|
-
|
|
1191
|
-
/**
|
|
1192
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1193
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1194
|
-
* to add features, then rerun Codama to update it.
|
|
1195
|
-
*
|
|
1196
|
-
* @see https://github.com/codama-idl/codama
|
|
1197
|
-
*/
|
|
1198
|
-
|
|
1199
|
-
type BaseFeeConfig = {
|
|
1200
|
-
creationFee: bigint;
|
|
1201
|
-
updateFee: Option<bigint>;
|
|
1202
|
-
closeFee: bigint;
|
|
1203
|
-
};
|
|
1204
|
-
type BaseFeeConfigArgs = {
|
|
1205
|
-
creationFee: number | bigint;
|
|
1206
|
-
updateFee: OptionOrNullable<number | bigint>;
|
|
1207
|
-
closeFee: number | bigint;
|
|
1208
|
-
};
|
|
1209
|
-
declare function getBaseFeeConfigEncoder(): Encoder<BaseFeeConfigArgs>;
|
|
1210
|
-
declare function getBaseFeeConfigDecoder(): Decoder<BaseFeeConfig>;
|
|
1211
|
-
declare function getBaseFeeConfigCodec(): Codec<BaseFeeConfigArgs, BaseFeeConfig>;
|
|
1212
|
-
|
|
1213
|
-
/**
|
|
1214
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1215
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1216
|
-
* to add features, then rerun Codama to update it.
|
|
1217
|
-
*
|
|
1218
|
-
* @see https://github.com/codama-idl/codama
|
|
1219
|
-
*/
|
|
1220
|
-
|
|
1221
|
-
type ClaimMapClosed = {
|
|
1041
|
+
type BitmapClosed = {
|
|
1222
1042
|
airdrop: Address;
|
|
1223
1043
|
bitmap: Address;
|
|
1224
1044
|
authority: Address;
|
|
1225
1045
|
};
|
|
1226
|
-
type
|
|
1227
|
-
declare function
|
|
1228
|
-
declare function
|
|
1229
|
-
declare function
|
|
1046
|
+
type BitmapClosedArgs = BitmapClosed;
|
|
1047
|
+
declare function getBitmapClosedEncoder(): FixedSizeEncoder<BitmapClosedArgs>;
|
|
1048
|
+
declare function getBitmapClosedDecoder(): FixedSizeDecoder<BitmapClosed>;
|
|
1049
|
+
declare function getBitmapClosedCodec(): FixedSizeCodec<BitmapClosedArgs, BitmapClosed>;
|
|
1230
1050
|
|
|
1231
1051
|
/**
|
|
1232
1052
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1236,71 +1056,21 @@ declare function getClaimMapClosedCodec(): FixedSizeCodec<ClaimMapClosedArgs, Cl
|
|
|
1236
1056
|
* @see https://github.com/codama-idl/codama
|
|
1237
1057
|
*/
|
|
1238
1058
|
|
|
1239
|
-
type
|
|
1059
|
+
type BitmapInitialized = {
|
|
1240
1060
|
airdrop: Address;
|
|
1241
1061
|
bitmap: Address;
|
|
1242
1062
|
bitmapId: number;
|
|
1243
1063
|
timestamp: bigint;
|
|
1244
1064
|
};
|
|
1245
|
-
type
|
|
1065
|
+
type BitmapInitializedArgs = {
|
|
1246
1066
|
airdrop: Address;
|
|
1247
1067
|
bitmap: Address;
|
|
1248
1068
|
bitmapId: number;
|
|
1249
1069
|
timestamp: number | bigint;
|
|
1250
1070
|
};
|
|
1251
|
-
declare function
|
|
1252
|
-
declare function
|
|
1253
|
-
declare function
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1257
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1258
|
-
* to add features, then rerun Codama to update it.
|
|
1259
|
-
*
|
|
1260
|
-
* @see https://github.com/codama-idl/codama
|
|
1261
|
-
*/
|
|
1262
|
-
|
|
1263
|
-
type InitAirdropConfigArgs = {
|
|
1264
|
-
merkleRoot: Option<ReadonlyUint8Array>;
|
|
1265
|
-
durationConfig: BaseDurationConfig;
|
|
1266
|
-
masterConfig: BaseFeatureFeeConfig;
|
|
1267
|
-
bitmapActionFee: bigint;
|
|
1268
|
-
perBoostAmount: bigint;
|
|
1269
|
-
};
|
|
1270
|
-
type InitAirdropConfigArgsArgs = {
|
|
1271
|
-
merkleRoot: OptionOrNullable<ReadonlyUint8Array>;
|
|
1272
|
-
durationConfig: BaseDurationConfigArgs;
|
|
1273
|
-
masterConfig: BaseFeatureFeeConfigArgs;
|
|
1274
|
-
bitmapActionFee: number | bigint;
|
|
1275
|
-
perBoostAmount: number | bigint;
|
|
1276
|
-
};
|
|
1277
|
-
declare function getInitAirdropConfigArgsEncoder(): Encoder<InitAirdropConfigArgsArgs>;
|
|
1278
|
-
declare function getInitAirdropConfigArgsDecoder(): Decoder<InitAirdropConfigArgs>;
|
|
1279
|
-
declare function getInitAirdropConfigArgsCodec(): Codec<InitAirdropConfigArgsArgs, InitAirdropConfigArgs>;
|
|
1280
|
-
|
|
1281
|
-
/**
|
|
1282
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1283
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1284
|
-
* to add features, then rerun Codama to update it.
|
|
1285
|
-
*
|
|
1286
|
-
* @see https://github.com/codama-idl/codama
|
|
1287
|
-
*/
|
|
1288
|
-
|
|
1289
|
-
type MasterInitialized = {
|
|
1290
|
-
address: Address;
|
|
1291
|
-
authority: Address;
|
|
1292
|
-
treasury: Address;
|
|
1293
|
-
timestamp: bigint;
|
|
1294
|
-
};
|
|
1295
|
-
type MasterInitializedArgs = {
|
|
1296
|
-
address: Address;
|
|
1297
|
-
authority: Address;
|
|
1298
|
-
treasury: Address;
|
|
1299
|
-
timestamp: number | bigint;
|
|
1300
|
-
};
|
|
1301
|
-
declare function getMasterInitializedEncoder(): FixedSizeEncoder<MasterInitializedArgs>;
|
|
1302
|
-
declare function getMasterInitializedDecoder(): FixedSizeDecoder<MasterInitialized>;
|
|
1303
|
-
declare function getMasterInitializedCodec(): FixedSizeCodec<MasterInitializedArgs, MasterInitialized>;
|
|
1071
|
+
declare function getBitmapInitializedEncoder(): FixedSizeEncoder<BitmapInitializedArgs>;
|
|
1072
|
+
declare function getBitmapInitializedDecoder(): FixedSizeDecoder<BitmapInitialized>;
|
|
1073
|
+
declare function getBitmapInitializedCodec(): FixedSizeCodec<BitmapInitializedArgs, BitmapInitialized>;
|
|
1304
1074
|
|
|
1305
1075
|
/**
|
|
1306
1076
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1350,316 +1120,4 @@ declare function getTokensRedeemedEncoder(): FixedSizeEncoder<TokensRedeemedArgs
|
|
|
1350
1120
|
declare function getTokensRedeemedDecoder(): FixedSizeDecoder<TokensRedeemed>;
|
|
1351
1121
|
declare function getTokensRedeemedCodec(): FixedSizeCodec<TokensRedeemedArgs, TokensRedeemed>;
|
|
1352
1122
|
|
|
1353
|
-
|
|
1354
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1355
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1356
|
-
* to add features, then rerun Codama to update it.
|
|
1357
|
-
*
|
|
1358
|
-
* @see https://github.com/codama-idl/codama
|
|
1359
|
-
*/
|
|
1360
|
-
|
|
1361
|
-
declare const INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1362
|
-
declare function getInitializeAirdropMasterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1363
|
-
type InitializeAirdropMasterInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAffiliateMaster extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1364
|
-
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
1365
|
-
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
1366
|
-
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
1367
|
-
TAccountAffiliateMaster extends string ? ReadonlyAccount<TAccountAffiliateMaster> : TAccountAffiliateMaster,
|
|
1368
|
-
TAccountAirdropMaster extends string ? WritableAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
1369
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1370
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1371
|
-
...TRemainingAccounts
|
|
1372
|
-
]>;
|
|
1373
|
-
type InitializeAirdropMasterInstructionData = {
|
|
1374
|
-
discriminator: ReadonlyUint8Array;
|
|
1375
|
-
merkleRoot: ReadonlyUint8Array;
|
|
1376
|
-
baseConfig: BaseFeeConfig;
|
|
1377
|
-
airdropConfig: AdvancedFeeConfig;
|
|
1378
|
-
bitmapConfig: BaseFeeConfig;
|
|
1379
|
-
};
|
|
1380
|
-
type InitializeAirdropMasterInstructionDataArgs = {
|
|
1381
|
-
merkleRoot: ReadonlyUint8Array;
|
|
1382
|
-
baseConfig: BaseFeeConfigArgs;
|
|
1383
|
-
airdropConfig: AdvancedFeeConfigArgs;
|
|
1384
|
-
bitmapConfig: BaseFeeConfigArgs;
|
|
1385
|
-
};
|
|
1386
|
-
declare function getInitializeAirdropMasterInstructionDataEncoder(): Encoder<InitializeAirdropMasterInstructionDataArgs>;
|
|
1387
|
-
declare function getInitializeAirdropMasterInstructionDataDecoder(): Decoder<InitializeAirdropMasterInstructionData>;
|
|
1388
|
-
declare function getInitializeAirdropMasterInstructionDataCodec(): Codec<InitializeAirdropMasterInstructionDataArgs, InitializeAirdropMasterInstructionData>;
|
|
1389
|
-
type InitializeAirdropMasterAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAffiliateMaster extends string = string, TAccountAirdropMaster extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1390
|
-
master?: Address<TAccountMaster>;
|
|
1391
|
-
config?: Address<TAccountConfig>;
|
|
1392
|
-
treasury: Address<TAccountTreasury>;
|
|
1393
|
-
affiliateMaster?: Address<TAccountAffiliateMaster>;
|
|
1394
|
-
airdropMaster?: Address<TAccountAirdropMaster>;
|
|
1395
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
1396
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
1397
|
-
merkleRoot: InitializeAirdropMasterInstructionDataArgs["merkleRoot"];
|
|
1398
|
-
baseConfig: InitializeAirdropMasterInstructionDataArgs["baseConfig"];
|
|
1399
|
-
airdropConfig: InitializeAirdropMasterInstructionDataArgs["airdropConfig"];
|
|
1400
|
-
bitmapConfig: InitializeAirdropMasterInstructionDataArgs["bitmapConfig"];
|
|
1401
|
-
};
|
|
1402
|
-
declare function getInitializeAirdropMasterInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAffiliateMaster extends string, TAccountAirdropMaster extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeAirdropMasterAsyncInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAffiliateMaster, TAccountAirdropMaster, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
1403
|
-
programAddress?: TProgramAddress;
|
|
1404
|
-
}): Promise<InitializeAirdropMasterInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAffiliateMaster, TAccountAirdropMaster, TAccountAuthority, TAccountSystemProgram>>;
|
|
1405
|
-
type InitializeAirdropMasterInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAffiliateMaster extends string = string, TAccountAirdropMaster extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1406
|
-
master: Address<TAccountMaster>;
|
|
1407
|
-
config: Address<TAccountConfig>;
|
|
1408
|
-
treasury: Address<TAccountTreasury>;
|
|
1409
|
-
affiliateMaster?: Address<TAccountAffiliateMaster>;
|
|
1410
|
-
airdropMaster: Address<TAccountAirdropMaster>;
|
|
1411
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
1412
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
1413
|
-
merkleRoot: InitializeAirdropMasterInstructionDataArgs["merkleRoot"];
|
|
1414
|
-
baseConfig: InitializeAirdropMasterInstructionDataArgs["baseConfig"];
|
|
1415
|
-
airdropConfig: InitializeAirdropMasterInstructionDataArgs["airdropConfig"];
|
|
1416
|
-
bitmapConfig: InitializeAirdropMasterInstructionDataArgs["bitmapConfig"];
|
|
1417
|
-
};
|
|
1418
|
-
declare function getInitializeAirdropMasterInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAffiliateMaster extends string, TAccountAirdropMaster extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeAirdropMasterInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAffiliateMaster, TAccountAirdropMaster, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
1419
|
-
programAddress?: TProgramAddress;
|
|
1420
|
-
}): InitializeAirdropMasterInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAffiliateMaster, TAccountAirdropMaster, TAccountAuthority, TAccountSystemProgram>;
|
|
1421
|
-
type ParsedInitializeAirdropMasterInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1422
|
-
programAddress: Address<TProgram>;
|
|
1423
|
-
accounts: {
|
|
1424
|
-
master: TAccountMetas[0];
|
|
1425
|
-
config: TAccountMetas[1];
|
|
1426
|
-
treasury: TAccountMetas[2];
|
|
1427
|
-
affiliateMaster?: TAccountMetas[3] | undefined;
|
|
1428
|
-
airdropMaster: TAccountMetas[4];
|
|
1429
|
-
authority: TAccountMetas[5];
|
|
1430
|
-
systemProgram: TAccountMetas[6];
|
|
1431
|
-
};
|
|
1432
|
-
data: InitializeAirdropMasterInstructionData;
|
|
1433
|
-
};
|
|
1434
|
-
declare function parseInitializeAirdropMasterInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeAirdropMasterInstruction<TProgram, TAccountMetas>;
|
|
1435
|
-
|
|
1436
|
-
/**
|
|
1437
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1438
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1439
|
-
* to add features, then rerun Codama to update it.
|
|
1440
|
-
*
|
|
1441
|
-
* @see https://github.com/codama-idl/codama
|
|
1442
|
-
*/
|
|
1443
|
-
|
|
1444
|
-
declare const INITIALIZE_MASTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1445
|
-
declare function getInitializeMasterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1446
|
-
type InitializeMasterInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = "8mtUD2XrkNnTxnjCehZ4DEtTXeGR1yrepSEGhCaSj2kT", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1447
|
-
TAccountMaster extends string ? WritableAccount<TAccountMaster> : TAccountMaster,
|
|
1448
|
-
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
1449
|
-
TAccountTreasury extends string ? ReadonlyAccount<TAccountTreasury> : TAccountTreasury,
|
|
1450
|
-
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1451
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1452
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1453
|
-
...TRemainingAccounts
|
|
1454
|
-
]>;
|
|
1455
|
-
type InitializeMasterInstructionData = {
|
|
1456
|
-
discriminator: ReadonlyUint8Array;
|
|
1457
|
-
airdropConfig: InitAirdropConfigArgs;
|
|
1458
|
-
protocolFee: bigint;
|
|
1459
|
-
};
|
|
1460
|
-
type InitializeMasterInstructionDataArgs = {
|
|
1461
|
-
airdropConfig: InitAirdropConfigArgsArgs;
|
|
1462
|
-
protocolFee: number | bigint;
|
|
1463
|
-
};
|
|
1464
|
-
declare function getInitializeMasterInstructionDataEncoder(): Encoder<InitializeMasterInstructionDataArgs>;
|
|
1465
|
-
declare function getInitializeMasterInstructionDataDecoder(): Decoder<InitializeMasterInstructionData>;
|
|
1466
|
-
declare function getInitializeMasterInstructionDataCodec(): Codec<InitializeMasterInstructionDataArgs, InitializeMasterInstructionData>;
|
|
1467
|
-
type InitializeMasterAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountTokenMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1468
|
-
master?: Address<TAccountMaster>;
|
|
1469
|
-
config?: Address<TAccountConfig>;
|
|
1470
|
-
treasury: Address<TAccountTreasury>;
|
|
1471
|
-
tokenMint?: Address<TAccountTokenMint>;
|
|
1472
|
-
authority?: TransactionSigner<TAccountAuthority>;
|
|
1473
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
1474
|
-
airdropConfig: InitializeMasterInstructionDataArgs["airdropConfig"];
|
|
1475
|
-
protocolFee: InitializeMasterInstructionDataArgs["protocolFee"];
|
|
1476
|
-
};
|
|
1477
|
-
declare function getInitializeMasterInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountTokenMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeMasterAsyncInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountTokenMint, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
1478
|
-
programAddress?: TProgramAddress;
|
|
1479
|
-
}): Promise<InitializeMasterInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountTokenMint, TAccountAuthority, TAccountSystemProgram>>;
|
|
1480
|
-
type InitializeMasterInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountTokenMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1481
|
-
master: Address<TAccountMaster>;
|
|
1482
|
-
config: Address<TAccountConfig>;
|
|
1483
|
-
treasury: Address<TAccountTreasury>;
|
|
1484
|
-
tokenMint?: Address<TAccountTokenMint>;
|
|
1485
|
-
authority?: TransactionSigner<TAccountAuthority>;
|
|
1486
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
1487
|
-
airdropConfig: InitializeMasterInstructionDataArgs["airdropConfig"];
|
|
1488
|
-
protocolFee: InitializeMasterInstructionDataArgs["protocolFee"];
|
|
1489
|
-
};
|
|
1490
|
-
declare function getInitializeMasterInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountTokenMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeMasterInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountTokenMint, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
1491
|
-
programAddress?: TProgramAddress;
|
|
1492
|
-
}): InitializeMasterInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountTokenMint, TAccountAuthority, TAccountSystemProgram>;
|
|
1493
|
-
type ParsedInitializeMasterInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1494
|
-
programAddress: Address<TProgram>;
|
|
1495
|
-
accounts: {
|
|
1496
|
-
master: TAccountMetas[0];
|
|
1497
|
-
config: TAccountMetas[1];
|
|
1498
|
-
treasury: TAccountMetas[2];
|
|
1499
|
-
tokenMint?: TAccountMetas[3] | undefined;
|
|
1500
|
-
authority: TAccountMetas[4];
|
|
1501
|
-
systemProgram: TAccountMetas[5];
|
|
1502
|
-
};
|
|
1503
|
-
data: InitializeMasterInstructionData;
|
|
1504
|
-
};
|
|
1505
|
-
declare function parseInitializeMasterInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeMasterInstruction<TProgram, TAccountMetas>;
|
|
1506
|
-
|
|
1507
|
-
/**
|
|
1508
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1509
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1510
|
-
* to add features, then rerun Codama to update it.
|
|
1511
|
-
*
|
|
1512
|
-
* @see https://github.com/codama-idl/codama
|
|
1513
|
-
*/
|
|
1514
|
-
|
|
1515
|
-
declare const REDEEM_AIRDROP_TOKENS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1516
|
-
declare function getRedeemAirdropTokensDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1517
|
-
type RedeemAirdropTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountAirdropMasterAuthority extends string | AccountMeta<string> = string, TAccountAffiliate extends string | AccountMeta<string> = string, TAccountSourceTokenAccount extends string | AccountMeta<string> = string, TAccountDestinationTokenAccount extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1518
|
-
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
1519
|
-
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
1520
|
-
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
1521
|
-
TAccountAirdropMaster extends string ? ReadonlyAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
1522
|
-
TAccountAirdropMasterAuthority extends string ? ReadonlyAccount<TAccountAirdropMasterAuthority> : TAccountAirdropMasterAuthority,
|
|
1523
|
-
TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
|
|
1524
|
-
TAccountSourceTokenAccount extends string ? WritableAccount<TAccountSourceTokenAccount> : TAccountSourceTokenAccount,
|
|
1525
|
-
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
1526
|
-
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
1527
|
-
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
1528
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1529
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1530
|
-
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
1531
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1532
|
-
...TRemainingAccounts
|
|
1533
|
-
]>;
|
|
1534
|
-
type RedeemAirdropTokensInstructionData = {
|
|
1535
|
-
discriminator: ReadonlyUint8Array;
|
|
1536
|
-
};
|
|
1537
|
-
type RedeemAirdropTokensInstructionDataArgs = {};
|
|
1538
|
-
declare function getRedeemAirdropTokensInstructionDataEncoder(): FixedSizeEncoder<RedeemAirdropTokensInstructionDataArgs>;
|
|
1539
|
-
declare function getRedeemAirdropTokensInstructionDataDecoder(): FixedSizeDecoder<RedeemAirdropTokensInstructionData>;
|
|
1540
|
-
declare function getRedeemAirdropTokensInstructionDataCodec(): FixedSizeCodec<RedeemAirdropTokensInstructionDataArgs, RedeemAirdropTokensInstructionData>;
|
|
1541
|
-
type RedeemAirdropTokensAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAirdropMasterAuthority extends string = string, TAccountAffiliate extends string = string, TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1542
|
-
master?: Address<TAccountMaster>;
|
|
1543
|
-
config?: Address<TAccountConfig>;
|
|
1544
|
-
treasury: Address<TAccountTreasury>;
|
|
1545
|
-
airdropMaster?: Address<TAccountAirdropMaster>;
|
|
1546
|
-
/** Check with authority */
|
|
1547
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
1548
|
-
affiliate?: Address<TAccountAffiliate>;
|
|
1549
|
-
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
1550
|
-
destinationTokenAccount?: Address<TAccountDestinationTokenAccount>;
|
|
1551
|
-
airdrop?: Address<TAccountAirdrop>;
|
|
1552
|
-
mint: Address<TAccountMint>;
|
|
1553
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
1554
|
-
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1555
|
-
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1556
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
1557
|
-
};
|
|
1558
|
-
declare function getRedeemAirdropTokensInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAirdropMasterAuthority extends string, TAccountAffiliate extends string, TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: RedeemAirdropTokensAsyncInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAirdropMasterAuthority, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1559
|
-
programAddress?: TProgramAddress;
|
|
1560
|
-
}): Promise<RedeemAirdropTokensInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAirdropMasterAuthority, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
1561
|
-
type RedeemAirdropTokensInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAirdropMasterAuthority extends string = string, TAccountAffiliate extends string = string, TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1562
|
-
master: Address<TAccountMaster>;
|
|
1563
|
-
config: Address<TAccountConfig>;
|
|
1564
|
-
treasury: Address<TAccountTreasury>;
|
|
1565
|
-
airdropMaster: Address<TAccountAirdropMaster>;
|
|
1566
|
-
/** Check with authority */
|
|
1567
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
1568
|
-
affiliate?: Address<TAccountAffiliate>;
|
|
1569
|
-
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
1570
|
-
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
1571
|
-
airdrop: Address<TAccountAirdrop>;
|
|
1572
|
-
mint: Address<TAccountMint>;
|
|
1573
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
1574
|
-
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1575
|
-
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1576
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
1577
|
-
};
|
|
1578
|
-
declare function getRedeemAirdropTokensInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAirdropMasterAuthority extends string, TAccountAffiliate extends string, TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: RedeemAirdropTokensInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAirdropMasterAuthority, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1579
|
-
programAddress?: TProgramAddress;
|
|
1580
|
-
}): RedeemAirdropTokensInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAirdropMasterAuthority, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
1581
|
-
type ParsedRedeemAirdropTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1582
|
-
programAddress: Address<TProgram>;
|
|
1583
|
-
accounts: {
|
|
1584
|
-
master: TAccountMetas[0];
|
|
1585
|
-
config: TAccountMetas[1];
|
|
1586
|
-
treasury: TAccountMetas[2];
|
|
1587
|
-
airdropMaster: TAccountMetas[3];
|
|
1588
|
-
/** Check with authority */
|
|
1589
|
-
airdropMasterAuthority: TAccountMetas[4];
|
|
1590
|
-
affiliate?: TAccountMetas[5] | undefined;
|
|
1591
|
-
sourceTokenAccount: TAccountMetas[6];
|
|
1592
|
-
destinationTokenAccount: TAccountMetas[7];
|
|
1593
|
-
airdrop: TAccountMetas[8];
|
|
1594
|
-
mint: TAccountMetas[9];
|
|
1595
|
-
authority: TAccountMetas[10];
|
|
1596
|
-
tokenProgram: TAccountMetas[11];
|
|
1597
|
-
associatedTokenProgram: TAccountMetas[12];
|
|
1598
|
-
systemProgram: TAccountMetas[13];
|
|
1599
|
-
};
|
|
1600
|
-
data: RedeemAirdropTokensInstructionData;
|
|
1601
|
-
};
|
|
1602
|
-
declare function parseRedeemAirdropTokensInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRedeemAirdropTokensInstruction<TProgram, TAccountMetas>;
|
|
1603
|
-
|
|
1604
|
-
type DropsyPda = readonly [Address<string>, ProgramDerivedAddressBump];
|
|
1605
|
-
type Seed = ReadonlyUint8Array | string;
|
|
1606
|
-
declare function getDropsyDerivedAddress(seeds: Seed[]): Promise<DropsyPda>;
|
|
1607
|
-
declare function getMasterDerivedAddress(): Promise<DropsyPda>;
|
|
1608
|
-
declare function getAirdropConfigDerivedAddress(): Promise<DropsyPda>;
|
|
1609
|
-
declare function getAirdropMasterDerivedAddress(authority: Address): Promise<DropsyPda>;
|
|
1610
|
-
declare function getAffiliateDerivedAddress(authority: Address): Promise<DropsyPda>;
|
|
1611
|
-
declare function getAirdropDerivedAddress(authority: Address, mint: Address): Promise<DropsyPda>;
|
|
1612
|
-
declare function getClaimMapDerivedAddress(airdrop: Address, id: number): Promise<DropsyPda>;
|
|
1613
|
-
|
|
1614
|
-
/**
|
|
1615
|
-
* -------------------------
|
|
1616
|
-
* PDA Seed Constants
|
|
1617
|
-
* -------------------------
|
|
1618
|
-
* Used for deriving program addresses (PDAs) in Dropsy
|
|
1619
|
-
*/
|
|
1620
|
-
declare const DROPSY_MASTER_SEED = "master";
|
|
1621
|
-
declare const AIRDROP_CONFIG_SEED = "airdrop_config";
|
|
1622
|
-
declare const AFFILIATE_MASTER_SEED = "affiliate_master";
|
|
1623
|
-
declare const AIRDROP_MASTER_SEED = "airdrop_master";
|
|
1624
|
-
declare const AIRDROP_SEED = "airdrop";
|
|
1625
|
-
declare const AFFILIATE_SEED = "affiliate";
|
|
1626
|
-
declare const BITMAP_SEED = "bitmap";
|
|
1627
|
-
declare const VESTING_SEED = "vesting";
|
|
1628
|
-
declare const PRESALE_SEED = "presale";
|
|
1629
|
-
declare const VAULT_SEED = "vault";
|
|
1630
|
-
/**
|
|
1631
|
-
* -------------------------
|
|
1632
|
-
* Admin / Protocol Keys
|
|
1633
|
-
* -------------------------
|
|
1634
|
-
*/
|
|
1635
|
-
declare const ADMIN: _solana_kit.Address<"8mtUD2XrkNnTxnjCehZ4DEtTXeGR1yrepSEGhCaSj2kT">;
|
|
1636
|
-
/**
|
|
1637
|
-
* -------------------------
|
|
1638
|
-
* Bitmap / Claim Config
|
|
1639
|
-
* -------------------------
|
|
1640
|
-
*/
|
|
1641
|
-
declare const BITMAP_SIZE = 8000;
|
|
1642
|
-
declare const MAX_BITMAP_CLAIM: number;
|
|
1643
|
-
/**
|
|
1644
|
-
* -------------------------
|
|
1645
|
-
* Airdrop Versions
|
|
1646
|
-
* -------------------------
|
|
1647
|
-
*/
|
|
1648
|
-
declare const VERSION_BASIC = 0;
|
|
1649
|
-
declare const VERSION_VESTED = 1;
|
|
1650
|
-
/**
|
|
1651
|
-
* -------------------------
|
|
1652
|
-
* Airdrop State
|
|
1653
|
-
* -------------------------
|
|
1654
|
-
*/
|
|
1655
|
-
declare const STATE_INITIALIZED = 0;
|
|
1656
|
-
declare const STATE_DELEGATED = 1;
|
|
1657
|
-
declare const STATE_REDEEMED = 2;
|
|
1658
|
-
/**
|
|
1659
|
-
* -------------------------
|
|
1660
|
-
* Mutability Flags
|
|
1661
|
-
* -------------------------
|
|
1662
|
-
*/
|
|
1663
|
-
declare const MUTABLE_NONE = 0;
|
|
1664
|
-
|
|
1665
|
-
export { ADMIN, AFFILIATE_DISCRIMINATOR, AFFILIATE_MASTER_DISCRIMINATOR, AFFILIATE_MASTER_SEED, AFFILIATE_SEED, AIRDROP_CONFIG_DISCRIMINATOR, AIRDROP_CONFIG_SEED, AIRDROP_DISCRIMINATOR, AIRDROP_MASTER_DISCRIMINATOR, AIRDROP_MASTER_SEED, AIRDROP_SEED, type AdvancedFeeConfig, type AdvancedFeeConfigArgs, type Affiliate, type AffiliateArgs, type AffiliateMaster, type AffiliateMasterArgs, type Airdrop, type AirdropArgs, type AirdropBoosted, type AirdropBoostedArgs, type AirdropClosed, type AirdropClosedArgs, type AirdropConfig, type AirdropConfigArgs, type AirdropDelegated, type AirdropDelegatedArgs, type AirdropInitialized, type AirdropInitializedArgs, type AirdropMaster, type AirdropMasterArgs, type AirdropUpdated, type AirdropUpdatedArgs, BITMAP_SEED, BITMAP_SIZE, type BaseDurationConfig, type BaseDurationConfigArgs, type BaseFeatureFeeConfig, type BaseFeatureFeeConfigArgs, type BaseFeeConfig, type BaseFeeConfigArgs, CLAIM_AIRDROP_DISCRIMINATOR, CLAIM_MAP_DISCRIMINATOR, CREATE_AIRDROP_DISCRIMINATOR, CREATE_CLAIM_MAP_DISCRIMINATOR, type ClaimAirdropAsyncInput, type ClaimAirdropInput, type ClaimAirdropInstruction, type ClaimAirdropInstructionData, type ClaimAirdropInstructionDataArgs, type ClaimMap, type ClaimMapArgs, type ClaimMapClosed, type ClaimMapClosedArgs, type ClaimMapInitialized, type ClaimMapInitializedArgs, type CreateAirdropAsyncInput, type CreateAirdropInput, type CreateAirdropInstruction, type CreateAirdropInstructionData, type CreateAirdropInstructionDataArgs, type CreateAirdropV0Input, type CreateClaimMapAsyncInput, type CreateClaimMapInput, type CreateClaimMapInstruction, type CreateClaimMapInstructionData, type CreateClaimMapInstructionDataArgs, DEPOSIT_TOKENS_DISCRIMINATOR, DROPSY_ERROR__ACTIVE_BITMAPS_EXIST, DROPSY_ERROR__AIRDROP_ENDED, DROPSY_ERROR__AIRDROP_NOT_ENDED, DROPSY_ERROR__AIRDROP_NOT_STARTED, DROPSY_ERROR__ALREADY_CLAIMED, DROPSY_ERROR__BITMAP_AIRDROP_MISMATCH, DROPSY_ERROR__BITMAP_COUNT_UNDERFLOW, DROPSY_ERROR__BITMAP_TOO_LARGE, DROPSY_ERROR__CLAIM_FEE_TOO_HIGH, DROPSY_ERROR__CREATE_FEE_TOO_HIGH, DROPSY_ERROR__DESTINATION_MINT_MISMATCH, DROPSY_ERROR__DURATION_TOO_SHORT, DROPSY_ERROR__IMMUTABLE_AIRDROP, DROPSY_ERROR__IMMUTABLE_FIELD, DROPSY_ERROR__INSUFFICIENT_DEPOSIT, DROPSY_ERROR__INSUFFICIENT_FUNDS_FOR_FEE, DROPSY_ERROR__INSUFFICIENT_VAULT_FUNDS, DROPSY_ERROR__INVALID_ADMIN, DROPSY_ERROR__INVALID_AFFILIATE_PDA, DROPSY_ERROR__INVALID_AIRDROP_MASTER_ACCOUNT, DROPSY_ERROR__INVALID_AIRDROP_PDA, DROPSY_ERROR__INVALID_AIRDROP_VERSION, DROPSY_ERROR__INVALID_AIRDROP_VESTING_VERSION, DROPSY_ERROR__INVALID_AMOUNT, DROPSY_ERROR__INVALID_BITMAP_ACCOUNT, DROPSY_ERROR__INVALID_BITMAP_INDEX, DROPSY_ERROR__INVALID_DELEGATE_PERMISSION, DROPSY_ERROR__INVALID_DESTINATION_OWNER, DROPSY_ERROR__INVALID_END_TIME, DROPSY_ERROR__INVALID_FEE_VAULT, DROPSY_ERROR__INVALID_FEE_VAULT_CURVE, DROPSY_ERROR__INVALID_FEE_VAULT_OWNER, DROPSY_ERROR__INVALID_MINT, DROPSY_ERROR__INVALID_MINT_OWNER, DROPSY_ERROR__INVALID_MUTABILITY, DROPSY_ERROR__INVALID_OWNER, DROPSY_ERROR__INVALID_PARENT_ACCOUNT, DROPSY_ERROR__INVALID_PDA, DROPSY_ERROR__INVALID_PERCENTAGE, DROPSY_ERROR__INVALID_PROOF, DROPSY_ERROR__INVALID_PUB_KEY, DROPSY_ERROR__INVALID_TIMESTAMP, DROPSY_ERROR__INVALID_TOTAL, DROPSY_ERROR__INVALID_TREASURY_ACCOUNT, DROPSY_ERROR__INVALID_VAULT_AUTHORITY, DROPSY_ERROR__INVALID_VESTING_SCHEDULE, DROPSY_ERROR__INVALID_VESTING_TYPE, DROPSY_ERROR__MAX_AIRDROPS_REACHED, DROPSY_ERROR__MAX_CLAIM_MAPS_REACHED, DROPSY_ERROR__MINT_HAS_FREEZE_AUTHORITY, DROPSY_ERROR__MINT_IS_FROZEN, DROPSY_ERROR__MINT_IS_NOT_INITIALIZED, DROPSY_ERROR__MINT_MISMATCH, DROPSY_ERROR__MISSING_BITMAP_PDA, DROPSY_ERROR__NFT_NOT_ALLOWED, DROPSY_ERROR__NON_ZERO_VALUE_REQUIRED, DROPSY_ERROR__OVERFLOW, DROPSY_ERROR__OWNER_MISMATCH, DROPSY_ERROR__SOURCE_ACCOUNT_FROZEN, DROPSY_ERROR__SOURCE_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__SOURCE_HAS_DELEGATE, DROPSY_ERROR__TOO_MANY_BITMAPS, DROPSY_ERROR__UNAUTHORIZED, DROPSY_ERROR__UN_AUTHORIZED, DROPSY_ERROR__UPDATE_CUTOFF_TIME_PASSED, DROPSY_ERROR__VALUE_BELOW_THE_MINIMUM, DROPSY_ERROR__VALUE_EXCEEDS_MAXIMUM, DROPSY_ERROR__VALUE_OUT_OF_RANGE, DROPSY_ERROR__VAULT_FROZEN, DROPSY_ERROR__VAULT_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__VAULT_HAS_DELEGATE, DROPSY_ERROR__VAULT_MINT_MISMATCH, DROPSY_ERROR__VAULT_NOT_INITIALIZED, DROPSY_ERROR__VAULT_NOT_RENT_EXEMPT, DROPSY_ERROR__VESTING_ACCOUNT_REQUIRED, DROPSY_MASTER_SEED, DROPSY_PROGRAM_ADDRESS, type DepositTokensAsyncInput, type DepositTokensInput, type DepositTokensInstruction, type DepositTokensInstructionData, type DepositTokensInstructionDataArgs, DropsyAccount, type DropsyError, DropsyInstruction, type DropsyPda, INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR, INITIALIZE_MASTER_DISCRIMINATOR, type InitAirdropConfigArgs, type InitAirdropConfigArgsArgs, type InitializeAirdropMasterAsyncInput, type InitializeAirdropMasterInput, type InitializeAirdropMasterInstruction, type InitializeAirdropMasterInstructionData, type InitializeAirdropMasterInstructionDataArgs, type InitializeMasterAsyncInput, type InitializeMasterInput, type InitializeMasterInstruction, type InitializeMasterInstructionData, type InitializeMasterInstructionDataArgs, MASTER_DISCRIMINATOR, MAX_BITMAP_CLAIM, MUTABLE_NONE, type Master, type MasterArgs, type MasterInitialized, type MasterInitializedArgs, PRESALE_SEED, type ParsedClaimAirdropInstruction, type ParsedCreateAirdropInstruction, type ParsedCreateClaimMapInstruction, type ParsedDepositTokensInstruction, type ParsedDropsyInstruction, type ParsedInitializeAirdropMasterInstruction, type ParsedInitializeMasterInstruction, type ParsedRedeemAirdropTokensInstruction, REDEEM_AIRDROP_TOKENS_DISCRIMINATOR, type RedeemAirdropTokensAsyncInput, type RedeemAirdropTokensInput, type RedeemAirdropTokensInstruction, type RedeemAirdropTokensInstructionData, type RedeemAirdropTokensInstructionDataArgs, STATE_DELEGATED, STATE_INITIALIZED, STATE_REDEEMED, type TokensDeposited, type TokensDepositedArgs, type TokensRedeemed, type TokensRedeemedArgs, VAULT_SEED, VERSION_BASIC, VERSION_VESTED, VESTING_SEED, decodeAffiliate, decodeAffiliateMaster, decodeAirdrop, decodeAirdropConfig, decodeAirdropMaster, decodeClaimMap, decodeMaster, fetchAffiliate, fetchAffiliateMaster, fetchAirdrop, fetchAirdropConfig, fetchAirdropMaster, fetchAllAffiliate, fetchAllAffiliateMaster, fetchAllAirdrop, fetchAllAirdropConfig, fetchAllAirdropMaster, fetchAllClaimMap, fetchAllMaster, fetchAllMaybeAffiliate, fetchAllMaybeAffiliateMaster, fetchAllMaybeAirdrop, fetchAllMaybeAirdropConfig, fetchAllMaybeAirdropMaster, fetchAllMaybeClaimMap, fetchAllMaybeMaster, fetchClaimMap, fetchMaster, fetchMaybeAffiliate, fetchMaybeAffiliateMaster, fetchMaybeAirdrop, fetchMaybeAirdropConfig, fetchMaybeAirdropMaster, fetchMaybeClaimMap, fetchMaybeMaster, getAdvancedFeeConfigCodec, getAdvancedFeeConfigDecoder, getAdvancedFeeConfigEncoder, getAffiliateCodec, getAffiliateDecoder, getAffiliateDerivedAddress, getAffiliateDiscriminatorBytes, getAffiliateEncoder, getAffiliateMasterCodec, getAffiliateMasterDecoder, getAffiliateMasterDiscriminatorBytes, getAffiliateMasterEncoder, getAffiliateMasterSize, getAffiliateSize, getAirdropBoostedCodec, getAirdropBoostedDecoder, getAirdropBoostedEncoder, getAirdropClosedCodec, getAirdropClosedDecoder, getAirdropClosedEncoder, getAirdropCodec, getAirdropConfigCodec, getAirdropConfigDecoder, getAirdropConfigDerivedAddress, getAirdropConfigDiscriminatorBytes, getAirdropConfigEncoder, getAirdropConfigSize, getAirdropDecoder, getAirdropDelegatedCodec, getAirdropDelegatedDecoder, getAirdropDelegatedEncoder, getAirdropDerivedAddress, getAirdropDiscriminatorBytes, getAirdropEncoder, getAirdropInitializedCodec, getAirdropInitializedDecoder, getAirdropInitializedEncoder, getAirdropMasterCodec, getAirdropMasterDecoder, getAirdropMasterDerivedAddress, getAirdropMasterDiscriminatorBytes, getAirdropMasterEncoder, getAirdropMasterSize, getAirdropSize, getAirdropUpdatedCodec, getAirdropUpdatedDecoder, getAirdropUpdatedEncoder, getBaseDurationConfigCodec, getBaseDurationConfigDecoder, getBaseDurationConfigEncoder, getBaseFeatureFeeConfigCodec, getBaseFeatureFeeConfigDecoder, getBaseFeatureFeeConfigEncoder, getBaseFeeConfigCodec, getBaseFeeConfigDecoder, getBaseFeeConfigEncoder, getClaimAirdropDiscriminatorBytes, getClaimAirdropInstruction, getClaimAirdropInstructionAsync, getClaimAirdropInstructionDataCodec, getClaimAirdropInstructionDataDecoder, getClaimAirdropInstructionDataEncoder, getClaimMapClosedCodec, getClaimMapClosedDecoder, getClaimMapClosedEncoder, getClaimMapCodec, getClaimMapDecoder, getClaimMapDerivedAddress, getClaimMapDiscriminatorBytes, getClaimMapEncoder, getClaimMapInitializedCodec, getClaimMapInitializedDecoder, getClaimMapInitializedEncoder, getClaimMapSize, getCreateAirdropDiscriminatorBytes, getCreateAirdropInstruction, getCreateAirdropInstructionAsync, getCreateAirdropInstructionDataCodec, getCreateAirdropInstructionDataDecoder, getCreateAirdropInstructionDataEncoder, getCreateAirdropV0Instruction, getCreateClaimMapDiscriminatorBytes, getCreateClaimMapInstruction, getCreateClaimMapInstructionAsync, getCreateClaimMapInstructionDataCodec, getCreateClaimMapInstructionDataDecoder, getCreateClaimMapInstructionDataEncoder, getDepositTokensDiscriminatorBytes, getDepositTokensInstruction, getDepositTokensInstructionAsync, getDepositTokensInstructionDataCodec, getDepositTokensInstructionDataDecoder, getDepositTokensInstructionDataEncoder, getDropsyDerivedAddress, getDropsyErrorMessage, getInitAirdropConfigArgsCodec, getInitAirdropConfigArgsDecoder, getInitAirdropConfigArgsEncoder, getInitializeAirdropMasterDiscriminatorBytes, getInitializeAirdropMasterInstruction, getInitializeAirdropMasterInstructionAsync, getInitializeAirdropMasterInstructionDataCodec, getInitializeAirdropMasterInstructionDataDecoder, getInitializeAirdropMasterInstructionDataEncoder, getInitializeMasterDiscriminatorBytes, getInitializeMasterInstruction, getInitializeMasterInstructionAsync, getInitializeMasterInstructionDataCodec, getInitializeMasterInstructionDataDecoder, getInitializeMasterInstructionDataEncoder, getMasterCodec, getMasterDecoder, getMasterDerivedAddress, getMasterDiscriminatorBytes, getMasterEncoder, getMasterInitializedCodec, getMasterInitializedDecoder, getMasterInitializedEncoder, getMasterSize, getRedeemAirdropTokensDiscriminatorBytes, getRedeemAirdropTokensInstruction, getRedeemAirdropTokensInstructionAsync, getRedeemAirdropTokensInstructionDataCodec, getRedeemAirdropTokensInstructionDataDecoder, getRedeemAirdropTokensInstructionDataEncoder, getTokensDepositedCodec, getTokensDepositedDecoder, getTokensDepositedEncoder, getTokensRedeemedCodec, getTokensRedeemedDecoder, getTokensRedeemedEncoder, identifyDropsyAccount, identifyDropsyInstruction, isDropsyError, parseClaimAirdropInstruction, parseCreateAirdropInstruction, parseCreateClaimMapInstruction, parseDepositTokensInstruction, parseInitializeAirdropMasterInstruction, parseInitializeMasterInstruction, parseRedeemAirdropTokensInstruction };
|
|
1123
|
+
export { AIRDROP_CONFIG_DISCRIMINATOR, AIRDROP_DISCRIMINATOR, AIRDROP_MASTER_DISCRIMINATOR, type Airdrop, type AirdropArgs, type AirdropConfig, type AirdropConfigArgs, type AirdropInitialized, type AirdropInitializedArgs, type AirdropMaster, type AirdropMasterArgs, BITMAP_ACCOUNT_DISCRIMINATOR, type BitmapAccount, type BitmapAccountArgs, type BitmapClosed, type BitmapClosedArgs, type BitmapInitialized, type BitmapInitializedArgs, CLAIM_AIRDROP_DISCRIMINATOR, CREATE_AIRDROP_DISCRIMINATOR, CREATE_BITMAP_DISCRIMINATOR, type ClaimAirdropAsyncInput, type ClaimAirdropInput, type ClaimAirdropInstruction, type ClaimAirdropInstructionData, type ClaimAirdropInstructionDataArgs, type CreateAirdropAsyncInput, type CreateAirdropInput, type CreateAirdropInstruction, type CreateAirdropInstructionData, type CreateAirdropInstructionDataArgs, type CreateBitmapAsyncInput, type CreateBitmapInput, type CreateBitmapInstruction, type CreateBitmapInstructionData, type CreateBitmapInstructionDataArgs, DEPOSIT_TOKENS_DISCRIMINATOR, DROPSY_AIRDROP_ERROR__ACTION_FEE_TOO_HIGH, DROPSY_AIRDROP_ERROR__ACTIVE_BITMAPS_EXIST, DROPSY_AIRDROP_ERROR__AIRDROP_ENDED, DROPSY_AIRDROP_ERROR__AIRDROP_NOT_ENDED, DROPSY_AIRDROP_ERROR__AIRDROP_NOT_STARTED, DROPSY_AIRDROP_ERROR__ALREADY_CLAIMED, DROPSY_AIRDROP_ERROR__BITMAP_AIRDROP_MISMATCH, DROPSY_AIRDROP_ERROR__BITMAP_COUNT_UNDERFLOW, DROPSY_AIRDROP_ERROR__BITMAP_TOO_LARGE, DROPSY_AIRDROP_ERROR__CLAIM_FEE_TOO_HIGH, DROPSY_AIRDROP_ERROR__CREATE_FEE_TOO_HIGH, DROPSY_AIRDROP_ERROR__DESTINATION_MINT_MISMATCH, DROPSY_AIRDROP_ERROR__DURATION_TOO_SHORT, DROPSY_AIRDROP_ERROR__IMMUTABLE_AIRDROP, DROPSY_AIRDROP_ERROR__IMMUTABLE_FIELD, DROPSY_AIRDROP_ERROR__INSUFFICIENT_DEPOSIT, DROPSY_AIRDROP_ERROR__INSUFFICIENT_FUNDS_FOR_FEE, DROPSY_AIRDROP_ERROR__INSUFFICIENT_VAULT_FUNDS, DROPSY_AIRDROP_ERROR__INVALID_ADMIN, DROPSY_AIRDROP_ERROR__INVALID_AFFILIATE_PDA, DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_PDA, DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VERSION, DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VESTING_VERSION, DROPSY_AIRDROP_ERROR__INVALID_AMOUNT, DROPSY_AIRDROP_ERROR__INVALID_BITMAP_ACCOUNT, DROPSY_AIRDROP_ERROR__INVALID_BITMAP_INDEX, DROPSY_AIRDROP_ERROR__INVALID_DELEGATE_PERMISSION, DROPSY_AIRDROP_ERROR__INVALID_DESTINATION_OWNER, DROPSY_AIRDROP_ERROR__INVALID_END_TIME, DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT, DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_CURVE, DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_OWNER, DROPSY_AIRDROP_ERROR__INVALID_MINT, DROPSY_AIRDROP_ERROR__INVALID_MINT_OWNER, DROPSY_AIRDROP_ERROR__INVALID_MUTABILITY, DROPSY_AIRDROP_ERROR__INVALID_OWNER, DROPSY_AIRDROP_ERROR__INVALID_PARENT_ACCOUNT, DROPSY_AIRDROP_ERROR__INVALID_PDA, DROPSY_AIRDROP_ERROR__INVALID_PERCENTAGE, DROPSY_AIRDROP_ERROR__INVALID_PROOF, DROPSY_AIRDROP_ERROR__INVALID_PUB_KEY, DROPSY_AIRDROP_ERROR__INVALID_TIMESTAMP, DROPSY_AIRDROP_ERROR__INVALID_TOTAL, DROPSY_AIRDROP_ERROR__INVALID_TREASURY_ACCOUNT, DROPSY_AIRDROP_ERROR__INVALID_VAULT_AUTHORITY, DROPSY_AIRDROP_ERROR__INVALID_VESTING_SCHEDULE, DROPSY_AIRDROP_ERROR__INVALID_VESTING_TYPE, DROPSY_AIRDROP_ERROR__MINT_HAS_FREEZE_AUTHORITY, DROPSY_AIRDROP_ERROR__MINT_IS_FROZEN, DROPSY_AIRDROP_ERROR__MINT_IS_NOT_INITIALIZED, DROPSY_AIRDROP_ERROR__MINT_MISMATCH, DROPSY_AIRDROP_ERROR__MISSING_BITMAP_PDA, DROPSY_AIRDROP_ERROR__NFT_NOT_ALLOWED, DROPSY_AIRDROP_ERROR__NON_ZERO_VALUE_REQUIRED, DROPSY_AIRDROP_ERROR__OVERFLOW, DROPSY_AIRDROP_ERROR__OWNER_MISMATCH, DROPSY_AIRDROP_ERROR__SOURCE_ACCOUNT_FROZEN, DROPSY_AIRDROP_ERROR__SOURCE_HAS_CLOSE_AUTHORITY, DROPSY_AIRDROP_ERROR__SOURCE_HAS_DELEGATE, DROPSY_AIRDROP_ERROR__TOO_MANY_BITMAPS, DROPSY_AIRDROP_ERROR__UNAUTHORIZED, DROPSY_AIRDROP_ERROR__UN_AUTHORIZED, DROPSY_AIRDROP_ERROR__UPDATE_CUTOFF_TIME_PASSED, DROPSY_AIRDROP_ERROR__VALUE_BELOW_THE_MINIMUM, DROPSY_AIRDROP_ERROR__VALUE_EXCEEDS_MAXIMUM, DROPSY_AIRDROP_ERROR__VALUE_OUT_OF_RANGE, DROPSY_AIRDROP_ERROR__VAULT_FROZEN, DROPSY_AIRDROP_ERROR__VAULT_HAS_CLOSE_AUTHORITY, DROPSY_AIRDROP_ERROR__VAULT_HAS_DELEGATE, DROPSY_AIRDROP_ERROR__VAULT_MINT_MISMATCH, DROPSY_AIRDROP_ERROR__VAULT_NOT_INITIALIZED, DROPSY_AIRDROP_ERROR__VAULT_NOT_RENT_EXEMPT, DROPSY_AIRDROP_ERROR__VESTING_ACCOUNT_REQUIRED, DROPSY_AIRDROP_PROGRAM_ADDRESS, type DepositTokensAsyncInput, type DepositTokensInput, type DepositTokensInstruction, type DepositTokensInstructionData, type DepositTokensInstructionDataArgs, DropsyAirdropAccount, type DropsyAirdropError, DropsyAirdropInstruction, INITIALIZE_AIRDROP_CONFIG_DISCRIMINATOR, INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR, type InitializeAirdropConfigAsyncInput, type InitializeAirdropConfigInput, type InitializeAirdropConfigInstruction, type InitializeAirdropConfigInstructionData, type InitializeAirdropConfigInstructionDataArgs, type InitializeAirdropMasterAsyncInput, type InitializeAirdropMasterInput, type InitializeAirdropMasterInstruction, type InitializeAirdropMasterInstructionData, type InitializeAirdropMasterInstructionDataArgs, type ParsedClaimAirdropInstruction, type ParsedCreateAirdropInstruction, type ParsedCreateBitmapInstruction, type ParsedDepositTokensInstruction, type ParsedDropsyAirdropInstruction, type ParsedInitializeAirdropConfigInstruction, type ParsedInitializeAirdropMasterInstruction, type TokensDeposited, type TokensDepositedArgs, type TokensRedeemed, type TokensRedeemedArgs, decodeAirdrop, decodeAirdropConfig, decodeAirdropMaster, decodeBitmapAccount, fetchAirdrop, fetchAirdropConfig, fetchAirdropMaster, fetchAllAirdrop, fetchAllAirdropConfig, fetchAllAirdropMaster, fetchAllBitmapAccount, fetchAllMaybeAirdrop, fetchAllMaybeAirdropConfig, fetchAllMaybeAirdropMaster, fetchAllMaybeBitmapAccount, fetchBitmapAccount, fetchMaybeAirdrop, fetchMaybeAirdropConfig, fetchMaybeAirdropMaster, fetchMaybeBitmapAccount, getAirdropCodec, getAirdropConfigCodec, getAirdropConfigDecoder, getAirdropConfigDiscriminatorBytes, getAirdropConfigEncoder, getAirdropConfigSize, getAirdropDecoder, getAirdropDiscriminatorBytes, getAirdropEncoder, getAirdropInitializedCodec, getAirdropInitializedDecoder, getAirdropInitializedEncoder, getAirdropMasterCodec, getAirdropMasterDecoder, getAirdropMasterDiscriminatorBytes, getAirdropMasterEncoder, getAirdropMasterSize, getAirdropSize, getBitmapAccountCodec, getBitmapAccountDecoder, getBitmapAccountDiscriminatorBytes, getBitmapAccountEncoder, getBitmapAccountSize, getBitmapClosedCodec, getBitmapClosedDecoder, getBitmapClosedEncoder, getBitmapInitializedCodec, getBitmapInitializedDecoder, getBitmapInitializedEncoder, getClaimAirdropDiscriminatorBytes, getClaimAirdropInstruction, getClaimAirdropInstructionAsync, getClaimAirdropInstructionDataCodec, getClaimAirdropInstructionDataDecoder, getClaimAirdropInstructionDataEncoder, getCreateAirdropDiscriminatorBytes, getCreateAirdropInstruction, getCreateAirdropInstructionAsync, getCreateAirdropInstructionDataCodec, getCreateAirdropInstructionDataDecoder, getCreateAirdropInstructionDataEncoder, getCreateBitmapDiscriminatorBytes, getCreateBitmapInstruction, getCreateBitmapInstructionAsync, getCreateBitmapInstructionDataCodec, getCreateBitmapInstructionDataDecoder, getCreateBitmapInstructionDataEncoder, getDepositTokensDiscriminatorBytes, getDepositTokensInstruction, getDepositTokensInstructionAsync, getDepositTokensInstructionDataCodec, getDepositTokensInstructionDataDecoder, getDepositTokensInstructionDataEncoder, getDropsyAirdropErrorMessage, getInitializeAirdropConfigDiscriminatorBytes, getInitializeAirdropConfigInstruction, getInitializeAirdropConfigInstructionAsync, getInitializeAirdropConfigInstructionDataCodec, getInitializeAirdropConfigInstructionDataDecoder, getInitializeAirdropConfigInstructionDataEncoder, getInitializeAirdropMasterDiscriminatorBytes, getInitializeAirdropMasterInstruction, getInitializeAirdropMasterInstructionAsync, getInitializeAirdropMasterInstructionDataCodec, getInitializeAirdropMasterInstructionDataDecoder, getInitializeAirdropMasterInstructionDataEncoder, getTokensDepositedCodec, getTokensDepositedDecoder, getTokensDepositedEncoder, getTokensRedeemedCodec, getTokensRedeemedDecoder, getTokensRedeemedEncoder, identifyDropsyAirdropAccount, identifyDropsyAirdropInstruction, isDropsyAirdropError, parseClaimAirdropInstruction, parseCreateAirdropInstruction, parseCreateBitmapInstruction, parseDepositTokensInstruction, parseDropsyAirdropInstruction, parseInitializeAirdropConfigInstruction, parseInitializeAirdropMasterInstruction };
|