@dropsy/airdrop 0.2.7 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,100 +1,4 @@
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;
1
+ import { ReadonlyUint8Array, Address, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, Instruction, InstructionWithData, TransactionSigner, AccountMeta, InstructionWithAccounts, WritableAccount, WritableSignerAccount, AccountSignerMeta, ReadonlyAccount, Codec, Decoder, Encoder, OptionOrNullable, Option } from '@solana/kit';
98
2
 
99
3
  /**
100
4
  * This code was AUTOGENERATED using the Codama library.
@@ -105,14 +9,13 @@ declare function getAffiliateMasterSize(): number;
105
9
  */
106
10
 
107
11
  declare const AIRDROP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
108
- declare function getAirdropDiscriminatorBytes(): ReadonlyUint8Array;
12
+ declare function getAirdropDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
109
13
  type Airdrop = {
110
14
  discriminator: ReadonlyUint8Array;
111
15
  master: Address;
112
16
  authority: Address;
113
17
  mint: Address;
114
18
  delegateAuthority: Address;
115
- presale: Address;
116
19
  merkleRoot: ReadonlyUint8Array;
117
20
  supply: bigint;
118
21
  boost: bigint;
@@ -131,7 +34,6 @@ type AirdropArgs = {
131
34
  authority: Address;
132
35
  mint: Address;
133
36
  delegateAuthority: Address;
134
- presale: Address;
135
37
  merkleRoot: ReadonlyUint8Array;
136
38
  supply: number | bigint;
137
39
  boost: number | bigint;
@@ -168,29 +70,43 @@ declare function getAirdropSize(): number;
168
70
  */
169
71
 
170
72
  declare const AIRDROP_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
171
- declare function getAirdropConfigDiscriminatorBytes(): ReadonlyUint8Array;
73
+ declare function getAirdropConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
172
74
  type AirdropConfig = {
173
75
  discriminator: ReadonlyUint8Array;
174
- merkleRoot: ReadonlyUint8Array;
76
+ authority: Address;
77
+ protocolTreasury: Address;
78
+ wlRoot: ReadonlyUint8Array;
79
+ protocolFee: bigint;
80
+ airdropMasterCreateFee: bigint;
81
+ maxClaimFee: bigint;
82
+ maxActionFee: bigint;
175
83
  minAirdropDuration: bigint;
84
+ defaultAirdropDuration: bigint;
176
85
  maxAirdropDuration: bigint;
177
86
  updateGracePeriod: bigint;
178
- createAirdropMasterFee: bigint;
179
- upgradeAirdropMasterFee: bigint;
180
- withdrawFeeBasis: bigint;
181
- perBoostAmount: bigint;
87
+ masterFeeBps: number;
88
+ version: number;
182
89
  bump: number;
90
+ padding: ReadonlyUint8Array;
91
+ reserved: ReadonlyUint8Array;
183
92
  };
184
93
  type AirdropConfigArgs = {
185
- merkleRoot: ReadonlyUint8Array;
94
+ authority: Address;
95
+ protocolTreasury: Address;
96
+ wlRoot: ReadonlyUint8Array;
97
+ protocolFee: number | bigint;
98
+ airdropMasterCreateFee: number | bigint;
99
+ maxClaimFee: number | bigint;
100
+ maxActionFee: number | bigint;
186
101
  minAirdropDuration: number | bigint;
102
+ defaultAirdropDuration: number | bigint;
187
103
  maxAirdropDuration: number | bigint;
188
104
  updateGracePeriod: number | bigint;
189
- createAirdropMasterFee: number | bigint;
190
- upgradeAirdropMasterFee: number | bigint;
191
- withdrawFeeBasis: number | bigint;
192
- perBoostAmount: number | bigint;
105
+ masterFeeBps: number;
106
+ version: number;
193
107
  bump: number;
108
+ padding: ReadonlyUint8Array;
109
+ reserved: ReadonlyUint8Array;
194
110
  };
195
111
  /** Gets the encoder for {@link AirdropConfigArgs} account data. */
196
112
  declare function getAirdropConfigEncoder(): FixedSizeEncoder<AirdropConfigArgs>;
@@ -215,39 +131,37 @@ declare function getAirdropConfigSize(): number;
215
131
  */
216
132
 
217
133
  declare const AIRDROP_MASTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
218
- declare function getAirdropMasterDiscriminatorBytes(): ReadonlyUint8Array;
134
+ declare function getAirdropMasterDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
219
135
  type AirdropMaster = {
220
136
  discriminator: ReadonlyUint8Array;
221
- affiliateMaster: Address;
137
+ creator: Address;
222
138
  authority: Address;
223
- merkleRoot: ReadonlyUint8Array;
224
- airdropsCreated: bigint;
225
- maxAirdropsAllowed: bigint;
226
- bitmapCreated: bigint;
227
- maxBitmapAllowed: bigint;
228
- airdropCreationFee: bigint;
229
- bitmapCreationFee: bigint;
139
+ treasury: Address;
140
+ points: bigint;
141
+ totalClaimCount: bigint;
142
+ monetizedClaimQuota: bigint;
143
+ monetizedClaimCount: bigint;
230
144
  airdropUpdateFee: bigint;
145
+ airdropCreationFee: bigint;
231
146
  airdropClaimFee: bigint;
232
147
  airdropDelegateFee: bigint;
233
- airdropDepositFee: bigint;
148
+ bitmapCreationFee: bigint;
234
149
  bump: number;
235
150
  padding: ReadonlyUint8Array;
236
151
  };
237
152
  type AirdropMasterArgs = {
238
- affiliateMaster: Address;
153
+ creator: Address;
239
154
  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;
155
+ treasury: Address;
156
+ points: number | bigint;
157
+ totalClaimCount: number | bigint;
158
+ monetizedClaimQuota: number | bigint;
159
+ monetizedClaimCount: number | bigint;
247
160
  airdropUpdateFee: number | bigint;
161
+ airdropCreationFee: number | bigint;
248
162
  airdropClaimFee: number | bigint;
249
163
  airdropDelegateFee: number | bigint;
250
- airdropDepositFee: number | bigint;
164
+ bitmapCreationFee: number | bigint;
251
165
  bump: number;
252
166
  padding: ReadonlyUint8Array;
253
167
  };
@@ -273,79 +187,40 @@ declare function getAirdropMasterSize(): number;
273
187
  * @see https://github.com/codama-idl/codama
274
188
  */
275
189
 
276
- declare const CLAIM_MAP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
277
- declare function getClaimMapDiscriminatorBytes(): ReadonlyUint8Array;
278
- type ClaimMap = {
190
+ declare const BITMAP_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
191
+ declare function getBitmapAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
192
+ type BitmapAccount = {
279
193
  discriminator: ReadonlyUint8Array;
280
194
  authority: Address;
281
195
  airdrop: Address;
282
- claimedBitmap: ReadonlyUint8Array;
283
196
  total: number;
197
+ claimedBitmap: ReadonlyUint8Array;
284
198
  id: number;
285
199
  version: number;
286
200
  bump: number;
287
201
  };
288
- type ClaimMapArgs = {
202
+ type BitmapAccountArgs = {
289
203
  authority: Address;
290
204
  airdrop: Address;
291
- claimedBitmap: ReadonlyUint8Array;
292
205
  total: number;
206
+ claimedBitmap: ReadonlyUint8Array;
293
207
  id: number;
294
208
  version: number;
295
209
  bump: number;
296
210
  };
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;
211
+ /** Gets the encoder for {@link BitmapAccountArgs} account data. */
212
+ declare function getBitmapAccountEncoder(): FixedSizeEncoder<BitmapAccountArgs>;
213
+ /** Gets the decoder for {@link BitmapAccount} account data. */
214
+ declare function getBitmapAccountDecoder(): FixedSizeDecoder<BitmapAccount>;
215
+ /** Gets the codec for {@link BitmapAccount} account data. */
216
+ declare function getBitmapAccountCodec(): FixedSizeCodec<BitmapAccountArgs, BitmapAccount>;
217
+ declare function decodeBitmapAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<BitmapAccount, TAddress>;
218
+ declare function decodeBitmapAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<BitmapAccount, TAddress>;
219
+ declare function fetchBitmapAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<BitmapAccount, TAddress>>;
220
+ declare function fetchMaybeBitmapAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<BitmapAccount, TAddress>>;
221
+ declare function fetchAllBitmapAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<BitmapAccount>[]>;
222
+ declare function fetchAllMaybeBitmapAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<BitmapAccount>[]>;
223
+ declare function getBitmapAccountSize(): number;
349
224
 
350
225
  /**
351
226
  * This code was AUTOGENERATED using the Codama library.
@@ -356,158 +231,154 @@ declare function getMasterSize(): number;
356
231
  */
357
232
 
358
233
  /** ValueOutOfRange: Value out of range */
359
- declare const DROPSY_ERROR__VALUE_OUT_OF_RANGE = 6001;
234
+ declare const DROPSY_AIRDROP_ERROR__VALUE_OUT_OF_RANGE = 6001;
360
235
  /** ValueBelowTheMinimum: Value below the minimum */
361
- declare const DROPSY_ERROR__VALUE_BELOW_THE_MINIMUM = 6002;
236
+ declare const DROPSY_AIRDROP_ERROR__VALUE_BELOW_THE_MINIMUM = 6002;
362
237
  /** ValueExceedsMaximum: Value exceeds the maximum */
363
- declare const DROPSY_ERROR__VALUE_EXCEEDS_MAXIMUM = 6003;
238
+ declare const DROPSY_AIRDROP_ERROR__VALUE_EXCEEDS_MAXIMUM = 6003;
364
239
  /** InvalidPercentage: Invalid percentage (must be 0-100) */
365
- declare const DROPSY_ERROR__INVALID_PERCENTAGE = 6004;
240
+ declare const DROPSY_AIRDROP_ERROR__INVALID_PERCENTAGE = 6004;
366
241
  /** InvalidTimestamp: Invalid timestamp or duration */
367
- declare const DROPSY_ERROR__INVALID_TIMESTAMP = 6006;
242
+ declare const DROPSY_AIRDROP_ERROR__INVALID_TIMESTAMP = 6006;
368
243
  /** NonZeroValueRequired: Number must be non-zero */
369
- declare const DROPSY_ERROR__NON_ZERO_VALUE_REQUIRED = 6007;
244
+ declare const DROPSY_AIRDROP_ERROR__NON_ZERO_VALUE_REQUIRED = 6007;
370
245
  /** InvalidPubKey: Invalid Pubkey provided */
371
- declare const DROPSY_ERROR__INVALID_PUB_KEY = 6008;
246
+ declare const DROPSY_AIRDROP_ERROR__INVALID_PUB_KEY = 6008;
372
247
  /** UnAuthorized: Invalid Authority Pubkey */
373
- declare const DROPSY_ERROR__UN_AUTHORIZED = 6009;
248
+ declare const DROPSY_AIRDROP_ERROR__UN_AUTHORIZED = 6009;
374
249
  /** InvalidMutability: Invalid mutability Value */
375
- declare const DROPSY_ERROR__INVALID_MUTABILITY = 6010;
250
+ declare const DROPSY_AIRDROP_ERROR__INVALID_MUTABILITY = 6010;
376
251
  /** InvalidDelegatePermission: Invalid delegate permission Value */
377
- declare const DROPSY_ERROR__INVALID_DELEGATE_PERMISSION = 6011;
252
+ declare const DROPSY_AIRDROP_ERROR__INVALID_DELEGATE_PERMISSION = 6011;
253
+ /** ClaimFeeTooHigh: Claim fee exceeds maximum allowed */
254
+ declare const DROPSY_AIRDROP_ERROR__CLAIM_FEE_TOO_HIGH = 6012;
255
+ /** ActionFeeTooHigh: Action fee exceeds maximum allowed */
256
+ declare const DROPSY_AIRDROP_ERROR__ACTION_FEE_TOO_HIGH = 6013;
378
257
  /** AirdropNotStarted: Airdrop has not started yet */
379
- declare const DROPSY_ERROR__AIRDROP_NOT_STARTED = 6100;
258
+ declare const DROPSY_AIRDROP_ERROR__AIRDROP_NOT_STARTED = 6100;
380
259
  /** AirdropEnded: Airdrop has already ended */
381
- declare const DROPSY_ERROR__AIRDROP_ENDED = 6101;
260
+ declare const DROPSY_AIRDROP_ERROR__AIRDROP_ENDED = 6101;
382
261
  /** AirdropNotEnded: Airdrop not yet ended */
383
- declare const DROPSY_ERROR__AIRDROP_NOT_ENDED = 6102;
262
+ declare const DROPSY_AIRDROP_ERROR__AIRDROP_NOT_ENDED = 6102;
384
263
  /** DurationTooShort: Airdrop duration must be at least 24 hours */
385
- declare const DROPSY_ERROR__DURATION_TOO_SHORT = 6103;
264
+ declare const DROPSY_AIRDROP_ERROR__DURATION_TOO_SHORT = 6103;
386
265
  /** InvalidEndTime: Airdrop must end at least 24 hours in the future */
387
- declare const DROPSY_ERROR__INVALID_END_TIME = 6104;
266
+ declare const DROPSY_AIRDROP_ERROR__INVALID_END_TIME = 6104;
388
267
  /** InvalidVestingSchedule: Vesting schedule is invalid */
389
- declare const DROPSY_ERROR__INVALID_VESTING_SCHEDULE = 6105;
268
+ declare const DROPSY_AIRDROP_ERROR__INVALID_VESTING_SCHEDULE = 6105;
390
269
  /** ImmutableAirdrop: Airdrop is immutable */
391
- declare const DROPSY_ERROR__IMMUTABLE_AIRDROP = 6106;
270
+ declare const DROPSY_AIRDROP_ERROR__IMMUTABLE_AIRDROP = 6106;
392
271
  /** ImmutableField: The target field is immutable */
393
- declare const DROPSY_ERROR__IMMUTABLE_FIELD = 6107;
272
+ declare const DROPSY_AIRDROP_ERROR__IMMUTABLE_FIELD = 6107;
394
273
  /** 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;
274
+ declare const DROPSY_AIRDROP_ERROR__UPDATE_CUTOFF_TIME_PASSED = 6108;
400
275
  /** InvalidAdmin: This Request Requires Admin Privileges */
401
- declare const DROPSY_ERROR__INVALID_ADMIN = 6200;
276
+ declare const DROPSY_AIRDROP_ERROR__INVALID_ADMIN = 6200;
402
277
  /** OwnerMismatch: Airdrop owner mismatch */
403
- declare const DROPSY_ERROR__OWNER_MISMATCH = 6201;
278
+ declare const DROPSY_AIRDROP_ERROR__OWNER_MISMATCH = 6201;
404
279
  /** InvalidVaultAuthority: Invalid vault authority */
405
- declare const DROPSY_ERROR__INVALID_VAULT_AUTHORITY = 6202;
280
+ declare const DROPSY_AIRDROP_ERROR__INVALID_VAULT_AUTHORITY = 6202;
406
281
  /** InvalidDestinationOwner: Destination account owner is not the signer */
407
- declare const DROPSY_ERROR__INVALID_DESTINATION_OWNER = 6203;
282
+ declare const DROPSY_AIRDROP_ERROR__INVALID_DESTINATION_OWNER = 6203;
408
283
  /** InvalidAffiliatePda: Mismatched affiliate PDA */
409
- declare const DROPSY_ERROR__INVALID_AFFILIATE_PDA = 6204;
284
+ declare const DROPSY_AIRDROP_ERROR__INVALID_AFFILIATE_PDA = 6204;
410
285
  /** Unauthorized: Not Authorized */
411
- declare const DROPSY_ERROR__UNAUTHORIZED = 6205;
286
+ declare const DROPSY_AIRDROP_ERROR__UNAUTHORIZED = 6205;
412
287
  /** InvalidOwner: Transaction sender is not the owner */
413
- declare const DROPSY_ERROR__INVALID_OWNER = 6206;
288
+ declare const DROPSY_AIRDROP_ERROR__INVALID_OWNER = 6206;
414
289
  /** InvalidMint: Mint does not match stored state */
415
- declare const DROPSY_ERROR__INVALID_MINT = 6300;
290
+ declare const DROPSY_AIRDROP_ERROR__INVALID_MINT = 6300;
416
291
  /** MintMismatch: Provided mint doesn't match expected mint */
417
- declare const DROPSY_ERROR__MINT_MISMATCH = 6301;
292
+ declare const DROPSY_AIRDROP_ERROR__MINT_MISMATCH = 6301;
418
293
  /** VaultMintMismatch: Vault mint doesn't match airdrop mint */
419
- declare const DROPSY_ERROR__VAULT_MINT_MISMATCH = 6302;
294
+ declare const DROPSY_AIRDROP_ERROR__VAULT_MINT_MISMATCH = 6302;
420
295
  /** DestinationMintMismatch: Destination mint doesn't match */
421
- declare const DROPSY_ERROR__DESTINATION_MINT_MISMATCH = 6303;
296
+ declare const DROPSY_AIRDROP_ERROR__DESTINATION_MINT_MISMATCH = 6303;
422
297
  /** MintIsFrozen: Mint is frozen */
423
- declare const DROPSY_ERROR__MINT_IS_FROZEN = 6304;
298
+ declare const DROPSY_AIRDROP_ERROR__MINT_IS_FROZEN = 6304;
424
299
  /** InvalidMintOwner: Invalid token program owner */
425
- declare const DROPSY_ERROR__INVALID_MINT_OWNER = 6305;
300
+ declare const DROPSY_AIRDROP_ERROR__INVALID_MINT_OWNER = 6305;
426
301
  /** MintIsNotInitialized: Mint must be initialized */
427
- declare const DROPSY_ERROR__MINT_IS_NOT_INITIALIZED = 6306;
302
+ declare const DROPSY_AIRDROP_ERROR__MINT_IS_NOT_INITIALIZED = 6306;
428
303
  /** MintHasFreezeAuthority: Mint has freeze authority */
429
- declare const DROPSY_ERROR__MINT_HAS_FREEZE_AUTHORITY = 6307;
304
+ declare const DROPSY_AIRDROP_ERROR__MINT_HAS_FREEZE_AUTHORITY = 6307;
430
305
  /** NftNotAllowed: Fungible tokens only (no NFTs) */
431
- declare const DROPSY_ERROR__NFT_NOT_ALLOWED = 6308;
306
+ declare const DROPSY_AIRDROP_ERROR__NFT_NOT_ALLOWED = 6308;
432
307
  /** VaultHasDelegate: Vault has delegate set */
433
- declare const DROPSY_ERROR__VAULT_HAS_DELEGATE = 6401;
308
+ declare const DROPSY_AIRDROP_ERROR__VAULT_HAS_DELEGATE = 6401;
434
309
  /** VaultFrozen: Vault is frozen */
435
- declare const DROPSY_ERROR__VAULT_FROZEN = 6402;
310
+ declare const DROPSY_AIRDROP_ERROR__VAULT_FROZEN = 6402;
436
311
  /** VaultHasCloseAuthority: Vault has close authority */
437
- declare const DROPSY_ERROR__VAULT_HAS_CLOSE_AUTHORITY = 6403;
312
+ declare const DROPSY_AIRDROP_ERROR__VAULT_HAS_CLOSE_AUTHORITY = 6403;
438
313
  /** InvalidAirdropPda: Invalid vault account */
439
- declare const DROPSY_ERROR__INVALID_AIRDROP_PDA = 6404;
314
+ declare const DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_PDA = 6404;
440
315
  /** VaultNotInitialized: Vault not initialized */
441
- declare const DROPSY_ERROR__VAULT_NOT_INITIALIZED = 6405;
316
+ declare const DROPSY_AIRDROP_ERROR__VAULT_NOT_INITIALIZED = 6405;
442
317
  /** InsufficientVaultFunds: Insufficient vault funds */
443
- declare const DROPSY_ERROR__INSUFFICIENT_VAULT_FUNDS = 6406;
318
+ declare const DROPSY_AIRDROP_ERROR__INSUFFICIENT_VAULT_FUNDS = 6406;
444
319
  /** SourceHasDelegate: Source has delegate set */
445
- declare const DROPSY_ERROR__SOURCE_HAS_DELEGATE = 6450;
320
+ declare const DROPSY_AIRDROP_ERROR__SOURCE_HAS_DELEGATE = 6450;
446
321
  /** SourceAccountFrozen: Source account is frozen */
447
- declare const DROPSY_ERROR__SOURCE_ACCOUNT_FROZEN = 6451;
322
+ declare const DROPSY_AIRDROP_ERROR__SOURCE_ACCOUNT_FROZEN = 6451;
448
323
  /** SourceHasCloseAuthority: Source has close authority */
449
- declare const DROPSY_ERROR__SOURCE_HAS_CLOSE_AUTHORITY = 6452;
324
+ declare const DROPSY_AIRDROP_ERROR__SOURCE_HAS_CLOSE_AUTHORITY = 6452;
450
325
  /** InvalidProof: Invalid merkle proof */
451
- declare const DROPSY_ERROR__INVALID_PROOF = 6500;
326
+ declare const DROPSY_AIRDROP_ERROR__INVALID_PROOF = 6500;
452
327
  /** AlreadyClaimed: Tokens already claimed */
453
- declare const DROPSY_ERROR__ALREADY_CLAIMED = 6501;
328
+ declare const DROPSY_AIRDROP_ERROR__ALREADY_CLAIMED = 6501;
454
329
  /** MissingBitmapPda: Missing bitmap PDA */
455
- declare const DROPSY_ERROR__MISSING_BITMAP_PDA = 6502;
330
+ declare const DROPSY_AIRDROP_ERROR__MISSING_BITMAP_PDA = 6502;
456
331
  /** InvalidBitmapAccount: Invalid bitmap account */
457
- declare const DROPSY_ERROR__INVALID_BITMAP_ACCOUNT = 6503;
332
+ declare const DROPSY_AIRDROP_ERROR__INVALID_BITMAP_ACCOUNT = 6503;
458
333
  /** InvalidBitmapIndex: Invalid bitmap index */
459
- declare const DROPSY_ERROR__INVALID_BITMAP_INDEX = 6504;
334
+ declare const DROPSY_AIRDROP_ERROR__INVALID_BITMAP_INDEX = 6504;
460
335
  /** TooManyBitmaps: Too many bitmap accounts */
461
- declare const DROPSY_ERROR__TOO_MANY_BITMAPS = 6505;
336
+ declare const DROPSY_AIRDROP_ERROR__TOO_MANY_BITMAPS = 6505;
462
337
  /** BitmapTooLarge: Bitmap size exceeds limit */
463
- declare const DROPSY_ERROR__BITMAP_TOO_LARGE = 6506;
338
+ declare const DROPSY_AIRDROP_ERROR__BITMAP_TOO_LARGE = 6506;
464
339
  /** InvalidTotal: Invalid total claimers */
465
- declare const DROPSY_ERROR__INVALID_TOTAL = 6507;
340
+ declare const DROPSY_AIRDROP_ERROR__INVALID_TOTAL = 6507;
466
341
  /** BitmapAirdropMismatch: Bitmap/airdrop mismatch */
467
- declare const DROPSY_ERROR__BITMAP_AIRDROP_MISMATCH = 6508;
342
+ declare const DROPSY_AIRDROP_ERROR__BITMAP_AIRDROP_MISMATCH = 6508;
468
343
  /** ActiveBitmapsExist: Active bitmaps exist */
469
- declare const DROPSY_ERROR__ACTIVE_BITMAPS_EXIST = 6509;
344
+ declare const DROPSY_AIRDROP_ERROR__ACTIVE_BITMAPS_EXIST = 6509;
470
345
  /** BitmapCountUnderflow: Bitmaps already closed */
471
- declare const DROPSY_ERROR__BITMAP_COUNT_UNDERFLOW = 6510;
346
+ declare const DROPSY_AIRDROP_ERROR__BITMAP_COUNT_UNDERFLOW = 6510;
472
347
  /** InsufficientDeposit: Insufficient SOL deposit */
473
- declare const DROPSY_ERROR__INSUFFICIENT_DEPOSIT = 6600;
348
+ declare const DROPSY_AIRDROP_ERROR__INSUFFICIENT_DEPOSIT = 6600;
474
349
  /** 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;
350
+ declare const DROPSY_AIRDROP_ERROR__CREATE_FEE_TOO_HIGH = 6601;
478
351
  /** InsufficientFundsForFee: Insufficient funds for fee */
479
- declare const DROPSY_ERROR__INSUFFICIENT_FUNDS_FOR_FEE = 6603;
352
+ declare const DROPSY_AIRDROP_ERROR__INSUFFICIENT_FUNDS_FOR_FEE = 6603;
480
353
  /** InvalidFeeVault: Invalid fee vault */
481
- declare const DROPSY_ERROR__INVALID_FEE_VAULT = 6604;
354
+ declare const DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT = 6604;
482
355
  /** InvalidFeeVaultOwner: Invalid fee vault owner */
483
- declare const DROPSY_ERROR__INVALID_FEE_VAULT_OWNER = 6605;
356
+ declare const DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_OWNER = 6605;
484
357
  /** InvalidFeeVaultCurve: Fee vault not in curve */
485
- declare const DROPSY_ERROR__INVALID_FEE_VAULT_CURVE = 6606;
358
+ declare const DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_CURVE = 6606;
486
359
  /** InvalidPda: Invalid PDA account */
487
- declare const DROPSY_ERROR__INVALID_PDA = 6700;
360
+ declare const DROPSY_AIRDROP_ERROR__INVALID_PDA = 6700;
488
361
  /** InvalidAmount: Invalid amount */
489
- declare const DROPSY_ERROR__INVALID_AMOUNT = 6701;
362
+ declare const DROPSY_AIRDROP_ERROR__INVALID_AMOUNT = 6701;
490
363
  /** Overflow: Arithmetic overflow */
491
- declare const DROPSY_ERROR__OVERFLOW = 6702;
364
+ declare const DROPSY_AIRDROP_ERROR__OVERFLOW = 6702;
492
365
  /** VaultNotRentExempt: Vault not rent exempt */
493
- declare const DROPSY_ERROR__VAULT_NOT_RENT_EXEMPT = 6703;
366
+ declare const DROPSY_AIRDROP_ERROR__VAULT_NOT_RENT_EXEMPT = 6703;
494
367
  /** InvalidTreasuryAccount: invalid treasury account */
495
- declare const DROPSY_ERROR__INVALID_TREASURY_ACCOUNT = 6704;
368
+ declare const DROPSY_AIRDROP_ERROR__INVALID_TREASURY_ACCOUNT = 6704;
496
369
  /** InvalidAirdropVersion: invalid airdrop version */
497
- declare const DROPSY_ERROR__INVALID_AIRDROP_VERSION = 6705;
370
+ declare const DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VERSION = 6705;
498
371
  /** InvalidVestingType: Invalid vesting type */
499
- declare const DROPSY_ERROR__INVALID_VESTING_TYPE = 6707;
372
+ declare const DROPSY_AIRDROP_ERROR__INVALID_VESTING_TYPE = 6707;
500
373
  /** VestingAccountRequired: vesting account required for vested airdrop */
501
- declare const DROPSY_ERROR__VESTING_ACCOUNT_REQUIRED = 6708;
374
+ declare const DROPSY_AIRDROP_ERROR__VESTING_ACCOUNT_REQUIRED = 6708;
502
375
  /** InvalidParentAccount: Invalid Parent account provided */
503
- declare const DROPSY_ERROR__INVALID_PARENT_ACCOUNT = 6709;
376
+ declare const DROPSY_AIRDROP_ERROR__INVALID_PARENT_ACCOUNT = 6709;
504
377
  /** 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: {
378
+ declare const DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VESTING_VERSION = 6710;
379
+ type DropsyAirdropError = typeof DROPSY_AIRDROP_ERROR__ACTION_FEE_TOO_HIGH | typeof DROPSY_AIRDROP_ERROR__ACTIVE_BITMAPS_EXIST | typeof DROPSY_AIRDROP_ERROR__AIRDROP_ENDED | typeof DROPSY_AIRDROP_ERROR__AIRDROP_NOT_ENDED | typeof DROPSY_AIRDROP_ERROR__AIRDROP_NOT_STARTED | typeof DROPSY_AIRDROP_ERROR__ALREADY_CLAIMED | typeof DROPSY_AIRDROP_ERROR__BITMAP_AIRDROP_MISMATCH | typeof DROPSY_AIRDROP_ERROR__BITMAP_COUNT_UNDERFLOW | typeof DROPSY_AIRDROP_ERROR__BITMAP_TOO_LARGE | typeof DROPSY_AIRDROP_ERROR__CLAIM_FEE_TOO_HIGH | typeof DROPSY_AIRDROP_ERROR__CREATE_FEE_TOO_HIGH | typeof DROPSY_AIRDROP_ERROR__DESTINATION_MINT_MISMATCH | typeof DROPSY_AIRDROP_ERROR__DURATION_TOO_SHORT | typeof DROPSY_AIRDROP_ERROR__IMMUTABLE_AIRDROP | typeof DROPSY_AIRDROP_ERROR__IMMUTABLE_FIELD | typeof DROPSY_AIRDROP_ERROR__INSUFFICIENT_DEPOSIT | typeof DROPSY_AIRDROP_ERROR__INSUFFICIENT_FUNDS_FOR_FEE | typeof DROPSY_AIRDROP_ERROR__INSUFFICIENT_VAULT_FUNDS | typeof DROPSY_AIRDROP_ERROR__INVALID_ADMIN | typeof DROPSY_AIRDROP_ERROR__INVALID_AFFILIATE_PDA | typeof DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_PDA | typeof DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VERSION | typeof DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VESTING_VERSION | typeof DROPSY_AIRDROP_ERROR__INVALID_AMOUNT | typeof DROPSY_AIRDROP_ERROR__INVALID_BITMAP_ACCOUNT | typeof DROPSY_AIRDROP_ERROR__INVALID_BITMAP_INDEX | typeof DROPSY_AIRDROP_ERROR__INVALID_DELEGATE_PERMISSION | typeof DROPSY_AIRDROP_ERROR__INVALID_DESTINATION_OWNER | typeof DROPSY_AIRDROP_ERROR__INVALID_END_TIME | typeof DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT | typeof DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_CURVE | typeof DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_OWNER | typeof DROPSY_AIRDROP_ERROR__INVALID_MINT | typeof DROPSY_AIRDROP_ERROR__INVALID_MINT_OWNER | typeof DROPSY_AIRDROP_ERROR__INVALID_MUTABILITY | typeof DROPSY_AIRDROP_ERROR__INVALID_OWNER | typeof DROPSY_AIRDROP_ERROR__INVALID_PARENT_ACCOUNT | typeof DROPSY_AIRDROP_ERROR__INVALID_PDA | typeof DROPSY_AIRDROP_ERROR__INVALID_PERCENTAGE | typeof DROPSY_AIRDROP_ERROR__INVALID_PROOF | typeof DROPSY_AIRDROP_ERROR__INVALID_PUB_KEY | typeof DROPSY_AIRDROP_ERROR__INVALID_TIMESTAMP | typeof DROPSY_AIRDROP_ERROR__INVALID_TOTAL | typeof DROPSY_AIRDROP_ERROR__INVALID_TREASURY_ACCOUNT | typeof DROPSY_AIRDROP_ERROR__INVALID_VAULT_AUTHORITY | typeof DROPSY_AIRDROP_ERROR__INVALID_VESTING_SCHEDULE | typeof DROPSY_AIRDROP_ERROR__INVALID_VESTING_TYPE | typeof DROPSY_AIRDROP_ERROR__MINT_HAS_FREEZE_AUTHORITY | typeof DROPSY_AIRDROP_ERROR__MINT_IS_FROZEN | typeof DROPSY_AIRDROP_ERROR__MINT_IS_NOT_INITIALIZED | typeof DROPSY_AIRDROP_ERROR__MINT_MISMATCH | typeof DROPSY_AIRDROP_ERROR__MISSING_BITMAP_PDA | typeof DROPSY_AIRDROP_ERROR__NFT_NOT_ALLOWED | typeof DROPSY_AIRDROP_ERROR__NON_ZERO_VALUE_REQUIRED | typeof DROPSY_AIRDROP_ERROR__OVERFLOW | typeof DROPSY_AIRDROP_ERROR__OWNER_MISMATCH | typeof DROPSY_AIRDROP_ERROR__SOURCE_ACCOUNT_FROZEN | typeof DROPSY_AIRDROP_ERROR__SOURCE_HAS_CLOSE_AUTHORITY | typeof DROPSY_AIRDROP_ERROR__SOURCE_HAS_DELEGATE | typeof DROPSY_AIRDROP_ERROR__TOO_MANY_BITMAPS | typeof DROPSY_AIRDROP_ERROR__UNAUTHORIZED | typeof DROPSY_AIRDROP_ERROR__UN_AUTHORIZED | typeof DROPSY_AIRDROP_ERROR__UPDATE_CUTOFF_TIME_PASSED | typeof DROPSY_AIRDROP_ERROR__VALUE_BELOW_THE_MINIMUM | typeof DROPSY_AIRDROP_ERROR__VALUE_EXCEEDS_MAXIMUM | typeof DROPSY_AIRDROP_ERROR__VALUE_OUT_OF_RANGE | typeof DROPSY_AIRDROP_ERROR__VAULT_FROZEN | typeof DROPSY_AIRDROP_ERROR__VAULT_HAS_CLOSE_AUTHORITY | typeof DROPSY_AIRDROP_ERROR__VAULT_HAS_DELEGATE | typeof DROPSY_AIRDROP_ERROR__VAULT_MINT_MISMATCH | typeof DROPSY_AIRDROP_ERROR__VAULT_NOT_INITIALIZED | typeof DROPSY_AIRDROP_ERROR__VAULT_NOT_RENT_EXEMPT | typeof DROPSY_AIRDROP_ERROR__VESTING_ACCOUNT_REQUIRED;
380
+ declare function getDropsyAirdropErrorMessage(code: DropsyAirdropError): string;
381
+ declare function isDropsyAirdropError<TProgramErrorCode extends DropsyAirdropError>(error: unknown, transactionMessage: {
511
382
  instructions: Record<number, {
512
383
  programAddress: Address;
513
384
  }>;
@@ -525,46 +396,41 @@ declare function isDropsyError<TProgramErrorCode extends DropsyError>(error: unk
525
396
  * @see https://github.com/codama-idl/codama
526
397
  */
527
398
 
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
399
+ declare const DROPSY_AIRDROP_PROGRAM_ADDRESS: Address<"BWd3s27cPuinNkZYqZvRbdfvpGyP9ff5rJZk4WhuNwDw">;
400
+ declare enum DropsyAirdropAccount {
401
+ Airdrop = 0,
402
+ AirdropConfig = 1,
403
+ AirdropMaster = 2,
404
+ BitmapAccount = 3
537
405
  }
538
- declare function identifyDropsyAccount(account: {
406
+ declare function identifyDropsyAirdropAccount(account: {
539
407
  data: ReadonlyUint8Array;
540
- } | ReadonlyUint8Array): DropsyAccount;
541
- declare enum DropsyInstruction {
408
+ } | ReadonlyUint8Array): DropsyAirdropAccount;
409
+ declare enum DropsyAirdropInstruction {
542
410
  ClaimAirdrop = 0,
543
411
  CreateAirdrop = 1,
544
- CreateClaimMap = 2,
412
+ CreateBitmap = 2,
545
413
  DepositTokens = 3,
546
- InitializeAirdropMaster = 4,
547
- InitializeMaster = 5,
548
- RedeemAirdropTokens = 6
414
+ InitializeAirdropConfig = 4,
415
+ InitializeAirdropMaster = 5
549
416
  }
550
- declare function identifyDropsyInstruction(instruction: {
417
+ declare function identifyDropsyAirdropInstruction(instruction: {
551
418
  data: ReadonlyUint8Array;
552
- } | ReadonlyUint8Array): DropsyInstruction;
553
- type ParsedDropsyInstruction<TProgram extends string = "6Bd4YUkwyvZTPMt1bu13zvw9t4TtoMTd6CFVMmaswB2M"> = ({
554
- instructionType: DropsyInstruction.ClaimAirdrop;
419
+ } | ReadonlyUint8Array): DropsyAirdropInstruction;
420
+ type ParsedDropsyAirdropInstruction<TProgram extends string = "BWd3s27cPuinNkZYqZvRbdfvpGyP9ff5rJZk4WhuNwDw"> = ({
421
+ instructionType: DropsyAirdropInstruction.ClaimAirdrop;
555
422
  } & ParsedClaimAirdropInstruction<TProgram>) | ({
556
- instructionType: DropsyInstruction.CreateAirdrop;
423
+ instructionType: DropsyAirdropInstruction.CreateAirdrop;
557
424
  } & ParsedCreateAirdropInstruction<TProgram>) | ({
558
- instructionType: DropsyInstruction.CreateClaimMap;
559
- } & ParsedCreateClaimMapInstruction<TProgram>) | ({
560
- instructionType: DropsyInstruction.DepositTokens;
425
+ instructionType: DropsyAirdropInstruction.CreateBitmap;
426
+ } & ParsedCreateBitmapInstruction<TProgram>) | ({
427
+ instructionType: DropsyAirdropInstruction.DepositTokens;
561
428
  } & ParsedDepositTokensInstruction<TProgram>) | ({
562
- instructionType: DropsyInstruction.InitializeAirdropMaster;
563
- } & ParsedInitializeAirdropMasterInstruction<TProgram>) | ({
564
- instructionType: DropsyInstruction.InitializeMaster;
565
- } & ParsedInitializeMasterInstruction<TProgram>) | ({
566
- instructionType: DropsyInstruction.RedeemAirdropTokens;
567
- } & ParsedRedeemAirdropTokensInstruction<TProgram>);
429
+ instructionType: DropsyAirdropInstruction.InitializeAirdropConfig;
430
+ } & ParsedInitializeAirdropConfigInstruction<TProgram>) | ({
431
+ instructionType: DropsyAirdropInstruction.InitializeAirdropMaster;
432
+ } & ParsedInitializeAirdropMasterInstruction<TProgram>);
433
+ declare function parseDropsyAirdropInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedDropsyAirdropInstruction<TProgram>;
568
434
 
569
435
  /**
570
436
  * This code was AUTOGENERATED using the Codama library.
@@ -575,23 +441,23 @@ type ParsedDropsyInstruction<TProgram extends string = "6Bd4YUkwyvZTPMt1bu13zvw9
575
441
  */
576
442
 
577
443
  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,
444
+ declare function getClaimAirdropDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
445
+ type ClaimAirdropInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountSourceTokenAccount extends string | AccountMeta<string> = string, TAccountDestinationTokenAccount extends string | AccountMeta<string> = string, TAccountClaimer extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountAirdropConfig extends string | AccountMeta<string> = string, TAccountProtocolTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountMasterCreator extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountBitmap extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
585
446
  TAccountSourceTokenAccount extends string ? WritableAccount<TAccountSourceTokenAccount> : TAccountSourceTokenAccount,
586
447
  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
448
  TAccountClaimer extends string ? WritableSignerAccount<TAccountClaimer> & AccountSignerMeta<TAccountClaimer> : TAccountClaimer,
449
+ TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
592
450
  TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
593
451
  TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
594
452
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
453
+ TAccountAirdropConfig extends string ? ReadonlyAccount<TAccountAirdropConfig> : TAccountAirdropConfig,
454
+ TAccountProtocolTreasury extends string ? WritableAccount<TAccountProtocolTreasury> : TAccountProtocolTreasury,
455
+ TAccountAirdropMaster extends string ? ReadonlyAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
456
+ TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
457
+ TAccountMasterCreator extends string ? ReadonlyAccount<TAccountMasterCreator> : TAccountMasterCreator,
458
+ TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
459
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
460
+ TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
595
461
  ...TRemainingAccounts
596
462
  ]>;
597
463
  type ClaimAirdropInstructionData = {
@@ -610,72 +476,72 @@ type ClaimAirdropInstructionDataArgs = {
610
476
  declare function getClaimAirdropInstructionDataEncoder(): Encoder<ClaimAirdropInstructionDataArgs>;
611
477
  declare function getClaimAirdropInstructionDataDecoder(): Decoder<ClaimAirdropInstructionData>;
612
478
  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>;
479
+ type ClaimAirdropAsyncInput<TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountClaimer extends string = string, TAccountMint extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountAirdrop extends string = string, TAccountAuthority extends string = string, TAccountBitmap extends string = string> = {
619
480
  sourceTokenAccount: Address<TAccountSourceTokenAccount>;
620
481
  destinationTokenAccount?: Address<TAccountDestinationTokenAccount>;
621
- airdrop?: Address<TAccountAirdrop>;
622
- authority: Address<TAccountAuthority>;
623
- bitmap: Address<TAccountBitmap>;
624
- mint: Address<TAccountMint>;
625
482
  claimer: TransactionSigner<TAccountClaimer>;
483
+ mint: Address<TAccountMint>;
626
484
  tokenProgram?: Address<TAccountTokenProgram>;
627
485
  associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
628
486
  systemProgram?: Address<TAccountSystemProgram>;
487
+ airdropConfig?: Address<TAccountAirdropConfig>;
488
+ protocolTreasury: Address<TAccountProtocolTreasury>;
489
+ airdropMaster?: Address<TAccountAirdropMaster>;
490
+ treasury: Address<TAccountTreasury>;
491
+ masterCreator: Address<TAccountMasterCreator>;
492
+ airdrop: Address<TAccountAirdrop>;
493
+ authority: Address<TAccountAuthority>;
494
+ bitmap: Address<TAccountBitmap>;
629
495
  index: ClaimAirdropInstructionDataArgs["index"];
630
496
  proof: ClaimAirdropInstructionDataArgs["proof"];
631
497
  amount: ClaimAirdropInstructionDataArgs["amount"];
632
498
  claimMapIndex: ClaimAirdropInstructionDataArgs["claimMapIndex"];
633
499
  };
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?: {
500
+ declare function getClaimAirdropInstructionAsync<TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountClaimer extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountAuthority extends string, TAccountBitmap extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: ClaimAirdropAsyncInput<TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>, config?: {
635
501
  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>;
502
+ }): Promise<ClaimAirdropInstruction<TProgramAddress, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>>;
503
+ type ClaimAirdropInput<TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountClaimer extends string = string, TAccountMint extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountAirdrop extends string = string, TAccountAuthority extends string = string, TAccountBitmap extends string = string> = {
643
504
  sourceTokenAccount: Address<TAccountSourceTokenAccount>;
644
505
  destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
645
- airdrop: Address<TAccountAirdrop>;
646
- authority: Address<TAccountAuthority>;
647
- bitmap: Address<TAccountBitmap>;
648
- mint: Address<TAccountMint>;
649
506
  claimer: TransactionSigner<TAccountClaimer>;
507
+ mint: Address<TAccountMint>;
650
508
  tokenProgram?: Address<TAccountTokenProgram>;
651
509
  associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
652
510
  systemProgram?: Address<TAccountSystemProgram>;
511
+ airdropConfig: Address<TAccountAirdropConfig>;
512
+ protocolTreasury: Address<TAccountProtocolTreasury>;
513
+ airdropMaster: Address<TAccountAirdropMaster>;
514
+ treasury: Address<TAccountTreasury>;
515
+ masterCreator: Address<TAccountMasterCreator>;
516
+ airdrop: Address<TAccountAirdrop>;
517
+ authority: Address<TAccountAuthority>;
518
+ bitmap: Address<TAccountBitmap>;
653
519
  index: ClaimAirdropInstructionDataArgs["index"];
654
520
  proof: ClaimAirdropInstructionDataArgs["proof"];
655
521
  amount: ClaimAirdropInstructionDataArgs["amount"];
656
522
  claimMapIndex: ClaimAirdropInstructionDataArgs["claimMapIndex"];
657
523
  };
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?: {
524
+ declare function getClaimAirdropInstruction<TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountClaimer extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountAuthority extends string, TAccountBitmap extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: ClaimAirdropInput<TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>, config?: {
659
525
  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[]> = {
526
+ }): ClaimAirdropInstruction<TProgramAddress, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>;
527
+ type ParsedClaimAirdropInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
662
528
  programAddress: Address<TProgram>;
663
529
  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];
530
+ sourceTokenAccount: TAccountMetas[0];
531
+ destinationTokenAccount: TAccountMetas[1];
532
+ claimer: TAccountMetas[2];
533
+ mint: TAccountMetas[3];
534
+ tokenProgram: TAccountMetas[4];
535
+ associatedTokenProgram: TAccountMetas[5];
536
+ systemProgram: TAccountMetas[6];
537
+ airdropConfig: TAccountMetas[7];
538
+ protocolTreasury: TAccountMetas[8];
539
+ airdropMaster: TAccountMetas[9];
540
+ treasury: TAccountMetas[10];
541
+ masterCreator: TAccountMetas[11];
542
+ airdrop: TAccountMetas[12];
543
+ authority: TAccountMetas[13];
544
+ bitmap: TAccountMetas[14];
679
545
  };
680
546
  data: ClaimAirdropInstructionData;
681
547
  };
@@ -690,13 +556,13 @@ declare function parseClaimAirdropInstruction<TProgram extends string, TAccountM
690
556
  */
691
557
 
692
558
  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,
559
+ declare function getCreateAirdropDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
560
+ type CreateAirdropInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountAirdropConfig extends string | AccountMeta<string> = string, TAccountProtocolTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountMasterCreator extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
561
+ TAccountAirdropConfig extends string ? ReadonlyAccount<TAccountAirdropConfig> : TAccountAirdropConfig,
562
+ TAccountProtocolTreasury extends string ? WritableAccount<TAccountProtocolTreasury> : TAccountProtocolTreasury,
563
+ TAccountAirdropMaster extends string ? ReadonlyAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
697
564
  TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
698
- TAccountAirdropMaster extends string ? WritableAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
699
- TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
565
+ TAccountMasterCreator extends string ? ReadonlyAccount<TAccountMasterCreator> : TAccountMasterCreator,
700
566
  TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
701
567
  TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
702
568
  TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
@@ -725,12 +591,12 @@ type CreateAirdropInstructionDataArgs = {
725
591
  declare function getCreateAirdropInstructionDataEncoder(): Encoder<CreateAirdropInstructionDataArgs>;
726
592
  declare function getCreateAirdropInstructionDataDecoder(): Decoder<CreateAirdropInstructionData>;
727
593
  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>;
594
+ type CreateAirdropAsyncInput<TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
595
+ airdropConfig?: Address<TAccountAirdropConfig>;
596
+ protocolTreasury: Address<TAccountProtocolTreasury>;
597
+ airdropMaster?: Address<TAccountAirdropMaster>;
731
598
  treasury: Address<TAccountTreasury>;
732
- airdropMaster: Address<TAccountAirdropMaster>;
733
- affiliate?: Address<TAccountAffiliate>;
599
+ masterCreator: Address<TAccountMasterCreator>;
734
600
  airdrop?: Address<TAccountAirdrop>;
735
601
  mint: Address<TAccountMint>;
736
602
  authority: TransactionSigner<TAccountAuthority>;
@@ -743,15 +609,15 @@ type CreateAirdropAsyncInput<TAccountMaster extends string = string, TAccountCon
743
609
  delegateAuthority: CreateAirdropInstructionDataArgs["delegateAuthority"];
744
610
  delegatePermissions: CreateAirdropInstructionDataArgs["delegatePermissions"];
745
611
  };
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?: {
612
+ declare function getCreateAirdropInstructionAsync<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateAirdropAsyncInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
747
613
  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>;
614
+ }): Promise<CreateAirdropInstruction<TProgramAddress, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>>;
615
+ type CreateAirdropInput<TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
616
+ airdropConfig: Address<TAccountAirdropConfig>;
617
+ protocolTreasury: Address<TAccountProtocolTreasury>;
753
618
  airdropMaster: Address<TAccountAirdropMaster>;
754
- affiliate?: Address<TAccountAffiliate>;
619
+ treasury: Address<TAccountTreasury>;
620
+ masterCreator: Address<TAccountMasterCreator>;
755
621
  airdrop: Address<TAccountAirdrop>;
756
622
  mint: Address<TAccountMint>;
757
623
  authority: TransactionSigner<TAccountAuthority>;
@@ -764,17 +630,17 @@ type CreateAirdropInput<TAccountMaster extends string = string, TAccountConfig e
764
630
  delegateAuthority: CreateAirdropInstructionDataArgs["delegateAuthority"];
765
631
  delegatePermissions: CreateAirdropInstructionDataArgs["delegatePermissions"];
766
632
  };
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?: {
633
+ declare function getCreateAirdropInstruction<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateAirdropInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
768
634
  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[]> = {
635
+ }): CreateAirdropInstruction<TProgramAddress, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>;
636
+ type ParsedCreateAirdropInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
771
637
  programAddress: Address<TProgram>;
772
638
  accounts: {
773
- master: TAccountMetas[0];
774
- config: TAccountMetas[1];
775
- treasury: TAccountMetas[2];
776
- airdropMaster: TAccountMetas[3];
777
- affiliate?: TAccountMetas[4] | undefined;
639
+ airdropConfig: TAccountMetas[0];
640
+ protocolTreasury: TAccountMetas[1];
641
+ airdropMaster: TAccountMetas[2];
642
+ treasury: TAccountMetas[3];
643
+ masterCreator: TAccountMetas[4];
778
644
  airdrop: TAccountMetas[5];
779
645
  mint: TAccountMetas[6];
780
646
  authority: TAccountMetas[7];
@@ -783,16 +649,6 @@ type ParsedCreateAirdropInstruction<TProgram extends string = typeof DROPSY_PROG
783
649
  data: CreateAirdropInstructionData;
784
650
  };
785
651
  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
652
 
797
653
  /**
798
654
  * This code was AUTOGENERATED using the Codama library.
@@ -802,94 +658,84 @@ declare function getCreateAirdropV0Instruction(input: CreateAirdropV0Input): Pro
802
658
  * @see https://github.com/codama-idl/codama
803
659
  */
804
660
 
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,
661
+ declare const CREATE_BITMAP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
662
+ declare function getCreateBitmapDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
663
+ type CreateBitmapInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountAirdropConfig extends string | AccountMeta<string> = string, TAccountProtocolTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountMasterCreator extends string | AccountMeta<string> = string, TAccountBitmap extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
664
+ TAccountAirdropConfig extends string ? ReadonlyAccount<TAccountAirdropConfig> : TAccountAirdropConfig,
665
+ TAccountProtocolTreasury extends string ? WritableAccount<TAccountProtocolTreasury> : TAccountProtocolTreasury,
666
+ TAccountAirdropMaster extends string ? ReadonlyAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
810
667
  TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
811
- TAccountAirdropMaster extends string ? WritableAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
812
- TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
668
+ TAccountMasterCreator extends string ? ReadonlyAccount<TAccountMasterCreator> : TAccountMasterCreator,
669
+ TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
813
670
  TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
814
671
  TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
815
- TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
816
672
  TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
817
673
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
818
674
  ...TRemainingAccounts
819
675
  ]>;
820
- type CreateClaimMapInstructionData = {
676
+ type CreateBitmapInstructionData = {
821
677
  discriminator: ReadonlyUint8Array;
822
678
  id: number;
823
679
  total: number;
824
680
  };
825
- type CreateClaimMapInstructionDataArgs = {
681
+ type CreateBitmapInstructionDataArgs = {
826
682
  id: number;
827
683
  total: number;
828
684
  };
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>;
685
+ declare function getCreateBitmapInstructionDataEncoder(): FixedSizeEncoder<CreateBitmapInstructionDataArgs>;
686
+ declare function getCreateBitmapInstructionDataDecoder(): FixedSizeDecoder<CreateBitmapInstructionData>;
687
+ declare function getCreateBitmapInstructionDataCodec(): FixedSizeCodec<CreateBitmapInstructionDataArgs, CreateBitmapInstructionData>;
688
+ type CreateBitmapAsyncInput<TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountBitmap extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
689
+ airdropConfig?: Address<TAccountAirdropConfig>;
690
+ protocolTreasury: Address<TAccountProtocolTreasury>;
691
+ airdropMaster?: Address<TAccountAirdropMaster>;
835
692
  treasury: Address<TAccountTreasury>;
836
- airdropMaster: Address<TAccountAirdropMaster>;
837
- affiliate?: Address<TAccountAffiliate>;
693
+ masterCreator: Address<TAccountMasterCreator>;
694
+ bitmap?: Address<TAccountBitmap>;
838
695
  airdrop?: Address<TAccountAirdrop>;
839
696
  mint: Address<TAccountMint>;
840
- bitmap?: Address<TAccountBitmap>;
841
697
  authority: TransactionSigner<TAccountAuthority>;
842
698
  systemProgram?: Address<TAccountSystemProgram>;
843
- id: CreateClaimMapInstructionDataArgs["id"];
844
- total: CreateClaimMapInstructionDataArgs["total"];
699
+ id: CreateBitmapInstructionDataArgs["id"];
700
+ total: CreateBitmapInstructionDataArgs["total"];
845
701
  };
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?: {
702
+ declare function getCreateBitmapInstructionAsync<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountBitmap extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateBitmapAsyncInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountBitmap, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
847
703
  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>;
704
+ }): Promise<CreateBitmapInstruction<TProgramAddress, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountBitmap, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>>;
705
+ type CreateBitmapInput<TAccountAirdropConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountTreasury extends string = string, TAccountMasterCreator extends string = string, TAccountBitmap extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
706
+ airdropConfig: Address<TAccountAirdropConfig>;
707
+ protocolTreasury: Address<TAccountProtocolTreasury>;
853
708
  airdropMaster: Address<TAccountAirdropMaster>;
854
- affiliate?: Address<TAccountAffiliate>;
709
+ treasury: Address<TAccountTreasury>;
710
+ masterCreator: Address<TAccountMasterCreator>;
711
+ bitmap: Address<TAccountBitmap>;
855
712
  airdrop: Address<TAccountAirdrop>;
856
713
  mint: Address<TAccountMint>;
857
- bitmap: Address<TAccountBitmap>;
858
714
  authority: TransactionSigner<TAccountAuthority>;
859
715
  systemProgram?: Address<TAccountSystemProgram>;
860
- id: CreateClaimMapInstructionDataArgs["id"];
861
- total: CreateClaimMapInstructionDataArgs["total"];
716
+ id: CreateBitmapInstructionDataArgs["id"];
717
+ total: CreateBitmapInstructionDataArgs["total"];
862
718
  };
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?: {
719
+ declare function getCreateBitmapInstruction<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountBitmap extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateBitmapInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountBitmap, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
864
720
  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[]> = {
721
+ }): CreateBitmapInstruction<TProgramAddress, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountBitmap, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>;
722
+ type ParsedCreateBitmapInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
867
723
  programAddress: Address<TProgram>;
