@dropsy/airdrop 0.0.3 → 0.1.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 +535 -152
- package/dist/index.d.ts +535 -152
- package/dist/index.js +1470 -570
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1610 -665
- package/dist/index.mjs.map +1 -0
- package/package.json +57 -52
- package/readme.md +153 -0
- package/README.md +0 -30
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _solana_kit from '@solana/kit';
|
|
2
|
+
import { ReadonlyUint8Array, Address, Encoder, Decoder, Codec, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, IAccountMeta, IInstruction, IInstructionWithData, IInstructionWithAccounts, WritableAccount, ReadonlyAccount, WritableSignerAccount, IAccountSignerMeta, TransactionSigner, ReadonlySignerAccount, Option, OptionOrNullable, Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi, ProgramDerivedAddressBump } from '@solana/kit';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -12,9 +13,8 @@ declare const AIRDROP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
|
12
13
|
declare function getAirdropDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
14
|
type Airdrop = {
|
|
14
15
|
discriminator: ReadonlyUint8Array;
|
|
15
|
-
|
|
16
|
+
authority: Address;
|
|
16
17
|
mint: Address;
|
|
17
|
-
owner: Address;
|
|
18
18
|
controller: Address;
|
|
19
19
|
supply: bigint;
|
|
20
20
|
merkleRoot: Array<number>;
|
|
@@ -25,9 +25,8 @@ type Airdrop = {
|
|
|
25
25
|
bump: number;
|
|
26
26
|
};
|
|
27
27
|
type AirdropArgs = {
|
|
28
|
-
|
|
28
|
+
authority: Address;
|
|
29
29
|
mint: Address;
|
|
30
|
-
owner: Address;
|
|
31
30
|
controller: Address;
|
|
32
31
|
supply: number | bigint;
|
|
33
32
|
merkleRoot: Array<number>;
|
|
@@ -59,7 +58,7 @@ declare const BITMAP_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
|
59
58
|
declare function getBitmapAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
60
59
|
type BitmapAccount = {
|
|
61
60
|
discriminator: ReadonlyUint8Array;
|
|
62
|
-
|
|
61
|
+
authority: Address;
|
|
63
62
|
airdrop: Address;
|
|
64
63
|
claimedBitmap: ReadonlyUint8Array;
|
|
65
64
|
id: number;
|
|
@@ -67,7 +66,7 @@ type BitmapAccount = {
|
|
|
67
66
|
bump: number;
|
|
68
67
|
};
|
|
69
68
|
type BitmapAccountArgs = {
|
|
70
|
-
|
|
69
|
+
authority: Address;
|
|
71
70
|
airdrop: Address;
|
|
72
71
|
claimedBitmap: ReadonlyUint8Array;
|
|
73
72
|
id: number;
|
|
@@ -96,30 +95,32 @@ declare const CONTROLLER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
|
96
95
|
declare function getControllerDiscriminatorBytes(): ReadonlyUint8Array;
|
|
97
96
|
type Controller = {
|
|
98
97
|
discriminator: ReadonlyUint8Array;
|
|
99
|
-
/** the controller authority */
|
|
98
|
+
/** the controller authority // 32 */
|
|
100
99
|
authority: Address;
|
|
101
|
-
/** Fee vault address
|
|
100
|
+
/** Fee vault address derived from authority publicKey // 32 */
|
|
102
101
|
feeVault: Address;
|
|
103
|
-
/** Fee amount (in lamports) to create an airdrop using this controller */
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
claimFee: bigint;
|
|
102
|
+
/** Fee amount (in lamports) to create or close an airdrop using this controller //8 */
|
|
103
|
+
feeLamports: bigint;
|
|
104
|
+
/** version for a controller for upcoming upgrades // 1 */
|
|
107
105
|
version: number;
|
|
108
|
-
/** PDA bump seed */
|
|
106
|
+
/** PDA bump seed // 1 */
|
|
109
107
|
bump: number;
|
|
108
|
+
/** fee vault bump seed // 1 */
|
|
109
|
+
feeVaultBump: number;
|
|
110
110
|
};
|
|
111
111
|
type ControllerArgs = {
|
|
112
|
-
/** the controller authority */
|
|
112
|
+
/** the controller authority // 32 */
|
|
113
113
|
authority: Address;
|
|
114
|
-
/** Fee vault address
|
|
114
|
+
/** Fee vault address derived from authority publicKey // 32 */
|
|
115
115
|
feeVault: Address;
|
|
116
|
-
/** Fee amount (in lamports) to create an airdrop using this controller */
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
claimFee: number | bigint;
|
|
116
|
+
/** Fee amount (in lamports) to create or close an airdrop using this controller //8 */
|
|
117
|
+
feeLamports: number | bigint;
|
|
118
|
+
/** version for a controller for upcoming upgrades // 1 */
|
|
120
119
|
version: number;
|
|
121
|
-
/** PDA bump seed */
|
|
120
|
+
/** PDA bump seed // 1 */
|
|
122
121
|
bump: number;
|
|
122
|
+
/** fee vault bump seed // 1 */
|
|
123
|
+
feeVaultBump: number;
|
|
123
124
|
};
|
|
124
125
|
declare function getControllerEncoder(): Encoder<ControllerArgs>;
|
|
125
126
|
declare function getControllerDecoder(): Decoder<Controller>;
|
|
@@ -131,6 +132,108 @@ declare function fetchMaybeController<TAddress extends string = string>(rpc: Par
|
|
|
131
132
|
declare function fetchAllController(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Controller>[]>;
|
|
132
133
|
declare function fetchAllMaybeController(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Controller>[]>;
|
|
133
134
|
|
|
135
|
+
/**
|
|
136
|
+
* This code was AUTOGENERATED using the codama library.
|
|
137
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
138
|
+
* to add features, then rerun codama to update it.
|
|
139
|
+
*
|
|
140
|
+
* @see https://github.com/codama-idl/codama
|
|
141
|
+
*/
|
|
142
|
+
|
|
143
|
+
declare const MASTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
144
|
+
declare function getMasterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
145
|
+
type Master = {
|
|
146
|
+
discriminator: ReadonlyUint8Array;
|
|
147
|
+
/** the controller authority // 32 */
|
|
148
|
+
authority: Address;
|
|
149
|
+
/** Fee vault pda address // 32 */
|
|
150
|
+
feeVault: Address;
|
|
151
|
+
/** Fee amount (in lamports) to create an airdrop using this controller // 8 */
|
|
152
|
+
protocolFee: bigint;
|
|
153
|
+
/** feebase for withdrawing fees earned from controller // 8 */
|
|
154
|
+
withdrawFee: bigint;
|
|
155
|
+
/** Fee amount (in lamports) to claim an airdrop created with this controller //8 */
|
|
156
|
+
initControllerFee: bigint;
|
|
157
|
+
/** version for later upgrades // 1 */
|
|
158
|
+
version: number;
|
|
159
|
+
/** PDA bump seed // 1 */
|
|
160
|
+
bump: number;
|
|
161
|
+
};
|
|
162
|
+
type MasterArgs = {
|
|
163
|
+
/** the controller authority // 32 */
|
|
164
|
+
authority: Address;
|
|
165
|
+
/** Fee vault pda address // 32 */
|
|
166
|
+
feeVault: Address;
|
|
167
|
+
/** Fee amount (in lamports) to create an airdrop using this controller // 8 */
|
|
168
|
+
protocolFee: number | bigint;
|
|
169
|
+
/** feebase for withdrawing fees earned from controller // 8 */
|
|
170
|
+
withdrawFee: number | bigint;
|
|
171
|
+
/** Fee amount (in lamports) to claim an airdrop created with this controller //8 */
|
|
172
|
+
initControllerFee: number | bigint;
|
|
173
|
+
/** version for later upgrades // 1 */
|
|
174
|
+
version: number;
|
|
175
|
+
/** PDA bump seed // 1 */
|
|
176
|
+
bump: number;
|
|
177
|
+
};
|
|
178
|
+
declare function getMasterEncoder(): Encoder<MasterArgs>;
|
|
179
|
+
declare function getMasterDecoder(): Decoder<Master>;
|
|
180
|
+
declare function getMasterCodec(): Codec<MasterArgs, Master>;
|
|
181
|
+
declare function decodeMaster<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Master, TAddress>;
|
|
182
|
+
declare function decodeMaster<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Master, TAddress>;
|
|
183
|
+
declare function fetchMaster<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Master, TAddress>>;
|
|
184
|
+
declare function fetchMaybeMaster<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Master, TAddress>>;
|
|
185
|
+
declare function fetchAllMaster(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Master>[]>;
|
|
186
|
+
declare function fetchAllMaybeMaster(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Master>[]>;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* This code was AUTOGENERATED using the codama library.
|
|
190
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
191
|
+
* to add features, then rerun codama to update it.
|
|
192
|
+
*
|
|
193
|
+
* @see https://github.com/codama-idl/codama
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
declare const STATS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
197
|
+
declare function getStatsDiscriminatorBytes(): ReadonlyUint8Array;
|
|
198
|
+
type Stats = {
|
|
199
|
+
discriminator: ReadonlyUint8Array;
|
|
200
|
+
/** initialized controllers // 8 */
|
|
201
|
+
initializedControllers: bigint;
|
|
202
|
+
/** initialized airdrops // 8 */
|
|
203
|
+
initializedAirdrops: bigint;
|
|
204
|
+
/** initialized claim_maps // 8 */
|
|
205
|
+
initializedClaimMaps: bigint;
|
|
206
|
+
/** closed airdrops */
|
|
207
|
+
closedAirdrops: bigint;
|
|
208
|
+
/** closed claim map */
|
|
209
|
+
closedClaimMap: bigint;
|
|
210
|
+
/** PDA bump seed */
|
|
211
|
+
bump: number;
|
|
212
|
+
};
|
|
213
|
+
type StatsArgs = {
|
|
214
|
+
/** initialized controllers // 8 */
|
|
215
|
+
initializedControllers: number | bigint;
|
|
216
|
+
/** initialized airdrops // 8 */
|
|
217
|
+
initializedAirdrops: number | bigint;
|
|
218
|
+
/** initialized claim_maps // 8 */
|
|
219
|
+
initializedClaimMaps: number | bigint;
|
|
220
|
+
/** closed airdrops */
|
|
221
|
+
closedAirdrops: number | bigint;
|
|
222
|
+
/** closed claim map */
|
|
223
|
+
closedClaimMap: number | bigint;
|
|
224
|
+
/** PDA bump seed */
|
|
225
|
+
bump: number;
|
|
226
|
+
};
|
|
227
|
+
declare function getStatsEncoder(): Encoder<StatsArgs>;
|
|
228
|
+
declare function getStatsDecoder(): Decoder<Stats>;
|
|
229
|
+
declare function getStatsCodec(): Codec<StatsArgs, Stats>;
|
|
230
|
+
declare function decodeStats<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Stats, TAddress>;
|
|
231
|
+
declare function decodeStats<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Stats, TAddress>;
|
|
232
|
+
declare function fetchStats<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Stats, TAddress>>;
|
|
233
|
+
declare function fetchMaybeStats<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Stats, TAddress>>;
|
|
234
|
+
declare function fetchAllStats(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Stats>[]>;
|
|
235
|
+
declare function fetchAllMaybeStats(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Stats>[]>;
|
|
236
|
+
|
|
134
237
|
/**
|
|
135
238
|
* This code was AUTOGENERATED using the codama library.
|
|
136
239
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -261,11 +364,13 @@ declare function isDropsyError<TProgramErrorCode extends DropsyError>(error: unk
|
|
|
261
364
|
* @see https://github.com/codama-idl/codama
|
|
262
365
|
*/
|
|
263
366
|
|
|
264
|
-
declare const DROPSY_PROGRAM_ADDRESS: Address<"
|
|
367
|
+
declare const DROPSY_PROGRAM_ADDRESS: Address<"DropmEfonJRZyPaRQbPgn4nrt3cDi5678bLbzVQRvgLp">;
|
|
265
368
|
declare enum DropsyAccount {
|
|
266
369
|
Airdrop = 0,
|
|
267
370
|
BitmapAccount = 1,
|
|
268
|
-
Controller = 2
|
|
371
|
+
Controller = 2,
|
|
372
|
+
Master = 3,
|
|
373
|
+
Stats = 4
|
|
269
374
|
}
|
|
270
375
|
declare function identifyDropsyAccount(account: {
|
|
271
376
|
data: ReadonlyUint8Array;
|
|
@@ -277,12 +382,14 @@ declare enum DropsyInstruction {
|
|
|
277
382
|
DepositTokens = 3,
|
|
278
383
|
InitializeAirdrop = 4,
|
|
279
384
|
InitializeBitmap = 5,
|
|
280
|
-
InitializeController = 6
|
|
385
|
+
InitializeController = 6,
|
|
386
|
+
InitializeMaster = 7,
|
|
387
|
+
WithdrawControllerFees = 8
|
|
281
388
|
}
|
|
282
389
|
declare function identifyDropsyInstruction(instruction: {
|
|
283
390
|
data: ReadonlyUint8Array;
|
|
284
391
|
} | ReadonlyUint8Array): DropsyInstruction;
|
|
285
|
-
type ParsedDropsyInstruction<TProgram extends string = '
|
|
392
|
+
type ParsedDropsyInstruction<TProgram extends string = 'DropmEfonJRZyPaRQbPgn4nrt3cDi5678bLbzVQRvgLp'> = ({
|
|
286
393
|
instructionType: DropsyInstruction.ClaimTokens;
|
|
287
394
|
} & ParsedClaimTokensInstruction<TProgram>) | ({
|
|
288
395
|
instructionType: DropsyInstruction.CloseAirdrop;
|
|
@@ -296,7 +403,11 @@ type ParsedDropsyInstruction<TProgram extends string = 'DropyEMekkCgKmsWiJVcTCAE
|
|
|
296
403
|
instructionType: DropsyInstruction.InitializeBitmap;
|
|
297
404
|
} & ParsedInitializeBitmapInstruction<TProgram>) | ({
|
|
298
405
|
instructionType: DropsyInstruction.InitializeController;
|
|
299
|
-
} & ParsedInitializeControllerInstruction<TProgram>)
|
|
406
|
+
} & ParsedInitializeControllerInstruction<TProgram>) | ({
|
|
407
|
+
instructionType: DropsyInstruction.InitializeMaster;
|
|
408
|
+
} & ParsedInitializeMasterInstruction<TProgram>) | ({
|
|
409
|
+
instructionType: DropsyInstruction.WithdrawControllerFees;
|
|
410
|
+
} & ParsedWithdrawControllerFeesInstruction<TProgram>);
|
|
300
411
|
|
|
301
412
|
/**
|
|
302
413
|
* This code was AUTOGENERATED using the codama library.
|
|
@@ -308,14 +419,12 @@ type ParsedDropsyInstruction<TProgram extends string = 'DropyEMekkCgKmsWiJVcTCAE
|
|
|
308
419
|
|
|
309
420
|
declare const CLAIM_TOKENS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
310
421
|
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,
|
|
422
|
+
type ClaimTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountVault extends string | IAccountMeta<string> = string, TAccountDestinationTokenAccount extends string | IAccountMeta<string> = string, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountBitmap extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string, TAccountClaimer extends string | IAccountMeta<string> = string, TAccountTreasury extends string | IAccountMeta<string> = 'DHffy4rNMtuL8VKgyBEay4jcq8AYHyoAzxLKU6aEijUV', TAccountTokenProgram extends string | IAccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
312
423
|
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
313
424
|
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
314
425
|
TAccountAirdrop extends string ? ReadonlyAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
315
426
|
TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
|
|
316
427
|
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
317
|
-
TAccountFeeVault extends string ? WritableAccount<TAccountFeeVault> : TAccountFeeVault,
|
|
318
|
-
TAccountController extends string ? ReadonlyAccount<TAccountController> : TAccountController,
|
|
319
428
|
TAccountClaimer extends string ? WritableSignerAccount<TAccountClaimer> & IAccountSignerMeta<TAccountClaimer> : TAccountClaimer,
|
|
320
429
|
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
321
430
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
@@ -336,14 +445,12 @@ type ClaimTokensInstructionDataArgs = {
|
|
|
336
445
|
declare function getClaimTokensInstructionDataEncoder(): Encoder<ClaimTokensInstructionDataArgs>;
|
|
337
446
|
declare function getClaimTokensInstructionDataDecoder(): Decoder<ClaimTokensInstructionData>;
|
|
338
447
|
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,
|
|
448
|
+
type ClaimTokensInput<TAccountVault extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAirdrop extends string = string, TAccountBitmap extends string = string, TAccountMint extends string = string, TAccountClaimer extends string = string, TAccountTreasury extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
340
449
|
vault: Address<TAccountVault>;
|
|
341
450
|
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
342
451
|
airdrop: Address<TAccountAirdrop>;
|
|
343
452
|
bitmap: Address<TAccountBitmap>;
|
|
344
453
|
mint: Address<TAccountMint>;
|
|
345
|
-
feeVault: Address<TAccountFeeVault>;
|
|
346
|
-
controller: Address<TAccountController>;
|
|
347
454
|
claimer: TransactionSigner<TAccountClaimer>;
|
|
348
455
|
treasury?: Address<TAccountTreasury>;
|
|
349
456
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
@@ -352,9 +459,9 @@ type ClaimTokensInput<TAccountVault extends string = string, TAccountDestination
|
|
|
352
459
|
proof: ClaimTokensInstructionDataArgs['proof'];
|
|
353
460
|
amount: ClaimTokensInstructionDataArgs['amount'];
|
|
354
461
|
};
|
|
355
|
-
declare function getClaimTokensInstruction<TAccountVault extends string, TAccountDestinationTokenAccount extends string, TAccountAirdrop extends string, TAccountBitmap extends string, TAccountMint extends string,
|
|
462
|
+
declare function getClaimTokensInstruction<TAccountVault extends string, TAccountDestinationTokenAccount extends string, TAccountAirdrop extends string, TAccountBitmap extends string, TAccountMint extends string, TAccountClaimer extends string, TAccountTreasury extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: ClaimTokensInput<TAccountVault, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountBitmap, TAccountMint, TAccountClaimer, TAccountTreasury, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
356
463
|
programAddress?: TProgramAddress;
|
|
357
|
-
}): ClaimTokensInstruction<TProgramAddress, TAccountVault, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountBitmap, TAccountMint,
|
|
464
|
+
}): ClaimTokensInstruction<TProgramAddress, TAccountVault, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountBitmap, TAccountMint, TAccountClaimer, TAccountTreasury, TAccountTokenProgram, TAccountSystemProgram>;
|
|
358
465
|
type ParsedClaimTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
359
466
|
programAddress: Address<TProgram>;
|
|
360
467
|
accounts: {
|
|
@@ -363,12 +470,10 @@ type ParsedClaimTokensInstruction<TProgram extends string = typeof DROPSY_PROGRA
|
|
|
363
470
|
airdrop: TAccountMetas[2];
|
|
364
471
|
bitmap: TAccountMetas[3];
|
|
365
472
|
mint: TAccountMetas[4];
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
tokenProgram: TAccountMetas[9];
|
|
371
|
-
systemProgram: TAccountMetas[10];
|
|
473
|
+
claimer: TAccountMetas[5];
|
|
474
|
+
treasury: TAccountMetas[6];
|
|
475
|
+
tokenProgram: TAccountMetas[7];
|
|
476
|
+
systemProgram: TAccountMetas[8];
|
|
372
477
|
};
|
|
373
478
|
data: ClaimTokensInstructionData;
|
|
374
479
|
};
|
|
@@ -384,13 +489,17 @@ declare function parseClaimTokensInstruction<TProgram extends string, TAccountMe
|
|
|
384
489
|
|
|
385
490
|
declare const CLOSE_AIRDROP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
386
491
|
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,
|
|
492
|
+
type CloseAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountStats extends string | IAccountMeta<string> = string, TAccountController extends string | IAccountMeta<string> = string, TAccountFeeVault extends string | IAccountMeta<string> = string, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountVault extends string | IAccountMeta<string> = string, TAccountDestinationTokenAccount extends string | IAccountMeta<string> = string, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string, TAccountTokenProgram extends string | IAccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
493
|
+
TAccountStats extends string ? WritableAccount<TAccountStats> : TAccountStats,
|
|
494
|
+
TAccountController extends string ? WritableAccount<TAccountController> : TAccountController,
|
|
495
|
+
TAccountFeeVault extends string ? WritableAccount<TAccountFeeVault> : TAccountFeeVault,
|
|
388
496
|
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
389
497
|
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
390
498
|
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
391
|
-
|
|
499
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
392
500
|
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
393
501
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
502
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
394
503
|
...TRemainingAccounts
|
|
395
504
|
]>;
|
|
396
505
|
type CloseAirdropInstructionData = {
|
|
@@ -400,26 +509,49 @@ type CloseAirdropInstructionDataArgs = {};
|
|
|
400
509
|
declare function getCloseAirdropInstructionDataEncoder(): Encoder<CloseAirdropInstructionDataArgs>;
|
|
401
510
|
declare function getCloseAirdropInstructionDataDecoder(): Decoder<CloseAirdropInstructionData>;
|
|
402
511
|
declare function getCloseAirdropInstructionDataCodec(): Codec<CloseAirdropInstructionDataArgs, CloseAirdropInstructionData>;
|
|
403
|
-
type
|
|
512
|
+
type CloseAirdropAsyncInput<TAccountStats extends string = string, TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountAirdrop extends string = string, TAccountVault extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAuthority extends string = string, TAccountMint extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
513
|
+
stats?: Address<TAccountStats>;
|
|
514
|
+
controller: Address<TAccountController>;
|
|
515
|
+
feeVault?: Address<TAccountFeeVault>;
|
|
516
|
+
airdrop: Address<TAccountAirdrop>;
|
|
517
|
+
vault: Address<TAccountVault>;
|
|
518
|
+
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
519
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
520
|
+
mint: Address<TAccountMint>;
|
|
521
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
522
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
523
|
+
};
|
|
524
|
+
declare function getCloseAirdropInstructionAsync<TAccountStats extends string, TAccountController extends string, TAccountFeeVault extends string, TAccountAirdrop extends string, TAccountVault extends string, TAccountDestinationTokenAccount extends string, TAccountAuthority extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: CloseAirdropAsyncInput<TAccountStats, TAccountController, TAccountFeeVault, TAccountAirdrop, TAccountVault, TAccountDestinationTokenAccount, TAccountAuthority, TAccountMint, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
525
|
+
programAddress?: TProgramAddress;
|
|
526
|
+
}): Promise<CloseAirdropInstruction<TProgramAddress, TAccountStats, TAccountController, TAccountFeeVault, TAccountAirdrop, TAccountVault, TAccountDestinationTokenAccount, TAccountAuthority, TAccountMint, TAccountTokenProgram, TAccountSystemProgram>>;
|
|
527
|
+
type CloseAirdropInput<TAccountStats extends string = string, TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountAirdrop extends string = string, TAccountVault extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAuthority extends string = string, TAccountMint extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
528
|
+
stats: Address<TAccountStats>;
|
|
529
|
+
controller: Address<TAccountController>;
|
|
530
|
+
feeVault: Address<TAccountFeeVault>;
|
|
404
531
|
airdrop: Address<TAccountAirdrop>;
|
|
405
532
|
vault: Address<TAccountVault>;
|
|
406
533
|
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
407
|
-
|
|
534
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
408
535
|
mint: Address<TAccountMint>;
|
|
409
536
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
537
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
410
538
|
};
|
|
411
|
-
declare function getCloseAirdropInstruction<TAccountAirdrop extends string, TAccountVault extends string, TAccountDestinationTokenAccount extends string,
|
|
539
|
+
declare function getCloseAirdropInstruction<TAccountStats extends string, TAccountController extends string, TAccountFeeVault extends string, TAccountAirdrop extends string, TAccountVault extends string, TAccountDestinationTokenAccount extends string, TAccountAuthority extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: CloseAirdropInput<TAccountStats, TAccountController, TAccountFeeVault, TAccountAirdrop, TAccountVault, TAccountDestinationTokenAccount, TAccountAuthority, TAccountMint, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
412
540
|
programAddress?: TProgramAddress;
|
|
413
|
-
}): CloseAirdropInstruction<TProgramAddress, TAccountAirdrop, TAccountVault, TAccountDestinationTokenAccount,
|
|
541
|
+
}): CloseAirdropInstruction<TProgramAddress, TAccountStats, TAccountController, TAccountFeeVault, TAccountAirdrop, TAccountVault, TAccountDestinationTokenAccount, TAccountAuthority, TAccountMint, TAccountTokenProgram, TAccountSystemProgram>;
|
|
414
542
|
type ParsedCloseAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
415
543
|
programAddress: Address<TProgram>;
|
|
416
544
|
accounts: {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
545
|
+
stats: TAccountMetas[0];
|
|
546
|
+
controller: TAccountMetas[1];
|
|
547
|
+
feeVault: TAccountMetas[2];
|
|
548
|
+
airdrop: TAccountMetas[3];
|
|
549
|
+
vault: TAccountMetas[4];
|
|
550
|
+
destinationTokenAccount: TAccountMetas[5];
|
|
551
|
+
authority: TAccountMetas[6];
|
|
552
|
+
mint: TAccountMetas[7];
|
|
553
|
+
tokenProgram: TAccountMetas[8];
|
|
554
|
+
systemProgram: TAccountMetas[9];
|
|
423
555
|
};
|
|
424
556
|
data: CloseAirdropInstructionData;
|
|
425
557
|
};
|
|
@@ -435,10 +567,14 @@ declare function parseCloseAirdropInstruction<TProgram extends string, TAccountM
|
|
|
435
567
|
|
|
436
568
|
declare const CLOSE_BITMAP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
437
569
|
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,
|
|
570
|
+
type CloseBitmapInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | IAccountMeta<string> = string, TAccountStats extends string | IAccountMeta<string> = string, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountBitmap extends string | IAccountMeta<string> = string, TAccountTreasury extends string | IAccountMeta<string> = 'DHffy4rNMtuL8VKgyBEay4jcq8AYHyoAzxLKU6aEijUV', TAccountAuthority extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
571
|
+
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
572
|
+
TAccountStats extends string ? WritableAccount<TAccountStats> : TAccountStats,
|
|
439
573
|
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
440
574
|
TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
|
|
441
|
-
|
|
575
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
576
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
577
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
442
578
|
...TRemainingAccounts
|
|
443
579
|
]>;
|
|
444
580
|
type CloseBitmapInstructionData = {
|
|
@@ -448,20 +584,40 @@ type CloseBitmapInstructionDataArgs = {};
|
|
|
448
584
|
declare function getCloseBitmapInstructionDataEncoder(): Encoder<CloseBitmapInstructionDataArgs>;
|
|
449
585
|
declare function getCloseBitmapInstructionDataDecoder(): Decoder<CloseBitmapInstructionData>;
|
|
450
586
|
declare function getCloseBitmapInstructionDataCodec(): Codec<CloseBitmapInstructionDataArgs, CloseBitmapInstructionData>;
|
|
451
|
-
type
|
|
587
|
+
type CloseBitmapAsyncInput<TAccountMaster extends string = string, TAccountStats extends string = string, TAccountAirdrop extends string = string, TAccountBitmap extends string = string, TAccountTreasury extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
588
|
+
master?: Address<TAccountMaster>;
|
|
589
|
+
stats?: Address<TAccountStats>;
|
|
590
|
+
airdrop: Address<TAccountAirdrop>;
|
|
591
|
+
bitmap: Address<TAccountBitmap>;
|
|
592
|
+
treasury?: Address<TAccountTreasury>;
|
|
593
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
594
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
595
|
+
};
|
|
596
|
+
declare function getCloseBitmapInstructionAsync<TAccountMaster extends string, TAccountStats extends string, TAccountAirdrop extends string, TAccountBitmap extends string, TAccountTreasury extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: CloseBitmapAsyncInput<TAccountMaster, TAccountStats, TAccountAirdrop, TAccountBitmap, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
597
|
+
programAddress?: TProgramAddress;
|
|
598
|
+
}): Promise<CloseBitmapInstruction<TProgramAddress, TAccountMaster, TAccountStats, TAccountAirdrop, TAccountBitmap, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>>;
|
|
599
|
+
type CloseBitmapInput<TAccountMaster extends string = string, TAccountStats extends string = string, TAccountAirdrop extends string = string, TAccountBitmap extends string = string, TAccountTreasury extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
600
|
+
master: Address<TAccountMaster>;
|
|
601
|
+
stats: Address<TAccountStats>;
|
|
452
602
|
airdrop: Address<TAccountAirdrop>;
|
|
453
603
|
bitmap: Address<TAccountBitmap>;
|
|
454
|
-
|
|
604
|
+
treasury?: Address<TAccountTreasury>;
|
|
605
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
606
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
455
607
|
};
|
|
456
|
-
declare function getCloseBitmapInstruction<TAccountAirdrop extends string, TAccountBitmap extends string,
|
|
608
|
+
declare function getCloseBitmapInstruction<TAccountMaster extends string, TAccountStats extends string, TAccountAirdrop extends string, TAccountBitmap extends string, TAccountTreasury extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: CloseBitmapInput<TAccountMaster, TAccountStats, TAccountAirdrop, TAccountBitmap, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
457
609
|
programAddress?: TProgramAddress;
|
|
458
|
-
}): CloseBitmapInstruction<TProgramAddress, TAccountAirdrop, TAccountBitmap,
|
|
610
|
+
}): CloseBitmapInstruction<TProgramAddress, TAccountMaster, TAccountStats, TAccountAirdrop, TAccountBitmap, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>;
|
|
459
611
|
type ParsedCloseBitmapInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
460
612
|
programAddress: Address<TProgram>;
|
|
461
613
|
accounts: {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
614
|
+
master: TAccountMetas[0];
|
|
615
|
+
stats: TAccountMetas[1];
|
|
616
|
+
airdrop: TAccountMetas[2];
|
|
617
|
+
bitmap: TAccountMetas[3];
|
|
618
|
+
treasury: TAccountMetas[4];
|
|
619
|
+
authority: TAccountMetas[5];
|
|
620
|
+
systemProgram: TAccountMetas[6];
|
|
465
621
|
};
|
|
466
622
|
data: CloseBitmapInstructionData;
|
|
467
623
|
};
|
|
@@ -477,12 +633,12 @@ declare function parseCloseBitmapInstruction<TProgram extends string, TAccountMe
|
|
|
477
633
|
|
|
478
634
|
declare const DEPOSIT_TOKENS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
479
635
|
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,
|
|
636
|
+
type DepositTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountSourceTokenAccount extends string | IAccountMeta<string> = string, TAccountVault extends string | IAccountMeta<string> = string, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTokenProgram extends string | IAccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
481
637
|
TAccountSourceTokenAccount extends string ? WritableAccount<TAccountSourceTokenAccount> : TAccountSourceTokenAccount,
|
|
482
638
|
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
483
639
|
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
484
640
|
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
485
|
-
|
|
641
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
486
642
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
487
643
|
...TRemainingAccounts
|
|
488
644
|
]>;
|
|
@@ -496,18 +652,18 @@ type DepositTokensInstructionDataArgs = {
|
|
|
496
652
|
declare function getDepositTokensInstructionDataEncoder(): Encoder<DepositTokensInstructionDataArgs>;
|
|
497
653
|
declare function getDepositTokensInstructionDataDecoder(): Decoder<DepositTokensInstructionData>;
|
|
498
654
|
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,
|
|
655
|
+
type DepositTokensInput<TAccountSourceTokenAccount extends string = string, TAccountVault extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountTokenProgram extends string = string> = {
|
|
500
656
|
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
501
657
|
vault: Address<TAccountVault>;
|
|
502
658
|
airdrop: Address<TAccountAirdrop>;
|
|
503
659
|
mint: Address<TAccountMint>;
|
|
504
|
-
|
|
660
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
505
661
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
506
662
|
amount: DepositTokensInstructionDataArgs['amount'];
|
|
507
663
|
};
|
|
508
|
-
declare function getDepositTokensInstruction<TAccountSourceTokenAccount extends string, TAccountVault extends string, TAccountAirdrop extends string, TAccountMint extends string,
|
|
664
|
+
declare function getDepositTokensInstruction<TAccountSourceTokenAccount extends string, TAccountVault extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: DepositTokensInput<TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram>, config?: {
|
|
509
665
|
programAddress?: TProgramAddress;
|
|
510
|
-
}): DepositTokensInstruction<TProgramAddress, TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint,
|
|
666
|
+
}): DepositTokensInstruction<TProgramAddress, TAccountSourceTokenAccount, TAccountVault, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram>;
|
|
511
667
|
type ParsedDepositTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
512
668
|
programAddress: Address<TProgram>;
|
|
513
669
|
accounts: {
|
|
@@ -515,7 +671,7 @@ type ParsedDepositTokensInstruction<TProgram extends string = typeof DROPSY_PROG
|
|
|
515
671
|
vault: TAccountMetas[1];
|
|
516
672
|
airdrop: TAccountMetas[2];
|
|
517
673
|
mint: TAccountMetas[3];
|
|
518
|
-
|
|
674
|
+
authority: TAccountMetas[4];
|
|
519
675
|
tokenProgram: TAccountMetas[5];
|
|
520
676
|
};
|
|
521
677
|
data: DepositTokensInstructionData;
|
|
@@ -532,73 +688,69 @@ declare function parseDepositTokensInstruction<TProgram extends string, TAccount
|
|
|
532
688
|
|
|
533
689
|
declare const INITIALIZE_AIRDROP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
534
690
|
declare function getInitializeAirdropDiscriminatorBytes(): ReadonlyUint8Array;
|
|
535
|
-
type InitializeAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS,
|
|
536
|
-
|
|
537
|
-
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
691
|
+
type InitializeAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountStats extends string | IAccountMeta<string> = string, TAccountController extends string | IAccountMeta<string> = string, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountFeeVault extends string | IAccountMeta<string> = string, TAccountMint extends string | IAccountMeta<string> = string, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
692
|
+
TAccountStats extends string ? WritableAccount<TAccountStats> : TAccountStats,
|
|
538
693
|
TAccountController extends string ? WritableAccount<TAccountController> : TAccountController,
|
|
694
|
+
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
539
695
|
TAccountFeeVault extends string ? WritableAccount<TAccountFeeVault> : TAccountFeeVault,
|
|
540
|
-
|
|
541
|
-
|
|
696
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
697
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
542
698
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
543
699
|
...TRemainingAccounts
|
|
544
700
|
]>;
|
|
545
701
|
type InitializeAirdropInstructionData = {
|
|
546
702
|
discriminator: ReadonlyUint8Array;
|
|
547
|
-
id: bigint;
|
|
548
703
|
merkleRoot: Array<number>;
|
|
549
|
-
startsTime: bigint
|
|
550
|
-
endTime: bigint
|
|
704
|
+
startsTime: Option<bigint>;
|
|
705
|
+
endTime: Option<bigint>;
|
|
551
706
|
};
|
|
552
707
|
type InitializeAirdropInstructionDataArgs = {
|
|
553
|
-
id: number | bigint;
|
|
554
708
|
merkleRoot: Array<number>;
|
|
555
|
-
startsTime: number | bigint
|
|
556
|
-
endTime: number | bigint
|
|
709
|
+
startsTime: OptionOrNullable<number | bigint>;
|
|
710
|
+
endTime: OptionOrNullable<number | bigint>;
|
|
557
711
|
};
|
|
558
712
|
declare function getInitializeAirdropInstructionDataEncoder(): Encoder<InitializeAirdropInstructionDataArgs>;
|
|
559
713
|
declare function getInitializeAirdropInstructionDataDecoder(): Decoder<InitializeAirdropInstructionData>;
|
|
560
714
|
declare function getInitializeAirdropInstructionDataCodec(): Codec<InitializeAirdropInstructionDataArgs, InitializeAirdropInstructionData>;
|
|
561
|
-
type InitializeAirdropAsyncInput<
|
|
562
|
-
|
|
563
|
-
airdrop?: Address<TAccountAirdrop>;
|
|
715
|
+
type InitializeAirdropAsyncInput<TAccountStats extends string = string, TAccountController extends string = string, TAccountAirdrop extends string = string, TAccountFeeVault extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
716
|
+
stats?: Address<TAccountStats>;
|
|
564
717
|
controller: Address<TAccountController>;
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
718
|
+
airdrop?: Address<TAccountAirdrop>;
|
|
719
|
+
feeVault?: Address<TAccountFeeVault>;
|
|
720
|
+
mint: Address<TAccountMint>;
|
|
721
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
568
722
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
569
|
-
id: InitializeAirdropInstructionDataArgs['id'];
|
|
570
723
|
merkleRoot: InitializeAirdropInstructionDataArgs['merkleRoot'];
|
|
571
724
|
startsTime: InitializeAirdropInstructionDataArgs['startsTime'];
|
|
572
725
|
endTime: InitializeAirdropInstructionDataArgs['endTime'];
|
|
573
726
|
};
|
|
574
|
-
declare function getInitializeAirdropInstructionAsync<
|
|
727
|
+
declare function getInitializeAirdropInstructionAsync<TAccountStats extends string, TAccountController extends string, TAccountAirdrop extends string, TAccountFeeVault extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeAirdropAsyncInput<TAccountStats, TAccountController, TAccountAirdrop, TAccountFeeVault, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
575
728
|
programAddress?: TProgramAddress;
|
|
576
|
-
}): Promise<InitializeAirdropInstruction<TProgramAddress,
|
|
577
|
-
type InitializeAirdropInput<
|
|
578
|
-
|
|
579
|
-
airdrop: Address<TAccountAirdrop>;
|
|
729
|
+
}): Promise<InitializeAirdropInstruction<TProgramAddress, TAccountStats, TAccountController, TAccountAirdrop, TAccountFeeVault, TAccountMint, TAccountAuthority, TAccountSystemProgram>>;
|
|
730
|
+
type InitializeAirdropInput<TAccountStats extends string = string, TAccountController extends string = string, TAccountAirdrop extends string = string, TAccountFeeVault extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
731
|
+
stats: Address<TAccountStats>;
|
|
580
732
|
controller: Address<TAccountController>;
|
|
733
|
+
airdrop: Address<TAccountAirdrop>;
|
|
581
734
|
feeVault: Address<TAccountFeeVault>;
|
|
582
|
-
|
|
583
|
-
|
|
735
|
+
mint: Address<TAccountMint>;
|
|
736
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
584
737
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
585
|
-
id: InitializeAirdropInstructionDataArgs['id'];
|
|
586
738
|
merkleRoot: InitializeAirdropInstructionDataArgs['merkleRoot'];
|
|
587
739
|
startsTime: InitializeAirdropInstructionDataArgs['startsTime'];
|
|
588
740
|
endTime: InitializeAirdropInstructionDataArgs['endTime'];
|
|
589
741
|
};
|
|
590
|
-
declare function getInitializeAirdropInstruction<
|
|
742
|
+
declare function getInitializeAirdropInstruction<TAccountStats extends string, TAccountController extends string, TAccountAirdrop extends string, TAccountFeeVault extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeAirdropInput<TAccountStats, TAccountController, TAccountAirdrop, TAccountFeeVault, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
591
743
|
programAddress?: TProgramAddress;
|
|
592
|
-
}): InitializeAirdropInstruction<TProgramAddress,
|
|
744
|
+
}): InitializeAirdropInstruction<TProgramAddress, TAccountStats, TAccountController, TAccountAirdrop, TAccountFeeVault, TAccountMint, TAccountAuthority, TAccountSystemProgram>;
|
|
593
745
|
type ParsedInitializeAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
594
746
|
programAddress: Address<TProgram>;
|
|
595
747
|
accounts: {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
748
|
+
stats: TAccountMetas[0];
|
|
749
|
+
controller: TAccountMetas[1];
|
|
750
|
+
airdrop: TAccountMetas[2];
|
|
599
751
|
feeVault: TAccountMetas[3];
|
|
600
|
-
|
|
601
|
-
|
|
752
|
+
mint: TAccountMetas[4];
|
|
753
|
+
authority: TAccountMetas[5];
|
|
602
754
|
systemProgram: TAccountMetas[6];
|
|
603
755
|
};
|
|
604
756
|
data: InitializeAirdropInstructionData;
|
|
@@ -615,10 +767,13 @@ declare function parseInitializeAirdropInstruction<TProgram extends string, TAcc
|
|
|
615
767
|
|
|
616
768
|
declare const INITIALIZE_BITMAP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
617
769
|
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,
|
|
770
|
+
type InitializeBitmapInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | IAccountMeta<string> = string, TAccountStats extends string | IAccountMeta<string> = string, TAccountBitmap extends string | IAccountMeta<string> = string, TAccountAirdrop extends string | IAccountMeta<string> = string, TAccountTreasury extends string | IAccountMeta<string> = 'DHffy4rNMtuL8VKgyBEay4jcq8AYHyoAzxLKU6aEijUV', TAccountAuthority extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
771
|
+
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
772
|
+
TAccountStats extends string ? WritableAccount<TAccountStats> : TAccountStats,
|
|
619
773
|
TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap,
|
|
620
774
|
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
621
|
-
|
|
775
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
776
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
622
777
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
623
778
|
...TRemainingAccounts
|
|
624
779
|
]>;
|
|
@@ -634,35 +789,44 @@ type InitializeBitmapInstructionDataArgs = {
|
|
|
634
789
|
declare function getInitializeBitmapInstructionDataEncoder(): Encoder<InitializeBitmapInstructionDataArgs>;
|
|
635
790
|
declare function getInitializeBitmapInstructionDataDecoder(): Decoder<InitializeBitmapInstructionData>;
|
|
636
791
|
declare function getInitializeBitmapInstructionDataCodec(): Codec<InitializeBitmapInstructionDataArgs, InitializeBitmapInstructionData>;
|
|
637
|
-
type InitializeBitmapAsyncInput<TAccountBitmap extends string = string, TAccountAirdrop extends string = string,
|
|
792
|
+
type InitializeBitmapAsyncInput<TAccountMaster extends string = string, TAccountStats extends string = string, TAccountBitmap extends string = string, TAccountAirdrop extends string = string, TAccountTreasury extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
793
|
+
master?: Address<TAccountMaster>;
|
|
794
|
+
stats?: Address<TAccountStats>;
|
|
638
795
|
bitmap?: Address<TAccountBitmap>;
|
|
639
796
|
airdrop: Address<TAccountAirdrop>;
|
|
640
|
-
|
|
797
|
+
treasury?: Address<TAccountTreasury>;
|
|
798
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
641
799
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
642
800
|
id: InitializeBitmapInstructionDataArgs['id'];
|
|
643
801
|
total: InitializeBitmapInstructionDataArgs['total'];
|
|
644
802
|
};
|
|
645
|
-
declare function getInitializeBitmapInstructionAsync<TAccountBitmap extends string, TAccountAirdrop extends string,
|
|
803
|
+
declare function getInitializeBitmapInstructionAsync<TAccountMaster extends string, TAccountStats extends string, TAccountBitmap extends string, TAccountAirdrop extends string, TAccountTreasury extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeBitmapAsyncInput<TAccountMaster, TAccountStats, TAccountBitmap, TAccountAirdrop, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
646
804
|
programAddress?: TProgramAddress;
|
|
647
|
-
}): Promise<InitializeBitmapInstruction<TProgramAddress, TAccountBitmap, TAccountAirdrop,
|
|
648
|
-
type InitializeBitmapInput<TAccountBitmap extends string = string, TAccountAirdrop extends string = string,
|
|
805
|
+
}): Promise<InitializeBitmapInstruction<TProgramAddress, TAccountMaster, TAccountStats, TAccountBitmap, TAccountAirdrop, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>>;
|
|
806
|
+
type InitializeBitmapInput<TAccountMaster extends string = string, TAccountStats extends string = string, TAccountBitmap extends string = string, TAccountAirdrop extends string = string, TAccountTreasury extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
807
|
+
master: Address<TAccountMaster>;
|
|
808
|
+
stats: Address<TAccountStats>;
|
|
649
809
|
bitmap: Address<TAccountBitmap>;
|
|
650
810
|
airdrop: Address<TAccountAirdrop>;
|
|
651
|
-
|
|
811
|
+
treasury?: Address<TAccountTreasury>;
|
|
812
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
652
813
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
653
814
|
id: InitializeBitmapInstructionDataArgs['id'];
|
|
654
815
|
total: InitializeBitmapInstructionDataArgs['total'];
|
|
655
816
|
};
|
|
656
|
-
declare function getInitializeBitmapInstruction<TAccountBitmap extends string, TAccountAirdrop extends string,
|
|
817
|
+
declare function getInitializeBitmapInstruction<TAccountMaster extends string, TAccountStats extends string, TAccountBitmap extends string, TAccountAirdrop extends string, TAccountTreasury extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeBitmapInput<TAccountMaster, TAccountStats, TAccountBitmap, TAccountAirdrop, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
657
818
|
programAddress?: TProgramAddress;
|
|
658
|
-
}): InitializeBitmapInstruction<TProgramAddress, TAccountBitmap, TAccountAirdrop,
|
|
819
|
+
}): InitializeBitmapInstruction<TProgramAddress, TAccountMaster, TAccountStats, TAccountBitmap, TAccountAirdrop, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>;
|
|
659
820
|
type ParsedInitializeBitmapInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
660
821
|
programAddress: Address<TProgram>;
|
|
661
822
|
accounts: {
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
823
|
+
master: TAccountMetas[0];
|
|
824
|
+
stats: TAccountMetas[1];
|
|
825
|
+
bitmap: TAccountMetas[2];
|
|
826
|
+
airdrop: TAccountMetas[3];
|
|
827
|
+
treasury: TAccountMetas[4];
|
|
828
|
+
authority: TAccountMetas[5];
|
|
829
|
+
systemProgram: TAccountMetas[6];
|
|
666
830
|
};
|
|
667
831
|
data: InitializeBitmapInstructionData;
|
|
668
832
|
};
|
|
@@ -678,63 +842,205 @@ declare function parseInitializeBitmapInstruction<TProgram extends string, TAcco
|
|
|
678
842
|
|
|
679
843
|
declare const INITIALIZE_CONTROLLER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
680
844
|
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',
|
|
845
|
+
type InitializeControllerInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | IAccountMeta<string> = string, TAccountStats extends string | IAccountMeta<string> = string, TAccountController extends string | IAccountMeta<string> = string, TAccountFeeVault extends string | IAccountMeta<string> = string, TAccountTreasury extends string | IAccountMeta<string> = 'DHffy4rNMtuL8VKgyBEay4jcq8AYHyoAzxLKU6aEijUV', TAccountAuthority extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
846
|
+
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
847
|
+
TAccountStats extends string ? WritableAccount<TAccountStats> : TAccountStats,
|
|
682
848
|
TAccountController extends string ? WritableAccount<TAccountController> : TAccountController,
|
|
683
|
-
TAccountFeeVault extends string ?
|
|
849
|
+
TAccountFeeVault extends string ? WritableAccount<TAccountFeeVault> : TAccountFeeVault,
|
|
684
850
|
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
685
|
-
|
|
851
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
686
852
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
687
853
|
...TRemainingAccounts
|
|
688
854
|
]>;
|
|
689
855
|
type InitializeControllerInstructionData = {
|
|
690
856
|
discriminator: ReadonlyUint8Array;
|
|
691
|
-
|
|
692
|
-
claimFee: bigint;
|
|
857
|
+
feeLamports: bigint;
|
|
693
858
|
};
|
|
694
859
|
type InitializeControllerInstructionDataArgs = {
|
|
695
|
-
|
|
696
|
-
claimFee: number | bigint;
|
|
860
|
+
feeLamports: number | bigint;
|
|
697
861
|
};
|
|
698
862
|
declare function getInitializeControllerInstructionDataEncoder(): Encoder<InitializeControllerInstructionDataArgs>;
|
|
699
863
|
declare function getInitializeControllerInstructionDataDecoder(): Decoder<InitializeControllerInstructionData>;
|
|
700
864
|
declare function getInitializeControllerInstructionDataCodec(): Codec<InitializeControllerInstructionDataArgs, InitializeControllerInstructionData>;
|
|
701
|
-
type InitializeControllerAsyncInput<TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountTreasury extends string = string,
|
|
865
|
+
type InitializeControllerAsyncInput<TAccountMaster extends string = string, TAccountStats extends string = string, TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountTreasury extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
866
|
+
master?: Address<TAccountMaster>;
|
|
867
|
+
stats?: Address<TAccountStats>;
|
|
702
868
|
controller?: Address<TAccountController>;
|
|
703
|
-
feeVault
|
|
869
|
+
feeVault?: Address<TAccountFeeVault>;
|
|
704
870
|
treasury?: Address<TAccountTreasury>;
|
|
705
|
-
|
|
871
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
706
872
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
707
|
-
|
|
708
|
-
claimFee: InitializeControllerInstructionDataArgs['claimFee'];
|
|
873
|
+
feeLamports: InitializeControllerInstructionDataArgs['feeLamports'];
|
|
709
874
|
};
|
|
710
|
-
declare function getInitializeControllerInstructionAsync<TAccountController extends string, TAccountFeeVault extends string, TAccountTreasury extends string,
|
|
875
|
+
declare function getInitializeControllerInstructionAsync<TAccountMaster extends string, TAccountStats extends string, TAccountController extends string, TAccountFeeVault extends string, TAccountTreasury extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeControllerAsyncInput<TAccountMaster, TAccountStats, TAccountController, TAccountFeeVault, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
711
876
|
programAddress?: TProgramAddress;
|
|
712
|
-
}): Promise<InitializeControllerInstruction<TProgramAddress, TAccountController, TAccountFeeVault, TAccountTreasury,
|
|
713
|
-
type InitializeControllerInput<TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountTreasury extends string = string,
|
|
877
|
+
}): Promise<InitializeControllerInstruction<TProgramAddress, TAccountMaster, TAccountStats, TAccountController, TAccountFeeVault, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>>;
|
|
878
|
+
type InitializeControllerInput<TAccountMaster extends string = string, TAccountStats extends string = string, TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountTreasury extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
879
|
+
master: Address<TAccountMaster>;
|
|
880
|
+
stats: Address<TAccountStats>;
|
|
714
881
|
controller: Address<TAccountController>;
|
|
715
882
|
feeVault: Address<TAccountFeeVault>;
|
|
716
883
|
treasury?: Address<TAccountTreasury>;
|
|
717
|
-
|
|
884
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
718
885
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
719
|
-
|
|
720
|
-
claimFee: InitializeControllerInstructionDataArgs['claimFee'];
|
|
886
|
+
feeLamports: InitializeControllerInstructionDataArgs['feeLamports'];
|
|
721
887
|
};
|
|
722
|
-
declare function getInitializeControllerInstruction<TAccountController extends string, TAccountFeeVault extends string, TAccountTreasury extends string,
|
|
888
|
+
declare function getInitializeControllerInstruction<TAccountMaster extends string, TAccountStats extends string, TAccountController extends string, TAccountFeeVault extends string, TAccountTreasury extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeControllerInput<TAccountMaster, TAccountStats, TAccountController, TAccountFeeVault, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
723
889
|
programAddress?: TProgramAddress;
|
|
724
|
-
}): InitializeControllerInstruction<TProgramAddress, TAccountController, TAccountFeeVault, TAccountTreasury,
|
|
890
|
+
}): InitializeControllerInstruction<TProgramAddress, TAccountMaster, TAccountStats, TAccountController, TAccountFeeVault, TAccountTreasury, TAccountAuthority, TAccountSystemProgram>;
|
|
725
891
|
type ParsedInitializeControllerInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
726
892
|
programAddress: Address<TProgram>;
|
|
727
893
|
accounts: {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
894
|
+
master: TAccountMetas[0];
|
|
895
|
+
stats: TAccountMetas[1];
|
|
896
|
+
controller: TAccountMetas[2];
|
|
897
|
+
feeVault: TAccountMetas[3];
|
|
898
|
+
treasury: TAccountMetas[4];
|
|
899
|
+
authority: TAccountMetas[5];
|
|
900
|
+
systemProgram: TAccountMetas[6];
|
|
733
901
|
};
|
|
734
902
|
data: InitializeControllerInstructionData;
|
|
735
903
|
};
|
|
736
904
|
declare function parseInitializeControllerInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedInitializeControllerInstruction<TProgram, TAccountMetas>;
|
|
737
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_MASTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
915
|
+
declare function getInitializeMasterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
916
|
+
type InitializeMasterInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | IAccountMeta<string> = string, TAccountStats extends string | IAccountMeta<string> = string, TAccountFeeVault extends string | IAccountMeta<string> = 'DHffy4rNMtuL8VKgyBEay4jcq8AYHyoAzxLKU6aEijUV', TAccountAuthority extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
917
|
+
TAccountMaster extends string ? WritableAccount<TAccountMaster> : TAccountMaster,
|
|
918
|
+
TAccountStats extends string ? WritableAccount<TAccountStats> : TAccountStats,
|
|
919
|
+
TAccountFeeVault extends string ? ReadonlyAccount<TAccountFeeVault> : TAccountFeeVault,
|
|
920
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
921
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
922
|
+
...TRemainingAccounts
|
|
923
|
+
]>;
|
|
924
|
+
type InitializeMasterInstructionData = {
|
|
925
|
+
discriminator: ReadonlyUint8Array;
|
|
926
|
+
protocolFee: bigint;
|
|
927
|
+
initControllerFee: bigint;
|
|
928
|
+
withdrawFee: bigint;
|
|
929
|
+
};
|
|
930
|
+
type InitializeMasterInstructionDataArgs = {
|
|
931
|
+
protocolFee: number | bigint;
|
|
932
|
+
initControllerFee: number | bigint;
|
|
933
|
+
withdrawFee: number | bigint;
|
|
934
|
+
};
|
|
935
|
+
declare function getInitializeMasterInstructionDataEncoder(): Encoder<InitializeMasterInstructionDataArgs>;
|
|
936
|
+
declare function getInitializeMasterInstructionDataDecoder(): Decoder<InitializeMasterInstructionData>;
|
|
937
|
+
declare function getInitializeMasterInstructionDataCodec(): Codec<InitializeMasterInstructionDataArgs, InitializeMasterInstructionData>;
|
|
938
|
+
type InitializeMasterAsyncInput<TAccountMaster extends string = string, TAccountStats extends string = string, TAccountFeeVault extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
939
|
+
master?: Address<TAccountMaster>;
|
|
940
|
+
stats?: Address<TAccountStats>;
|
|
941
|
+
feeVault?: Address<TAccountFeeVault>;
|
|
942
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
943
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
944
|
+
protocolFee: InitializeMasterInstructionDataArgs['protocolFee'];
|
|
945
|
+
initControllerFee: InitializeMasterInstructionDataArgs['initControllerFee'];
|
|
946
|
+
withdrawFee: InitializeMasterInstructionDataArgs['withdrawFee'];
|
|
947
|
+
};
|
|
948
|
+
declare function getInitializeMasterInstructionAsync<TAccountMaster extends string, TAccountStats extends string, TAccountFeeVault extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeMasterAsyncInput<TAccountMaster, TAccountStats, TAccountFeeVault, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
949
|
+
programAddress?: TProgramAddress;
|
|
950
|
+
}): Promise<InitializeMasterInstruction<TProgramAddress, TAccountMaster, TAccountStats, TAccountFeeVault, TAccountAuthority, TAccountSystemProgram>>;
|
|
951
|
+
type InitializeMasterInput<TAccountMaster extends string = string, TAccountStats extends string = string, TAccountFeeVault extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
952
|
+
master: Address<TAccountMaster>;
|
|
953
|
+
stats: Address<TAccountStats>;
|
|
954
|
+
feeVault?: Address<TAccountFeeVault>;
|
|
955
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
956
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
957
|
+
protocolFee: InitializeMasterInstructionDataArgs['protocolFee'];
|
|
958
|
+
initControllerFee: InitializeMasterInstructionDataArgs['initControllerFee'];
|
|
959
|
+
withdrawFee: InitializeMasterInstructionDataArgs['withdrawFee'];
|
|
960
|
+
};
|
|
961
|
+
declare function getInitializeMasterInstruction<TAccountMaster extends string, TAccountStats extends string, TAccountFeeVault extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeMasterInput<TAccountMaster, TAccountStats, TAccountFeeVault, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
962
|
+
programAddress?: TProgramAddress;
|
|
963
|
+
}): InitializeMasterInstruction<TProgramAddress, TAccountMaster, TAccountStats, TAccountFeeVault, TAccountAuthority, TAccountSystemProgram>;
|
|
964
|
+
type ParsedInitializeMasterInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
965
|
+
programAddress: Address<TProgram>;
|
|
966
|
+
accounts: {
|
|
967
|
+
master: TAccountMetas[0];
|
|
968
|
+
stats: TAccountMetas[1];
|
|
969
|
+
feeVault: TAccountMetas[2];
|
|
970
|
+
authority: TAccountMetas[3];
|
|
971
|
+
systemProgram: TAccountMetas[4];
|
|
972
|
+
};
|
|
973
|
+
data: InitializeMasterInstructionData;
|
|
974
|
+
};
|
|
975
|
+
declare function parseInitializeMasterInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedInitializeMasterInstruction<TProgram, TAccountMetas>;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* This code was AUTOGENERATED using the codama library.
|
|
979
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
980
|
+
* to add features, then rerun codama to update it.
|
|
981
|
+
*
|
|
982
|
+
* @see https://github.com/codama-idl/codama
|
|
983
|
+
*/
|
|
984
|
+
|
|
985
|
+
declare const WITHDRAW_CONTROLLER_FEES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
986
|
+
declare function getWithdrawControllerFeesDiscriminatorBytes(): ReadonlyUint8Array;
|
|
987
|
+
type WithdrawControllerFeesInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | IAccountMeta<string> = string, TAccountController extends string | IAccountMeta<string> = string, TAccountFeeVault extends string | IAccountMeta<string> = string, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountTreasury extends string | IAccountMeta<string> = 'DHffy4rNMtuL8VKgyBEay4jcq8AYHyoAzxLKU6aEijUV', TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
|
|
988
|
+
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
989
|
+
TAccountController extends string ? ReadonlyAccount<TAccountController> : TAccountController,
|
|
990
|
+
TAccountFeeVault extends string ? WritableAccount<TAccountFeeVault> : TAccountFeeVault,
|
|
991
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
992
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
993
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
994
|
+
...TRemainingAccounts
|
|
995
|
+
]>;
|
|
996
|
+
type WithdrawControllerFeesInstructionData = {
|
|
997
|
+
discriminator: ReadonlyUint8Array;
|
|
998
|
+
amount: bigint;
|
|
999
|
+
};
|
|
1000
|
+
type WithdrawControllerFeesInstructionDataArgs = {
|
|
1001
|
+
amount: number | bigint;
|
|
1002
|
+
};
|
|
1003
|
+
declare function getWithdrawControllerFeesInstructionDataEncoder(): Encoder<WithdrawControllerFeesInstructionDataArgs>;
|
|
1004
|
+
declare function getWithdrawControllerFeesInstructionDataDecoder(): Decoder<WithdrawControllerFeesInstructionData>;
|
|
1005
|
+
declare function getWithdrawControllerFeesInstructionDataCodec(): Codec<WithdrawControllerFeesInstructionDataArgs, WithdrawControllerFeesInstructionData>;
|
|
1006
|
+
type WithdrawControllerFeesAsyncInput<TAccountMaster extends string = string, TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountAuthority extends string = string, TAccountTreasury extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1007
|
+
master?: Address<TAccountMaster>;
|
|
1008
|
+
controller?: Address<TAccountController>;
|
|
1009
|
+
feeVault?: Address<TAccountFeeVault>;
|
|
1010
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
1011
|
+
treasury?: Address<TAccountTreasury>;
|
|
1012
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1013
|
+
amount: WithdrawControllerFeesInstructionDataArgs['amount'];
|
|
1014
|
+
};
|
|
1015
|
+
declare function getWithdrawControllerFeesInstructionAsync<TAccountMaster extends string, TAccountController extends string, TAccountFeeVault extends string, TAccountAuthority extends string, TAccountTreasury extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: WithdrawControllerFeesAsyncInput<TAccountMaster, TAccountController, TAccountFeeVault, TAccountAuthority, TAccountTreasury, TAccountSystemProgram>, config?: {
|
|
1016
|
+
programAddress?: TProgramAddress;
|
|
1017
|
+
}): Promise<WithdrawControllerFeesInstruction<TProgramAddress, TAccountMaster, TAccountController, TAccountFeeVault, TAccountAuthority, TAccountTreasury, TAccountSystemProgram>>;
|
|
1018
|
+
type WithdrawControllerFeesInput<TAccountMaster extends string = string, TAccountController extends string = string, TAccountFeeVault extends string = string, TAccountAuthority extends string = string, TAccountTreasury extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1019
|
+
master: Address<TAccountMaster>;
|
|
1020
|
+
controller: Address<TAccountController>;
|
|
1021
|
+
feeVault: Address<TAccountFeeVault>;
|
|
1022
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
1023
|
+
treasury?: Address<TAccountTreasury>;
|
|
1024
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1025
|
+
amount: WithdrawControllerFeesInstructionDataArgs['amount'];
|
|
1026
|
+
};
|
|
1027
|
+
declare function getWithdrawControllerFeesInstruction<TAccountMaster extends string, TAccountController extends string, TAccountFeeVault extends string, TAccountAuthority extends string, TAccountTreasury extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: WithdrawControllerFeesInput<TAccountMaster, TAccountController, TAccountFeeVault, TAccountAuthority, TAccountTreasury, TAccountSystemProgram>, config?: {
|
|
1028
|
+
programAddress?: TProgramAddress;
|
|
1029
|
+
}): WithdrawControllerFeesInstruction<TProgramAddress, TAccountMaster, TAccountController, TAccountFeeVault, TAccountAuthority, TAccountTreasury, TAccountSystemProgram>;
|
|
1030
|
+
type ParsedWithdrawControllerFeesInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
|
|
1031
|
+
programAddress: Address<TProgram>;
|
|
1032
|
+
accounts: {
|
|
1033
|
+
master: TAccountMetas[0];
|
|
1034
|
+
controller: TAccountMetas[1];
|
|
1035
|
+
feeVault: TAccountMetas[2];
|
|
1036
|
+
authority: TAccountMetas[3];
|
|
1037
|
+
treasury: TAccountMetas[4];
|
|
1038
|
+
systemProgram: TAccountMetas[5];
|
|
1039
|
+
};
|
|
1040
|
+
data: WithdrawControllerFeesInstructionData;
|
|
1041
|
+
};
|
|
1042
|
+
declare function parseWithdrawControllerFeesInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedWithdrawControllerFeesInstruction<TProgram, TAccountMetas>;
|
|
1043
|
+
|
|
738
1044
|
/**
|
|
739
1045
|
* This code was AUTOGENERATED using the codama library.
|
|
740
1046
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -745,12 +1051,12 @@ declare function parseInitializeControllerInstruction<TProgram extends string, T
|
|
|
745
1051
|
|
|
746
1052
|
type AirdropClosed = {
|
|
747
1053
|
airdrop: Address;
|
|
748
|
-
|
|
1054
|
+
authority: Address;
|
|
749
1055
|
timestamp: bigint;
|
|
750
1056
|
};
|
|
751
1057
|
type AirdropClosedArgs = {
|
|
752
1058
|
airdrop: Address;
|
|
753
|
-
|
|
1059
|
+
authority: Address;
|
|
754
1060
|
timestamp: number | bigint;
|
|
755
1061
|
};
|
|
756
1062
|
declare function getAirdropClosedEncoder(): Encoder<AirdropClosedArgs>;
|
|
@@ -768,9 +1074,9 @@ declare function getAirdropClosedCodec(): Codec<AirdropClosedArgs, AirdropClosed
|
|
|
768
1074
|
type AirdropInitialized = {
|
|
769
1075
|
airdrop: Address;
|
|
770
1076
|
mint: Address;
|
|
771
|
-
|
|
1077
|
+
authority: Address;
|
|
772
1078
|
controller: Address;
|
|
773
|
-
|
|
1079
|
+
controllerFeeVault: Address;
|
|
774
1080
|
merkleRoot: Array<number>;
|
|
775
1081
|
startTime: bigint;
|
|
776
1082
|
endTime: bigint;
|
|
@@ -779,9 +1085,9 @@ type AirdropInitialized = {
|
|
|
779
1085
|
type AirdropInitializedArgs = {
|
|
780
1086
|
airdrop: Address;
|
|
781
1087
|
mint: Address;
|
|
782
|
-
|
|
1088
|
+
authority: Address;
|
|
783
1089
|
controller: Address;
|
|
784
|
-
|
|
1090
|
+
controllerFeeVault: Address;
|
|
785
1091
|
merkleRoot: Array<number>;
|
|
786
1092
|
startTime: number | bigint;
|
|
787
1093
|
endTime: number | bigint;
|
|
@@ -802,7 +1108,7 @@ declare function getAirdropInitializedCodec(): Codec<AirdropInitializedArgs, Air
|
|
|
802
1108
|
type BitmapClosed = {
|
|
803
1109
|
airdrop: Address;
|
|
804
1110
|
bitmap: Address;
|
|
805
|
-
|
|
1111
|
+
authority: Address;
|
|
806
1112
|
};
|
|
807
1113
|
type BitmapClosedArgs = BitmapClosed;
|
|
808
1114
|
declare function getBitmapClosedEncoder(): Encoder<BitmapClosedArgs>;
|
|
@@ -842,18 +1148,18 @@ declare function getBitmapInitializedCodec(): Codec<BitmapInitializedArgs, Bitma
|
|
|
842
1148
|
*/
|
|
843
1149
|
|
|
844
1150
|
type ControllerInitialized = {
|
|
1151
|
+
masterVault: Address;
|
|
845
1152
|
authority: Address;
|
|
846
1153
|
feeVault: Address;
|
|
847
|
-
|
|
848
|
-
claimFee: bigint;
|
|
1154
|
+
feeLamports: bigint;
|
|
849
1155
|
bump: number;
|
|
850
1156
|
timestamp: bigint;
|
|
851
1157
|
};
|
|
852
1158
|
type ControllerInitializedArgs = {
|
|
1159
|
+
masterVault: Address;
|
|
853
1160
|
authority: Address;
|
|
854
1161
|
feeVault: Address;
|
|
855
|
-
|
|
856
|
-
claimFee: number | bigint;
|
|
1162
|
+
feeLamports: number | bigint;
|
|
857
1163
|
bump: number;
|
|
858
1164
|
timestamp: number | bigint;
|
|
859
1165
|
};
|
|
@@ -861,6 +1167,62 @@ declare function getControllerInitializedEncoder(): Encoder<ControllerInitialize
|
|
|
861
1167
|
declare function getControllerInitializedDecoder(): Decoder<ControllerInitialized>;
|
|
862
1168
|
declare function getControllerInitializedCodec(): Codec<ControllerInitializedArgs, ControllerInitialized>;
|
|
863
1169
|
|
|
1170
|
+
/**
|
|
1171
|
+
* This code was AUTOGENERATED using the codama library.
|
|
1172
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1173
|
+
* to add features, then rerun codama to update it.
|
|
1174
|
+
*
|
|
1175
|
+
* @see https://github.com/codama-idl/codama
|
|
1176
|
+
*/
|
|
1177
|
+
|
|
1178
|
+
type FeesCollected = {
|
|
1179
|
+
controller: Address;
|
|
1180
|
+
authority: Address;
|
|
1181
|
+
feeVault: Address;
|
|
1182
|
+
amount: bigint;
|
|
1183
|
+
timestamp: bigint;
|
|
1184
|
+
};
|
|
1185
|
+
type FeesCollectedArgs = {
|
|
1186
|
+
controller: Address;
|
|
1187
|
+
authority: Address;
|
|
1188
|
+
feeVault: Address;
|
|
1189
|
+
amount: number | bigint;
|
|
1190
|
+
timestamp: number | bigint;
|
|
1191
|
+
};
|
|
1192
|
+
declare function getFeesCollectedEncoder(): Encoder<FeesCollectedArgs>;
|
|
1193
|
+
declare function getFeesCollectedDecoder(): Decoder<FeesCollected>;
|
|
1194
|
+
declare function getFeesCollectedCodec(): Codec<FeesCollectedArgs, FeesCollected>;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* This code was AUTOGENERATED using the codama library.
|
|
1198
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1199
|
+
* to add features, then rerun codama to update it.
|
|
1200
|
+
*
|
|
1201
|
+
* @see https://github.com/codama-idl/codama
|
|
1202
|
+
*/
|
|
1203
|
+
|
|
1204
|
+
type MasterInitialized = {
|
|
1205
|
+
authority: Address;
|
|
1206
|
+
feeVault: Address;
|
|
1207
|
+
protocolFee: bigint;
|
|
1208
|
+
initControllerFee: bigint;
|
|
1209
|
+
withdrawFee: bigint;
|
|
1210
|
+
bump: number;
|
|
1211
|
+
timestamp: bigint;
|
|
1212
|
+
};
|
|
1213
|
+
type MasterInitializedArgs = {
|
|
1214
|
+
authority: Address;
|
|
1215
|
+
feeVault: Address;
|
|
1216
|
+
protocolFee: number | bigint;
|
|
1217
|
+
initControllerFee: number | bigint;
|
|
1218
|
+
withdrawFee: number | bigint;
|
|
1219
|
+
bump: number;
|
|
1220
|
+
timestamp: number | bigint;
|
|
1221
|
+
};
|
|
1222
|
+
declare function getMasterInitializedEncoder(): Encoder<MasterInitializedArgs>;
|
|
1223
|
+
declare function getMasterInitializedDecoder(): Decoder<MasterInitialized>;
|
|
1224
|
+
declare function getMasterInitializedCodec(): Codec<MasterInitializedArgs, MasterInitialized>;
|
|
1225
|
+
|
|
864
1226
|
/**
|
|
865
1227
|
* This code was AUTOGENERATED using the codama library.
|
|
866
1228
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -887,4 +1249,25 @@ declare function getTokensDepositedEncoder(): Encoder<TokensDepositedArgs>;
|
|
|
887
1249
|
declare function getTokensDepositedDecoder(): Decoder<TokensDeposited>;
|
|
888
1250
|
declare function getTokensDepositedCodec(): Codec<TokensDepositedArgs, TokensDeposited>;
|
|
889
1251
|
|
|
890
|
-
|
|
1252
|
+
type RpcClient = {
|
|
1253
|
+
rpc: Rpc<SolanaRpcApi>;
|
|
1254
|
+
rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
|
|
1255
|
+
};
|
|
1256
|
+
declare const generateKeyPairSignerWithSol: (rpcClient: RpcClient, putativeLamports?: bigint) => Promise<_solana_kit.KeyPairSigner<string>>;
|
|
1257
|
+
declare const createDefaultSolanaClient: () => RpcClient;
|
|
1258
|
+
declare const createTransactionMessageFromInstruction: (rpc: Rpc<SolanaRpcApi>, signer: TransactionSigner, instruction: IInstruction[]) => Promise<_solana_kit.ITransactionMessageWithFeePayerSigner<string, TransactionSigner<string>> & Omit<_solana_kit.TransactionMessageWithBlockhashLifetime & Readonly<{
|
|
1259
|
+
instructions: readonly IInstruction<string, readonly (_solana_kit.IAccountMeta<string> | _solana_kit.IAccountLookupMeta<string, string>)[]>[];
|
|
1260
|
+
version: 0;
|
|
1261
|
+
}>, "feePayer">>;
|
|
1262
|
+
|
|
1263
|
+
type DropsyPda = readonly [Address<string>, ProgramDerivedAddressBump];
|
|
1264
|
+
type Seed = ReadonlyUint8Array | string;
|
|
1265
|
+
declare function getDropsyDerivedAddress(seeds: Seed[]): Promise<DropsyPda>;
|
|
1266
|
+
declare function getMasterDerivedAddress(): Promise<DropsyPda>;
|
|
1267
|
+
declare function getStatsDerivedAddress(): Promise<DropsyPda>;
|
|
1268
|
+
declare function getControllerDerivedAddress(authority: Address): Promise<DropsyPda>;
|
|
1269
|
+
declare function getAirdropDerivedAddress(authority: Address, mint: Address): Promise<DropsyPda>;
|
|
1270
|
+
declare function getControllerVaultAddress(controller: Address): Promise<DropsyPda>;
|
|
1271
|
+
declare function getClaimMapAddress(airdrop: Address, id: number): Promise<DropsyPda>;
|
|
1272
|
+
|
|
1273
|
+
export { AIRDROP_DISCRIMINATOR, type Airdrop, type AirdropArgs, type AirdropClosed, type AirdropClosedArgs, type AirdropInitialized, type AirdropInitializedArgs, BITMAP_ACCOUNT_DISCRIMINATOR, type BitmapAccount, type BitmapAccountArgs, type BitmapClosed, type BitmapClosedArgs, type BitmapInitialized, type BitmapInitializedArgs, CLAIM_TOKENS_DISCRIMINATOR, CLOSE_AIRDROP_DISCRIMINATOR, CLOSE_BITMAP_DISCRIMINATOR, CONTROLLER_DISCRIMINATOR, type ClaimTokensInput, type ClaimTokensInstruction, type ClaimTokensInstructionData, type ClaimTokensInstructionDataArgs, type CloseAirdropAsyncInput, type CloseAirdropInput, type CloseAirdropInstruction, type CloseAirdropInstructionData, type CloseAirdropInstructionDataArgs, type CloseBitmapAsyncInput, type CloseBitmapInput, type CloseBitmapInstruction, type CloseBitmapInstructionData, type CloseBitmapInstructionDataArgs, type Controller, type ControllerArgs, type ControllerInitialized, type ControllerInitializedArgs, DEPOSIT_TOKENS_DISCRIMINATOR, DROPSY_ERROR__ACTIVE_BITMAPS_EXIST, DROPSY_ERROR__AIRDROP_ENDED, DROPSY_ERROR__AIRDROP_NOT_ENDED, DROPSY_ERROR__AIRDROP_NOT_STARTED, DROPSY_ERROR__ALREADY_CLAIMED, DROPSY_ERROR__BITMAP_AIRDROP_MISMATCH, DROPSY_ERROR__BITMAP_COUNT_UNDERFLOW, DROPSY_ERROR__BITMAP_TOO_LARGE, DROPSY_ERROR__CLAIM_FEE_TOO_HIGH, DROPSY_ERROR__CONTROLLER_MISMATCH, DROPSY_ERROR__CREATE_FEE_TOO_HIGH, DROPSY_ERROR__DESTINATION_MINT_MISMATCH, DROPSY_ERROR__DURATION_TOO_SHORT, DROPSY_ERROR__INSUFFICIENT_DEPOSIT, DROPSY_ERROR__INSUFFICIENT_FUNDS_FOR_FEE, DROPSY_ERROR__INSUFFICIENT_VAULT_FUNDS, DROPSY_ERROR__INVALID_AIRDROP_PDA, DROPSY_ERROR__INVALID_AMOUNT, DROPSY_ERROR__INVALID_BITMAP_ACCOUNT, DROPSY_ERROR__INVALID_BITMAP_INDEX, DROPSY_ERROR__INVALID_DESTINATION_OWNER, DROPSY_ERROR__INVALID_END_TIME, DROPSY_ERROR__INVALID_FEE_VAULT, DROPSY_ERROR__INVALID_FEE_VAULT_CURVE, DROPSY_ERROR__INVALID_FEE_VAULT_OWNER, DROPSY_ERROR__INVALID_MINT, DROPSY_ERROR__INVALID_MINT_OWNER, DROPSY_ERROR__INVALID_OWNER, DROPSY_ERROR__INVALID_PDA, DROPSY_ERROR__INVALID_PROOF, DROPSY_ERROR__INVALID_TOTAL, DROPSY_ERROR__INVALID_TREASURY_ACCOUNT, DROPSY_ERROR__INVALID_VAULT_AUTHORITY, DROPSY_ERROR__MINT_HAS_FREEZE_AUTHORITY, DROPSY_ERROR__MINT_IS_FROZEN, DROPSY_ERROR__MINT_IS_NOT_INITIALIZED, DROPSY_ERROR__MINT_MISMATCH, DROPSY_ERROR__MISSING_BITMAP_PDA, DROPSY_ERROR__NFT_NOT_ALLOWED, DROPSY_ERROR__OVERFLOW, DROPSY_ERROR__OWNER_MISMATCH, DROPSY_ERROR__SOURCE_ACCOUNT_FROZEN, DROPSY_ERROR__SOURCE_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__SOURCE_HAS_DELEGATE, DROPSY_ERROR__TOO_MANY_BITMAPS, DROPSY_ERROR__VAULT_FROZEN, DROPSY_ERROR__VAULT_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__VAULT_HAS_DELEGATE, DROPSY_ERROR__VAULT_MINT_MISMATCH, DROPSY_ERROR__VAULT_NOT_INITIALIZED, DROPSY_ERROR__VAULT_NOT_RENT_EXEMPT, DROPSY_PROGRAM_ADDRESS, type DepositTokensInput, type DepositTokensInstruction, type DepositTokensInstructionData, type DepositTokensInstructionDataArgs, DropsyAccount, type DropsyError, DropsyInstruction, type DropsyPda, type FeesCollected, type FeesCollectedArgs, INITIALIZE_AIRDROP_DISCRIMINATOR, INITIALIZE_BITMAP_DISCRIMINATOR, INITIALIZE_CONTROLLER_DISCRIMINATOR, INITIALIZE_MASTER_DISCRIMINATOR, type InitializeAirdropAsyncInput, type InitializeAirdropInput, type InitializeAirdropInstruction, type InitializeAirdropInstructionData, type InitializeAirdropInstructionDataArgs, type InitializeBitmapAsyncInput, type InitializeBitmapInput, type InitializeBitmapInstruction, type InitializeBitmapInstructionData, type InitializeBitmapInstructionDataArgs, type InitializeControllerAsyncInput, type InitializeControllerInput, type InitializeControllerInstruction, type InitializeControllerInstructionData, type InitializeControllerInstructionDataArgs, type InitializeMasterAsyncInput, type InitializeMasterInput, type InitializeMasterInstruction, type InitializeMasterInstructionData, type InitializeMasterInstructionDataArgs, MASTER_DISCRIMINATOR, type Master, type MasterArgs, type MasterInitialized, type MasterInitializedArgs, type ParsedClaimTokensInstruction, type ParsedCloseAirdropInstruction, type ParsedCloseBitmapInstruction, type ParsedDepositTokensInstruction, type ParsedDropsyInstruction, type ParsedInitializeAirdropInstruction, type ParsedInitializeBitmapInstruction, type ParsedInitializeControllerInstruction, type ParsedInitializeMasterInstruction, type ParsedWithdrawControllerFeesInstruction, STATS_DISCRIMINATOR, type Stats, type StatsArgs, type TokensDeposited, type TokensDepositedArgs, WITHDRAW_CONTROLLER_FEES_DISCRIMINATOR, type WithdrawControllerFeesAsyncInput, type WithdrawControllerFeesInput, type WithdrawControllerFeesInstruction, type WithdrawControllerFeesInstructionData, type WithdrawControllerFeesInstructionDataArgs, createDefaultSolanaClient, createTransactionMessageFromInstruction, decodeAirdrop, decodeBitmapAccount, decodeController, decodeMaster, decodeStats, fetchAirdrop, fetchAllAirdrop, fetchAllBitmapAccount, fetchAllController, fetchAllMaster, fetchAllMaybeAirdrop, fetchAllMaybeBitmapAccount, fetchAllMaybeController, fetchAllMaybeMaster, fetchAllMaybeStats, fetchAllStats, fetchBitmapAccount, fetchController, fetchMaster, fetchMaybeAirdrop, fetchMaybeBitmapAccount, fetchMaybeController, fetchMaybeMaster, fetchMaybeStats, fetchStats, generateKeyPairSignerWithSol, getAirdropClosedCodec, getAirdropClosedDecoder, getAirdropClosedEncoder, getAirdropCodec, getAirdropDecoder, getAirdropDerivedAddress, getAirdropDiscriminatorBytes, getAirdropEncoder, getAirdropInitializedCodec, getAirdropInitializedDecoder, getAirdropInitializedEncoder, getBitmapAccountCodec, getBitmapAccountDecoder, getBitmapAccountDiscriminatorBytes, getBitmapAccountEncoder, getBitmapClosedCodec, getBitmapClosedDecoder, getBitmapClosedEncoder, getBitmapInitializedCodec, getBitmapInitializedDecoder, getBitmapInitializedEncoder, getClaimMapAddress, getClaimTokensDiscriminatorBytes, getClaimTokensInstruction, getClaimTokensInstructionDataCodec, getClaimTokensInstructionDataDecoder, getClaimTokensInstructionDataEncoder, getCloseAirdropDiscriminatorBytes, getCloseAirdropInstruction, getCloseAirdropInstructionAsync, getCloseAirdropInstructionDataCodec, getCloseAirdropInstructionDataDecoder, getCloseAirdropInstructionDataEncoder, getCloseBitmapDiscriminatorBytes, getCloseBitmapInstruction, getCloseBitmapInstructionAsync, getCloseBitmapInstructionDataCodec, getCloseBitmapInstructionDataDecoder, getCloseBitmapInstructionDataEncoder, getControllerCodec, getControllerDecoder, getControllerDerivedAddress, getControllerDiscriminatorBytes, getControllerEncoder, getControllerInitializedCodec, getControllerInitializedDecoder, getControllerInitializedEncoder, getControllerVaultAddress, getDepositTokensDiscriminatorBytes, getDepositTokensInstruction, getDepositTokensInstructionDataCodec, getDepositTokensInstructionDataDecoder, getDepositTokensInstructionDataEncoder, getDropsyDerivedAddress, getDropsyErrorMessage, getFeesCollectedCodec, getFeesCollectedDecoder, getFeesCollectedEncoder, getInitializeAirdropDiscriminatorBytes, getInitializeAirdropInstruction, getInitializeAirdropInstructionAsync, getInitializeAirdropInstructionDataCodec, getInitializeAirdropInstructionDataDecoder, getInitializeAirdropInstructionDataEncoder, getInitializeBitmapDiscriminatorBytes, getInitializeBitmapInstruction, getInitializeBitmapInstructionAsync, getInitializeBitmapInstructionDataCodec, getInitializeBitmapInstructionDataDecoder, getInitializeBitmapInstructionDataEncoder, getInitializeControllerDiscriminatorBytes, getInitializeControllerInstruction, getInitializeControllerInstructionAsync, getInitializeControllerInstructionDataCodec, getInitializeControllerInstructionDataDecoder, getInitializeControllerInstructionDataEncoder, getInitializeMasterDiscriminatorBytes, getInitializeMasterInstruction, getInitializeMasterInstructionAsync, getInitializeMasterInstructionDataCodec, getInitializeMasterInstructionDataDecoder, getInitializeMasterInstructionDataEncoder, getMasterCodec, getMasterDecoder, getMasterDerivedAddress, getMasterDiscriminatorBytes, getMasterEncoder, getMasterInitializedCodec, getMasterInitializedDecoder, getMasterInitializedEncoder, getStatsCodec, getStatsDecoder, getStatsDerivedAddress, getStatsDiscriminatorBytes, getStatsEncoder, getTokensDepositedCodec, getTokensDepositedDecoder, getTokensDepositedEncoder, getWithdrawControllerFeesDiscriminatorBytes, getWithdrawControllerFeesInstruction, getWithdrawControllerFeesInstructionAsync, getWithdrawControllerFeesInstructionDataCodec, getWithdrawControllerFeesInstructionDataDecoder, getWithdrawControllerFeesInstructionDataEncoder, identifyDropsyAccount, identifyDropsyInstruction, isDropsyError, parseClaimTokensInstruction, parseCloseAirdropInstruction, parseCloseBitmapInstruction, parseDepositTokensInstruction, parseInitializeAirdropInstruction, parseInitializeBitmapInstruction, parseInitializeControllerInstruction, parseInitializeMasterInstruction, parseWithdrawControllerFeesInstruction };
|