@dropsy/airdrop 0.2.6 → 0.2.7
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 +156 -148
- package/dist/index.d.ts +156 -148
- package/dist/index.js +534 -590
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +325 -386
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _solana_kit from '@solana/kit';
|
|
2
|
-
import { ReadonlyUint8Array, Address, FixedSizeEncoder, FixedSizeDecoder, FixedSizeCodec, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, WritableSignerAccount, AccountSignerMeta, Encoder, Decoder, Codec, TransactionSigner, Option, OptionOrNullable, ProgramDerivedAddressBump } from '@solana/kit';
|
|
2
|
+
import { ReadonlyUint8Array, Address, FixedSizeEncoder, FixedSizeDecoder, FixedSizeCodec, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, WritableSignerAccount, AccountSignerMeta, Encoder, Decoder, Codec, TransactionSigner, Option, OptionOrNullable, Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi, ProgramDerivedAddressBump } from '@solana/kit';
|
|
3
|
+
import MerkleTree from 'merkletreejs';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -225,13 +226,11 @@ type AirdropMaster = {
|
|
|
225
226
|
bitmapCreated: bigint;
|
|
226
227
|
maxBitmapAllowed: bigint;
|
|
227
228
|
airdropCreationFee: bigint;
|
|
229
|
+
bitmapCreationFee: bigint;
|
|
228
230
|
airdropUpdateFee: bigint;
|
|
229
|
-
airdropCloseFee: bigint;
|
|
230
231
|
airdropClaimFee: bigint;
|
|
231
232
|
airdropDelegateFee: bigint;
|
|
232
233
|
airdropDepositFee: bigint;
|
|
233
|
-
bitmapCreationFee: bigint;
|
|
234
|
-
bitmapCloseFee: bigint;
|
|
235
234
|
bump: number;
|
|
236
235
|
padding: ReadonlyUint8Array;
|
|
237
236
|
};
|
|
@@ -244,13 +243,11 @@ type AirdropMasterArgs = {
|
|
|
244
243
|
bitmapCreated: number | bigint;
|
|
245
244
|
maxBitmapAllowed: number | bigint;
|
|
246
245
|
airdropCreationFee: number | bigint;
|
|
246
|
+
bitmapCreationFee: number | bigint;
|
|
247
247
|
airdropUpdateFee: number | bigint;
|
|
248
|
-
airdropCloseFee: number | bigint;
|
|
249
248
|
airdropClaimFee: number | bigint;
|
|
250
249
|
airdropDelegateFee: number | bigint;
|
|
251
250
|
airdropDepositFee: number | bigint;
|
|
252
|
-
bitmapCreationFee: number | bigint;
|
|
253
|
-
bitmapCloseFee: number | bigint;
|
|
254
251
|
bump: number;
|
|
255
252
|
padding: ReadonlyUint8Array;
|
|
256
253
|
};
|
|
@@ -579,12 +576,11 @@ type ParsedDropsyInstruction<TProgram extends string = "6Bd4YUkwyvZTPMt1bu13zvw9
|
|
|
579
576
|
|
|
580
577
|
declare const CLAIM_AIRDROP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
581
578
|
declare function getClaimAirdropDiscriminatorBytes(): ReadonlyUint8Array;
|
|
582
|
-
type ClaimAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string,
|
|
579
|
+
type ClaimAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountAffiliate extends string | AccountMeta<string> = string, TAccountSourceTokenAccount extends string | AccountMeta<string> = string, TAccountDestinationTokenAccount extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountBitmap extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountClaimer extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
583
580
|
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
584
581
|
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
585
582
|
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
586
|
-
TAccountAirdropMaster extends string ?
|
|
587
|
-
TAccountAirdropMasterAuthority extends string ? ReadonlyAccount<TAccountAirdropMasterAuthority> : TAccountAirdropMasterAuthority,
|
|
583
|
+
TAccountAirdropMaster extends string ? WritableAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
588
584
|
TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
|
|
589
585
|
TAccountSourceTokenAccount extends string ? WritableAccount<TAccountSourceTokenAccount> : TAccountSourceTokenAccount,
|
|
590
586
|
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
@@ -614,13 +610,11 @@ type ClaimAirdropInstructionDataArgs = {
|
|
|
614
610
|
declare function getClaimAirdropInstructionDataEncoder(): Encoder<ClaimAirdropInstructionDataArgs>;
|
|
615
611
|
declare function getClaimAirdropInstructionDataDecoder(): Decoder<ClaimAirdropInstructionData>;
|
|
616
612
|
declare function getClaimAirdropInstructionDataCodec(): Codec<ClaimAirdropInstructionDataArgs, ClaimAirdropInstructionData>;
|
|
617
|
-
type ClaimAirdropAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string,
|
|
613
|
+
type ClaimAirdropAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAffiliate extends string = string, TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAirdrop extends string = string, TAccountAuthority extends string = string, TAccountBitmap extends string = string, TAccountMint extends string = string, TAccountClaimer extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
618
614
|
master?: Address<TAccountMaster>;
|
|
619
615
|
config?: Address<TAccountConfig>;
|
|
620
616
|
treasury: Address<TAccountTreasury>;
|
|
621
|
-
airdropMaster
|
|
622
|
-
/** Check with authority */
|
|
623
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
617
|
+
airdropMaster: Address<TAccountAirdropMaster>;
|
|
624
618
|
affiliate?: Address<TAccountAffiliate>;
|
|
625
619
|
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
626
620
|
destinationTokenAccount?: Address<TAccountDestinationTokenAccount>;
|
|
@@ -637,16 +631,14 @@ type ClaimAirdropAsyncInput<TAccountMaster extends string = string, TAccountConf
|
|
|
637
631
|
amount: ClaimAirdropInstructionDataArgs["amount"];
|
|
638
632
|
claimMapIndex: ClaimAirdropInstructionDataArgs["claimMapIndex"];
|
|
639
633
|
};
|
|
640
|
-
declare function getClaimAirdropInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string,
|
|
634
|
+
declare function getClaimAirdropInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAffiliate extends string, TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountAirdrop extends string, TAccountAuthority extends string, TAccountBitmap extends string, TAccountMint extends string, TAccountClaimer extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: ClaimAirdropAsyncInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountAuthority, TAccountBitmap, TAccountMint, TAccountClaimer, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
641
635
|
programAddress?: TProgramAddress;
|
|
642
|
-
}): Promise<ClaimAirdropInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster,
|
|
643
|
-
type ClaimAirdropInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string,
|
|
636
|
+
}): Promise<ClaimAirdropInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountAuthority, TAccountBitmap, TAccountMint, TAccountClaimer, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
637
|
+
type ClaimAirdropInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAffiliate extends string = string, TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAirdrop extends string = string, TAccountAuthority extends string = string, TAccountBitmap extends string = string, TAccountMint extends string = string, TAccountClaimer extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
644
638
|
master: Address<TAccountMaster>;
|
|
645
639
|
config: Address<TAccountConfig>;
|
|
646
640
|
treasury: Address<TAccountTreasury>;
|
|
647
641
|
airdropMaster: Address<TAccountAirdropMaster>;
|
|
648
|
-
/** Check with authority */
|
|
649
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
650
642
|
affiliate?: Address<TAccountAffiliate>;
|
|
651
643
|
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
652
644
|
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
@@ -663,9 +655,9 @@ type ClaimAirdropInput<TAccountMaster extends string = string, TAccountConfig ex
|
|
|
663
655
|
amount: ClaimAirdropInstructionDataArgs["amount"];
|
|
664
656
|
claimMapIndex: ClaimAirdropInstructionDataArgs["claimMapIndex"];
|
|
665
657
|
};
|
|
666
|
-
declare function getClaimAirdropInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string,
|
|
658
|
+
declare function getClaimAirdropInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAffiliate extends string, TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountAirdrop extends string, TAccountAuthority extends string, TAccountBitmap extends string, TAccountMint extends string, TAccountClaimer extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: ClaimAirdropInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountAuthority, TAccountBitmap, TAccountMint, TAccountClaimer, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
667
659
|
programAddress?: TProgramAddress;
|
|
668
|
-
}): ClaimAirdropInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster,
|
|
660
|
+
}): ClaimAirdropInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountAuthority, TAccountBitmap, TAccountMint, TAccountClaimer, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
669
661
|
type ParsedClaimAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
670
662
|
programAddress: Address<TProgram>;
|
|
671
663
|
accounts: {
|
|
@@ -673,19 +665,17 @@ type ParsedClaimAirdropInstruction<TProgram extends string = typeof DROPSY_PROGR
|
|
|
673
665
|
config: TAccountMetas[1];
|
|
674
666
|
treasury: TAccountMetas[2];
|
|
675
667
|
airdropMaster: TAccountMetas[3];
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
associatedTokenProgram: TAccountMetas[14];
|
|
688
|
-
systemProgram: TAccountMetas[15];
|
|
668
|
+
affiliate?: TAccountMetas[4] | undefined;
|
|
669
|
+
sourceTokenAccount: TAccountMetas[5];
|
|
670
|
+
destinationTokenAccount: TAccountMetas[6];
|
|
671
|
+
airdrop: TAccountMetas[7];
|
|
672
|
+
authority: TAccountMetas[8];
|
|
673
|
+
bitmap: TAccountMetas[9];
|
|
674
|
+
mint: TAccountMetas[10];
|
|
675
|
+
claimer: TAccountMetas[11];
|
|
676
|
+
tokenProgram: TAccountMetas[12];
|
|
677
|
+
associatedTokenProgram: TAccountMetas[13];
|
|
678
|
+
systemProgram: TAccountMetas[14];
|
|
689
679
|
};
|
|
690
680
|
data: ClaimAirdropInstructionData;
|
|
691
681
|
};
|
|
@@ -701,12 +691,11 @@ declare function parseClaimAirdropInstruction<TProgram extends string, TAccountM
|
|
|
701
691
|
|
|
702
692
|
declare const CREATE_AIRDROP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
703
693
|
declare function getCreateAirdropDiscriminatorBytes(): ReadonlyUint8Array;
|
|
704
|
-
type CreateAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string,
|
|
694
|
+
type CreateAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountAffiliate extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
705
695
|
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
706
696
|
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
707
697
|
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
708
|
-
TAccountAirdropMaster extends string ?
|
|
709
|
-
TAccountAirdropMasterAuthority extends string ? ReadonlyAccount<TAccountAirdropMasterAuthority> : TAccountAirdropMasterAuthority,
|
|
698
|
+
TAccountAirdropMaster extends string ? WritableAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
710
699
|
TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
|
|
711
700
|
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
712
701
|
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
@@ -736,13 +725,11 @@ type CreateAirdropInstructionDataArgs = {
|
|
|
736
725
|
declare function getCreateAirdropInstructionDataEncoder(): Encoder<CreateAirdropInstructionDataArgs>;
|
|
737
726
|
declare function getCreateAirdropInstructionDataDecoder(): Decoder<CreateAirdropInstructionData>;
|
|
738
727
|
declare function getCreateAirdropInstructionDataCodec(): Codec<CreateAirdropInstructionDataArgs, CreateAirdropInstructionData>;
|
|
739
|
-
type CreateAirdropAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string,
|
|
728
|
+
type CreateAirdropAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAffiliate extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
740
729
|
master?: Address<TAccountMaster>;
|
|
741
730
|
config?: Address<TAccountConfig>;
|
|
742
731
|
treasury: Address<TAccountTreasury>;
|
|
743
|
-
airdropMaster
|
|
744
|
-
/** Check with authority */
|
|
745
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
732
|
+
airdropMaster: Address<TAccountAirdropMaster>;
|
|
746
733
|
affiliate?: Address<TAccountAffiliate>;
|
|
747
734
|
airdrop?: Address<TAccountAirdrop>;
|
|
748
735
|
mint: Address<TAccountMint>;
|
|
@@ -756,16 +743,14 @@ type CreateAirdropAsyncInput<TAccountMaster extends string = string, TAccountCon
|
|
|
756
743
|
delegateAuthority: CreateAirdropInstructionDataArgs["delegateAuthority"];
|
|
757
744
|
delegatePermissions: CreateAirdropInstructionDataArgs["delegatePermissions"];
|
|
758
745
|
};
|
|
759
|
-
declare function getCreateAirdropInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string,
|
|
746
|
+
declare function getCreateAirdropInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAffiliate extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: CreateAirdropAsyncInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
760
747
|
programAddress?: TProgramAddress;
|
|
761
|
-
}): Promise<CreateAirdropInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster,
|
|
762
|
-
type CreateAirdropInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string,
|
|
748
|
+
}): Promise<CreateAirdropInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>>;
|
|
749
|
+
type CreateAirdropInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAffiliate extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
763
750
|
master: Address<TAccountMaster>;
|
|
764
751
|
config: Address<TAccountConfig>;
|
|
765
752
|
treasury: Address<TAccountTreasury>;
|
|
766
753
|
airdropMaster: Address<TAccountAirdropMaster>;
|
|
767
|
-
/** Check with authority */
|
|
768
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
769
754
|
affiliate?: Address<TAccountAffiliate>;
|
|
770
755
|
airdrop: Address<TAccountAirdrop>;
|
|
771
756
|
mint: Address<TAccountMint>;
|
|
@@ -779,9 +764,9 @@ type CreateAirdropInput<TAccountMaster extends string = string, TAccountConfig e
|
|
|
779
764
|
delegateAuthority: CreateAirdropInstructionDataArgs["delegateAuthority"];
|
|
780
765
|
delegatePermissions: CreateAirdropInstructionDataArgs["delegatePermissions"];
|
|
781
766
|
};
|
|
782
|
-
declare function getCreateAirdropInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string,
|
|
767
|
+
declare function getCreateAirdropInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAffiliate extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: CreateAirdropInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
783
768
|
programAddress?: TProgramAddress;
|
|
784
|
-
}): CreateAirdropInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster,
|
|
769
|
+
}): CreateAirdropInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>;
|
|
785
770
|
type ParsedCreateAirdropInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
786
771
|
programAddress: Address<TProgram>;
|
|
787
772
|
accounts: {
|
|
@@ -789,28 +774,25 @@ type ParsedCreateAirdropInstruction<TProgram extends string = typeof DROPSY_PROG
|
|
|
789
774
|
config: TAccountMetas[1];
|
|
790
775
|
treasury: TAccountMetas[2];
|
|
791
776
|
airdropMaster: TAccountMetas[3];
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
authority: TAccountMetas[8];
|
|
798
|
-
systemProgram: TAccountMetas[9];
|
|
777
|
+
affiliate?: TAccountMetas[4] | undefined;
|
|
778
|
+
airdrop: TAccountMetas[5];
|
|
779
|
+
mint: TAccountMetas[6];
|
|
780
|
+
authority: TAccountMetas[7];
|
|
781
|
+
systemProgram: TAccountMetas[8];
|
|
799
782
|
};
|
|
800
783
|
data: CreateAirdropInstructionData;
|
|
801
784
|
};
|
|
802
785
|
declare function parseCreateAirdropInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateAirdropInstruction<TProgram, TAccountMetas>;
|
|
803
786
|
type CreateAirdropV0Input = {
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
airdrop: Address;
|
|
787
|
+
airdropMaster?: Address;
|
|
788
|
+
airdrop?: Address;
|
|
807
789
|
mint: Address;
|
|
808
790
|
authority: TransactionSigner<string>;
|
|
809
791
|
merkleRoot?: ReadonlyUint8Array | null;
|
|
810
|
-
startsAt?:
|
|
811
|
-
endsAt?:
|
|
792
|
+
startsAt?: Date | null;
|
|
793
|
+
endsAt?: Date | null;
|
|
812
794
|
};
|
|
813
|
-
declare function getCreateAirdropV0Instruction(input: CreateAirdropV0Input): Promise<CreateAirdropInstruction<Address<"6Bd4YUkwyvZTPMt1bu13zvw9t4TtoMTd6CFVMmaswB2M">, string, string,
|
|
795
|
+
declare function getCreateAirdropV0Instruction(input: CreateAirdropV0Input): Promise<CreateAirdropInstruction<Address<"6Bd4YUkwyvZTPMt1bu13zvw9t4TtoMTd6CFVMmaswB2M">, string, string, "8mtUD2XrkNnTxnjCehZ4DEtTXeGR1yrepSEGhCaSj2kT", string, string, string, string, string, string, []>>;
|
|
814
796
|
|
|
815
797
|
/**
|
|
816
798
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -822,12 +804,11 @@ declare function getCreateAirdropV0Instruction(input: CreateAirdropV0Input): Pro
|
|
|
822
804
|
|
|
823
805
|
declare const CREATE_CLAIM_MAP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
824
806
|
declare function getCreateClaimMapDiscriminatorBytes(): ReadonlyUint8Array;
|
|
825
|
-
type CreateClaimMapInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string,
|
|
807
|
+
type CreateClaimMapInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountAffiliate extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountBitmap extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
826
808
|
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
827
809
|
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
828
810
|
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
829
|
-
TAccountAirdropMaster extends string ?
|
|
830
|
-
TAccountAirdropMasterAuthority extends string ? ReadonlyAccount<TAccountAirdropMasterAuthority> : TAccountAirdropMasterAuthority,
|
|
811
|
+
TAccountAirdropMaster extends string ? WritableAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
831
812
|
TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
|
|
832
813
|
TAccountAirdrop extends string ? WritableAccount<TAccountAirdrop> : TAccountAirdrop,
|
|
833
814
|
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
@@ -848,13 +829,11 @@ type CreateClaimMapInstructionDataArgs = {
|
|
|
848
829
|
declare function getCreateClaimMapInstructionDataEncoder(): FixedSizeEncoder<CreateClaimMapInstructionDataArgs>;
|
|
849
830
|
declare function getCreateClaimMapInstructionDataDecoder(): FixedSizeDecoder<CreateClaimMapInstructionData>;
|
|
850
831
|
declare function getCreateClaimMapInstructionDataCodec(): FixedSizeCodec<CreateClaimMapInstructionDataArgs, CreateClaimMapInstructionData>;
|
|
851
|
-
type CreateClaimMapAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string,
|
|
832
|
+
type CreateClaimMapAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAffiliate extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountBitmap extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
852
833
|
master?: Address<TAccountMaster>;
|
|
853
834
|
config?: Address<TAccountConfig>;
|
|
854
835
|
treasury: Address<TAccountTreasury>;
|
|
855
|
-
airdropMaster
|
|
856
|
-
/** Check with authority */
|
|
857
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
836
|
+
airdropMaster: Address<TAccountAirdropMaster>;
|
|
858
837
|
affiliate?: Address<TAccountAffiliate>;
|
|
859
838
|
airdrop?: Address<TAccountAirdrop>;
|
|
860
839
|
mint: Address<TAccountMint>;
|
|
@@ -864,16 +843,14 @@ type CreateClaimMapAsyncInput<TAccountMaster extends string = string, TAccountCo
|
|
|
864
843
|
id: CreateClaimMapInstructionDataArgs["id"];
|
|
865
844
|
total: CreateClaimMapInstructionDataArgs["total"];
|
|
866
845
|
};
|
|
867
|
-
declare function getCreateClaimMapInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string,
|
|
846
|
+
declare function getCreateClaimMapInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAffiliate extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountBitmap extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: CreateClaimMapAsyncInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountAirdrop, TAccountMint, TAccountBitmap, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
868
847
|
programAddress?: TProgramAddress;
|
|
869
|
-
}): Promise<CreateClaimMapInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster,
|
|
870
|
-
type CreateClaimMapInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string,
|
|
848
|
+
}): Promise<CreateClaimMapInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountAirdrop, TAccountMint, TAccountBitmap, TAccountAuthority, TAccountSystemProgram>>;
|
|
849
|
+
type CreateClaimMapInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAffiliate extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountBitmap extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string> = {
|
|
871
850
|
master: Address<TAccountMaster>;
|
|
872
851
|
config: Address<TAccountConfig>;
|
|
873
852
|
treasury: Address<TAccountTreasury>;
|
|
874
853
|
airdropMaster: Address<TAccountAirdropMaster>;
|
|
875
|
-
/** Check with authority */
|
|
876
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
877
854
|
affiliate?: Address<TAccountAffiliate>;
|
|
878
855
|
airdrop: Address<TAccountAirdrop>;
|
|
879
856
|
mint: Address<TAccountMint>;
|
|
@@ -883,9 +860,9 @@ type CreateClaimMapInput<TAccountMaster extends string = string, TAccountConfig
|
|
|
883
860
|
id: CreateClaimMapInstructionDataArgs["id"];
|
|
884
861
|
total: CreateClaimMapInstructionDataArgs["total"];
|
|
885
862
|
};
|
|
886
|
-
declare function getCreateClaimMapInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string,
|
|
863
|
+
declare function getCreateClaimMapInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAffiliate extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountBitmap extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: CreateClaimMapInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountAirdrop, TAccountMint, TAccountBitmap, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
887
864
|
programAddress?: TProgramAddress;
|
|
888
|
-
}): CreateClaimMapInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster,
|
|
865
|
+
}): CreateClaimMapInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountAirdrop, TAccountMint, TAccountBitmap, TAccountAuthority, TAccountSystemProgram>;
|
|
889
866
|
type ParsedCreateClaimMapInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
890
867
|
programAddress: Address<TProgram>;
|
|
891
868
|
accounts: {
|
|
@@ -893,18 +870,26 @@ type ParsedCreateClaimMapInstruction<TProgram extends string = typeof DROPSY_PRO
|
|
|
893
870
|
config: TAccountMetas[1];
|
|
894
871
|
treasury: TAccountMetas[2];
|
|
895
872
|
airdropMaster: TAccountMetas[3];
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
authority: TAccountMetas[9];
|
|
903
|
-
systemProgram: TAccountMetas[10];
|
|
873
|
+
affiliate?: TAccountMetas[4] | undefined;
|
|
874
|
+
airdrop: TAccountMetas[5];
|
|
875
|
+
mint: TAccountMetas[6];
|
|
876
|
+
bitmap: TAccountMetas[7];
|
|
877
|
+
authority: TAccountMetas[8];
|
|
878
|
+
systemProgram: TAccountMetas[9];
|
|
904
879
|
};
|
|
905
880
|
data: CreateClaimMapInstructionData;
|
|
906
881
|
};
|
|
907
882
|
declare function parseCreateClaimMapInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateClaimMapInstruction<TProgram, TAccountMetas>;
|
|
883
|
+
type CreateClaimMapV0Input = {
|
|
884
|
+
airdropMaster?: Address;
|
|
885
|
+
airdrop?: Address;
|
|
886
|
+
claimMap?: Address;
|
|
887
|
+
mint: Address;
|
|
888
|
+
authority: TransactionSigner<string>;
|
|
889
|
+
id?: number;
|
|
890
|
+
total?: number;
|
|
891
|
+
};
|
|
892
|
+
declare function getCreateClaimMapV0Instruction(input: CreateClaimMapV0Input): Promise<CreateClaimMapInstruction<Address<"6Bd4YUkwyvZTPMt1bu13zvw9t4TtoMTd6CFVMmaswB2M">, string, string, "8mtUD2XrkNnTxnjCehZ4DEtTXeGR1yrepSEGhCaSj2kT", string, string, string, string, string, string, string, []>>;
|
|
908
893
|
|
|
909
894
|
/**
|
|
910
895
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -916,12 +901,11 @@ declare function parseCreateClaimMapInstruction<TProgram extends string, TAccoun
|
|
|
916
901
|
|
|
917
902
|
declare const DEPOSIT_TOKENS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
918
903
|
declare function getDepositTokensDiscriminatorBytes(): ReadonlyUint8Array;
|
|
919
|
-
type DepositTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string,
|
|
904
|
+
type DepositTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountAffiliate extends string | AccountMeta<string> = string, TAccountSourceTokenAccount extends string | AccountMeta<string> = string, TAccountDestinationTokenAccount extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
920
905
|
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
921
906
|
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
922
907
|
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
923
|
-
TAccountAirdropMaster extends string ?
|
|
924
|
-
TAccountAirdropMasterAuthority extends string ? ReadonlyAccount<TAccountAirdropMasterAuthority> : TAccountAirdropMasterAuthority,
|
|
908
|
+
TAccountAirdropMaster extends string ? WritableAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
925
909
|
TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
|
|
926
910
|
TAccountSourceTokenAccount extends string ? WritableAccount<TAccountSourceTokenAccount> : TAccountSourceTokenAccount,
|
|
927
911
|
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
@@ -943,13 +927,11 @@ type DepositTokensInstructionDataArgs = {
|
|
|
943
927
|
declare function getDepositTokensInstructionDataEncoder(): FixedSizeEncoder<DepositTokensInstructionDataArgs>;
|
|
944
928
|
declare function getDepositTokensInstructionDataDecoder(): FixedSizeDecoder<DepositTokensInstructionData>;
|
|
945
929
|
declare function getDepositTokensInstructionDataCodec(): FixedSizeCodec<DepositTokensInstructionDataArgs, DepositTokensInstructionData>;
|
|
946
|
-
type DepositTokensAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string,
|
|
930
|
+
type DepositTokensAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAffiliate extends string = string, TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
947
931
|
master?: Address<TAccountMaster>;
|
|
948
932
|
config?: Address<TAccountConfig>;
|
|
949
|
-
treasury
|
|
933
|
+
treasury?: Address<TAccountTreasury>;
|
|
950
934
|
airdropMaster?: Address<TAccountAirdropMaster>;
|
|
951
|
-
/** Check with authority */
|
|
952
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
953
935
|
affiliate?: Address<TAccountAffiliate>;
|
|
954
936
|
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
955
937
|
destinationTokenAccount?: Address<TAccountDestinationTokenAccount>;
|
|
@@ -961,16 +943,14 @@ type DepositTokensAsyncInput<TAccountMaster extends string = string, TAccountCon
|
|
|
961
943
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
962
944
|
amount: DepositTokensInstructionDataArgs["amount"];
|
|
963
945
|
};
|
|
964
|
-
declare function getDepositTokensInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string,
|
|
946
|
+
declare function getDepositTokensInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAffiliate extends string, TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: DepositTokensAsyncInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
965
947
|
programAddress?: TProgramAddress;
|
|
966
|
-
}): Promise<DepositTokensInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster,
|
|
967
|
-
type DepositTokensInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string,
|
|
948
|
+
}): Promise<DepositTokensInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
949
|
+
type DepositTokensInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAffiliate extends string = string, TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
968
950
|
master: Address<TAccountMaster>;
|
|
969
951
|
config: Address<TAccountConfig>;
|
|
970
952
|
treasury: Address<TAccountTreasury>;
|
|
971
953
|
airdropMaster: Address<TAccountAirdropMaster>;
|
|
972
|
-
/** Check with authority */
|
|
973
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
974
954
|
affiliate?: Address<TAccountAffiliate>;
|
|
975
955
|
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
976
956
|
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
@@ -982,9 +962,9 @@ type DepositTokensInput<TAccountMaster extends string = string, TAccountConfig e
|
|
|
982
962
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
983
963
|
amount: DepositTokensInstructionDataArgs["amount"];
|
|
984
964
|
};
|
|
985
|
-
declare function getDepositTokensInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string,
|
|
965
|
+
declare function getDepositTokensInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAffiliate extends string, TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: DepositTokensInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
986
966
|
programAddress?: TProgramAddress;
|
|
987
|
-
}): DepositTokensInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster,
|
|
967
|
+
}): DepositTokensInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
988
968
|
type ParsedDepositTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
989
969
|
programAddress: Address<TProgram>;
|
|
990
970
|
accounts: {
|
|
@@ -992,17 +972,15 @@ type ParsedDepositTokensInstruction<TProgram extends string = typeof DROPSY_PROG
|
|
|
992
972
|
config: TAccountMetas[1];
|
|
993
973
|
treasury: TAccountMetas[2];
|
|
994
974
|
airdropMaster: TAccountMetas[3];
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
associatedTokenProgram: TAccountMetas[12];
|
|
1005
|
-
systemProgram: TAccountMetas[13];
|
|
975
|
+
affiliate?: TAccountMetas[4] | undefined;
|
|
976
|
+
sourceTokenAccount: TAccountMetas[5];
|
|
977
|
+
destinationTokenAccount: TAccountMetas[6];
|
|
978
|
+
airdrop: TAccountMetas[7];
|
|
979
|
+
mint: TAccountMetas[8];
|
|
980
|
+
authority: TAccountMetas[9];
|
|
981
|
+
tokenProgram: TAccountMetas[10];
|
|
982
|
+
associatedTokenProgram: TAccountMetas[11];
|
|
983
|
+
systemProgram: TAccountMetas[12];
|
|
1006
984
|
};
|
|
1007
985
|
data: DepositTokensInstructionData;
|
|
1008
986
|
};
|
|
@@ -1372,16 +1350,20 @@ type InitializeAirdropMasterInstruction<TProgram extends string = typeof DROPSY_
|
|
|
1372
1350
|
]>;
|
|
1373
1351
|
type InitializeAirdropMasterInstructionData = {
|
|
1374
1352
|
discriminator: ReadonlyUint8Array;
|
|
1375
|
-
merkleRoot: ReadonlyUint8Array
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1353
|
+
merkleRoot: Option<ReadonlyUint8Array>;
|
|
1354
|
+
airdropCreateFee: Option<bigint>;
|
|
1355
|
+
airdropUpdateFee: Option<bigint>;
|
|
1356
|
+
bitmapCreateFee: Option<bigint>;
|
|
1357
|
+
advancedConfig: Option<AdvancedFeeConfig>;
|
|
1358
|
+
wlProof: Option<Array<ReadonlyUint8Array>>;
|
|
1379
1359
|
};
|
|
1380
1360
|
type InitializeAirdropMasterInstructionDataArgs = {
|
|
1381
|
-
merkleRoot: ReadonlyUint8Array
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1361
|
+
merkleRoot: OptionOrNullable<ReadonlyUint8Array>;
|
|
1362
|
+
airdropCreateFee: OptionOrNullable<number | bigint>;
|
|
1363
|
+
airdropUpdateFee: OptionOrNullable<number | bigint>;
|
|
1364
|
+
bitmapCreateFee: OptionOrNullable<number | bigint>;
|
|
1365
|
+
advancedConfig: OptionOrNullable<AdvancedFeeConfigArgs>;
|
|
1366
|
+
wlProof: OptionOrNullable<Array<ReadonlyUint8Array>>;
|
|
1385
1367
|
};
|
|
1386
1368
|
declare function getInitializeAirdropMasterInstructionDataEncoder(): Encoder<InitializeAirdropMasterInstructionDataArgs>;
|
|
1387
1369
|
declare function getInitializeAirdropMasterInstructionDataDecoder(): Decoder<InitializeAirdropMasterInstructionData>;
|
|
@@ -1395,9 +1377,11 @@ type InitializeAirdropMasterAsyncInput<TAccountMaster extends string = string, T
|
|
|
1395
1377
|
authority: TransactionSigner<TAccountAuthority>;
|
|
1396
1378
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1397
1379
|
merkleRoot: InitializeAirdropMasterInstructionDataArgs["merkleRoot"];
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1380
|
+
airdropCreateFee: InitializeAirdropMasterInstructionDataArgs["airdropCreateFee"];
|
|
1381
|
+
airdropUpdateFee: InitializeAirdropMasterInstructionDataArgs["airdropUpdateFee"];
|
|
1382
|
+
bitmapCreateFee: InitializeAirdropMasterInstructionDataArgs["bitmapCreateFee"];
|
|
1383
|
+
advancedConfig: InitializeAirdropMasterInstructionDataArgs["advancedConfig"];
|
|
1384
|
+
wlProof: InitializeAirdropMasterInstructionDataArgs["wlProof"];
|
|
1401
1385
|
};
|
|
1402
1386
|
declare function getInitializeAirdropMasterInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAffiliateMaster extends string, TAccountAirdropMaster extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeAirdropMasterAsyncInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAffiliateMaster, TAccountAirdropMaster, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
1403
1387
|
programAddress?: TProgramAddress;
|
|
@@ -1411,9 +1395,11 @@ type InitializeAirdropMasterInput<TAccountMaster extends string = string, TAccou
|
|
|
1411
1395
|
authority: TransactionSigner<TAccountAuthority>;
|
|
1412
1396
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1413
1397
|
merkleRoot: InitializeAirdropMasterInstructionDataArgs["merkleRoot"];
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1398
|
+
airdropCreateFee: InitializeAirdropMasterInstructionDataArgs["airdropCreateFee"];
|
|
1399
|
+
airdropUpdateFee: InitializeAirdropMasterInstructionDataArgs["airdropUpdateFee"];
|
|
1400
|
+
bitmapCreateFee: InitializeAirdropMasterInstructionDataArgs["bitmapCreateFee"];
|
|
1401
|
+
advancedConfig: InitializeAirdropMasterInstructionDataArgs["advancedConfig"];
|
|
1402
|
+
wlProof: InitializeAirdropMasterInstructionDataArgs["wlProof"];
|
|
1417
1403
|
};
|
|
1418
1404
|
declare function getInitializeAirdropMasterInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAffiliateMaster extends string, TAccountAirdropMaster extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: InitializeAirdropMasterInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAffiliateMaster, TAccountAirdropMaster, TAccountAuthority, TAccountSystemProgram>, config?: {
|
|
1419
1405
|
programAddress?: TProgramAddress;
|
|
@@ -1514,12 +1500,11 @@ declare function parseInitializeMasterInstruction<TProgram extends string, TAcco
|
|
|
1514
1500
|
|
|
1515
1501
|
declare const REDEEM_AIRDROP_TOKENS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1516
1502
|
declare function getRedeemAirdropTokensDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1517
|
-
type RedeemAirdropTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string,
|
|
1503
|
+
type RedeemAirdropTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMaster extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountAirdropMaster extends string | AccountMeta<string> = string, TAccountAffiliate extends string | AccountMeta<string> = string, TAccountSourceTokenAccount extends string | AccountMeta<string> = string, TAccountDestinationTokenAccount extends string | AccountMeta<string> = string, TAccountAirdrop extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1518
1504
|
TAccountMaster extends string ? ReadonlyAccount<TAccountMaster> : TAccountMaster,
|
|
1519
1505
|
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
1520
1506
|
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
1521
|
-
TAccountAirdropMaster extends string ?
|
|
1522
|
-
TAccountAirdropMasterAuthority extends string ? ReadonlyAccount<TAccountAirdropMasterAuthority> : TAccountAirdropMasterAuthority,
|
|
1507
|
+
TAccountAirdropMaster extends string ? WritableAccount<TAccountAirdropMaster> : TAccountAirdropMaster,
|
|
1523
1508
|
TAccountAffiliate extends string ? WritableAccount<TAccountAffiliate> : TAccountAffiliate,
|
|
1524
1509
|
TAccountSourceTokenAccount extends string ? WritableAccount<TAccountSourceTokenAccount> : TAccountSourceTokenAccount,
|
|
1525
1510
|
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
@@ -1538,13 +1523,11 @@ type RedeemAirdropTokensInstructionDataArgs = {};
|
|
|
1538
1523
|
declare function getRedeemAirdropTokensInstructionDataEncoder(): FixedSizeEncoder<RedeemAirdropTokensInstructionDataArgs>;
|
|
1539
1524
|
declare function getRedeemAirdropTokensInstructionDataDecoder(): FixedSizeDecoder<RedeemAirdropTokensInstructionData>;
|
|
1540
1525
|
declare function getRedeemAirdropTokensInstructionDataCodec(): FixedSizeCodec<RedeemAirdropTokensInstructionDataArgs, RedeemAirdropTokensInstructionData>;
|
|
1541
|
-
type RedeemAirdropTokensAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string,
|
|
1526
|
+
type RedeemAirdropTokensAsyncInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAffiliate extends string = string, TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1542
1527
|
master?: Address<TAccountMaster>;
|
|
1543
1528
|
config?: Address<TAccountConfig>;
|
|
1544
1529
|
treasury: Address<TAccountTreasury>;
|
|
1545
|
-
airdropMaster
|
|
1546
|
-
/** Check with authority */
|
|
1547
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
1530
|
+
airdropMaster: Address<TAccountAirdropMaster>;
|
|
1548
1531
|
affiliate?: Address<TAccountAffiliate>;
|
|
1549
1532
|
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
1550
1533
|
destinationTokenAccount?: Address<TAccountDestinationTokenAccount>;
|
|
@@ -1555,16 +1538,14 @@ type RedeemAirdropTokensAsyncInput<TAccountMaster extends string = string, TAcco
|
|
|
1555
1538
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1556
1539
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1557
1540
|
};
|
|
1558
|
-
declare function getRedeemAirdropTokensInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string,
|
|
1541
|
+
declare function getRedeemAirdropTokensInstructionAsync<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAffiliate extends string, TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: RedeemAirdropTokensAsyncInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1559
1542
|
programAddress?: TProgramAddress;
|
|
1560
|
-
}): Promise<RedeemAirdropTokensInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster,
|
|
1561
|
-
type RedeemAirdropTokensInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string,
|
|
1543
|
+
}): Promise<RedeemAirdropTokensInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
1544
|
+
type RedeemAirdropTokensInput<TAccountMaster extends string = string, TAccountConfig extends string = string, TAccountTreasury extends string = string, TAccountAirdropMaster extends string = string, TAccountAffiliate extends string = string, TAccountSourceTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountAirdrop extends string = string, TAccountMint extends string = string, TAccountAuthority extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1562
1545
|
master: Address<TAccountMaster>;
|
|
1563
1546
|
config: Address<TAccountConfig>;
|
|
1564
1547
|
treasury: Address<TAccountTreasury>;
|
|
1565
1548
|
airdropMaster: Address<TAccountAirdropMaster>;
|
|
1566
|
-
/** Check with authority */
|
|
1567
|
-
airdropMasterAuthority: Address<TAccountAirdropMasterAuthority>;
|
|
1568
1549
|
affiliate?: Address<TAccountAffiliate>;
|
|
1569
1550
|
sourceTokenAccount: Address<TAccountSourceTokenAccount>;
|
|
1570
1551
|
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
@@ -1575,9 +1556,9 @@ type RedeemAirdropTokensInput<TAccountMaster extends string = string, TAccountCo
|
|
|
1575
1556
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1576
1557
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1577
1558
|
};
|
|
1578
|
-
declare function getRedeemAirdropTokensInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string,
|
|
1559
|
+
declare function getRedeemAirdropTokensInstruction<TAccountMaster extends string, TAccountConfig extends string, TAccountTreasury extends string, TAccountAirdropMaster extends string, TAccountAffiliate extends string, TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_PROGRAM_ADDRESS>(input: RedeemAirdropTokensInput<TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1579
1560
|
programAddress?: TProgramAddress;
|
|
1580
|
-
}): RedeemAirdropTokensInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster,
|
|
1561
|
+
}): RedeemAirdropTokensInstruction<TProgramAddress, TAccountMaster, TAccountConfig, TAccountTreasury, TAccountAirdropMaster, TAccountAffiliate, TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
1581
1562
|
type ParsedRedeemAirdropTokensInstruction<TProgram extends string = typeof DROPSY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1582
1563
|
programAddress: Address<TProgram>;
|
|
1583
1564
|
accounts: {
|
|
@@ -1585,22 +1566,35 @@ type ParsedRedeemAirdropTokensInstruction<TProgram extends string = typeof DROPS
|
|
|
1585
1566
|
config: TAccountMetas[1];
|
|
1586
1567
|
treasury: TAccountMetas[2];
|
|
1587
1568
|
airdropMaster: TAccountMetas[3];
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
associatedTokenProgram: TAccountMetas[12];
|
|
1598
|
-
systemProgram: TAccountMetas[13];
|
|
1569
|
+
affiliate?: TAccountMetas[4] | undefined;
|
|
1570
|
+
sourceTokenAccount: TAccountMetas[5];
|
|
1571
|
+
destinationTokenAccount: TAccountMetas[6];
|
|
1572
|
+
airdrop: TAccountMetas[7];
|
|
1573
|
+
mint: TAccountMetas[8];
|
|
1574
|
+
authority: TAccountMetas[9];
|
|
1575
|
+
tokenProgram: TAccountMetas[10];
|
|
1576
|
+
associatedTokenProgram: TAccountMetas[11];
|
|
1577
|
+
systemProgram: TAccountMetas[12];
|
|
1599
1578
|
};
|
|
1600
1579
|
data: RedeemAirdropTokensInstructionData;
|
|
1601
1580
|
};
|
|
1602
1581
|
declare function parseRedeemAirdropTokensInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRedeemAirdropTokensInstruction<TProgram, TAccountMetas>;
|
|
1603
1582
|
|
|
1583
|
+
type RpcClient = {
|
|
1584
|
+
rpc: Rpc<SolanaRpcApi>;
|
|
1585
|
+
rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
|
|
1586
|
+
};
|
|
1587
|
+
declare const generateKeyPairSignerWithSol: (rpcClient: RpcClient, putativeLamports?: bigint) => Promise<_solana_kit.KeyPairSigner<string>>;
|
|
1588
|
+
declare const createDefaultSolanaClient: () => RpcClient;
|
|
1589
|
+
declare const createTransactionMessageFromInstructions: (rpc: Rpc<SolanaRpcApi>, signer: TransactionSigner, instruction: Instruction[]) => Promise<Omit<_solana_kit.ExcludeTransactionMessageWithinSizeLimit<Omit<_solana_kit.ExcludeTransactionMessageLifetime<Omit<Readonly<{
|
|
1590
|
+
instructions: readonly Instruction<string, readonly (_solana_kit.AccountMeta<string> | _solana_kit.AccountLookupMeta<string, string>)[]>[];
|
|
1591
|
+
version: 0;
|
|
1592
|
+
}>, "instructions"> & _solana_kit.TransactionMessageWithinSizeLimit & {
|
|
1593
|
+
instructions: readonly [];
|
|
1594
|
+
}> & _solana_kit.TransactionMessageWithBlockhashLifetime, "feePayer"> & _solana_kit.TransactionMessageWithFeePayerSigner<string, TransactionSigner<string>>>, "instructions"> & {
|
|
1595
|
+
readonly instructions: readonly Instruction<string, readonly (_solana_kit.AccountMeta<string> | _solana_kit.AccountLookupMeta<string, string>)[]>[];
|
|
1596
|
+
}>;
|
|
1597
|
+
|
|
1604
1598
|
type DropsyPda = readonly [Address<string>, ProgramDerivedAddressBump];
|
|
1605
1599
|
type Seed = ReadonlyUint8Array | string;
|
|
1606
1600
|
declare function getDropsyDerivedAddress(seeds: Seed[]): Promise<DropsyPda>;
|
|
@@ -1611,6 +1605,17 @@ declare function getAffiliateDerivedAddress(authority: Address): Promise<DropsyP
|
|
|
1611
1605
|
declare function getAirdropDerivedAddress(authority: Address, mint: Address): Promise<DropsyPda>;
|
|
1612
1606
|
declare function getClaimMapDerivedAddress(airdrop: Address, id: number): Promise<DropsyPda>;
|
|
1613
1607
|
|
|
1608
|
+
declare function toUnixTimestamp(date?: Date | null): number | null;
|
|
1609
|
+
|
|
1610
|
+
declare const createWLMerkleTree: (wallets: string[]) => MerkleTree;
|
|
1611
|
+
declare const getSimpleMerkleProof: (merkleTree: MerkleTree, address: string) => Buffer[];
|
|
1612
|
+
declare const getMerkleRootArray: (merkleTree: MerkleTree) => ReadonlyUint8Array;
|
|
1613
|
+
declare const createMerkleTree: (claimList: {
|
|
1614
|
+
index: number;
|
|
1615
|
+
address: string;
|
|
1616
|
+
amount: number;
|
|
1617
|
+
}[]) => MerkleTree;
|
|
1618
|
+
|
|
1614
1619
|
/**
|
|
1615
1620
|
* -------------------------
|
|
1616
1621
|
* PDA Seed Constants
|
|
@@ -1633,6 +1638,9 @@ declare const VAULT_SEED = "vault";
|
|
|
1633
1638
|
* -------------------------
|
|
1634
1639
|
*/
|
|
1635
1640
|
declare const ADMIN: _solana_kit.Address<"8mtUD2XrkNnTxnjCehZ4DEtTXeGR1yrepSEGhCaSj2kT">;
|
|
1641
|
+
declare const DROPSY_TREASURY: _solana_kit.Address<"8mtUD2XrkNnTxnjCehZ4DEtTXeGR1yrepSEGhCaSj2kT">;
|
|
1642
|
+
declare const DEFAULT_MASTER_PDA: _solana_kit.Address<"8mtUD2XrkNnTxnjCehZ4DEtTXeGR1yrepSEGhCaSj2kT">;
|
|
1643
|
+
declare const DEFAULT_MASTER_PDA_AUTHORITY: _solana_kit.Address<"8mtUD2XrkNnTxnjCehZ4DEtTXeGR1yrepSEGhCaSj2kT">;
|
|
1636
1644
|
/**
|
|
1637
1645
|
* -------------------------
|
|
1638
1646
|
* Bitmap / Claim Config
|
|
@@ -1662,4 +1670,4 @@ declare const STATE_REDEEMED = 2;
|
|
|
1662
1670
|
*/
|
|
1663
1671
|
declare const MUTABLE_NONE = 0;
|
|
1664
1672
|
|
|
1665
|
-
export { ADMIN, AFFILIATE_DISCRIMINATOR, AFFILIATE_MASTER_DISCRIMINATOR, AFFILIATE_MASTER_SEED, AFFILIATE_SEED, AIRDROP_CONFIG_DISCRIMINATOR, AIRDROP_CONFIG_SEED, AIRDROP_DISCRIMINATOR, AIRDROP_MASTER_DISCRIMINATOR, AIRDROP_MASTER_SEED, AIRDROP_SEED, type AdvancedFeeConfig, type AdvancedFeeConfigArgs, type Affiliate, type AffiliateArgs, type AffiliateMaster, type AffiliateMasterArgs, type Airdrop, type AirdropArgs, type AirdropBoosted, type AirdropBoostedArgs, type AirdropClosed, type AirdropClosedArgs, type AirdropConfig, type AirdropConfigArgs, type AirdropDelegated, type AirdropDelegatedArgs, type AirdropInitialized, type AirdropInitializedArgs, type AirdropMaster, type AirdropMasterArgs, type AirdropUpdated, type AirdropUpdatedArgs, BITMAP_SEED, BITMAP_SIZE, type BaseDurationConfig, type BaseDurationConfigArgs, type BaseFeatureFeeConfig, type BaseFeatureFeeConfigArgs, type BaseFeeConfig, type BaseFeeConfigArgs, CLAIM_AIRDROP_DISCRIMINATOR, CLAIM_MAP_DISCRIMINATOR, CREATE_AIRDROP_DISCRIMINATOR, CREATE_CLAIM_MAP_DISCRIMINATOR, type ClaimAirdropAsyncInput, type ClaimAirdropInput, type ClaimAirdropInstruction, type ClaimAirdropInstructionData, type ClaimAirdropInstructionDataArgs, type ClaimMap, type ClaimMapArgs, type ClaimMapClosed, type ClaimMapClosedArgs, type ClaimMapInitialized, type ClaimMapInitializedArgs, type CreateAirdropAsyncInput, type CreateAirdropInput, type CreateAirdropInstruction, type CreateAirdropInstructionData, type CreateAirdropInstructionDataArgs, type CreateAirdropV0Input, type CreateClaimMapAsyncInput, type CreateClaimMapInput, type CreateClaimMapInstruction, type CreateClaimMapInstructionData, type CreateClaimMapInstructionDataArgs, DEPOSIT_TOKENS_DISCRIMINATOR, DROPSY_ERROR__ACTIVE_BITMAPS_EXIST, DROPSY_ERROR__AIRDROP_ENDED, DROPSY_ERROR__AIRDROP_NOT_ENDED, DROPSY_ERROR__AIRDROP_NOT_STARTED, DROPSY_ERROR__ALREADY_CLAIMED, DROPSY_ERROR__BITMAP_AIRDROP_MISMATCH, DROPSY_ERROR__BITMAP_COUNT_UNDERFLOW, DROPSY_ERROR__BITMAP_TOO_LARGE, DROPSY_ERROR__CLAIM_FEE_TOO_HIGH, DROPSY_ERROR__CREATE_FEE_TOO_HIGH, DROPSY_ERROR__DESTINATION_MINT_MISMATCH, DROPSY_ERROR__DURATION_TOO_SHORT, DROPSY_ERROR__IMMUTABLE_AIRDROP, DROPSY_ERROR__IMMUTABLE_FIELD, DROPSY_ERROR__INSUFFICIENT_DEPOSIT, DROPSY_ERROR__INSUFFICIENT_FUNDS_FOR_FEE, DROPSY_ERROR__INSUFFICIENT_VAULT_FUNDS, DROPSY_ERROR__INVALID_ADMIN, DROPSY_ERROR__INVALID_AFFILIATE_PDA, DROPSY_ERROR__INVALID_AIRDROP_MASTER_ACCOUNT, DROPSY_ERROR__INVALID_AIRDROP_PDA, DROPSY_ERROR__INVALID_AIRDROP_VERSION, DROPSY_ERROR__INVALID_AIRDROP_VESTING_VERSION, DROPSY_ERROR__INVALID_AMOUNT, DROPSY_ERROR__INVALID_BITMAP_ACCOUNT, DROPSY_ERROR__INVALID_BITMAP_INDEX, DROPSY_ERROR__INVALID_DELEGATE_PERMISSION, DROPSY_ERROR__INVALID_DESTINATION_OWNER, DROPSY_ERROR__INVALID_END_TIME, DROPSY_ERROR__INVALID_FEE_VAULT, DROPSY_ERROR__INVALID_FEE_VAULT_CURVE, DROPSY_ERROR__INVALID_FEE_VAULT_OWNER, DROPSY_ERROR__INVALID_MINT, DROPSY_ERROR__INVALID_MINT_OWNER, DROPSY_ERROR__INVALID_MUTABILITY, DROPSY_ERROR__INVALID_OWNER, DROPSY_ERROR__INVALID_PARENT_ACCOUNT, DROPSY_ERROR__INVALID_PDA, DROPSY_ERROR__INVALID_PERCENTAGE, DROPSY_ERROR__INVALID_PROOF, DROPSY_ERROR__INVALID_PUB_KEY, DROPSY_ERROR__INVALID_TIMESTAMP, DROPSY_ERROR__INVALID_TOTAL, DROPSY_ERROR__INVALID_TREASURY_ACCOUNT, DROPSY_ERROR__INVALID_VAULT_AUTHORITY, DROPSY_ERROR__INVALID_VESTING_SCHEDULE, DROPSY_ERROR__INVALID_VESTING_TYPE, DROPSY_ERROR__MAX_AIRDROPS_REACHED, DROPSY_ERROR__MAX_CLAIM_MAPS_REACHED, DROPSY_ERROR__MINT_HAS_FREEZE_AUTHORITY, DROPSY_ERROR__MINT_IS_FROZEN, DROPSY_ERROR__MINT_IS_NOT_INITIALIZED, DROPSY_ERROR__MINT_MISMATCH, DROPSY_ERROR__MISSING_BITMAP_PDA, DROPSY_ERROR__NFT_NOT_ALLOWED, DROPSY_ERROR__NON_ZERO_VALUE_REQUIRED, DROPSY_ERROR__OVERFLOW, DROPSY_ERROR__OWNER_MISMATCH, DROPSY_ERROR__SOURCE_ACCOUNT_FROZEN, DROPSY_ERROR__SOURCE_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__SOURCE_HAS_DELEGATE, DROPSY_ERROR__TOO_MANY_BITMAPS, DROPSY_ERROR__UNAUTHORIZED, DROPSY_ERROR__UN_AUTHORIZED, DROPSY_ERROR__UPDATE_CUTOFF_TIME_PASSED, DROPSY_ERROR__VALUE_BELOW_THE_MINIMUM, DROPSY_ERROR__VALUE_EXCEEDS_MAXIMUM, DROPSY_ERROR__VALUE_OUT_OF_RANGE, DROPSY_ERROR__VAULT_FROZEN, DROPSY_ERROR__VAULT_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__VAULT_HAS_DELEGATE, DROPSY_ERROR__VAULT_MINT_MISMATCH, DROPSY_ERROR__VAULT_NOT_INITIALIZED, DROPSY_ERROR__VAULT_NOT_RENT_EXEMPT, DROPSY_ERROR__VESTING_ACCOUNT_REQUIRED, DROPSY_MASTER_SEED, DROPSY_PROGRAM_ADDRESS, type DepositTokensAsyncInput, type DepositTokensInput, type DepositTokensInstruction, type DepositTokensInstructionData, type DepositTokensInstructionDataArgs, DropsyAccount, type DropsyError, DropsyInstruction, type DropsyPda, INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR, INITIALIZE_MASTER_DISCRIMINATOR, type InitAirdropConfigArgs, type InitAirdropConfigArgsArgs, type InitializeAirdropMasterAsyncInput, type InitializeAirdropMasterInput, type InitializeAirdropMasterInstruction, type InitializeAirdropMasterInstructionData, type InitializeAirdropMasterInstructionDataArgs, type InitializeMasterAsyncInput, type InitializeMasterInput, type InitializeMasterInstruction, type InitializeMasterInstructionData, type InitializeMasterInstructionDataArgs, MASTER_DISCRIMINATOR, MAX_BITMAP_CLAIM, MUTABLE_NONE, type Master, type MasterArgs, type MasterInitialized, type MasterInitializedArgs, PRESALE_SEED, type ParsedClaimAirdropInstruction, type ParsedCreateAirdropInstruction, type ParsedCreateClaimMapInstruction, type ParsedDepositTokensInstruction, type ParsedDropsyInstruction, type ParsedInitializeAirdropMasterInstruction, type ParsedInitializeMasterInstruction, type ParsedRedeemAirdropTokensInstruction, REDEEM_AIRDROP_TOKENS_DISCRIMINATOR, type RedeemAirdropTokensAsyncInput, type RedeemAirdropTokensInput, type RedeemAirdropTokensInstruction, type RedeemAirdropTokensInstructionData, type RedeemAirdropTokensInstructionDataArgs, STATE_DELEGATED, STATE_INITIALIZED, STATE_REDEEMED, type TokensDeposited, type TokensDepositedArgs, type TokensRedeemed, type TokensRedeemedArgs, VAULT_SEED, VERSION_BASIC, VERSION_VESTED, VESTING_SEED, decodeAffiliate, decodeAffiliateMaster, decodeAirdrop, decodeAirdropConfig, decodeAirdropMaster, decodeClaimMap, decodeMaster, fetchAffiliate, fetchAffiliateMaster, fetchAirdrop, fetchAirdropConfig, fetchAirdropMaster, fetchAllAffiliate, fetchAllAffiliateMaster, fetchAllAirdrop, fetchAllAirdropConfig, fetchAllAirdropMaster, fetchAllClaimMap, fetchAllMaster, fetchAllMaybeAffiliate, fetchAllMaybeAffiliateMaster, fetchAllMaybeAirdrop, fetchAllMaybeAirdropConfig, fetchAllMaybeAirdropMaster, fetchAllMaybeClaimMap, fetchAllMaybeMaster, fetchClaimMap, fetchMaster, fetchMaybeAffiliate, fetchMaybeAffiliateMaster, fetchMaybeAirdrop, fetchMaybeAirdropConfig, fetchMaybeAirdropMaster, fetchMaybeClaimMap, fetchMaybeMaster, getAdvancedFeeConfigCodec, getAdvancedFeeConfigDecoder, getAdvancedFeeConfigEncoder, getAffiliateCodec, getAffiliateDecoder, getAffiliateDerivedAddress, getAffiliateDiscriminatorBytes, getAffiliateEncoder, getAffiliateMasterCodec, getAffiliateMasterDecoder, getAffiliateMasterDiscriminatorBytes, getAffiliateMasterEncoder, getAffiliateMasterSize, getAffiliateSize, getAirdropBoostedCodec, getAirdropBoostedDecoder, getAirdropBoostedEncoder, getAirdropClosedCodec, getAirdropClosedDecoder, getAirdropClosedEncoder, getAirdropCodec, getAirdropConfigCodec, getAirdropConfigDecoder, getAirdropConfigDerivedAddress, getAirdropConfigDiscriminatorBytes, getAirdropConfigEncoder, getAirdropConfigSize, getAirdropDecoder, getAirdropDelegatedCodec, getAirdropDelegatedDecoder, getAirdropDelegatedEncoder, getAirdropDerivedAddress, getAirdropDiscriminatorBytes, getAirdropEncoder, getAirdropInitializedCodec, getAirdropInitializedDecoder, getAirdropInitializedEncoder, getAirdropMasterCodec, getAirdropMasterDecoder, getAirdropMasterDerivedAddress, getAirdropMasterDiscriminatorBytes, getAirdropMasterEncoder, getAirdropMasterSize, getAirdropSize, getAirdropUpdatedCodec, getAirdropUpdatedDecoder, getAirdropUpdatedEncoder, getBaseDurationConfigCodec, getBaseDurationConfigDecoder, getBaseDurationConfigEncoder, getBaseFeatureFeeConfigCodec, getBaseFeatureFeeConfigDecoder, getBaseFeatureFeeConfigEncoder, getBaseFeeConfigCodec, getBaseFeeConfigDecoder, getBaseFeeConfigEncoder, getClaimAirdropDiscriminatorBytes, getClaimAirdropInstruction, getClaimAirdropInstructionAsync, getClaimAirdropInstructionDataCodec, getClaimAirdropInstructionDataDecoder, getClaimAirdropInstructionDataEncoder, getClaimMapClosedCodec, getClaimMapClosedDecoder, getClaimMapClosedEncoder, getClaimMapCodec, getClaimMapDecoder, getClaimMapDerivedAddress, getClaimMapDiscriminatorBytes, getClaimMapEncoder, getClaimMapInitializedCodec, getClaimMapInitializedDecoder, getClaimMapInitializedEncoder, getClaimMapSize, getCreateAirdropDiscriminatorBytes, getCreateAirdropInstruction, getCreateAirdropInstructionAsync, getCreateAirdropInstructionDataCodec, getCreateAirdropInstructionDataDecoder, getCreateAirdropInstructionDataEncoder, getCreateAirdropV0Instruction, getCreateClaimMapDiscriminatorBytes, getCreateClaimMapInstruction, getCreateClaimMapInstructionAsync, getCreateClaimMapInstructionDataCodec, getCreateClaimMapInstructionDataDecoder, getCreateClaimMapInstructionDataEncoder, getDepositTokensDiscriminatorBytes, getDepositTokensInstruction, getDepositTokensInstructionAsync, getDepositTokensInstructionDataCodec, getDepositTokensInstructionDataDecoder, getDepositTokensInstructionDataEncoder, getDropsyDerivedAddress, getDropsyErrorMessage, getInitAirdropConfigArgsCodec, getInitAirdropConfigArgsDecoder, getInitAirdropConfigArgsEncoder, getInitializeAirdropMasterDiscriminatorBytes, getInitializeAirdropMasterInstruction, getInitializeAirdropMasterInstructionAsync, getInitializeAirdropMasterInstructionDataCodec, getInitializeAirdropMasterInstructionDataDecoder, getInitializeAirdropMasterInstructionDataEncoder, getInitializeMasterDiscriminatorBytes, getInitializeMasterInstruction, getInitializeMasterInstructionAsync, getInitializeMasterInstructionDataCodec, getInitializeMasterInstructionDataDecoder, getInitializeMasterInstructionDataEncoder, getMasterCodec, getMasterDecoder, getMasterDerivedAddress, getMasterDiscriminatorBytes, getMasterEncoder, getMasterInitializedCodec, getMasterInitializedDecoder, getMasterInitializedEncoder, getMasterSize, getRedeemAirdropTokensDiscriminatorBytes, getRedeemAirdropTokensInstruction, getRedeemAirdropTokensInstructionAsync, getRedeemAirdropTokensInstructionDataCodec, getRedeemAirdropTokensInstructionDataDecoder, getRedeemAirdropTokensInstructionDataEncoder, getTokensDepositedCodec, getTokensDepositedDecoder, getTokensDepositedEncoder, getTokensRedeemedCodec, getTokensRedeemedDecoder, getTokensRedeemedEncoder, identifyDropsyAccount, identifyDropsyInstruction, isDropsyError, parseClaimAirdropInstruction, parseCreateAirdropInstruction, parseCreateClaimMapInstruction, parseDepositTokensInstruction, parseInitializeAirdropMasterInstruction, parseInitializeMasterInstruction, parseRedeemAirdropTokensInstruction };
|
|
1673
|
+
export { ADMIN, AFFILIATE_DISCRIMINATOR, AFFILIATE_MASTER_DISCRIMINATOR, AFFILIATE_MASTER_SEED, AFFILIATE_SEED, AIRDROP_CONFIG_DISCRIMINATOR, AIRDROP_CONFIG_SEED, AIRDROP_DISCRIMINATOR, AIRDROP_MASTER_DISCRIMINATOR, AIRDROP_MASTER_SEED, AIRDROP_SEED, type AdvancedFeeConfig, type AdvancedFeeConfigArgs, type Affiliate, type AffiliateArgs, type AffiliateMaster, type AffiliateMasterArgs, type Airdrop, type AirdropArgs, type AirdropBoosted, type AirdropBoostedArgs, type AirdropClosed, type AirdropClosedArgs, type AirdropConfig, type AirdropConfigArgs, type AirdropDelegated, type AirdropDelegatedArgs, type AirdropInitialized, type AirdropInitializedArgs, type AirdropMaster, type AirdropMasterArgs, type AirdropUpdated, type AirdropUpdatedArgs, BITMAP_SEED, BITMAP_SIZE, type BaseDurationConfig, type BaseDurationConfigArgs, type BaseFeatureFeeConfig, type BaseFeatureFeeConfigArgs, type BaseFeeConfig, type BaseFeeConfigArgs, CLAIM_AIRDROP_DISCRIMINATOR, CLAIM_MAP_DISCRIMINATOR, CREATE_AIRDROP_DISCRIMINATOR, CREATE_CLAIM_MAP_DISCRIMINATOR, type ClaimAirdropAsyncInput, type ClaimAirdropInput, type ClaimAirdropInstruction, type ClaimAirdropInstructionData, type ClaimAirdropInstructionDataArgs, type ClaimMap, type ClaimMapArgs, type ClaimMapClosed, type ClaimMapClosedArgs, type ClaimMapInitialized, type ClaimMapInitializedArgs, type CreateAirdropAsyncInput, type CreateAirdropInput, type CreateAirdropInstruction, type CreateAirdropInstructionData, type CreateAirdropInstructionDataArgs, type CreateAirdropV0Input, type CreateClaimMapAsyncInput, type CreateClaimMapInput, type CreateClaimMapInstruction, type CreateClaimMapInstructionData, type CreateClaimMapInstructionDataArgs, type CreateClaimMapV0Input, DEFAULT_MASTER_PDA, DEFAULT_MASTER_PDA_AUTHORITY, DEPOSIT_TOKENS_DISCRIMINATOR, DROPSY_ERROR__ACTIVE_BITMAPS_EXIST, DROPSY_ERROR__AIRDROP_ENDED, DROPSY_ERROR__AIRDROP_NOT_ENDED, DROPSY_ERROR__AIRDROP_NOT_STARTED, DROPSY_ERROR__ALREADY_CLAIMED, DROPSY_ERROR__BITMAP_AIRDROP_MISMATCH, DROPSY_ERROR__BITMAP_COUNT_UNDERFLOW, DROPSY_ERROR__BITMAP_TOO_LARGE, DROPSY_ERROR__CLAIM_FEE_TOO_HIGH, DROPSY_ERROR__CREATE_FEE_TOO_HIGH, DROPSY_ERROR__DESTINATION_MINT_MISMATCH, DROPSY_ERROR__DURATION_TOO_SHORT, DROPSY_ERROR__IMMUTABLE_AIRDROP, DROPSY_ERROR__IMMUTABLE_FIELD, DROPSY_ERROR__INSUFFICIENT_DEPOSIT, DROPSY_ERROR__INSUFFICIENT_FUNDS_FOR_FEE, DROPSY_ERROR__INSUFFICIENT_VAULT_FUNDS, DROPSY_ERROR__INVALID_ADMIN, DROPSY_ERROR__INVALID_AFFILIATE_PDA, DROPSY_ERROR__INVALID_AIRDROP_MASTER_ACCOUNT, DROPSY_ERROR__INVALID_AIRDROP_PDA, DROPSY_ERROR__INVALID_AIRDROP_VERSION, DROPSY_ERROR__INVALID_AIRDROP_VESTING_VERSION, DROPSY_ERROR__INVALID_AMOUNT, DROPSY_ERROR__INVALID_BITMAP_ACCOUNT, DROPSY_ERROR__INVALID_BITMAP_INDEX, DROPSY_ERROR__INVALID_DELEGATE_PERMISSION, DROPSY_ERROR__INVALID_DESTINATION_OWNER, DROPSY_ERROR__INVALID_END_TIME, DROPSY_ERROR__INVALID_FEE_VAULT, DROPSY_ERROR__INVALID_FEE_VAULT_CURVE, DROPSY_ERROR__INVALID_FEE_VAULT_OWNER, DROPSY_ERROR__INVALID_MINT, DROPSY_ERROR__INVALID_MINT_OWNER, DROPSY_ERROR__INVALID_MUTABILITY, DROPSY_ERROR__INVALID_OWNER, DROPSY_ERROR__INVALID_PARENT_ACCOUNT, DROPSY_ERROR__INVALID_PDA, DROPSY_ERROR__INVALID_PERCENTAGE, DROPSY_ERROR__INVALID_PROOF, DROPSY_ERROR__INVALID_PUB_KEY, DROPSY_ERROR__INVALID_TIMESTAMP, DROPSY_ERROR__INVALID_TOTAL, DROPSY_ERROR__INVALID_TREASURY_ACCOUNT, DROPSY_ERROR__INVALID_VAULT_AUTHORITY, DROPSY_ERROR__INVALID_VESTING_SCHEDULE, DROPSY_ERROR__INVALID_VESTING_TYPE, DROPSY_ERROR__MAX_AIRDROPS_REACHED, DROPSY_ERROR__MAX_CLAIM_MAPS_REACHED, DROPSY_ERROR__MINT_HAS_FREEZE_AUTHORITY, DROPSY_ERROR__MINT_IS_FROZEN, DROPSY_ERROR__MINT_IS_NOT_INITIALIZED, DROPSY_ERROR__MINT_MISMATCH, DROPSY_ERROR__MISSING_BITMAP_PDA, DROPSY_ERROR__NFT_NOT_ALLOWED, DROPSY_ERROR__NON_ZERO_VALUE_REQUIRED, DROPSY_ERROR__OVERFLOW, DROPSY_ERROR__OWNER_MISMATCH, DROPSY_ERROR__SOURCE_ACCOUNT_FROZEN, DROPSY_ERROR__SOURCE_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__SOURCE_HAS_DELEGATE, DROPSY_ERROR__TOO_MANY_BITMAPS, DROPSY_ERROR__UNAUTHORIZED, DROPSY_ERROR__UN_AUTHORIZED, DROPSY_ERROR__UPDATE_CUTOFF_TIME_PASSED, DROPSY_ERROR__VALUE_BELOW_THE_MINIMUM, DROPSY_ERROR__VALUE_EXCEEDS_MAXIMUM, DROPSY_ERROR__VALUE_OUT_OF_RANGE, DROPSY_ERROR__VAULT_FROZEN, DROPSY_ERROR__VAULT_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__VAULT_HAS_DELEGATE, DROPSY_ERROR__VAULT_MINT_MISMATCH, DROPSY_ERROR__VAULT_NOT_INITIALIZED, DROPSY_ERROR__VAULT_NOT_RENT_EXEMPT, DROPSY_ERROR__VESTING_ACCOUNT_REQUIRED, DROPSY_MASTER_SEED, DROPSY_PROGRAM_ADDRESS, DROPSY_TREASURY, type DepositTokensAsyncInput, type DepositTokensInput, type DepositTokensInstruction, type DepositTokensInstructionData, type DepositTokensInstructionDataArgs, DropsyAccount, type DropsyError, DropsyInstruction, type DropsyPda, INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR, INITIALIZE_MASTER_DISCRIMINATOR, type InitAirdropConfigArgs, type InitAirdropConfigArgsArgs, type InitializeAirdropMasterAsyncInput, type InitializeAirdropMasterInput, type InitializeAirdropMasterInstruction, type InitializeAirdropMasterInstructionData, type InitializeAirdropMasterInstructionDataArgs, type InitializeMasterAsyncInput, type InitializeMasterInput, type InitializeMasterInstruction, type InitializeMasterInstructionData, type InitializeMasterInstructionDataArgs, MASTER_DISCRIMINATOR, MAX_BITMAP_CLAIM, MUTABLE_NONE, type Master, type MasterArgs, type MasterInitialized, type MasterInitializedArgs, PRESALE_SEED, type ParsedClaimAirdropInstruction, type ParsedCreateAirdropInstruction, type ParsedCreateClaimMapInstruction, type ParsedDepositTokensInstruction, type ParsedDropsyInstruction, type ParsedInitializeAirdropMasterInstruction, type ParsedInitializeMasterInstruction, type ParsedRedeemAirdropTokensInstruction, REDEEM_AIRDROP_TOKENS_DISCRIMINATOR, type RedeemAirdropTokensAsyncInput, type RedeemAirdropTokensInput, type RedeemAirdropTokensInstruction, type RedeemAirdropTokensInstructionData, type RedeemAirdropTokensInstructionDataArgs, STATE_DELEGATED, STATE_INITIALIZED, STATE_REDEEMED, type TokensDeposited, type TokensDepositedArgs, type TokensRedeemed, type TokensRedeemedArgs, VAULT_SEED, VERSION_BASIC, VERSION_VESTED, VESTING_SEED, createDefaultSolanaClient, createMerkleTree, createTransactionMessageFromInstructions, createWLMerkleTree, decodeAffiliate, decodeAffiliateMaster, decodeAirdrop, decodeAirdropConfig, decodeAirdropMaster, decodeClaimMap, decodeMaster, fetchAffiliate, fetchAffiliateMaster, fetchAirdrop, fetchAirdropConfig, fetchAirdropMaster, fetchAllAffiliate, fetchAllAffiliateMaster, fetchAllAirdrop, fetchAllAirdropConfig, fetchAllAirdropMaster, fetchAllClaimMap, fetchAllMaster, fetchAllMaybeAffiliate, fetchAllMaybeAffiliateMaster, fetchAllMaybeAirdrop, fetchAllMaybeAirdropConfig, fetchAllMaybeAirdropMaster, fetchAllMaybeClaimMap, fetchAllMaybeMaster, fetchClaimMap, fetchMaster, fetchMaybeAffiliate, fetchMaybeAffiliateMaster, fetchMaybeAirdrop, fetchMaybeAirdropConfig, fetchMaybeAirdropMaster, fetchMaybeClaimMap, fetchMaybeMaster, generateKeyPairSignerWithSol, getAdvancedFeeConfigCodec, getAdvancedFeeConfigDecoder, getAdvancedFeeConfigEncoder, getAffiliateCodec, getAffiliateDecoder, getAffiliateDerivedAddress, getAffiliateDiscriminatorBytes, getAffiliateEncoder, getAffiliateMasterCodec, getAffiliateMasterDecoder, getAffiliateMasterDiscriminatorBytes, getAffiliateMasterEncoder, getAffiliateMasterSize, getAffiliateSize, getAirdropBoostedCodec, getAirdropBoostedDecoder, getAirdropBoostedEncoder, getAirdropClosedCodec, getAirdropClosedDecoder, getAirdropClosedEncoder, getAirdropCodec, getAirdropConfigCodec, getAirdropConfigDecoder, getAirdropConfigDerivedAddress, getAirdropConfigDiscriminatorBytes, getAirdropConfigEncoder, getAirdropConfigSize, getAirdropDecoder, getAirdropDelegatedCodec, getAirdropDelegatedDecoder, getAirdropDelegatedEncoder, getAirdropDerivedAddress, getAirdropDiscriminatorBytes, getAirdropEncoder, getAirdropInitializedCodec, getAirdropInitializedDecoder, getAirdropInitializedEncoder, getAirdropMasterCodec, getAirdropMasterDecoder, getAirdropMasterDerivedAddress, getAirdropMasterDiscriminatorBytes, getAirdropMasterEncoder, getAirdropMasterSize, getAirdropSize, getAirdropUpdatedCodec, getAirdropUpdatedDecoder, getAirdropUpdatedEncoder, getBaseDurationConfigCodec, getBaseDurationConfigDecoder, getBaseDurationConfigEncoder, getBaseFeatureFeeConfigCodec, getBaseFeatureFeeConfigDecoder, getBaseFeatureFeeConfigEncoder, getBaseFeeConfigCodec, getBaseFeeConfigDecoder, getBaseFeeConfigEncoder, getClaimAirdropDiscriminatorBytes, getClaimAirdropInstruction, getClaimAirdropInstructionAsync, getClaimAirdropInstructionDataCodec, getClaimAirdropInstructionDataDecoder, getClaimAirdropInstructionDataEncoder, getClaimMapClosedCodec, getClaimMapClosedDecoder, getClaimMapClosedEncoder, getClaimMapCodec, getClaimMapDecoder, getClaimMapDerivedAddress, getClaimMapDiscriminatorBytes, getClaimMapEncoder, getClaimMapInitializedCodec, getClaimMapInitializedDecoder, getClaimMapInitializedEncoder, getClaimMapSize, getCreateAirdropDiscriminatorBytes, getCreateAirdropInstruction, getCreateAirdropInstructionAsync, getCreateAirdropInstructionDataCodec, getCreateAirdropInstructionDataDecoder, getCreateAirdropInstructionDataEncoder, getCreateAirdropV0Instruction, getCreateClaimMapDiscriminatorBytes, getCreateClaimMapInstruction, getCreateClaimMapInstructionAsync, getCreateClaimMapInstructionDataCodec, getCreateClaimMapInstructionDataDecoder, getCreateClaimMapInstructionDataEncoder, getCreateClaimMapV0Instruction, getDepositTokensDiscriminatorBytes, getDepositTokensInstruction, getDepositTokensInstructionAsync, getDepositTokensInstructionDataCodec, getDepositTokensInstructionDataDecoder, getDepositTokensInstructionDataEncoder, getDropsyDerivedAddress, getDropsyErrorMessage, getInitAirdropConfigArgsCodec, getInitAirdropConfigArgsDecoder, getInitAirdropConfigArgsEncoder, getInitializeAirdropMasterDiscriminatorBytes, getInitializeAirdropMasterInstruction, getInitializeAirdropMasterInstructionAsync, getInitializeAirdropMasterInstructionDataCodec, getInitializeAirdropMasterInstructionDataDecoder, getInitializeAirdropMasterInstructionDataEncoder, getInitializeMasterDiscriminatorBytes, getInitializeMasterInstruction, getInitializeMasterInstructionAsync, getInitializeMasterInstructionDataCodec, getInitializeMasterInstructionDataDecoder, getInitializeMasterInstructionDataEncoder, getMasterCodec, getMasterDecoder, getMasterDerivedAddress, getMasterDiscriminatorBytes, getMasterEncoder, getMasterInitializedCodec, getMasterInitializedDecoder, getMasterInitializedEncoder, getMasterSize, getMerkleRootArray, getRedeemAirdropTokensDiscriminatorBytes, getRedeemAirdropTokensInstruction, getRedeemAirdropTokensInstructionAsync, getRedeemAirdropTokensInstructionDataCodec, getRedeemAirdropTokensInstructionDataDecoder, getRedeemAirdropTokensInstructionDataEncoder, getSimpleMerkleProof, getTokensDepositedCodec, getTokensDepositedDecoder, getTokensDepositedEncoder, getTokensRedeemedCodec, getTokensRedeemedDecoder, getTokensRedeemedEncoder, identifyDropsyAccount, identifyDropsyInstruction, isDropsyError, parseClaimAirdropInstruction, parseCreateAirdropInstruction, parseCreateClaimMapInstruction, parseDepositTokensInstruction, parseInitializeAirdropMasterInstruction, parseInitializeMasterInstruction, parseRedeemAirdropTokensInstruction, toUnixTimestamp };
|