868
724
  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];
725
+ airdropConfig: TAccountMetas[0];
726
+ protocolTreasury: TAccountMetas[1];
727
+ airdropMaster: TAccountMetas[2];
728
+ treasury: TAccountMetas[3];
729
+ masterCreator: TAccountMetas[4];
730
+ bitmap: TAccountMetas[5];
731
+ airdrop: TAccountMetas[6];
732
+ mint: TAccountMetas[7];
877
733
  authority: TAccountMetas[8];
878
734
  systemProgram: TAccountMetas[9];
879
735
  };
880
- data: CreateClaimMapInstructionData;
736
+ data: CreateBitmapInstructionData;
881
737
  };
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, []>>;
738
+ declare function parseCreateBitmapInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateBitmapInstruction<TProgram, TAccountMetas>;
893
739
 
894
740
  /**
895
741
  * This code was AUTOGENERATED using the Codama library.
@@ -900,15 +746,10 @@ declare function getCreateClaimMapV0Instruction(input: CreateClaimMapV0Input): P
900
746
  */
901
747
 
902
748
  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,
749
+ declare function getDepositTokensDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
750
+ type DepositTokensInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountSourceTokenAccount extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
910
751
  TAccountSourceTokenAccount extends string ? WritableAccount<TAccountSourceTokenAccount> : TAccountSourceTokenAccount,
