@dropsy/airdrop 0.2.1 → 0.2.2

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