@dropsy/airdrop 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +890 -0
- package/dist/index.d.ts +890 -0
- package/dist/index.js +1916 -0
- package/dist/index.mjs +1961 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +50 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1640 -0
- package/docs/functions/add.html +1 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +13 -0
- package/docs/modules.html +1 -0
- package/index.ts +0 -0
- package/new/index.js +2 -0
- package/new/node_modules/.package-lock.json +14 -0
- package/new/node_modules/@dropsy/easypublish/dist/index.d.mts +3 -0
- package/new/node_modules/@dropsy/easypublish/dist/index.d.ts +3 -0
- package/new/node_modules/@dropsy/easypublish/dist/index.js +32 -0
- package/new/node_modules/@dropsy/easypublish/dist/index.mjs +7 -0
- package/new/node_modules/@dropsy/easypublish/package.json +25 -0
- package/new/node_modules/@dropsy/easypublish/readme.md +21 -0
- package/new/node_modules/@dropsy/easypublish/tsup.config.ts +10 -0
- package/new/package-lock.json +22 -0
- package/new/package.json +16 -0
- package/package.json +37 -0
- package/readme.md +21 -0
- package/tsup.config.ts +10 -0
- package/typedoc.json +5 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,890 @@
|
|
|
1
|
+
import { ReadonlyUint8Array, Address, Encoder, Decoder, Codec, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, IAccountMeta, IInstruction, IInstructionWithData, IInstructionWithAccounts, WritableAccount, ReadonlyAccount, WritableSignerAccount, IAccountSignerMeta, TransactionSigner, ReadonlySignerAccount } 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;
|
|
13
|
+
type Airdrop = {
|
|
14
|
+
discriminator: ReadonlyUint8Array;
|
|
15
|
+
id: bigint;
|
|
16
|
+
mint: Address;
|
|
17
|
+
owner: Address;
|
|
18
|
+
controller: Address;
|
|
19
|
+
supply: bigint;
|
|
20
|
+
merkleRoot: Array<number>;
|
|
21
|
+
startsAt: bigint;
|
|
22
|
+
endsAt: bigint;
|
|
23
|
+
bitmapCount: number;
|
|
24
|
+
version: number;
|
|
25
|
+
bump: number;
|
|
26
|
+
};
|
|
27
|
+
type AirdropArgs = {
|
|
28
|
+
id: number | bigint;
|
|
29
|
+
mint: Address;
|
|
30
|
+
owner: Address;
|
|
31
|
+
controller: Address;
|
|
32
|
+
supply: number | bigint;
|
|
33
|
+
merkleRoot: Array<number>;
|
|
34
|
+
startsAt: number | bigint;
|
|
35
|
+
endsAt: number | bigint;
|
|
36
|
+
bitmapCount: number;
|
|
37
|
+
version: number;
|
|
38
|
+
bump: number;
|
|
39
|
+
};
|
|
40
|
+
declare function getAirdropEncoder(): Encoder<AirdropArgs>;
|
|
41
|
+
declare function getAirdropDecoder(): Decoder<Airdrop>;
|
|
42
|
+
declare function getAirdropCodec(): Codec<AirdropArgs, Airdrop>;
|
|
43
|
+
declare function decodeAirdrop<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Airdrop, TAddress>;
|
|
44
|
+
declare function decodeAirdrop<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Airdrop, TAddress>;
|
|
45
|
+
declare function fetchAirdrop<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Airdrop, TAddress>>;
|
|
46
|
+
declare function fetchMaybeAirdrop<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Airdrop, TAddress>>;
|
|
47
|
+
declare function fetchAllAirdrop(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Airdrop>[]>;
|
|
48
|
+
declare function fetchAllMaybeAirdrop(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Airdrop>[]>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* This code was AUTOGENERATED using the codama library.
|
|
52
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
53
|
+
* to add features, then rerun codama to update it.
|
|
54
|
+
*
|
|
55
|
+
* @see https://github.com/codama-idl/codama
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
declare const BITMAP_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
59
|
+
declare function getBitmapAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
60
|
+
type BitmapAccount = {
|
|
61
|
+
discriminator: ReadonlyUint8Array;
|
|
62
|
+
owner: Address;
|
|
63
|
+
airdrop: Address;
|
|
64
|
+
claimedBitmap: ReadonlyUint8Array;
|
|
65
|
+
id: number;
|
|
66
|
+
version: number;
|
|
67
|
+
bump: number;
|
|
68
|
+
};
|
|
69
|
+
type BitmapAccountArgs = {
|
|
70
|
+
owner: Address;
|
|
71
|
+
airdrop: Address;
|
|
72
|
+
claimedBitmap: ReadonlyUint8Array;
|
|
73
|
+
id: number;
|
|
74
|
+
version: number;
|
|
75
|
+
bump: number;
|
|
76
|
+
};
|
|
77
|
+
declare function getBitmapAccountEncoder(): Encoder<BitmapAccountArgs>;
|
|
78
|
+
declare function getBitmapAccountDecoder(): Decoder<BitmapAccount>;
|
|
79
|
+
declare function getBitmapAccountCodec(): Codec<BitmapAccountArgs, BitmapAccount>;
|
|
80
|
+
declare function decodeBitmapAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<BitmapAccount, TAddress>;
|
|
81
|
+
declare function decodeBitmapAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<BitmapAccount, TAddress>;
|
|
82
|
+
declare function fetchBitmapAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<BitmapAccount, TAddress>>;
|
|
83
|
+
declare function fetchMaybeBitmapAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<BitmapAccount, TAddress>>;
|
|
84
|
+
declare function fetchAllBitmapAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<BitmapAccount>[]>;
|
|
85
|
+
declare function fetchAllMaybeBitmapAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<BitmapAccount>[]>;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* This code was AUTOGENERATED using the codama library.
|
|
89
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
90
|
+
* to add features, then rerun codama to update it.
|
|
91
|
+
*
|
|
92
|
+
* @see https://github.com/codama-idl/codama
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
declare const CONTROLLER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
96
|
+
declare function getControllerDiscriminatorBytes(): ReadonlyUint8Array;
|
|
97
|
+
type Controller = {
|
|
98
|
+
discriminator: ReadonlyUint8Array;
|
|
99
|
+
/** the controller authority */
|
|
100
|
+
authority: Address;
|
|
101
|
+
/** Fee vault address (should be system-owned) */
|
|
102
|
+
feeVault: Address;
|
|
103
|
+
/** Fee amount (in lamports) to create an airdrop using this controller */
|
|
104
|
+
createFee: bigint;
|
|
105
|
+
/** Fee amount (in lamports) to claim an airdrop created with this controller */
|
|
106
|
+
claimFee: bigint;
|
|
107
|
+
version: number;
|
|
108
|
+
/** PDA bump seed */
|
|
109
|
+
bump: number;
|
|
110
|
+
};
|
|
111
|
+
type ControllerArgs = {
|
|
112
|
+
/** the controller authority */
|
|
113
|
+
authority: Address;
|
|
114
|
+
/** Fee vault address (should be system-owned) */
|
|
115
|
+
feeVault: Address;
|
|
116
|
+
/** Fee amount (in lamports) to create an airdrop using this controller */
|
|
117
|
+
createFee: number | bigint;
|
|
118
|
+
/** Fee amount (in lamports) to claim an airdrop created with this controller */
|
|
119
|
+
claimFee: number | bigint;
|
|
120
|
+
version: number;
|
|
121
|
+
/** PDA bump seed */
|
|
122
|
+
bump: number;
|
|
123
|
+
};
|
|
124
|
+
declare function getControllerEncoder(): Encoder<ControllerArgs>;
|
|
125
|
+
declare function getControllerDecoder(): Decoder<Controller>;
|
|
126
|
+
declare function getControllerCodec(): Codec<ControllerArgs, Controller>;
|
|
127
|
+
declare function decodeController<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Controller, TAddress>;
|
|
128
|
+
declare function decodeController<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Controller, TAddress>;
|
|
129
|
+
declare function fetchController<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Controller, TAddress>>;
|
|
130
|
+
declare function fetchMaybeController<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Controller, TAddress>>;
|
|
131
|
+
declare function fetchAllController(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Controller>[]>;
|
|
132
|
+
declare function fetchAllMaybeController(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Controller>[]>;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* This code was AUTOGENERATED using the codama library.
|
|
136
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
137
|
+
* to add features, then rerun codama to update it.
|
|
138
|
+
*
|
|
139
|
+
* @see https://github.com/codama-idl/codama
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
/** AirdropNotStarted: Airdrop has not started yet */
|
|
143
|
+
declare const DROPSY_ERROR__AIRDROP_NOT_STARTED = 6100;
|
|
144
|
+
/** AirdropEnded: Airdrop has already ended */
|
|
145
|
+
declare const DROPSY_ERROR__AIRDROP_ENDED = 6101;
|
|
146
|
+
/** AirdropNotEnded: Airdrop not yet ended */
|
|
147
|
+
declare const DROPSY_ERROR__AIRDROP_NOT_ENDED = 6102;
|
|
148
|
+
/** DurationTooShort: Airdrop duration must be at least 24 hours */
|
|
149
|
+
declare const DROPSY_ERROR__DURATION_TOO_SHORT = 6103;
|
|
150
|
+
/** InvalidEndTime: Airdrop must end at least 24 hours in the future */
|
|
151
|
+
declare const DROPSY_ERROR__INVALID_END_TIME = 6104;
|
|
152
|
+
/** InvalidOwner: Transaction sender is not the owner */
|
|
153
|
+
declare const DROPSY_ERROR__INVALID_OWNER = 6200;
|
|
154
|
+
/** OwnerMismatch: Airdrop owner mismatch */
|
|
155
|
+
declare const DROPSY_ERROR__OWNER_MISMATCH = 6201;
|
|
156
|
+
/** InvalidVaultAuthority: Invalid vault authority */
|
|
157
|
+
declare const DROPSY_ERROR__INVALID_VAULT_AUTHORITY = 6202;
|
|
158
|
+
/** InvalidDestinationOwner: Destination account owner is not the signer */
|
|
159
|
+
declare const DROPSY_ERROR__INVALID_DESTINATION_OWNER = 6203;
|
|
160
|
+
/** ControllerMismatch: Mismatched controller */
|
|
161
|
+
declare const DROPSY_ERROR__CONTROLLER_MISMATCH = 6204;
|
|
162
|
+
/** InvalidMint: Mint does not match stored state */
|
|
163
|
+
declare const DROPSY_ERROR__INVALID_MINT = 6300;
|
|
164
|
+
/** MintMismatch: Provided mint doesn't match airdrop's mint */
|
|
165
|
+
declare const DROPSY_ERROR__MINT_MISMATCH = 6301;
|
|
166
|
+
/** VaultMintMismatch: Vault mint doesn't match airdrop mint */
|
|
167
|
+
declare const DROPSY_ERROR__VAULT_MINT_MISMATCH = 6302;
|
|
168
|
+
/** DestinationMintMismatch: Destination mint doesn't match */
|
|
169
|
+
declare const DROPSY_ERROR__DESTINATION_MINT_MISMATCH = 6303;
|
|
170
|
+
/** MintIsFrozen: Mint is frozen */
|
|
171
|
+
declare const DROPSY_ERROR__MINT_IS_FROZEN = 6304;
|
|
172
|
+
/** InvalidMintOwner: Invalid token program owner */
|
|
173
|
+
declare const DROPSY_ERROR__INVALID_MINT_OWNER = 6305;
|
|
174
|
+
/** MintIsNotInitialized: Mint must be initialized */
|
|
175
|
+
declare const DROPSY_ERROR__MINT_IS_NOT_INITIALIZED = 6306;
|
|
176
|
+
/** MintHasFreezeAuthority: Mint has freeze authority */
|
|
177
|
+
declare const DROPSY_ERROR__MINT_HAS_FREEZE_AUTHORITY = 6307;
|
|
178
|
+
/** NftNotAllowed: Fungible tokens only (no NFTs) */
|
|
179
|
+
declare const DROPSY_ERROR__NFT_NOT_ALLOWED = 6308;
|
|
180
|
+
/** VaultHasDelegate: Vault has delegate set */
|
|
181
|
+
declare const DROPSY_ERROR__VAULT_HAS_DELEGATE = 6401;
|
|
182
|
+
/** VaultFrozen: Vault is frozen */
|
|
183
|
+
declare const DROPSY_ERROR__VAULT_FROZEN = 6402;
|
|
184
|
+
/** VaultHasCloseAuthority: Vault has close authority */
|
|
185
|
+
declare const DROPSY_ERROR__VAULT_HAS_CLOSE_AUTHORITY = 6403;
|
|
186
|
+
/** InvalidAirdropPda: Invalid vault account */
|
|
187
|
+
declare const DROPSY_ERROR__INVALID_AIRDROP_PDA = 6404;
|
|
188
|
+
/** VaultNotInitialized: Vault not initialized */
|
|
189
|
+
declare const DROPSY_ERROR__VAULT_NOT_INITIALIZED = 6405;
|
|
190
|
+
/** InsufficientVaultFunds: Insufficient vault funds */
|
|
191
|
+
declare const DROPSY_ERROR__INSUFFICIENT_VAULT_FUNDS = 6406;
|
|
192
|
+
/** SourceHasDelegate: Source has delegate set */
|
|
193
|
+
declare const DROPSY_ERROR__SOURCE_HAS_DELEGATE = 6450;
|
|
194
|
+
/** SourceAccountFrozen: Source account is frozen */
|
|
195
|
+
declare const DROPSY_ERROR__SOURCE_ACCOUNT_FROZEN = 6451;
|
|
196
|
+
/** SourceHasCloseAuthority: Source has close authority */
|
|
197
|
+
declare const DROPSY_ERROR__SOURCE_HAS_CLOSE_AUTHORITY = 6452;
|
|
198
|
+
/** InvalidProof: Invalid merkle proof */
|
|
199
|
+
declare const DROPSY_ERROR__INVALID_PROOF = 6500;
|
|
200
|
+
/** AlreadyClaimed: Tokens already claimed */
|
|
201
|
+
declare const DROPSY_ERROR__ALREADY_CLAIMED = 6501;
|
|
202
|
+
/** MissingBitmapPda: Missing bitmap PDA */
|
|
203
|
+
declare const DROPSY_ERROR__MISSING_BITMAP_PDA = 6502;
|
|
204
|
+
/** InvalidBitmapAccount: Invalid bitmap account */
|
|
205
|
+
declare const DROPSY_ERROR__INVALID_BITMAP_ACCOUNT = 6503;
|
|
206
|
+
/** InvalidBitmapIndex: Invalid bitmap index */
|
|
207
|
+
declare const DROPSY_ERROR__INVALID_BITMAP_INDEX = 6504;
|
|
208
|
+
/** TooManyBitmaps: Too many bitmap accounts */
|
|
209
|
+
declare const DROPSY_ERROR__TOO_MANY_BITMAPS = 6505;
|
|
210
|
+
/** BitmapTooLarge: Bitmap size exceeds limit */
|
|
211
|
+
declare const DROPSY_ERROR__BITMAP_TOO_LARGE = 6506;
|
|
212
|
+
/** InvalidTotal: Invalid total claimers */
|
|
213
|
+
declare const DROPSY_ERROR__INVALID_TOTAL = 6507;
|
|
214
|
+
/** BitmapAirdropMismatch: Bitmap/airdrop mismatch */
|
|
215
|
+
declare const DROPSY_ERROR__BITMAP_AIRDROP_MISMATCH = 6508;
|
|
216
|
+
/** ActiveBitmapsExist: Active bitmaps exist */
|
|
217
|
+
declare const DROPSY_ERROR__ACTIVE_BITMAPS_EXIST = 6509;
|
|
218
|
+
/** BitmapCountUnderflow: Bitmaps already closed */
|
|
219
|
+
declare const DROPSY_ERROR__BITMAP_COUNT_UNDERFLOW = 6510;
|
|
220
|
+
/** InsufficientDeposit: Insufficient SOL deposit */
|
|
221
|
+
declare const DROPSY_ERROR__INSUFFICIENT_DEPOSIT = 6600;
|
|
222
|
+
/** CreateFeeTooHigh: Create fee too high (>0.05 SOL) */
|
|
223
|
+
declare const DROPSY_ERROR__CREATE_FEE_TOO_HIGH = 6601;
|
|
224
|
+
/** ClaimFeeTooHigh: Claim fee too high (>0.005 SOL) */
|
|
225
|
+
declare const DROPSY_ERROR__CLAIM_FEE_TOO_HIGH = 6602;
|
|
226
|
+
/** InsufficientFundsForFee: Insufficient funds for fee */
|
|
227
|
+
declare const DROPSY_ERROR__INSUFFICIENT_FUNDS_FOR_FEE = 6603;
|
|
228
|
+
/** InvalidFeeVault: Invalid fee vault */
|
|
229
|
+
declare const DROPSY_ERROR__INVALID_FEE_VAULT = 6604;
|
|
230
|
+
/** InvalidFeeVaultOwner: Invalid fee vault owner */
|
|
231
|
+
declare const DROPSY_ERROR__INVALID_FEE_VAULT_OWNER = 6605;
|
|
232
|
+
/** InvalidFeeVaultCurve: Fee vault not in curve */
|
|
233
|
+
declare const DROPSY_ERROR__INVALID_FEE_VAULT_CURVE = 6606;
|
|
234
|
+
/** InvalidPda: Invalid PDA account */
|
|
235
|
+
declare const DROPSY_ERROR__INVALID_PDA = 6700;
|
|
236
|
+
/** InvalidAmount: Invalid amount */
|
|
237
|
+
declare const DROPSY_ERROR__INVALID_AMOUNT = 6701;
|
|
238
|
+
/** Overflow: Arithmetic overflow */
|
|
239
|
+
declare const DROPSY_ERROR__OVERFLOW = 6702;
|
|
240
|
+
/** VaultNotRentExempt: Vault not rent exempt */
|
|
241
|
+
declare const DROPSY_ERROR__VAULT_NOT_RENT_EXEMPT = 6703;
|
|
242
|
+
/** InvalidTreasuryAccount: invalid treasury account */
|
|
243
|
+
declare const DROPSY_ERROR__INVALID_TREASURY_ACCOUNT = 6704;
|
|
244
|
+
type DropsyError = typeof DROPSY_ERROR__ACTIVE_BITMAPS_EXIST | typeof DROPSY_ERROR__AIRDROP_ENDED | typeof DROPSY_ERROR__AIRDROP_NOT_ENDED | typeof DROPSY_ERROR__AIRDROP_NOT_STARTED | typeof DROPSY_ERROR__ALREADY_CLAIMED | typeof DROPSY_ERROR__BITMAP_AIRDROP_MISMATCH | typeof DROPSY_ERROR__BITMAP_COUNT_UNDERFLOW | typeof DROPSY_ERROR__BITMAP_TOO_LARGE | typeof DROPSY_ERROR__CLAIM_FEE_TOO_HIGH | typeof DROPSY_ERROR__CONTROLLER_MISMATCH | typeof DROPSY_ERROR__CREATE_FEE_TOO_HIGH | typeof DROPSY_ERROR__DESTINATION_MINT_MISMATCH | typeof DROPSY_ERROR__DURATION_TOO_SHORT | typeof DROPSY_ERROR__INSUFFICIENT_DEPOSIT | typeof DROPSY_ERROR__INSUFFICIENT_FUNDS_FOR_FEE | typeof DROPSY_ERROR__INSUFFICIENT_VAULT_FUNDS | typeof DROPSY_ERROR__INVALID_AIRDROP_PDA | typeof DROPSY_ERROR__INVALID_AMOUNT | typeof DROPSY_ERROR__INVALID_BITMAP_ACCOUNT | typeof DROPSY_ERROR__INVALID_BITMAP_INDEX | typeof DROPSY_ERROR__INVALID_DESTINATION_OWNER | typeof DROPSY_ERROR__INVALID_END_TIME | typeof DROPSY_ERROR__INVALID_FEE_VAULT | typeof DROPSY_ERROR__INVALID_FEE_VAULT_CURVE | typeof DROPSY_ERROR__INVALID_FEE_VAULT_OWNER | typeof DROPSY_ERROR__INVALID_MINT | typeof DROPSY_ERROR__INVALID_MINT_OWNER | typeof DROPSY_ERROR__INVALID_OWNER | typeof DROPSY_ERROR__INVALID_PDA | typeof DROPSY_ERROR__INVALID_PROOF | typeof DROPSY_ERROR__INVALID_TOTAL | typeof DROPSY_ERROR__INVALID_TREASURY_ACCOUNT | typeof DROPSY_ERROR__INVALID_VAULT_AUTHORITY | typeof DROPSY_ERROR__MINT_HAS_FREEZE_AUTHORITY | typeof DROPSY_ERROR__MINT_IS_FROZEN | typeof DROPSY_ERROR__MINT_IS_NOT_INITIALIZED | typeof DROPSY_ERROR__MINT_MISMATCH | typeof DROPSY_ERROR__MISSING_BITMAP_PDA | typeof DROPSY_ERROR__NFT_NOT_ALLOWED | typeof DROPSY_ERROR__OVERFLOW | typeof DROPSY_ERROR__OWNER_MISMATCH | typeof DROPSY_ERROR__SOURCE_ACCOUNT_FROZEN | typeof DROPSY_ERROR__SOURCE_HAS_CLOSE_AUTHORITY | typeof DROPSY_ERROR__SOURCE_HAS_DELEGATE | typeof DROPSY_ERROR__TOO_MANY_BITMAPS | typeof DROPSY_ERROR__VAULT_FROZEN | typeof DROPSY_ERROR__VAULT_HAS_CLOSE_AUTHORITY | typeof DROPSY_ERROR__VAULT_HAS_DELEGATE | typeof DROPSY_ERROR__VAULT_MINT_MISMATCH | typeof DROPSY_ERROR__VAULT_NOT_INITIALIZED | typeof DROPSY_ERROR__VAULT_NOT_RENT_EXEMPT;
|
|
245
|
+
declare function getDropsyErrorMessage(code: DropsyError): string;
|
|
246
|
+
declare function isDropsyError<TProgramErrorCode extends DropsyError>(error: unknown, transactionMessage: {
|
|
247
|
+
instructions: Record<number, {
|
|
248
|
+
programAddress: Address;
|
|
249
|
+
}>;
|
|
250
|
+
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
|
|
251
|
+
context: Readonly<{
|
|
252
|
+
code: TProgramErrorCode;
|
|
253
|
+
}>;
|
|
254
|
+
}>;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* This code was AUTOGENERATED using the codama library.
|
|
258
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
259
|
+
* to add features, then rerun codama to update it.
|
|
260
|
+
*
|
|
261
|
+
* @see https://github.com/codama-idl/codama
|
|
262
|
+
*/
|
|
263
|
+
|
|
264
|
+
declare const DROPSY_PROGRAM_ADDRESS: Address<"DropyEMekkCgKmsWiJVcTCAEeFgvHpDAW19ipWebFaPv">;
|
|
265
|
+
declare enum DropsyAccount {
|
|
266
|
+
Airdrop = 0,
|
|
267
|
+
BitmapAccount = 1,
|
|
268
|
+
Controller = 2
|
|
269
|
+
}
|
|
270
|
+
declare function identifyDropsyAccount(account: {
|
|
271
|
+
data: ReadonlyUint8Array;
|
|
272
|
+
} | ReadonlyUint8Array): DropsyAccount;
|
|
273
|
+
declare enum DropsyInstruction {
|
|
274
|
+
ClaimTokens = 0,
|
|
275
|
+
CloseAirdrop = 1,
|
|
276
|
+
CloseBitmap = 2,
|
|
277
|
+
DepositTokens = 3,
|
|
278
|
+
InitializeAirdrop = 4,
|
|
279
|
+
InitializeBitmap = 5,
|
|
280
|
+
InitializeController = 6
|
|
281
|
+
}
|
|
282
|
+
declare function identifyDropsyInstruction(instruction: {
|
|
283
|
+
data: ReadonlyUint8Array;
|
|
284
|
+
} | ReadonlyUint8Array): DropsyInstruction;
|
|
285
|
+
type ParsedDropsyInstruction<TProgram extends string = 'DropyEMekkCgKmsWiJVcTCAEeFgvHpDAW19ipWebFaPv'> = ({
|
|
286
|
+
instructionType: DropsyInstruction.ClaimTokens;
|
|
287
|
+
} & ParsedClaimTokensInstruction<TProgram>) | ({
|
|
288
|
+
instructionType: DropsyInstruction.CloseAirdrop;
|
|
289
|
+
} & ParsedCloseAirdropInstruction<TProgram>) | ({
|
|
290
|
+
instructionType: DropsyInstruction.CloseBitmap;
|
|
291
|
+
} & ParsedCloseBitmapInstruction<TProgram>) | ({
|
|
292
|
+
instructionType: DropsyInstruction.DepositTokens;
|
|
293
|
+
} & ParsedDepositTokensInstruction<TProgram>) | ({
|
|
294
|
+
instructionType: DropsyInstruction.InitializeAirdrop;
|
|
295
|
+
} & ParsedInitializeAirdropInstruction<TProgram>) | ({
|
|
296
|
+
instructionType: DropsyInstruction.InitializeBitmap;
|
|
297
|
+
} & ParsedInitializeBitmapInstruction<TProgram>) | ({
|
|
298
|
+
instructionType: DropsyInstruction.InitializeController;
|
|
299
|
+
} & ParsedInitializeControllerInstruction<TProgram>);
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* This code was AUTOGENERATED using the codama library.
|
|
303
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
304
|
+
* to add features, then rerun codama to update it.
|
|
305
|
+
*
|
|
306
|
+
* @see https://github.com/codama-idl/codama
|
|
307
|
+
*/
|
|
308
|
+
|
|
309
|
+
declare const CLAIM_TOKENS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
310
|
+
declare function getClaimTokensDiscriminatorBytes(): ReadonlyUint8Array;
|
|
311
|
+
type ClaimTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountVault extends string | IAccountMeta<string> = string, TAccountDestinationTokenAccount extends string | IAccountMeta<string> = string, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountBitmap extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string, TAccountFeeVault extends string | IAccountMeta<string> = string, TAccountController extends string | IAccountMeta<string> = string, TAccountClaimer extends string | IAccountMeta<string> = string, TAccountTreasury extends string | IAccountMeta<string> = 'DHffy4rNMtuL8VKgyBEay4jcq8AYHyoAzxLKU6aEijUV', TAccountTokenProgram extends string | IAccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
312
|
+
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
313
|
+
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
314
|
+
TAccountAirdrop extends string ? ReadonlyAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
315
|
+
TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
|
|
316
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
317
|
+
TAccountFeeVault extends string ? WritableAccount<TAccountFeeVault> : TAccountFeeVault,
|
|
318
|
+
TAccountController extends string ? ReadonlyAccount<TAccountController> : TAccountController,
|
|
319
|
+
TAccountClaimer extends string ? WritableSignerAccount<TAccountClaimer> & IAccountSignerMeta<TAccountClaimer> : TAccountClaimer,
|
|
320
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
321
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
322
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
323
|
+
...TRemainingAccounts
|
|
324
|
+
]>;
|
|
325
|
+
type ClaimTokensInstructionData = {
|
|
326
|
+
discriminator: ReadonlyUint8Array;
|
|
327
|
+
index: bigint;
|
|
328
|
+
proof: Array<Array<number>>;
|
|
329
|
+
amount: bigint;
|
|
330
|
+
};
|
|
331
|
+
type ClaimTokensInstructionDataArgs = {
|
|
332
|
+
index: number | bigint;
|
|
333
|
+
proof: Array<Array<number>>;
|
|
334
|
+
amount: number | bigint;
|
|
335
|
+
};
|
|
336
|
+
declare function getClaimTokensInstructionDataEncoder(): Encoder<ClaimTokensInstructionDataArgs>;
|
|
337
|
+
declare function getClaimTokensInstructionDataDecoder(): Decoder<ClaimTokensInstructionData>;
|
|
338
|
+
declare function getClaimTokensInstructionDataCodec(): Codec<ClaimTokensInstructionDataArgs, ClaimTokensInstructionData>;
|
|
339
|
+
type ClaimTokensInput<TAccountVault extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAirdrop extends string = string, TAccountBitmap extends string = string, TAccountMint extends string = string, TAccountFeeVault extends string = string, TAccountController extends string = string, TAccountClaimer extends string = string, TAccountTreasury extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
340
|
+
vault: Address<TAccountVault>;
|
|
341
|
+
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
342
|
+
airdrop: Address<TAccountAirdrop>;
|
|
343
|
+
bitmap: Address<TAccountBitmap>;
|
|
344
|
+
mint: Address<TAccountMint>;
|
|
345
|
+
feeVault: Address<TAccountFeeVault>;
|
|
346
|
+
controller: Address<TAccountController>;
|
|
347
|
+
claimer: TransactionSigner<TAccountClaimer>;
|
|
348
|
+
treasury?: Address<TAccountTreasury>;
|
|
349
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
350
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
351
|
+
index: ClaimTokensInstructionDataArgs['index'];
|
|
352
|
+
proof: ClaimTokensInstructionDataArgs['proof'];
|
|
353
|
+
amount: ClaimTokensInstructionDataArgs['amount'];
|
|
354
|
+
};
|
|
355
|
+
declare function getClaimTokensInstruction<TAccountVault extends string, TAccountDestinationTokenAccount extends string, TAccountAirdrop extends string, TAccountBitmap extends string, TAccountMint extends string, TAccountFeeVault extends string, TAccountController extends string, TAccountClaimer extends string, TAccountTreasury extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: ClaimTokensInput<TAccountVault, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountBitmap, TAccountMint, TAccountFeeVault, TAccountController, TAccountClaimer, TAccountTreasury, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
356
|
+
programAddress?: TProgramAddress;
|
|
357
|
+
}): ClaimTokensInstruction<TProgramAddress, TAccountVault, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountBitmap, TAccountMint, TAccountFeeVault, TAccountController, TAccountClaimer, TAccountTreasury, TAccountTokenProgram, TAccountSystemProgram>;
|
|
358
|
+
type ParsedClaimTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
359
|
+
programAddress: Address<TProgram>;
|
|
360
|
+
accounts: {
|
|
361
|
+
vault: TAccountMetas[0];
|
|
362
|
+
destinationTokenAccount: TAccountMetas[1];
|
|
363
|
+
airdrop: TAccountMetas[2];
|
|
364
|
+
bitmap: TAccountMetas[3];
|
|
365
|
+
mint: TAccountMetas[4];
|
|
366
|
+
feeVault: TAccountMetas[5];
|
|
367
|
+
controller: TAccountMetas[6];
|
|
368
|
+
claimer: TAccountMetas[7];
|
|
369
|
+
treasury: TAccountMetas[8];
|
|
370
|
+
tokenProgram: TAccountMetas[9];
|
|
371
|
+
systemProgram: TAccountMetas[10];
|
|
372
|
+
};
|
|
373
|
+
data: ClaimTokensInstructionData;
|
|
374
|
+
};
|
|
375
|
+
declare function parseClaimTokensInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedClaimTokensInstruction<TProgram, TAccountMetas>;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* This code was AUTOGENERATED using the codama library.
|
|
379
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
380
|
+
* to add features, then rerun codama to update it.
|
|
381
|
+
*
|
|
382
|
+
* @see https://github.com/codama-idl/codama
|
|
383
|
+
*/
|
|
384
|
+
|
|
385
|
+
declare const CLOSE_AIRDROP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
386
|
+
declare function getCloseAirdropDiscriminatorBytes(): ReadonlyUint8Array;
|
|
387
|
+
type CloseAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountVault extends string | IAccountMeta<string> = string, TAccountDestinationTokenAccount extends string | IAccountMeta<string> = string, TAccountOwner extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string, TAccountTokenProgram extends string | IAccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
388
|
+
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
389
|
+
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
390
|
+
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
391
|
+
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & IAccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
392
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
393
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
394
|
+
...TRemainingAccounts
|
|
395
|
+
]>;
|
|
396
|
+
type CloseAirdropInstructionData = {
|
|
397
|
+
discriminator: ReadonlyUint8Array;
|
|
398
|
+
};
|
|
399
|
+
type CloseAirdropInstructionDataArgs = {};
|
|
400
|
+
declare function getCloseAirdropInstructionDataEncoder(): Encoder<CloseAirdropInstructionDataArgs>;
|
|
401
|
+
declare function getCloseAirdropInstructionDataDecoder(): Decoder<CloseAirdropInstructionData>;
|
|
402
|
+
declare function getCloseAirdropInstructionDataCodec(): Codec<CloseAirdropInstructionDataArgs, CloseAirdropInstructionData>;
|
|
403
|
+
type CloseAirdropInput<TAccountAirdrop extends string = string, TAccountVault extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountOwner extends string = string, TAccountMint extends string = string, TAccountTokenProgram extends string = string> = {
|
|
404
|
+
airdrop: Address<TAccountAirdrop>;
|
|
405
|
+
vault: Address<TAccountVault>;
|
|
406
|
+
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
407
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
408
|
+
mint: Address<TAccountMint>;
|
|
409
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
410
|
+
};
|
|
411
|
+
declare function getCloseAirdropInstruction<TAccountAirdrop extends string, TAccountVault extends string, TAccountDestinationTokenAccount extends string, TAccountOwner extends string, TAccountMint extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: CloseAirdropInput<TAccountAirdrop, TAccountVault, TAccountDestinationTokenAccount, TAccountOwner, TAccountMint, TAccountTokenProgram>, config?: {
|
|
412
|
+
programAddress?: TProgramAddress;
|
|
413
|
+
}): CloseAirdropInstruction<TProgramAddress, TAccountAirdrop, TAccountVault, TAccountDestinationTokenAccount, TAccountOwner, TAccountMint, TAccountTokenProgram>;
|
|
414
|
+
type ParsedCloseAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
415
|
+
programAddress: Address<TProgram>;
|
|
416
|
+
accounts: {
|
|
417
|
+
airdrop: TAccountMetas[0];
|
|
418
|
+
vault: TAccountMetas[1];
|
|
419
|
+
destinationTokenAccount: TAccountMetas[2];
|
|
420
|
+
owner: TAccountMetas[3];
|
|
421
|
+
mint: TAccountMetas[4];
|
|
422
|
+
tokenProgram: TAccountMetas[5];
|
|
423
|
+
};
|
|
424
|
+
data: CloseAirdropInstructionData;
|
|
425
|
+
};
|
|
426
|
+
declare function parseCloseAirdropInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCloseAirdropInstruction<TProgram, TAccountMetas>;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* This code was AUTOGENERATED using the codama library.
|
|
430
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
431
|
+
* to add features, then rerun codama to update it.
|
|
432
|
+
*
|
|
433
|
+
* @see https://github.com/codama-idl/codama
|
|
434
|
+
*/
|
|
435
|
+
|
|
436
|
+
declare const CLOSE_BITMAP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
437
|
+
declare function getCloseBitmapDiscriminatorBytes(): ReadonlyUint8Array;
|
|
438
|
+
type CloseBitmapInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountBitmap extends string | IAccountMeta<string> = string, TAccountOwner extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
439
|
+
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
440
|
+
TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
|
|
441
|
+
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & IAccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
442
|
+
...TRemainingAccounts
|
|
443
|
+
]>;
|
|
444
|
+
type CloseBitmapInstructionData = {
|
|
445
|
+
discriminator: ReadonlyUint8Array;
|
|
446
|
+
};
|
|
447
|
+
type CloseBitmapInstructionDataArgs = {};
|
|
448
|
+
declare function getCloseBitmapInstructionDataEncoder(): Encoder<CloseBitmapInstructionDataArgs>;
|
|
449
|
+
declare function getCloseBitmapInstructionDataDecoder(): Decoder<CloseBitmapInstructionData>;
|
|
450
|
+
declare function getCloseBitmapInstructionDataCodec(): Codec<CloseBitmapInstructionDataArgs, CloseBitmapInstructionData>;
|
|
451
|
+
type CloseBitmapInput<TAccountAirdrop extends string = string, TAccountBitmap extends string = string, TAccountOwner extends string = string> = {
|
|
452
|
+
airdrop: Address<TAccountAirdrop>;
|
|
453
|
+
bitmap: Address<TAccountBitmap>;
|
|
454
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
455
|
+
};
|
|
456
|
+
declare function getCloseBitmapInstruction<TAccountAirdrop extends string, TAccountBitmap extends string, TAccountOwner extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: CloseBitmapInput<TAccountAirdrop, TAccountBitmap, TAccountOwner>, config?: {
|
|
457
|
+
programAddress?: TProgramAddress;
|
|
458
|
+
}): CloseBitmapInstruction<TProgramAddress, TAccountAirdrop, TAccountBitmap, TAccountOwner>;
|
|
459
|
+
type ParsedCloseBitmapInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
460
|
+
programAddress: Address<TProgram>;
|
|
461
|
+
accounts: {
|
|
462
|
+
airdrop: TAccountMetas[0];
|
|
463
|
+
bitmap: TAccountMetas[1];
|
|
464
|
+
owner: TAccountMetas[2];
|
|
465
|
+
};
|
|
466
|
+
data: CloseBitmapInstructionData;
|
|
467
|
+
};
|
|
468
|
+
declare function parseCloseBitmapInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCloseBitmapInstruction<TProgram, TAccountMetas>;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* This code was AUTOGENERATED using the codama library.
|
|
472
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
473
|
+
* to add features, then rerun codama to update it.
|
|
474
|
+
*
|
|
475
|
+
* @see https://github.com/codama-idl/codama
|
|
476
|
+
*/
|
|
477
|
+
|
|
478
|
+
declare const DEPOSIT_TOKENS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
479
|
+
declare function getDepositTokensDiscriminatorBytes(): ReadonlyUint8Array;
|
|
480
|
+
type DepositTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountSourceTokenAccount extends string | IAccountMeta<string> = string, TAccountVault extends string | IAccountMeta<string> = string, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string, TAccountOwner extends string | IAccountMeta<string> = string, TAccountTokenProgram extends string | IAccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
481
|
+
TAccountSourceTokenAccount extends string ? WritableAccount<TAccountSourceTokenAccount> : TAccountSourceTokenAccount,
|
|
482
|
+
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
483
|
+
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
484
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
485
|
+
TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & IAccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
486
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
487
|
+
...TRemainingAccounts
|
|
488
|
+
]>;
|
|
489
|
+
type DepositTokensInstructionData = {
|
|
490
|
+
discriminator: ReadonlyUint8Array;
|
|
491
|
+
amount: bigint;
|
|
492
|
+
};
|
|
493
|
+
type DepositTokensInstructionDataArgs = {
|
|
494
|
+
amount: number | bigint;
|
|
495
|
+
};
|
|
496
|
+
declare function getDepositTokensInstructionDataEncoder(): Encoder<DepositTokensInstructionDataArgs>;
|
|
497
|
+
declare function getDepositTokensInstructionDataDecoder(): Decoder<DepositTokensInstructionData>;
|
|
498
|
+
declare function getDepositTokensInstructionDataCodec(): Codec<DepositTokensInstructionDataArgs, DepositTokensInstructionData>;
|
|
499
|
+
type DepositTokensInput<TAccountSourceTokenAccount extends string = string, TAccountVault extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountOwner extends string = string, TAccountTokenProgram extends string = string> = {
|
|
500
|
+
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
501
|
+
vault: Address<TAccountVault>;
|
|
502
|
+
airdrop: Address<TAccountAirdrop>;
|
|
503
|
+
mint: Address<TAccountMint>;
|
|
504
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
505
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
506
|
+
amount: DepositTokensInstructionDataArgs['amount'];
|
|
507
|
+
};
|
|
508
|
+
declare function getDepositTokensInstruction<TAccountSourceTokenAccount extends string, TAccountVault extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountOwner extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: DepositTokensInput<TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountOwner, TAccountTokenProgram>, config?: {
|
|
509
|
+
programAddress?: TProgramAddress;
|
|
510
|
+
}): DepositTokensInstruction<TProgramAddress, TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountOwner, TAccountTokenProgram>;
|
|
511
|
+
type ParsedDepositTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
512
|
+
programAddress: Address<TProgram>;
|
|
513
|
+
accounts: {
|
|
514
|
+
sourceTokenAccount: TAccountMetas[0];
|
|
515
|
+
vault: TAccountMetas[1];
|
|
516
|
+
airdrop: TAccountMetas[2];
|
|
517
|
+
mint: TAccountMetas[3];
|
|
518
|
+
owner: TAccountMetas[4];
|
|
519
|
+
tokenProgram: TAccountMetas[5];
|
|
520
|
+
};
|
|
521
|
+
data: DepositTokensInstructionData;
|
|
522
|
+
};
|
|
523
|
+
declare function parseDepositTokensInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDepositTokensInstruction<TProgram, TAccountMetas>;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* This code was AUTOGENERATED using the codama library.
|
|
527
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
528
|
+
* to add features, then rerun codama to update it.
|
|
529
|
+
*
|
|
530
|
+
* @see https://github.com/codama-idl/codama
|
|
531
|
+
*/
|
|
532
|
+
|
|
533
|
+
declare const INITIALIZE_AIRDROP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
534
|
+
declare function getInitializeAirdropDiscriminatorBytes(): ReadonlyUint8Array;
|
|
535
|
+
type InitializeAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMint extends string | IAccountMeta<string> = string, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountController extends string | IAccountMeta<string> = string, TAccountFeeVault extends string | IAccountMeta<string> = string, TAccountOwner extends string | IAccountMeta<string> = string, TAccountTreasury extends string | IAccountMeta<string> = 'DHffy4rNMtuL8VKgyBEay4jcq8AYHyoAzxLKU6aEijUV', TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
536
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
537
|
+
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
538
|
+
TAccountController extends string ? WritableAccount<TAccountController> : TAccountController,
|
|
539
|
+
TAccountFeeVault extends string ? WritableAccount<TAccountFeeVault> : TAccountFeeVault,
|
|
540
|
+
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & IAccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
541
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
542
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
543
|
+
...TRemainingAccounts
|
|
544
|
+
]>;
|
|
545
|
+
type InitializeAirdropInstructionData = {
|
|
546
|
+
discriminator: ReadonlyUint8Array;
|
|
547
|
+
id: bigint;
|
|
548
|
+
merkleRoot: Array<number>;
|
|
549
|
+
startsTime: bigint;
|
|
550
|
+
endTime: bigint;
|
|
551
|
+
};
|
|
552
|
+
type InitializeAirdropInstructionDataArgs = {
|
|
553
|
+
id: number | bigint;
|
|
554
|
+
merkleRoot: Array<number>;
|
|
555
|
+
startsTime: number | bigint;
|
|
556
|
+
endTime: number | bigint;
|
|
557
|
+
};
|
|
558
|
+
declare function getInitializeAirdropInstructionDataEncoder(): Encoder<InitializeAirdropInstructionDataArgs>;
|
|
559
|
+
declare function getInitializeAirdropInstructionDataDecoder(): Decoder<InitializeAirdropInstructionData>;
|
|
560
|
+
declare function getInitializeAirdropInstructionDataCodec(): Codec<InitializeAirdropInstructionDataArgs, InitializeAirdropInstructionData>;
|
|
561
|
+
type InitializeAirdropAsyncInput<TAccountMint extends string = string, TAccountAirdrop extends string = string, TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountOwner extends string = string, TAccountTreasury extends string = string, TAccountSystemProgram extends string = string> = {
|
|
562
|
+
mint: Address<TAccountMint>;
|
|
563
|
+
airdrop?: Address<TAccountAirdrop>;
|
|
564
|
+
controller: Address<TAccountController>;
|
|
565
|
+
feeVault: Address<TAccountFeeVault>;
|
|
566
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
567
|
+
treasury?: Address<TAccountTreasury>;
|
|
568
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
569
|
+
id: InitializeAirdropInstructionDataArgs['id'];
|
|
570
|
+
merkleRoot: InitializeAirdropInstructionDataArgs['merkleRoot'];
|
|
571
|
+
startsTime: InitializeAirdropInstructionDataArgs['startsTime'];
|
|
572
|
+
endTime: InitializeAirdropInstructionDataArgs['endTime'];
|
|
573
|
+
};
|
|
574
|
+
declare function getInitializeAirdropInstructionAsync<TAccountMint extends string, TAccountAirdrop extends string, TAccountController extends string, TAccountFeeVault extends string, TAccountOwner extends string, TAccountTreasury extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeAirdropAsyncInput<TAccountMint, TAccountAirdrop, TAccountController, TAccountFeeVault, TAccountOwner, TAccountTreasury, TAccountSystemProgram>, config?: {
|
|
575
|
+
programAddress?: TProgramAddress;
|
|
576
|
+
}): Promise<InitializeAirdropInstruction<TProgramAddress, TAccountMint, TAccountAirdrop, TAccountController, TAccountFeeVault, TAccountOwner, TAccountTreasury, TAccountSystemProgram>>;
|
|
577
|
+
type InitializeAirdropInput<TAccountMint extends string = string, TAccountAirdrop extends string = string, TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountOwner extends string = string, TAccountTreasury extends string = string, TAccountSystemProgram extends string = string> = {
|
|
578
|
+
mint: Address<TAccountMint>;
|
|
579
|
+
airdrop: Address<TAccountAirdrop>;
|
|
580
|
+
controller: Address<TAccountController>;
|
|
581
|
+
feeVault: Address<TAccountFeeVault>;
|
|
582
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
583
|
+
treasury?: Address<TAccountTreasury>;
|
|
584
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
585
|
+
id: InitializeAirdropInstructionDataArgs['id'];
|
|
586
|
+
merkleRoot: InitializeAirdropInstructionDataArgs['merkleRoot'];
|
|
587
|
+
startsTime: InitializeAirdropInstructionDataArgs['startsTime'];
|
|
588
|
+
endTime: InitializeAirdropInstructionDataArgs['endTime'];
|
|
589
|
+
};
|
|
590
|
+
declare function getInitializeAirdropInstruction<TAccountMint extends string, TAccountAirdrop extends string, TAccountController extends string, TAccountFeeVault extends string, TAccountOwner extends string, TAccountTreasury extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeAirdropInput<TAccountMint, TAccountAirdrop, TAccountController, TAccountFeeVault, TAccountOwner, TAccountTreasury, TAccountSystemProgram>, config?: {
|
|
591
|
+
programAddress?: TProgramAddress;
|
|
592
|
+
}): InitializeAirdropInstruction<TProgramAddress, TAccountMint, TAccountAirdrop, TAccountController, TAccountFeeVault, TAccountOwner, TAccountTreasury, TAccountSystemProgram>;
|
|
593
|
+
type ParsedInitializeAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
594
|
+
programAddress: Address<TProgram>;
|
|
595
|
+
accounts: {
|
|
596
|
+
mint: TAccountMetas[0];
|
|
597
|
+
airdrop: TAccountMetas[1];
|
|
598
|
+
controller: TAccountMetas[2];
|
|
599
|
+
feeVault: TAccountMetas[3];
|
|
600
|
+
owner: TAccountMetas[4];
|
|
601
|
+
treasury: TAccountMetas[5];
|
|
602
|
+
systemProgram: TAccountMetas[6];
|
|
603
|
+
};
|
|
604
|
+
data: InitializeAirdropInstructionData;
|
|
605
|
+
};
|
|
606
|
+
declare function parseInitializeAirdropInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedInitializeAirdropInstruction<TProgram, TAccountMetas>;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* This code was AUTOGENERATED using the codama library.
|
|
610
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
611
|
+
* to add features, then rerun codama to update it.
|
|
612
|
+
*
|
|
613
|
+
* @see https://github.com/codama-idl/codama
|
|
614
|
+
*/
|
|
615
|
+
|
|
616
|
+
declare const INITIALIZE_BITMAP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
617
|
+
declare function getInitializeBitmapDiscriminatorBytes(): ReadonlyUint8Array;
|
|
618
|
+
type InitializeBitmapInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountBitmap extends string | IAccountMeta<string> = string, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountOwner extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
619
|
+
TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
|
|
620
|
+
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
621
|
+
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & IAccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
622
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
623
|
+
...TRemainingAccounts
|
|
624
|
+
]>;
|
|
625
|
+
type InitializeBitmapInstructionData = {
|
|
626
|
+
discriminator: ReadonlyUint8Array;
|
|
627
|
+
id: number;
|
|
628
|
+
total: bigint;
|
|
629
|
+
};
|
|
630
|
+
type InitializeBitmapInstructionDataArgs = {
|
|
631
|
+
id: number;
|
|
632
|
+
total: number | bigint;
|
|
633
|
+
};
|
|
634
|
+
declare function getInitializeBitmapInstructionDataEncoder(): Encoder<InitializeBitmapInstructionDataArgs>;
|
|
635
|
+
declare function getInitializeBitmapInstructionDataDecoder(): Decoder<InitializeBitmapInstructionData>;
|
|
636
|
+
declare function getInitializeBitmapInstructionDataCodec(): Codec<InitializeBitmapInstructionDataArgs, InitializeBitmapInstructionData>;
|
|
637
|
+
type InitializeBitmapAsyncInput<TAccountBitmap extends string = string, TAccountAirdrop extends string = string, TAccountOwner extends string = string, TAccountSystemProgram extends string = string> = {
|
|
638
|
+
bitmap?: Address<TAccountBitmap>;
|
|
639
|
+
airdrop: Address<TAccountAirdrop>;
|
|
640
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
641
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
642
|
+
id: InitializeBitmapInstructionDataArgs['id'];
|
|
643
|
+
total: InitializeBitmapInstructionDataArgs['total'];
|
|
644
|
+
};
|
|
645
|
+
declare function getInitializeBitmapInstructionAsync<TAccountBitmap extends string, TAccountAirdrop extends string, TAccountOwner extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeBitmapAsyncInput<TAccountBitmap, TAccountAirdrop, TAccountOwner, TAccountSystemProgram>, config?: {
|
|
646
|
+
programAddress?: TProgramAddress;
|
|
647
|
+
}): Promise<InitializeBitmapInstruction<TProgramAddress, TAccountBitmap, TAccountAirdrop, TAccountOwner, TAccountSystemProgram>>;
|
|
648
|
+
type InitializeBitmapInput<TAccountBitmap extends string = string, TAccountAirdrop extends string = string, TAccountOwner extends string = string, TAccountSystemProgram extends string = string> = {
|
|
649
|
+
bitmap: Address<TAccountBitmap>;
|
|
650
|
+
airdrop: Address<TAccountAirdrop>;
|
|
651
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
652
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
653
|
+
id: InitializeBitmapInstructionDataArgs['id'];
|
|
654
|
+
total: InitializeBitmapInstructionDataArgs['total'];
|
|
655
|
+
};
|
|
656
|
+
declare function getInitializeBitmapInstruction<TAccountBitmap extends string, TAccountAirdrop extends string, TAccountOwner extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeBitmapInput<TAccountBitmap, TAccountAirdrop, TAccountOwner, TAccountSystemProgram>, config?: {
|
|
657
|
+
programAddress?: TProgramAddress;
|
|
658
|
+
}): InitializeBitmapInstruction<TProgramAddress, TAccountBitmap, TAccountAirdrop, TAccountOwner, TAccountSystemProgram>;
|
|
659
|
+
type ParsedInitializeBitmapInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
660
|
+
programAddress: Address<TProgram>;
|
|
661
|
+
accounts: {
|
|
662
|
+
bitmap: TAccountMetas[0];
|
|
663
|
+
airdrop: TAccountMetas[1];
|
|
664
|
+
owner: TAccountMetas[2];
|
|
665
|
+
systemProgram: TAccountMetas[3];
|
|
666
|
+
};
|
|
667
|
+
data: InitializeBitmapInstructionData;
|
|
668
|
+
};
|
|
669
|
+
declare function parseInitializeBitmapInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedInitializeBitmapInstruction<TProgram, TAccountMetas>;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* This code was AUTOGENERATED using the codama library.
|
|
673
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
674
|
+
* to add features, then rerun codama to update it.
|
|
675
|
+
*
|
|
676
|
+
* @see https://github.com/codama-idl/codama
|
|
677
|
+
*/
|
|
678
|
+
|
|
679
|
+
declare const INITIALIZE_CONTROLLER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
680
|
+
declare function getInitializeControllerDiscriminatorBytes(): ReadonlyUint8Array;
|
|
681
|
+
type InitializeControllerInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountController extends string | IAccountMeta<string> = string, TAccountFeeVault extends string | IAccountMeta<string> = string, TAccountTreasury extends string | IAccountMeta<string> = 'DHffy4rNMtuL8VKgyBEay4jcq8AYHyoAzxLKU6aEijUV', TAccountPayer extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
682
|
+
TAccountController extends string ? WritableAccount<TAccountController> : TAccountController,
|
|
683
|
+
TAccountFeeVault extends string ? ReadonlyAccount<TAccountFeeVault> : TAccountFeeVault,
|
|
684
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
685
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & IAccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
686
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
687
|
+
...TRemainingAccounts
|
|
688
|
+
]>;
|
|
689
|
+
type InitializeControllerInstructionData = {
|
|
690
|
+
discriminator: ReadonlyUint8Array;
|
|
691
|
+
createFee: bigint;
|
|
692
|
+
claimFee: bigint;
|
|
693
|
+
};
|
|
694
|
+
type InitializeControllerInstructionDataArgs = {
|
|
695
|
+
createFee: number | bigint;
|
|
696
|
+
claimFee: number | bigint;
|
|
697
|
+
};
|
|
698
|
+
declare function getInitializeControllerInstructionDataEncoder(): Encoder<InitializeControllerInstructionDataArgs>;
|
|
699
|
+
declare function getInitializeControllerInstructionDataDecoder(): Decoder<InitializeControllerInstructionData>;
|
|
700
|
+
declare function getInitializeControllerInstructionDataCodec(): Codec<InitializeControllerInstructionDataArgs, InitializeControllerInstructionData>;
|
|
701
|
+
type InitializeControllerAsyncInput<TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountTreasury extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
|
|
702
|
+
controller?: Address<TAccountController>;
|
|
703
|
+
feeVault: Address<TAccountFeeVault>;
|
|
704
|
+
treasury?: Address<TAccountTreasury>;
|
|
705
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
706
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
707
|
+
createFee: InitializeControllerInstructionDataArgs['createFee'];
|
|
708
|
+
claimFee: InitializeControllerInstructionDataArgs['claimFee'];
|
|
709
|
+
};
|
|
710
|
+
declare function getInitializeControllerInstructionAsync<TAccountController extends string, TAccountFeeVault extends string, TAccountTreasury extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeControllerAsyncInput<TAccountController, TAccountFeeVault, TAccountTreasury, TAccountPayer, TAccountSystemProgram>, config?: {
|
|
711
|
+
programAddress?: TProgramAddress;
|
|
712
|
+
}): Promise<InitializeControllerInstruction<TProgramAddress, TAccountController, TAccountFeeVault, TAccountTreasury, TAccountPayer, TAccountSystemProgram>>;
|
|
713
|
+
type InitializeControllerInput<TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountTreasury extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
|
|
714
|
+
controller: Address<TAccountController>;
|
|
715
|
+
feeVault: Address<TAccountFeeVault>;
|
|
716
|
+
treasury?: Address<TAccountTreasury>;
|
|
717
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
718
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
719
|
+
createFee: InitializeControllerInstructionDataArgs['createFee'];
|
|
720
|
+
claimFee: InitializeControllerInstructionDataArgs['claimFee'];
|
|
721
|
+
};
|
|
722
|
+
declare function getInitializeControllerInstruction<TAccountController extends string, TAccountFeeVault extends string, TAccountTreasury extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeControllerInput<TAccountController, TAccountFeeVault, TAccountTreasury, TAccountPayer, TAccountSystemProgram>, config?: {
|
|
723
|
+
programAddress?: TProgramAddress;
|
|
724
|
+
}): InitializeControllerInstruction<TProgramAddress, TAccountController, TAccountFeeVault, TAccountTreasury, TAccountPayer, TAccountSystemProgram>;
|
|
725
|
+
type ParsedInitializeControllerInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
726
|
+
programAddress: Address<TProgram>;
|
|
727
|
+
accounts: {
|
|
728
|
+
controller: TAccountMetas[0];
|
|
729
|
+
feeVault: TAccountMetas[1];
|
|
730
|
+
treasury: TAccountMetas[2];
|
|
731
|
+
payer: TAccountMetas[3];
|
|
732
|
+
systemProgram: TAccountMetas[4];
|
|
733
|
+
};
|
|
734
|
+
data: InitializeControllerInstructionData;
|
|
735
|
+
};
|
|
736
|
+
declare function parseInitializeControllerInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedInitializeControllerInstruction<TProgram, TAccountMetas>;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* This code was AUTOGENERATED using the codama library.
|
|
740
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
741
|
+
* to add features, then rerun codama to update it.
|
|
742
|
+
*
|
|
743
|
+
* @see https://github.com/codama-idl/codama
|
|
744
|
+
*/
|
|
745
|
+
|
|
746
|
+
type AirdropClosed = {
|
|
747
|
+
airdrop: Address;
|
|
748
|
+
owner: Address;
|
|
749
|
+
timestamp: bigint;
|
|
750
|
+
};
|
|
751
|
+
type AirdropClosedArgs = {
|
|
752
|
+
airdrop: Address;
|
|
753
|
+
owner: Address;
|
|
754
|
+
timestamp: number | bigint;
|
|
755
|
+
};
|
|
756
|
+
declare function getAirdropClosedEncoder(): Encoder<AirdropClosedArgs>;
|
|
757
|
+
declare function getAirdropClosedDecoder(): Decoder<AirdropClosed>;
|
|
758
|
+
declare function getAirdropClosedCodec(): Codec<AirdropClosedArgs, AirdropClosed>;
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* This code was AUTOGENERATED using the codama library.
|
|
762
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
763
|
+
* to add features, then rerun codama to update it.
|
|
764
|
+
*
|
|
765
|
+
* @see https://github.com/codama-idl/codama
|
|
766
|
+
*/
|
|
767
|
+
|
|
768
|
+
type AirdropInitialized = {
|
|
769
|
+
airdrop: Address;
|
|
770
|
+
mint: Address;
|
|
771
|
+
owner: Address;
|
|
772
|
+
controller: Address;
|
|
773
|
+
controllerAuthority: Address;
|
|
774
|
+
merkleRoot: Array<number>;
|
|
775
|
+
startTime: bigint;
|
|
776
|
+
endTime: bigint;
|
|
777
|
+
timestamp: bigint;
|
|
778
|
+
};
|
|
779
|
+
type AirdropInitializedArgs = {
|
|
780
|
+
airdrop: Address;
|
|
781
|
+
mint: Address;
|
|
782
|
+
owner: Address;
|
|
783
|
+
controller: Address;
|
|
784
|
+
controllerAuthority: Address;
|
|
785
|
+
merkleRoot: Array<number>;
|
|
786
|
+
startTime: number | bigint;
|
|
787
|
+
endTime: number | bigint;
|
|
788
|
+
timestamp: number | bigint;
|
|
789
|
+
};
|
|
790
|
+
declare function getAirdropInitializedEncoder(): Encoder<AirdropInitializedArgs>;
|
|
791
|
+
declare function getAirdropInitializedDecoder(): Decoder<AirdropInitialized>;
|
|
792
|
+
declare function getAirdropInitializedCodec(): Codec<AirdropInitializedArgs, AirdropInitialized>;
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* This code was AUTOGENERATED using the codama library.
|
|
796
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
797
|
+
* to add features, then rerun codama to update it.
|
|
798
|
+
*
|
|
799
|
+
* @see https://github.com/codama-idl/codama
|
|
800
|
+
*/
|
|
801
|
+
|
|
802
|
+
type BitmapClosed = {
|
|
803
|
+
airdrop: Address;
|
|
804
|
+
bitmap: Address;
|
|
805
|
+
owner: Address;
|
|
806
|
+
};
|
|
807
|
+
type BitmapClosedArgs = BitmapClosed;
|
|
808
|
+
declare function getBitmapClosedEncoder(): Encoder<BitmapClosedArgs>;
|
|
809
|
+
declare function getBitmapClosedDecoder(): Decoder<BitmapClosed>;
|
|
810
|
+
declare function getBitmapClosedCodec(): Codec<BitmapClosedArgs, BitmapClosed>;
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* This code was AUTOGENERATED using the codama library.
|
|
814
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
815
|
+
* to add features, then rerun codama to update it.
|
|
816
|
+
*
|
|
817
|
+
* @see https://github.com/codama-idl/codama
|
|
818
|
+
*/
|
|
819
|
+
|
|
820
|
+
type BitmapInitialized = {
|
|
821
|
+
airdrop: Address;
|
|
822
|
+
bitmap: Address;
|
|
823
|
+
bitmapId: number;
|
|
824
|
+
totalClaims: bigint;
|
|
825
|
+
};
|
|
826
|
+
type BitmapInitializedArgs = {
|
|
827
|
+
airdrop: Address;
|
|
828
|
+
bitmap: Address;
|
|
829
|
+
bitmapId: number;
|
|
830
|
+
totalClaims: number | bigint;
|
|
831
|
+
};
|
|
832
|
+
declare function getBitmapInitializedEncoder(): Encoder<BitmapInitializedArgs>;
|
|
833
|
+
declare function getBitmapInitializedDecoder(): Decoder<BitmapInitialized>;
|
|
834
|
+
declare function getBitmapInitializedCodec(): Codec<BitmapInitializedArgs, BitmapInitialized>;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* This code was AUTOGENERATED using the codama library.
|
|
838
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
839
|
+
* to add features, then rerun codama to update it.
|
|
840
|
+
*
|
|
841
|
+
* @see https://github.com/codama-idl/codama
|
|
842
|
+
*/
|
|
843
|
+
|
|
844
|
+
type ControllerInitialized = {
|
|
845
|
+
authority: Address;
|
|
846
|
+
feeVault: Address;
|
|
847
|
+
createFee: bigint;
|
|
848
|
+
claimFee: bigint;
|
|
849
|
+
bump: number;
|
|
850
|
+
timestamp: bigint;
|
|
851
|
+
};
|
|
852
|
+
type ControllerInitializedArgs = {
|
|
853
|
+
authority: Address;
|
|
854
|
+
feeVault: Address;
|
|
855
|
+
createFee: number | bigint;
|
|
856
|
+
claimFee: number | bigint;
|
|
857
|
+
bump: number;
|
|
858
|
+
timestamp: number | bigint;
|
|
859
|
+
};
|
|
860
|
+
declare function getControllerInitializedEncoder(): Encoder<ControllerInitializedArgs>;
|
|
861
|
+
declare function getControllerInitializedDecoder(): Decoder<ControllerInitialized>;
|
|
862
|
+
declare function getControllerInitializedCodec(): Codec<ControllerInitializedArgs, ControllerInitialized>;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* This code was AUTOGENERATED using the codama library.
|
|
866
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
867
|
+
* to add features, then rerun codama to update it.
|
|
868
|
+
*
|
|
869
|
+
* @see https://github.com/codama-idl/codama
|
|
870
|
+
*/
|
|
871
|
+
|
|
872
|
+
type TokensDeposited = {
|
|
873
|
+
airdrop: Address;
|
|
874
|
+
amount: bigint;
|
|
875
|
+
newSupply: bigint;
|
|
876
|
+
depositor: Address;
|
|
877
|
+
timestamp: bigint;
|
|
878
|
+
};
|
|
879
|
+
type TokensDepositedArgs = {
|
|
880
|
+
airdrop: Address;
|
|
881
|
+
amount: number | bigint;
|
|
882
|
+
newSupply: number | bigint;
|
|
883
|
+
depositor: Address;
|
|
884
|
+
timestamp: number | bigint;
|
|
885
|
+
};
|
|
886
|
+
declare function getTokensDepositedEncoder(): Encoder<TokensDepositedArgs>;
|
|
887
|
+
declare function getTokensDepositedDecoder(): Decoder<TokensDeposited>;
|
|
888
|
+
declare function getTokensDepositedCodec(): Codec<TokensDepositedArgs, TokensDeposited>;
|
|
889
|
+
|
|
890
|
+
export { AIRDROP_DISCRIMINATOR, type Airdrop, type AirdropArgs, type AirdropClosed, type AirdropClosedArgs, type AirdropInitialized, type AirdropInitializedArgs, BITMAP_ACCOUNT_DISCRIMINATOR, type BitmapAccount, type BitmapAccountArgs, type BitmapClosed, type BitmapClosedArgs, type BitmapInitialized, type BitmapInitializedArgs, CLAIM_TOKENS_DISCRIMINATOR, CLOSE_AIRDROP_DISCRIMINATOR, CLOSE_BITMAP_DISCRIMINATOR, CONTROLLER_DISCRIMINATOR, type ClaimTokensInput, type ClaimTokensInstruction, type ClaimTokensInstructionData, type ClaimTokensInstructionDataArgs, type CloseAirdropInput, type CloseAirdropInstruction, type CloseAirdropInstructionData, type CloseAirdropInstructionDataArgs, type CloseBitmapInput, type CloseBitmapInstruction, type CloseBitmapInstructionData, type CloseBitmapInstructionDataArgs, type Controller, type ControllerArgs, type ControllerInitialized, type ControllerInitializedArgs, DEPOSIT_TOKENS_DISCRIMINATOR, DROPSY_ERROR__ACTIVE_BITMAPS_EXIST, DROPSY_ERROR__AIRDROP_ENDED, DROPSY_ERROR__AIRDROP_NOT_ENDED, DROPSY_ERROR__AIRDROP_NOT_STARTED, DROPSY_ERROR__ALREADY_CLAIMED, DROPSY_ERROR__BITMAP_AIRDROP_MISMATCH, DROPSY_ERROR__BITMAP_COUNT_UNDERFLOW, DROPSY_ERROR__BITMAP_TOO_LARGE, DROPSY_ERROR__CLAIM_FEE_TOO_HIGH, DROPSY_ERROR__CONTROLLER_MISMATCH, DROPSY_ERROR__CREATE_FEE_TOO_HIGH, DROPSY_ERROR__DESTINATION_MINT_MISMATCH, DROPSY_ERROR__DURATION_TOO_SHORT, DROPSY_ERROR__INSUFFICIENT_DEPOSIT, DROPSY_ERROR__INSUFFICIENT_FUNDS_FOR_FEE, DROPSY_ERROR__INSUFFICIENT_VAULT_FUNDS, DROPSY_ERROR__INVALID_AIRDROP_PDA, DROPSY_ERROR__INVALID_AMOUNT, DROPSY_ERROR__INVALID_BITMAP_ACCOUNT, DROPSY_ERROR__INVALID_BITMAP_INDEX, DROPSY_ERROR__INVALID_DESTINATION_OWNER, DROPSY_ERROR__INVALID_END_TIME, DROPSY_ERROR__INVALID_FEE_VAULT, DROPSY_ERROR__INVALID_FEE_VAULT_CURVE, DROPSY_ERROR__INVALID_FEE_VAULT_OWNER, DROPSY_ERROR__INVALID_MINT, DROPSY_ERROR__INVALID_MINT_OWNER, DROPSY_ERROR__INVALID_OWNER, DROPSY_ERROR__INVALID_PDA, DROPSY_ERROR__INVALID_PROOF, DROPSY_ERROR__INVALID_TOTAL, DROPSY_ERROR__INVALID_TREASURY_ACCOUNT, DROPSY_ERROR__INVALID_VAULT_AUTHORITY, DROPSY_ERROR__MINT_HAS_FREEZE_AUTHORITY, DROPSY_ERROR__MINT_IS_FROZEN, DROPSY_ERROR__MINT_IS_NOT_INITIALIZED, DROPSY_ERROR__MINT_MISMATCH, DROPSY_ERROR__MISSING_BITMAP_PDA, DROPSY_ERROR__NFT_NOT_ALLOWED, DROPSY_ERROR__OVERFLOW, DROPSY_ERROR__OWNER_MISMATCH, DROPSY_ERROR__SOURCE_ACCOUNT_FROZEN, DROPSY_ERROR__SOURCE_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__SOURCE_HAS_DELEGATE, DROPSY_ERROR__TOO_MANY_BITMAPS, DROPSY_ERROR__VAULT_FROZEN, DROPSY_ERROR__VAULT_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__VAULT_HAS_DELEGATE, DROPSY_ERROR__VAULT_MINT_MISMATCH, DROPSY_ERROR__VAULT_NOT_INITIALIZED, DROPSY_ERROR__VAULT_NOT_RENT_EXEMPT, DROPSY_PROGRAM_ADDRESS, type DepositTokensInput, type DepositTokensInstruction, type DepositTokensInstructionData, type DepositTokensInstructionDataArgs, DropsyAccount, type DropsyError, DropsyInstruction, INITIALIZE_AIRDROP_DISCRIMINATOR, INITIALIZE_BITMAP_DISCRIMINATOR, INITIALIZE_CONTROLLER_DISCRIMINATOR, type InitializeAirdropAsyncInput, type InitializeAirdropInput, type InitializeAirdropInstruction, type InitializeAirdropInstructionData, type InitializeAirdropInstructionDataArgs, type InitializeBitmapAsyncInput, type InitializeBitmapInput, type InitializeBitmapInstruction, type InitializeBitmapInstructionData, type InitializeBitmapInstructionDataArgs, type InitializeControllerAsyncInput, type InitializeControllerInput, type InitializeControllerInstruction, type InitializeControllerInstructionData, type InitializeControllerInstructionDataArgs, type ParsedClaimTokensInstruction, type ParsedCloseAirdropInstruction, type ParsedCloseBitmapInstruction, type ParsedDepositTokensInstruction, type ParsedDropsyInstruction, type ParsedInitializeAirdropInstruction, type ParsedInitializeBitmapInstruction, type ParsedInitializeControllerInstruction, type TokensDeposited, type TokensDepositedArgs, decodeAirdrop, decodeBitmapAccount, decodeController, fetchAirdrop, fetchAllAirdrop, fetchAllBitmapAccount, fetchAllController, fetchAllMaybeAirdrop, fetchAllMaybeBitmapAccount, fetchAllMaybeController, fetchBitmapAccount, fetchController, fetchMaybeAirdrop, fetchMaybeBitmapAccount, fetchMaybeController, getAirdropClosedCodec, getAirdropClosedDecoder, getAirdropClosedEncoder, getAirdropCodec, getAirdropDecoder, getAirdropDiscriminatorBytes, getAirdropEncoder, getAirdropInitializedCodec, getAirdropInitializedDecoder, getAirdropInitializedEncoder, getBitmapAccountCodec, getBitmapAccountDecoder, getBitmapAccountDiscriminatorBytes, getBitmapAccountEncoder, getBitmapClosedCodec, getBitmapClosedDecoder, getBitmapClosedEncoder, getBitmapInitializedCodec, getBitmapInitializedDecoder, getBitmapInitializedEncoder, getClaimTokensDiscriminatorBytes, getClaimTokensInstruction, getClaimTokensInstructionDataCodec, getClaimTokensInstructionDataDecoder, getClaimTokensInstructionDataEncoder, getCloseAirdropDiscriminatorBytes, getCloseAirdropInstruction, getCloseAirdropInstructionDataCodec, getCloseAirdropInstructionDataDecoder, getCloseAirdropInstructionDataEncoder, getCloseBitmapDiscriminatorBytes, getCloseBitmapInstruction, getCloseBitmapInstructionDataCodec, getCloseBitmapInstructionDataDecoder, getCloseBitmapInstructionDataEncoder, getControllerCodec, getControllerDecoder, getControllerDiscriminatorBytes, getControllerEncoder, getControllerInitializedCodec, getControllerInitializedDecoder, getControllerInitializedEncoder, getDepositTokensDiscriminatorBytes, getDepositTokensInstruction, getDepositTokensInstructionDataCodec, getDepositTokensInstructionDataDecoder, getDepositTokensInstructionDataEncoder, getDropsyErrorMessage, getInitializeAirdropDiscriminatorBytes, getInitializeAirdropInstruction, getInitializeAirdropInstructionAsync, getInitializeAirdropInstructionDataCodec, getInitializeAirdropInstructionDataDecoder, getInitializeAirdropInstructionDataEncoder, getInitializeBitmapDiscriminatorBytes, getInitializeBitmapInstruction, getInitializeBitmapInstructionAsync, getInitializeBitmapInstructionDataCodec, getInitializeBitmapInstructionDataDecoder, getInitializeBitmapInstructionDataEncoder, getInitializeControllerDiscriminatorBytes, getInitializeControllerInstruction, getInitializeControllerInstructionAsync, getInitializeControllerInstructionDataCodec, getInitializeControllerInstructionDataDecoder, getInitializeControllerInstructionDataEncoder, getTokensDepositedCodec, getTokensDepositedDecoder, getTokensDepositedEncoder, identifyDropsyAccount, identifyDropsyInstruction, isDropsyError, parseClaimTokensInstruction, parseCloseAirdropInstruction, parseCloseBitmapInstruction, parseDepositTokensInstruction, parseInitializeAirdropInstruction, parseInitializeBitmapInstruction, parseInitializeControllerInstruction };
|