911
- TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
752
+ TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
912
753
  TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
913
754
  TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
914
755
  TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
@@ -927,14 +768,9 @@ type DepositTokensInstructionDataArgs = {
927
768
  declare function getDepositTokensInstructionDataEncoder(): FixedSizeEncoder<DepositTokensInstructionDataArgs>;
928
769
  declare function getDepositTokensInstructionDataDecoder(): FixedSizeDecoder<DepositTokensInstructionData>;
929
770
  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>;
771
+ type DepositTokensAsyncInput<TAccountSourceTokenAccount extends string = string, TAccountVault extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
936
772
  sourceTokenAccount: Address<TAccountSourceTokenAccount>;
937
- destinationTokenAccount?: Address<TAccountDestinationTokenAccount>;
773
+ vault?: Address<TAccountVault>;
938
774
  airdrop?: Address<TAccountAirdrop>;
939
775
  mint: Address<TAccountMint>;
940
776
  authority: TransactionSigner<TAccountAuthority>;
@@ -943,17 +779,12 @@ type DepositTokensAsyncInput<TAccountMaster extends string = string, TAccountCon
943
779
  systemProgram?: Address<TAccountSystemProgram>;
944
780
  amount: DepositTokensInstructionDataArgs["amount"];
945
781
  };
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?: {
782
+ declare function getDepositTokensInstructionAsync<TAccountSourceTokenAccount extends string, TAccountVault extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: DepositTokensAsyncInput<TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
947
783
  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>;
784
+ }): Promise<DepositTokensInstruction<TProgramAddress, TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
785
+ type DepositTokensInput<TAccountSourceTokenAccount extends string = string, TAccountVault extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
955
786
  sourceTokenAccount: Address<TAccountSourceTokenAccount>;
