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