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