956
- destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
787
+ vault: Address<TAccountVault>;
957
788
  airdrop: Address<TAccountAirdrop>;
958
789
  mint: Address<TAccountMint>;
959
790
  authority: TransactionSigner<TAccountAuthority>;
@@ -962,25 +793,20 @@ type DepositTokensInput<TAccountMaster extends string = string, TAccountConfig e
962
793
  systemProgram?: Address<TAccountSystemProgram>;
963
794
  amount: DepositTokensInstructionDataArgs["amount"];
964
795
  };
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?: {
796
+ declare function getDepositTokensInstruction<TAccountSourceTokenAccount extends string, TAccountVault extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: DepositTokensInput<TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
966
797
  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[]> = {
798
+ }): DepositTokensInstruction<TProgramAddress, TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
799
+ type ParsedDepositTokensInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
969
800
  programAddress: Address<TProgram>;
970
801
  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];
802
+ sourceTokenAccount: TAccountMetas[0];
803
+ vault: TAccountMetas[1];
804
+ airdrop: TAccountMetas[2];
805
+ mint: TAccountMetas[3];
806
+ authority: TAccountMetas[4];
807
+ tokenProgram: TAccountMetas[5];
808
+ associatedTokenProgram: TAccountMetas[6];
809
+ systemProgram: TAccountMetas[7];
984
810
  };
985
811
  data: DepositTokensInstructionData;
986
812
  };
@@ -994,19 +820,92 @@ declare function parseDepositTokensInstruction<TProgram extends string, TAccount
994
820
  * @see https://github.com/codama-idl/codama
995
821
  */
996
822
 
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;
823
+ declare const INITIALIZE_AIRDROP_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
824
+ declare function getInitializeAirdropConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
825
+ type InitializeAirdropConfigInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountProtocolTreasury extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = "79xcTj8QDPhqg7Bwvoz9CrckmGyo2JJXU9duVqJbCLxc", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
826
+ TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
827
+ TAccountProtocolTreasury extends string ? ReadonlyAccount<TAccountProtocolTreasury> : TAccountProtocolTreasury,
828
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
829
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
830
+ ...TRemainingAccounts
831
+ ]>;
832
+ type InitializeAirdropConfigInstructionData = {
833
+ discriminator: ReadonlyUint8Array;
834
+ wlRoot: Option<ReadonlyUint8Array>;
835
+ airdropMasterCreateFee: Option<bigint>;
836
+ maxClaimFee: Option<bigint>;
837
+ maxActionFee: Option<bigint>;
838
+ minAirdropDuration: Option<bigint>;
839
+ defaultAirdropDuration: Option<bigint>;
840
+ maxAirdropDuration: Option<bigint>;
841
+ updateGracePeriod: Option<bigint>;
842
+ protocolFee: Option<bigint>;
843
+ masterFeeBps: Option<number>;
844
+ };
845
+ type InitializeAirdropConfigInstructionDataArgs = {
846
+ wlRoot: OptionOrNullable<ReadonlyUint8Array>;
847
+ airdropMasterCreateFee: OptionOrNullable<number | bigint>;
848
+ maxClaimFee: OptionOrNullable<number | bigint>;
849
+ maxActionFee: OptionOrNullable<number | bigint>;
850
+ minAirdropDuration: OptionOrNullable<number | bigint>;
851
+ defaultAirdropDuration: OptionOrNullable<number | bigint>;
852
+ maxAirdropDuration: OptionOrNullable<number | bigint>;
853
+ updateGracePeriod: OptionOrNullable<number | bigint>;
854
+ protocolFee: OptionOrNullable<number | bigint>;
855
+ masterFeeBps: OptionOrNullable<number>;
856
+ };
857
+ declare function getInitializeAirdropConfigInstructionDataEncoder(): Encoder<InitializeAirdropConfigInstructionDataArgs>;
858
+ declare function getInitializeAirdropConfigInstructionDataDecoder(): Decoder<InitializeAirdropConfigInstructionData>;
859
+ declare function getInitializeAirdropConfigInstructionDataCodec(): Codec<InitializeAirdropConfigInstructionDataArgs, InitializeAirdropConfigInstructionData>;
860
+ type InitializeAirdropConfigAsyncInput<TAccountConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
861
+ config?: Address<TAccountConfig>;
862
+ protocolTreasury: Address<TAccountProtocolTreasury>;
863
+ authority?: TransactionSigner<TAccountAuthority>;
864
+ systemProgram?: Address<TAccountSystemProgram>;
865
+ wlRoot: InitializeAirdropConfigInstructionDataArgs["wlRoot"];
866
+ airdropMasterCreateFee: InitializeAirdropConfigInstructionDataArgs["airdropMasterCreateFee"];
867
+ maxClaimFee: InitializeAirdropConfigInstructionDataArgs["maxClaimFee"];
868
+ maxActionFee: InitializeAirdropConfigInstructionDataArgs["maxActionFee"];
869
+ minAirdropDuration: InitializeAirdropConfigInstructionDataArgs["minAirdropDuration"];
870
+ defaultAirdropDuration: InitializeAirdropConfigInstructionDataArgs["defaultAirdropDuration"];
871
+ maxAirdropDuration: InitializeAirdropConfigInstructionDataArgs["maxAirdropDuration"];
872
+ updateGracePeriod: InitializeAirdropConfigInstructionDataArgs["updateGracePeriod"];
873
+ protocolFee: InitializeAirdropConfigInstructionDataArgs["protocolFee"];
874
+ masterFeeBps: InitializeAirdropConfigInstructionDataArgs["masterFeeBps"];
875
+ };
876
+ declare function getInitializeAirdropConfigInstructionAsync<TAccountConfig extends string, TAccountProtocolTreasury extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: InitializeAirdropConfigAsyncInput<TAccountConfig, TAccountProtocolTreasury, TAccountAuthority, TAccountSystemProgram>, config?: {
877
+ programAddress?: TProgramAddress;
878
+ }): Promise<InitializeAirdropConfigInstruction<TProgramAddress, TAccountConfig, TAccountProtocolTreasury, TAccountAuthority, TAccountSystemProgram>>;
879
+ type InitializeAirdropConfigInput<TAccountConfig extends string = string, TAccountProtocolTreasury extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
880
+ config: Address<TAccountConfig>;
881
+ protocolTreasury: Address<TAccountProtocolTreasury>;
882
+ authority?: TransactionSigner<TAccountAuthority>;
883
+ systemProgram?: Address<TAccountSystemProgram>;
884
+ wlRoot: InitializeAirdropConfigInstructionDataArgs["wlRoot"];
885
+ airdropMasterCreateFee: InitializeAirdropConfigInstructionDataArgs["airdropMasterCreateFee"];
886
+ maxClaimFee: InitializeAirdropConfigInstructionDataArgs["maxClaimFee"];
887
+ maxActionFee: InitializeAirdropConfigInstructionDataArgs["maxActionFee"];
888
+ minAirdropDuration: InitializeAirdropConfigInstructionDataArgs["minAirdropDuration"];
889
+ defaultAirdropDuration: InitializeAirdropConfigInstructionDataArgs["defaultAirdropDuration"];
890
+ maxAirdropDuration: InitializeAirdropConfigInstructionDataArgs["maxAirdropDuration"];
891
+ updateGracePeriod: InitializeAirdropConfigInstructionDataArgs["updateGracePeriod"];
892
+ protocolFee: InitializeAirdropConfigInstructionDataArgs["protocolFee"];
893
+ masterFeeBps: InitializeAirdropConfigInstructionDataArgs["masterFeeBps"];
894
+ };
895
+ declare function getInitializeAirdropConfigInstruction<TAccountConfig extends string, TAccountProtocolTreasury extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: InitializeAirdropConfigInput<TAccountConfig, TAccountProtocolTreasury, TAccountAuthority, TAccountSystemProgram>, config?: {
896
+ programAddress?: TProgramAddress;
897
+ }): InitializeAirdropConfigInstruction<TProgramAddress, TAccountConfig, TAccountProtocolTreasury, TAccountAuthority, TAccountSystemProgram>;
898
+ type ParsedInitializeAirdropConfigInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
899
+ programAddress: Address<TProgram>;
900
+ accounts: {
901
+ config: TAccountMetas[0];
902
+ protocolTreasury: TAccountMetas[1];
903
+ authority: TAccountMetas[2];
904
+ systemProgram: TAccountMetas[3];
905
+ };
906
+ data: InitializeAirdropConfigInstructionData;
1006
907
  };
1007
- declare function getAdvancedFeeConfigEncoder(): FixedSizeEncoder<AdvancedFeeConfigArgs>;
1008
- declare function getAdvancedFeeConfigDecoder(): FixedSizeDecoder<AdvancedFeeConfig>;
1009
- declare function getAdvancedFeeConfigCodec(): FixedSizeCodec<AdvancedFeeConfigArgs, AdvancedFeeConfig>;
908
+ declare function parseInitializeAirdropConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeAirdropConfigInstruction<TProgram, TAccountMetas>;
1010
909
 
1011
910
  /**
1012
911
  * This code was AUTOGENERATED using the Codama library.
@@ -1016,62 +915,88 @@ declare function getAdvancedFeeConfigCodec(): FixedSizeCodec<AdvancedFeeConfigAr
1016
915
  * @see https://github.com/codama-idl/codama
1017
916
  */
1018
917
 
1019
- type AirdropBoosted = {
1020
- airdrop: Address;
1021
- boostedBy: Address;
1022
- boostAmount: bigint;
1023
- timestamp: bigint;
918
+ declare const INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
919
+ declare function getInitializeAirdropMasterDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
920
+ type InitializeAirdropMasterInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountProtocolTreasury extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAffiliate extends string | AccountMeta<string> = string, TAccountCreator extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
921
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
922
+ TAccountAirdropMaster extends string ? WritableAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
923
+ TAccountProtocolTreasury extends string ? WritableAccount<TAccountProtocolTreasury> : TAccountProtocolTreasury,
924
+ TAccountTreasury extends string ? ReadonlyAccount<TAccountTreasury> : TAccountTreasury,
925
+ TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
926
+ TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
927
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
928
+ ...TRemainingAccounts
929
+ ]>;
930
+ type InitializeAirdropMasterInstructionData = {
931
+ discriminator: ReadonlyUint8Array;
932
+ airdropUpdateFee: Option<bigint>;
933
+ airdropCreationFee: Option<bigint>;
934
+ airdropClaimFee: Option<bigint>;
935
+ airdropDelegateFee: Option<bigint>;
936
+ bitmapCreationFee: Option<bigint>;
937
+ discountProof: Option<Array<ReadonlyUint8Array>>;
1024
938
  };
1025
- type AirdropBoostedArgs = {
1026
- airdrop: Address;
1027
- boostedBy: Address;
1028
- boostAmount: number | bigint;
1029
- timestamp: number | bigint;
939
+ type InitializeAirdropMasterInstructionDataArgs = {
940
+ airdropUpdateFee: OptionOrNullable<number | bigint>;
941
+ airdropCreationFee: OptionOrNullable<number | bigint>;
942
+ airdropClaimFee: OptionOrNullable<number | bigint>;
943
+ airdropDelegateFee: OptionOrNullable<number | bigint>;
944
+ bitmapCreationFee: OptionOrNullable<number | bigint>;
945
+ discountProof: OptionOrNullable<Array<ReadonlyUint8Array>>;
1030
946
  };
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;
947
+ declare function getInitializeAirdropMasterInstructionDataEncoder(): Encoder<InitializeAirdropMasterInstructionDataArgs>;
948
+ declare function getInitializeAirdropMasterInstructionDataDecoder(): Decoder<InitializeAirdropMasterInstructionData>;
949
+ declare function getInitializeAirdropMasterInstructionDataCodec(): Codec<InitializeAirdropMasterInstructionDataArgs, InitializeAirdropMasterInstructionData>;
950
+ type InitializeAirdropMasterAsyncInput<TAccountConfig extends string = string, TAccountAirdropMaster extends string = string, TAccountProtocolTreasury extends string = string, TAccountTreasury extends string = string, TAccountAffiliate extends string = string, TAccountCreator extends string = string, TAccountSystemProgram extends string = string> = {
951
+ config?: Address<TAccountConfig>;
952
+ airdropMaster?: Address<TAccountAirdropMaster>;
953
+ protocolTreasury: Address<TAccountProtocolTreasury>;
954
+ treasury: Address<TAccountTreasury>;
955
+ affiliate?: Address<TAccountAffiliate>;
956
+ creator: TransactionSigner<TAccountCreator>;
957
+ systemProgram?: Address<TAccountSystemProgram>;
958
+ airdropUpdateFee: InitializeAirdropMasterInstructionDataArgs["airdropUpdateFee"];
959
+ airdropCreationFee: InitializeAirdropMasterInstructionDataArgs["airdropCreationFee"];
960
+ airdropClaimFee: InitializeAirdropMasterInstructionDataArgs["airdropClaimFee"];
961
+ airdropDelegateFee: InitializeAirdropMasterInstructionDataArgs["airdropDelegateFee"];
962
+ bitmapCreationFee: InitializeAirdropMasterInstructionDataArgs["bitmapCreationFee"];
963
+ discountProof: InitializeAirdropMasterInstructionDataArgs["discountProof"];
1047
964
  };
1048
- type AirdropClosedArgs = {
1049
- airdrop: Address;
1050
- authority: Address;
1051
- timestamp: number | bigint;
965
+ declare function getInitializeAirdropMasterInstructionAsync<TAccountConfig extends string, TAccountAirdropMaster extends string, TAccountProtocolTreasury extends string, TAccountTreasury extends string, TAccountAffiliate extends string, TAccountCreator extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: InitializeAirdropMasterAsyncInput<TAccountConfig, TAccountAirdropMaster, TAccountProtocolTreasury, TAccountTreasury, TAccountAffiliate, TAccountCreator, TAccountSystemProgram>, config?: {
966
+ programAddress?: TProgramAddress;
967
+ }): Promise<InitializeAirdropMasterInstruction<TProgramAddress, TAccountConfig, TAccountAirdropMaster, TAccountProtocolTreasury, TAccountTreasury, TAccountAffiliate, TAccountCreator, TAccountSystemProgram>>;
968
+ type InitializeAirdropMasterInput<TAccountConfig extends string = string, TAccountAirdropMaster extends string = string, TAccountProtocolTreasury extends string = string, TAccountTreasury extends string = string, TAccountAffiliate extends string = string, TAccountCreator extends string = string, TAccountSystemProgram extends string = string> = {
969
+ config: Address<TAccountConfig>;
970
+ airdropMaster: Address<TAccountAirdropMaster>;
971
+ protocolTreasury: Address<TAccountProtocolTreasury>;
972
+ treasury: Address<TAccountTreasury>;
973
+ affiliate?: Address<TAccountAffiliate>;
974
+ creator: TransactionSigner<TAccountCreator>;
975
+ systemProgram?: Address<TAccountSystemProgram>;
976
+ airdropUpdateFee: InitializeAirdropMasterInstructionDataArgs["airdropUpdateFee"];
977
+ airdropCreationFee: InitializeAirdropMasterInstructionDataArgs["airdropCreationFee"];
978
+ airdropClaimFee: InitializeAirdropMasterInstructionDataArgs["airdropClaimFee"];
979
+ airdropDelegateFee: InitializeAirdropMasterInstructionDataArgs["airdropDelegateFee"];
980
+ bitmapCreationFee: InitializeAirdropMasterInstructionDataArgs["bitmapCreationFee"];
981
+ discountProof: InitializeAirdropMasterInstructionDataArgs["discountProof"];
1052
982
  };
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;
983
+ declare function getInitializeAirdropMasterInstruction<TAccountConfig extends string, TAccountAirdropMaster extends string, TAccountProtocolTreasury extends string, TAccountTreasury extends string, TAccountAffiliate extends string, TAccountCreator extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: InitializeAirdropMasterInput<TAccountConfig, TAccountAirdropMaster, TAccountProtocolTreasury, TAccountTreasury, TAccountAffiliate, TAccountCreator, TAccountSystemProgram>, config?: {
984
+ programAddress?: TProgramAddress;
985
+ }): InitializeAirdropMasterInstruction<TProgramAddress, TAccountConfig, TAccountAirdropMaster, TAccountProtocolTreasury, TAccountTreasury, TAccountAffiliate, TAccountCreator, TAccountSystemProgram>;
986
+ type ParsedInitializeAirdropMasterInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
987
+ programAddress: Address<TProgram>;
988
+ accounts: {
989
+ config: TAccountMetas[0];
990
+ airdropMaster: TAccountMetas[1];
991
+ protocolTreasury: TAccountMetas[2];
992
+ treasury: TAccountMetas[3];
993
+ affiliate?: TAccountMetas[4] | undefined;
994
+ creator: TAccountMetas[5];
995
+ systemProgram: TAccountMetas[6];
996
+ };
997
+ data: InitializeAirdropMasterInstructionData;
1070
998
  };
1071
- type AirdropDelegatedArgs = AirdropDelegated;
1072
- declare function getAirdropDelegatedEncoder(): FixedSizeEncoder<AirdropDelegatedArgs>;
1073
- declare function getAirdropDelegatedDecoder(): FixedSizeDecoder<AirdropDelegated>;
1074
- declare function getAirdropDelegatedCodec(): FixedSizeCodec<AirdropDelegatedArgs, AirdropDelegated>;
999
+ declare function parseInitializeAirdropMasterInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeAirdropMasterInstruction<TProgram, TAccountMetas>;
1075
1000
 
1076
1001
  /**
1077
1002
  * This code was AUTOGENERATED using the Codama library.
@@ -1085,7 +1010,7 @@ type AirdropInitialized = {
1085
1010
  airdrop: Address;
1086
1011
  mint: Address;
1087
1012
  authority: Address;
1088
- controller: Address;
1013
+ master: Address;
1089
1014
  merkleRoot: ReadonlyUint8Array;
1090
1015
  startTime: bigint;
1091
1016
  endTime: bigint;
@@ -1095,7 +1020,7 @@ type AirdropInitializedArgs = {
1095
1020
  airdrop: Address;
1096
1021
  mint: Address;
1097
1022
  authority: Address;
1098
- controller: Address;
1023
+ master: Address;
1099
1024
  merkleRoot: ReadonlyUint8Array;
1100
1025
  startTime: number | bigint;
1101
1026
  endTime: number | bigint;
@@ -1113,98 +1038,15 @@ declare function getAirdropInitializedCodec(): FixedSizeCodec<AirdropInitialized
1113
1038
  * @see https://github.com/codama-idl/codama
1114
1039
  */
1115
1040
 
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 = {
1041
+ type BitmapClosed = {
1200
1042
  airdrop: Address;
1201
1043
  bitmap: Address;
1202
1044
  authority: Address;
1203
1045
  };
1204
- type ClaimMapClosedArgs = ClaimMapClosed;
1205
- declare function getClaimMapClosedEncoder(): FixedSizeEncoder<ClaimMapClosedArgs>;
1206
- declare function getClaimMapClosedDecoder(): FixedSizeDecoder<ClaimMapClosed>;
1207
- declare function getClaimMapClosedCodec(): FixedSizeCodec<ClaimMapClosedArgs, ClaimMapClosed>;
1046
+ type BitmapClosedArgs = BitmapClosed;
1047
+ declare function getBitmapClosedEncoder(): FixedSizeEncoder<BitmapClosedArgs>;
1048
+ declare function getBitmapClosedDecoder(): FixedSizeDecoder<BitmapClosed>;
1049
+ declare function getBitmapClosedCodec(): FixedSizeCodec<BitmapClosedArgs, BitmapClosed>;
1208
1050
 
1209
1051
  /**
1210
1052
  * This code was AUTOGENERATED using the Codama library.
@@ -1214,71 +1056,21 @@ declare function getClaimMapClosedCodec(): FixedSizeCodec<ClaimMapClosedArgs, Cl
1214
1056
  * @see https://github.com/codama-idl/codama
1215
1057
  */
1216
1058
 
1217
- type ClaimMapInitialized = {
1059
+ type BitmapInitialized = {
1218
1060
  airdrop: Address;
1219
1061
  bitmap: Address;
1220
1062
  bitmapId: number;
1221
1063
  timestamp: bigint;
1222
1064
  };
1223
- type ClaimMapInitializedArgs = {
1065
+ type BitmapInitializedArgs = {
1224
1066
  airdrop: Address;
1225
1067
  bitmap: Address;
1226
1068
  bitmapId: number;
1227
1069
  timestamp: number | bigint;
1228
1070
  };
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>;
1071
+ declare function getBitmapInitializedEncoder(): FixedSizeEncoder<BitmapInitializedArgs>;
1072
+ declare function getBitmapInitializedDecoder(): FixedSizeDecoder<BitmapInitialized>;
1073
+ declare function getBitmapInitializedCodec(): FixedSizeCodec<BitmapInitializedArgs, BitmapInitialized>;
1282
1074
 
1283
1075
  /**
1284
1076
  * This code was AUTOGENERATED using the Codama library.
@@ -1328,346 +1120,4 @@ declare function getTokensRedeemedEncoder(): FixedSizeEncoder<TokensRedeemedArgs
1328
1120
  declare function getTokensRedeemedDecoder(): FixedSizeDecoder<TokensRedeemed>;
1329
1121
  declare function getTokensRedeemedCodec(): FixedSizeCodec<TokensRedeemedArgs, TokensRedeemed>;
1330
1122
 
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 };
1123
+ export { AIRDROP_CONFIG_DISCRIMINATOR, AIRDROP_DISCRIMINATOR, AIRDROP_MASTER_DISCRIMINATOR, type Airdrop, type AirdropArgs, type AirdropConfig, type AirdropConfigArgs, type AirdropInitialized, type AirdropInitializedArgs, type AirdropMaster, type AirdropMasterArgs, BITMAP_ACCOUNT_DISCRIMINATOR, type BitmapAccount, type BitmapAccountArgs, type BitmapClosed, type BitmapClosedArgs, type BitmapInitialized, type BitmapInitializedArgs, CLAIM_AIRDROP_DISCRIMINATOR, CREATE_AIRDROP_DISCRIMINATOR, CREATE_BITMAP_DISCRIMINATOR, type ClaimAirdropAsyncInput, type ClaimAirdropInput, type ClaimAirdropInstruction, type ClaimAirdropInstructionData, type ClaimAirdropInstructionDataArgs, type CreateAirdropAsyncInput, type CreateAirdropInput, type CreateAirdropInstruction, type CreateAirdropInstructionData, type CreateAirdropInstructionDataArgs, type CreateBitmapAsyncInput, type CreateBitmapInput, type CreateBitmapInstruction, type CreateBitmapInstructionData, type CreateBitmapInstructionDataArgs, DEPOSIT_TOKENS_DISCRIMINATOR, DROPSY_AIRDROP_ERROR__ACTION_FEE_TOO_HIGH, DROPSY_AIRDROP_ERROR__ACTIVE_BITMAPS_EXIST, DROPSY_AIRDROP_ERROR__AIRDROP_ENDED, DROPSY_AIRDROP_ERROR__AIRDROP_NOT_ENDED, DROPSY_AIRDROP_ERROR__AIRDROP_NOT_STARTED, DROPSY_AIRDROP_ERROR__ALREADY_CLAIMED, DROPSY_AIRDROP_ERROR__BITMAP_AIRDROP_MISMATCH, DROPSY_AIRDROP_ERROR__BITMAP_COUNT_UNDERFLOW, DROPSY_AIRDROP_ERROR__BITMAP_TOO_LARGE, DROPSY_AIRDROP_ERROR__CLAIM_FEE_TOO_HIGH, DROPSY_AIRDROP_ERROR__CREATE_FEE_TOO_HIGH, DROPSY_AIRDROP_ERROR__DESTINATION_MINT_MISMATCH, DROPSY_AIRDROP_ERROR__DURATION_TOO_SHORT, DROPSY_AIRDROP_ERROR__IMMUTABLE_AIRDROP, DROPSY_AIRDROP_ERROR__IMMUTABLE_FIELD, DROPSY_AIRDROP_ERROR__INSUFFICIENT_DEPOSIT, DROPSY_AIRDROP_ERROR__INSUFFICIENT_FUNDS_FOR_FEE, DROPSY_AIRDROP_ERROR__INSUFFICIENT_VAULT_FUNDS, DROPSY_AIRDROP_ERROR__INVALID_ADMIN, DROPSY_AIRDROP_ERROR__INVALID_AFFILIATE_PDA, DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_PDA, DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VERSION, DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VESTING_VERSION, DROPSY_AIRDROP_ERROR__INVALID_AMOUNT, DROPSY_AIRDROP_ERROR__INVALID_BITMAP_ACCOUNT, DROPSY_AIRDROP_ERROR__INVALID_BITMAP_INDEX, DROPSY_AIRDROP_ERROR__INVALID_DELEGATE_PERMISSION, DROPSY_AIRDROP_ERROR__INVALID_DESTINATION_OWNER, DROPSY_AIRDROP_ERROR__INVALID_END_TIME, DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT, DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_CURVE, DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_OWNER, DROPSY_AIRDROP_ERROR__INVALID_MINT, DROPSY_AIRDROP_ERROR__INVALID_MINT_OWNER, DROPSY_AIRDROP_ERROR__INVALID_MUTABILITY, DROPSY_AIRDROP_ERROR__INVALID_OWNER, DROPSY_AIRDROP_ERROR__INVALID_PARENT_ACCOUNT, DROPSY_AIRDROP_ERROR__INVALID_PDA, DROPSY_AIRDROP_ERROR__INVALID_PERCENTAGE, DROPSY_AIRDROP_ERROR__INVALID_PROOF, DROPSY_AIRDROP_ERROR__INVALID_PUB_KEY, DROPSY_AIRDROP_ERROR__INVALID_TIMESTAMP, DROPSY_AIRDROP_ERROR__INVALID_TOTAL, DROPSY_AIRDROP_ERROR__INVALID_TREASURY_ACCOUNT, DROPSY_AIRDROP_ERROR__INVALID_VAULT_AUTHORITY, DROPSY_AIRDROP_ERROR__INVALID_VESTING_SCHEDULE, DROPSY_AIRDROP_ERROR__INVALID_VESTING_TYPE, DROPSY_AIRDROP_ERROR__MINT_HAS_FREEZE_AUTHORITY, DROPSY_AIRDROP_ERROR__MINT_IS_FROZEN, DROPSY_AIRDROP_ERROR__MINT_IS_NOT_INITIALIZED, DROPSY_AIRDROP_ERROR__MINT_MISMATCH, DROPSY_AIRDROP_ERROR__MISSING_BITMAP_PDA, DROPSY_AIRDROP_ERROR__NFT_NOT_ALLOWED, DROPSY_AIRDROP_ERROR__NON_ZERO_VALUE_REQUIRED, DROPSY_AIRDROP_ERROR__OVERFLOW, DROPSY_AIRDROP_ERROR__OWNER_MISMATCH, DROPSY_AIRDROP_ERROR__SOURCE_ACCOUNT_FROZEN, DROPSY_AIRDROP_ERROR__SOURCE_HAS_CLOSE_AUTHORITY, DROPSY_AIRDROP_ERROR__SOURCE_HAS_DELEGATE, DROPSY_AIRDROP_ERROR__TOO_MANY_BITMAPS, DROPSY_AIRDROP_ERROR__UNAUTHORIZED, DROPSY_AIRDROP_ERROR__UN_AUTHORIZED, DROPSY_AIRDROP_ERROR__UPDATE_CUTOFF_TIME_PASSED, DROPSY_AIRDROP_ERROR__VALUE_BELOW_THE_MINIMUM, DROPSY_AIRDROP_ERROR__VALUE_EXCEEDS_MAXIMUM, DROPSY_AIRDROP_ERROR__VALUE_OUT_OF_RANGE, DROPSY_AIRDROP_ERROR__VAULT_FROZEN, DROPSY_AIRDROP_ERROR__VAULT_HAS_CLOSE_AUTHORITY, DROPSY_AIRDROP_ERROR__VAULT_HAS_DELEGATE, DROPSY_AIRDROP_ERROR__VAULT_MINT_MISMATCH, DROPSY_AIRDROP_ERROR__VAULT_NOT_INITIALIZED, DROPSY_AIRDROP_ERROR__VAULT_NOT_RENT_EXEMPT, DROPSY_AIRDROP_ERROR__VESTING_ACCOUNT_REQUIRED, DROPSY_AIRDROP_PROGRAM_ADDRESS, type DepositTokensAsyncInput, type DepositTokensInput, type DepositTokensInstruction, type DepositTokensInstructionData, type DepositTokensInstructionDataArgs, DropsyAirdropAccount, type DropsyAirdropError, DropsyAirdropInstruction, INITIALIZE_AIRDROP_CONFIG_DISCRIMINATOR, INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR, type InitializeAirdropConfigAsyncInput, type InitializeAirdropConfigInput, type InitializeAirdropConfigInstruction, type InitializeAirdropConfigInstructionData, type InitializeAirdropConfigInstructionDataArgs, type InitializeAirdropMasterAsyncInput, type InitializeAirdropMasterInput, type InitializeAirdropMasterInstruction, type InitializeAirdropMasterInstructionData, type InitializeAirdropMasterInstructionDataArgs, type ParsedClaimAirdropInstruction, type ParsedCreateAirdropInstruction, type ParsedCreateBitmapInstruction, type ParsedDepositTokensInstruction, type ParsedDropsyAirdropInstruction, type ParsedInitializeAirdropConfigInstruction, type ParsedInitializeAirdropMasterInstruction, type TokensDeposited, type TokensDepositedArgs, type TokensRedeemed, type TokensRedeemedArgs, decodeAirdrop, decodeAirdropConfig, decodeAirdropMaster, decodeBitmapAccount, fetchAirdrop, fetchAirdropConfig, fetchAirdropMaster, fetchAllAirdrop, fetchAllAirdropConfig, fetchAllAirdropMaster, fetchAllBitmapAccount, fetchAllMaybeAirdrop, fetchAllMaybeAirdropConfig, fetchAllMaybeAirdropMaster, fetchAllMaybeBitmapAccount, fetchBitmapAccount, fetchMaybeAirdrop, fetchMaybeAirdropConfig, fetchMaybeAirdropMaster, fetchMaybeBitmapAccount, getAirdropCodec, getAirdropConfigCodec, getAirdropConfigDecoder, getAirdropConfigDiscriminatorBytes, getAirdropConfigEncoder, getAirdropConfigSize, getAirdropDecoder, getAirdropDiscriminatorBytes, getAirdropEncoder, getAirdropInitializedCodec, getAirdropInitializedDecoder, getAirdropInitializedEncoder, getAirdropMasterCodec, getAirdropMasterDecoder, getAirdropMasterDiscriminatorBytes, getAirdropMasterEncoder, getAirdropMasterSize, getAirdropSize, getBitmapAccountCodec, getBitmapAccountDecoder, getBitmapAccountDiscriminatorBytes, getBitmapAccountEncoder, getBitmapAccountSize, getBitmapClosedCodec, getBitmapClosedDecoder, getBitmapClosedEncoder, getBitmapInitializedCodec, getBitmapInitializedDecoder, getBitmapInitializedEncoder, getClaimAirdropDiscriminatorBytes, getClaimAirdropInstruction, getClaimAirdropInstructionAsync, getClaimAirdropInstructionDataCodec, getClaimAirdropInstructionDataDecoder, getClaimAirdropInstructionDataEncoder, getCreateAirdropDiscriminatorBytes, getCreateAirdropInstruction, getCreateAirdropInstructionAsync, getCreateAirdropInstructionDataCodec, getCreateAirdropInstructionDataDecoder, getCreateAirdropInstructionDataEncoder, getCreateBitmapDiscriminatorBytes, getCreateBitmapInstruction, getCreateBitmapInstructionAsync, getCreateBitmapInstructionDataCodec, getCreateBitmapInstructionDataDecoder, getCreateBitmapInstructionDataEncoder, getDepositTokensDiscriminatorBytes, getDepositTokensInstruction, getDepositTokensInstructionAsync, getDepositTokensInstructionDataCodec, getDepositTokensInstructionDataDecoder, getDepositTokensInstructionDataEncoder, getDropsyAirdropErrorMessage, getInitializeAirdropConfigDiscriminatorBytes, getInitializeAirdropConfigInstruction, getInitializeAirdropConfigInstructionAsync, getInitializeAirdropConfigInstructionDataCodec, getInitializeAirdropConfigInstructionDataDecoder, getInitializeAirdropConfigInstructionDataEncoder, getInitializeAirdropMasterDiscriminatorBytes, getInitializeAirdropMasterInstruction, getInitializeAirdropMasterInstructionAsync, getInitializeAirdropMasterInstructionDataCodec, getInitializeAirdropMasterInstructionDataDecoder, getInitializeAirdropMasterInstructionDataEncoder, getTokensDepositedCodec, getTokensDepositedDecoder, getTokensDepositedEncoder, getTokensRedeemedCodec, getTokensRedeemedDecoder, getTokensRedeemedEncoder, identifyDropsyAirdropAccount, identifyDropsyAirdropInstruction, isDropsyAirdropError, parseClaimAirdropInstruction, parseCreateAirdropInstruction, parseCreateBitmapInstruction, parseDepositTokensInstruction, parseDropsyAirdropInstruction, parseInitializeAirdropConfigInstruction, parseInitializeAirdropMasterInstruction };