@dropsy/airdrop 0.2.3 → 0.2.5

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 CHANGED
@@ -1,6 +1,5 @@
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, Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi, ProgramDerivedAddressBump } from '@solana/kit';
3
- import MerkleTree from 'merkletreejs';
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';
4
3
 
5
4
  /**
6
5
  * This code was AUTOGENERATED using the Codama library.
@@ -1602,21 +1601,6 @@ type ParsedRedeemAirdropTokensInstruction<TProgram extends string = typeof DROPS
1602
1601
  };
1603
1602
  declare function parseRedeemAirdropTokensInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRedeemAirdropTokensInstruction<TProgram, TAccountMetas>;
1604
1603
 
1605
- type RpcClient = {
1606
- rpc: Rpc<SolanaRpcApi>;
1607
- rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
1608
- };
1609
- declare const generateKeyPairSignerWithSol: (rpcClient: RpcClient, putativeLamports?: bigint) => Promise<_solana_kit.KeyPairSigner<string>>;
1610
- declare const createDefaultSolanaClient: () => RpcClient;
1611
- declare const createTransactionMessageFromInstructions: (rpc: Rpc<SolanaRpcApi>, signer: TransactionSigner, instruction: Instruction[]) => Promise<Omit<_solana_kit.ExcludeTransactionMessageWithinSizeLimit<Omit<_solana_kit.ExcludeTransactionMessageLifetime<Omit<Readonly<{
1612
- instructions: readonly Instruction<string, readonly (_solana_kit.AccountMeta<string> | _solana_kit.AccountLookupMeta<string, string>)[]>[];
1613
- version: 0;
1614
- }>, "instructions"> & _solana_kit.TransactionMessageWithinSizeLimit & {
1615
- instructions: readonly [];
1616
- }> & _solana_kit.TransactionMessageWithBlockhashLifetime, "feePayer"> & _solana_kit.TransactionMessageWithFeePayerSigner<string, TransactionSigner<string>>>, "instructions"> & {
1617
- readonly instructions: readonly Instruction<string, readonly (_solana_kit.AccountMeta<string> | _solana_kit.AccountLookupMeta<string, string>)[]>[];
1618
- }>;
1619
-
1620
1604
  type DropsyPda = readonly [Address<string>, ProgramDerivedAddressBump];
1621
1605
  type Seed = ReadonlyUint8Array | string;
1622
1606
  declare function getDropsyDerivedAddress(seeds: Seed[]): Promise<DropsyPda>;
@@ -1627,15 +1611,6 @@ declare function getAffiliateDerivedAddress(authority: Address): Promise<DropsyP
1627
1611
  declare function getAirdropDerivedAddress(authority: Address, mint: Address): Promise<DropsyPda>;
1628
1612
  declare function getClaimMapDerivedAddress(airdrop: Address, id: number): Promise<DropsyPda>;
1629
1613
 
1630
- declare const createWLMerkleTree: (wallets: string[]) => MerkleTree;
1631
- declare const getSimpleMerkleProof: (merkleTree: MerkleTree, address: string) => Buffer[];
1632
- declare const getMerkleRootArray: (merkleTree: MerkleTree) => ReadonlyUint8Array;
1633
- declare const createMerkleTree: (claimList: {
1634
- index: number;
1635
- address: string;
1636
- amount: number;
1637
- }[]) => MerkleTree;
1638
-
1639
1614
  /**
1640
1615
  * -------------------------
1641
1616
  * PDA Seed Constants
@@ -1687,4 +1662,4 @@ declare const STATE_REDEEMED = 2;
1687
1662
  */
1688
1663
  declare const MUTABLE_NONE = 0;
1689
1664
 
1690
- export { ADMIN, AFFILIATE_DISCRIMINATOR, AFFILIATE_MASTER_DISCRIMINATOR, AFFILIATE_MASTER_SEED, AFFILIATE_SEED, AIRDROP_CONFIG_DISCRIMINATOR, AIRDROP_CONFIG_SEED, AIRDROP_DISCRIMINATOR, AIRDROP_MASTER_DISCRIMINATOR, AIRDROP_MASTER_SEED, AIRDROP_SEED, type AdvancedFeeConfig, type AdvancedFeeConfigArgs, type Affiliate, type AffiliateArgs, type AffiliateMaster, type AffiliateMasterArgs, type Airdrop, type AirdropArgs, type AirdropBoosted, type AirdropBoostedArgs, type AirdropClosed, type AirdropClosedArgs, type AirdropConfig, type AirdropConfigArgs, type AirdropDelegated, type AirdropDelegatedArgs, type AirdropInitialized, type AirdropInitializedArgs, type AirdropMaster, type AirdropMasterArgs, type AirdropUpdated, type AirdropUpdatedArgs, BITMAP_SEED, BITMAP_SIZE, type BaseDurationConfig, type BaseDurationConfigArgs, type BaseFeatureFeeConfig, type BaseFeatureFeeConfigArgs, type BaseFeeConfig, type BaseFeeConfigArgs, CLAIM_AIRDROP_DISCRIMINATOR, CLAIM_MAP_DISCRIMINATOR, CREATE_AIRDROP_DISCRIMINATOR, CREATE_CLAIM_MAP_DISCRIMINATOR, type ClaimAirdropAsyncInput, type ClaimAirdropInput, type ClaimAirdropInstruction, type ClaimAirdropInstructionData, type ClaimAirdropInstructionDataArgs, type ClaimMap, type ClaimMapArgs, type ClaimMapClosed, type ClaimMapClosedArgs, type ClaimMapInitialized, type ClaimMapInitializedArgs, type CreateAirdropAsyncInput, type CreateAirdropInput, type CreateAirdropInstruction, type CreateAirdropInstructionData, type CreateAirdropInstructionDataArgs, type CreateAirdropV0Input, type CreateClaimMapAsyncInput, type CreateClaimMapInput, type CreateClaimMapInstruction, type CreateClaimMapInstructionData, type CreateClaimMapInstructionDataArgs, DEPOSIT_TOKENS_DISCRIMINATOR, DROPSY_ERROR__ACTIVE_BITMAPS_EXIST, DROPSY_ERROR__AIRDROP_ENDED, DROPSY_ERROR__AIRDROP_NOT_ENDED, DROPSY_ERROR__AIRDROP_NOT_STARTED, DROPSY_ERROR__ALREADY_CLAIMED, DROPSY_ERROR__BITMAP_AIRDROP_MISMATCH, DROPSY_ERROR__BITMAP_COUNT_UNDERFLOW, DROPSY_ERROR__BITMAP_TOO_LARGE, DROPSY_ERROR__CLAIM_FEE_TOO_HIGH, DROPSY_ERROR__CREATE_FEE_TOO_HIGH, DROPSY_ERROR__DESTINATION_MINT_MISMATCH, DROPSY_ERROR__DURATION_TOO_SHORT, DROPSY_ERROR__IMMUTABLE_AIRDROP, DROPSY_ERROR__IMMUTABLE_FIELD, DROPSY_ERROR__INSUFFICIENT_DEPOSIT, DROPSY_ERROR__INSUFFICIENT_FUNDS_FOR_FEE, DROPSY_ERROR__INSUFFICIENT_VAULT_FUNDS, DROPSY_ERROR__INVALID_ADMIN, DROPSY_ERROR__INVALID_AFFILIATE_PDA, DROPSY_ERROR__INVALID_AIRDROP_MASTER_ACCOUNT, DROPSY_ERROR__INVALID_AIRDROP_PDA, DROPSY_ERROR__INVALID_AIRDROP_VERSION, DROPSY_ERROR__INVALID_AIRDROP_VESTING_VERSION, DROPSY_ERROR__INVALID_AMOUNT, DROPSY_ERROR__INVALID_BITMAP_ACCOUNT, DROPSY_ERROR__INVALID_BITMAP_INDEX, DROPSY_ERROR__INVALID_DELEGATE_PERMISSION, DROPSY_ERROR__INVALID_DESTINATION_OWNER, DROPSY_ERROR__INVALID_END_TIME, DROPSY_ERROR__INVALID_FEE_VAULT, DROPSY_ERROR__INVALID_FEE_VAULT_CURVE, DROPSY_ERROR__INVALID_FEE_VAULT_OWNER, DROPSY_ERROR__INVALID_MINT, DROPSY_ERROR__INVALID_MINT_OWNER, DROPSY_ERROR__INVALID_MUTABILITY, DROPSY_ERROR__INVALID_OWNER, DROPSY_ERROR__INVALID_PARENT_ACCOUNT, DROPSY_ERROR__INVALID_PDA, DROPSY_ERROR__INVALID_PERCENTAGE, DROPSY_ERROR__INVALID_PROOF, DROPSY_ERROR__INVALID_PUB_KEY, DROPSY_ERROR__INVALID_TIMESTAMP, DROPSY_ERROR__INVALID_TOTAL, DROPSY_ERROR__INVALID_TREASURY_ACCOUNT, DROPSY_ERROR__INVALID_VAULT_AUTHORITY, DROPSY_ERROR__INVALID_VESTING_SCHEDULE, DROPSY_ERROR__INVALID_VESTING_TYPE, DROPSY_ERROR__MAX_AIRDROPS_REACHED, DROPSY_ERROR__MAX_CLAIM_MAPS_REACHED, DROPSY_ERROR__MINT_HAS_FREEZE_AUTHORITY, DROPSY_ERROR__MINT_IS_FROZEN, DROPSY_ERROR__MINT_IS_NOT_INITIALIZED, DROPSY_ERROR__MINT_MISMATCH, DROPSY_ERROR__MISSING_BITMAP_PDA, DROPSY_ERROR__NFT_NOT_ALLOWED, DROPSY_ERROR__NON_ZERO_VALUE_REQUIRED, DROPSY_ERROR__OVERFLOW, DROPSY_ERROR__OWNER_MISMATCH, DROPSY_ERROR__SOURCE_ACCOUNT_FROZEN, DROPSY_ERROR__SOURCE_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__SOURCE_HAS_DELEGATE, DROPSY_ERROR__TOO_MANY_BITMAPS, DROPSY_ERROR__UNAUTHORIZED, DROPSY_ERROR__UN_AUTHORIZED, DROPSY_ERROR__UPDATE_CUTOFF_TIME_PASSED, DROPSY_ERROR__VALUE_BELOW_THE_MINIMUM, DROPSY_ERROR__VALUE_EXCEEDS_MAXIMUM, DROPSY_ERROR__VALUE_OUT_OF_RANGE, DROPSY_ERROR__VAULT_FROZEN, DROPSY_ERROR__VAULT_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__VAULT_HAS_DELEGATE, DROPSY_ERROR__VAULT_MINT_MISMATCH, DROPSY_ERROR__VAULT_NOT_INITIALIZED, DROPSY_ERROR__VAULT_NOT_RENT_EXEMPT, DROPSY_ERROR__VESTING_ACCOUNT_REQUIRED, DROPSY_MASTER_SEED, DROPSY_PROGRAM_ADDRESS, type DepositTokensAsyncInput, type DepositTokensInput, type DepositTokensInstruction, type DepositTokensInstructionData, type DepositTokensInstructionDataArgs, DropsyAccount, type DropsyError, DropsyInstruction, type DropsyPda, INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR, INITIALIZE_MASTER_DISCRIMINATOR, type InitAirdropConfigArgs, type InitAirdropConfigArgsArgs, type InitializeAirdropMasterAsyncInput, type InitializeAirdropMasterInput, type InitializeAirdropMasterInstruction, type InitializeAirdropMasterInstructionData, type InitializeAirdropMasterInstructionDataArgs, type InitializeMasterAsyncInput, type InitializeMasterInput, type InitializeMasterInstruction, type InitializeMasterInstructionData, type InitializeMasterInstructionDataArgs, MASTER_DISCRIMINATOR, MAX_BITMAP_CLAIM, MUTABLE_NONE, type Master, type MasterArgs, type MasterInitialized, type MasterInitializedArgs, PRESALE_SEED, type ParsedClaimAirdropInstruction, type ParsedCreateAirdropInstruction, type ParsedCreateClaimMapInstruction, type ParsedDepositTokensInstruction, type ParsedDropsyInstruction, type ParsedInitializeAirdropMasterInstruction, type ParsedInitializeMasterInstruction, type ParsedRedeemAirdropTokensInstruction, REDEEM_AIRDROP_TOKENS_DISCRIMINATOR, type RedeemAirdropTokensAsyncInput, type RedeemAirdropTokensInput, type RedeemAirdropTokensInstruction, type RedeemAirdropTokensInstructionData, type RedeemAirdropTokensInstructionDataArgs, STATE_DELEGATED, STATE_INITIALIZED, STATE_REDEEMED, type TokensDeposited, type TokensDepositedArgs, type TokensRedeemed, type TokensRedeemedArgs, VAULT_SEED, VERSION_BASIC, VERSION_VESTED, VESTING_SEED, createDefaultSolanaClient, createMerkleTree, createTransactionMessageFromInstructions, createWLMerkleTree, decodeAffiliate, decodeAffiliateMaster, decodeAirdrop, decodeAirdropConfig, decodeAirdropMaster, decodeClaimMap, decodeMaster, fetchAffiliate, fetchAffiliateMaster, fetchAirdrop, fetchAirdropConfig, fetchAirdropMaster, fetchAllAffiliate, fetchAllAffiliateMaster, fetchAllAirdrop, fetchAllAirdropConfig, fetchAllAirdropMaster, fetchAllClaimMap, fetchAllMaster, fetchAllMaybeAffiliate, fetchAllMaybeAffiliateMaster, fetchAllMaybeAirdrop, fetchAllMaybeAirdropConfig, fetchAllMaybeAirdropMaster, fetchAllMaybeClaimMap, fetchAllMaybeMaster, fetchClaimMap, fetchMaster, fetchMaybeAffiliate, fetchMaybeAffiliateMaster, fetchMaybeAirdrop, fetchMaybeAirdropConfig, fetchMaybeAirdropMaster, fetchMaybeClaimMap, fetchMaybeMaster, generateKeyPairSignerWithSol, getAdvancedFeeConfigCodec, getAdvancedFeeConfigDecoder, getAdvancedFeeConfigEncoder, getAffiliateCodec, getAffiliateDecoder, getAffiliateDerivedAddress, getAffiliateDiscriminatorBytes, getAffiliateEncoder, getAffiliateMasterCodec, getAffiliateMasterDecoder, getAffiliateMasterDiscriminatorBytes, getAffiliateMasterEncoder, getAffiliateMasterSize, getAffiliateSize, getAirdropBoostedCodec, getAirdropBoostedDecoder, getAirdropBoostedEncoder, getAirdropClosedCodec, getAirdropClosedDecoder, getAirdropClosedEncoder, getAirdropCodec, getAirdropConfigCodec, getAirdropConfigDecoder, getAirdropConfigDerivedAddress, getAirdropConfigDiscriminatorBytes, getAirdropConfigEncoder, getAirdropConfigSize, getAirdropDecoder, getAirdropDelegatedCodec, getAirdropDelegatedDecoder, getAirdropDelegatedEncoder, getAirdropDerivedAddress, getAirdropDiscriminatorBytes, getAirdropEncoder, getAirdropInitializedCodec, getAirdropInitializedDecoder, getAirdropInitializedEncoder, getAirdropMasterCodec, getAirdropMasterDecoder, getAirdropMasterDerivedAddress, getAirdropMasterDiscriminatorBytes, getAirdropMasterEncoder, getAirdropMasterSize, getAirdropSize, getAirdropUpdatedCodec, getAirdropUpdatedDecoder, getAirdropUpdatedEncoder, getBaseDurationConfigCodec, getBaseDurationConfigDecoder, getBaseDurationConfigEncoder, getBaseFeatureFeeConfigCodec, getBaseFeatureFeeConfigDecoder, getBaseFeatureFeeConfigEncoder, getBaseFeeConfigCodec, getBaseFeeConfigDecoder, getBaseFeeConfigEncoder, getClaimAirdropDiscriminatorBytes, getClaimAirdropInstruction, getClaimAirdropInstructionAsync, getClaimAirdropInstructionDataCodec, getClaimAirdropInstructionDataDecoder, getClaimAirdropInstructionDataEncoder, getClaimMapClosedCodec, getClaimMapClosedDecoder, getClaimMapClosedEncoder, getClaimMapCodec, getClaimMapDecoder, getClaimMapDerivedAddress, getClaimMapDiscriminatorBytes, getClaimMapEncoder, getClaimMapInitializedCodec, getClaimMapInitializedDecoder, getClaimMapInitializedEncoder, getClaimMapSize, getCreateAirdropDiscriminatorBytes, getCreateAirdropInstruction, getCreateAirdropInstructionAsync, getCreateAirdropInstructionDataCodec, getCreateAirdropInstructionDataDecoder, getCreateAirdropInstructionDataEncoder, getCreateAirdropV0Instruction, getCreateClaimMapDiscriminatorBytes, getCreateClaimMapInstruction, getCreateClaimMapInstructionAsync, getCreateClaimMapInstructionDataCodec, getCreateClaimMapInstructionDataDecoder, getCreateClaimMapInstructionDataEncoder, getDepositTokensDiscriminatorBytes, getDepositTokensInstruction, getDepositTokensInstructionAsync, getDepositTokensInstructionDataCodec, getDepositTokensInstructionDataDecoder, getDepositTokensInstructionDataEncoder, getDropsyDerivedAddress, getDropsyErrorMessage, getInitAirdropConfigArgsCodec, getInitAirdropConfigArgsDecoder, getInitAirdropConfigArgsEncoder, getInitializeAirdropMasterDiscriminatorBytes, getInitializeAirdropMasterInstruction, getInitializeAirdropMasterInstructionAsync, getInitializeAirdropMasterInstructionDataCodec, getInitializeAirdropMasterInstructionDataDecoder, getInitializeAirdropMasterInstructionDataEncoder, getInitializeMasterDiscriminatorBytes, getInitializeMasterInstruction, getInitializeMasterInstructionAsync, getInitializeMasterInstructionDataCodec, getInitializeMasterInstructionDataDecoder, getInitializeMasterInstructionDataEncoder, getMasterCodec, getMasterDecoder, getMasterDerivedAddress, getMasterDiscriminatorBytes, getMasterEncoder, getMasterInitializedCodec, getMasterInitializedDecoder, getMasterInitializedEncoder, getMasterSize, getMerkleRootArray, getRedeemAirdropTokensDiscriminatorBytes, getRedeemAirdropTokensInstruction, getRedeemAirdropTokensInstructionAsync, getRedeemAirdropTokensInstructionDataCodec, getRedeemAirdropTokensInstructionDataDecoder, getRedeemAirdropTokensInstructionDataEncoder, getSimpleMerkleProof, getTokensDepositedCodec, getTokensDepositedDecoder, getTokensDepositedEncoder, getTokensRedeemedCodec, getTokensRedeemedDecoder, getTokensRedeemedEncoder, identifyDropsyAccount, identifyDropsyInstruction, isDropsyError, parseClaimAirdropInstruction, parseCreateAirdropInstruction, parseCreateClaimMapInstruction, parseDepositTokensInstruction, parseInitializeAirdropMasterInstruction, parseInitializeMasterInstruction, parseRedeemAirdropTokensInstruction };
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 };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
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, Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi, ProgramDerivedAddressBump } from '@solana/kit';
3
- import MerkleTree from 'merkletreejs';
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';
4
3
 
5
4
  /**
6
5
  * This code was AUTOGENERATED using the Codama library.
@@ -1602,21 +1601,6 @@ type ParsedRedeemAirdropTokensInstruction<TProgram extends string = typeof DROPS
1602
1601
  };
1603
1602
  declare function parseRedeemAirdropTokensInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRedeemAirdropTokensInstruction<TProgram, TAccountMetas>;
1604
1603
 
1605
- type RpcClient = {
1606
- rpc: Rpc<SolanaRpcApi>;
1607
- rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
1608
- };
1609
- declare const generateKeyPairSignerWithSol: (rpcClient: RpcClient, putativeLamports?: bigint) => Promise<_solana_kit.KeyPairSigner<string>>;
1610
- declare const createDefaultSolanaClient: () => RpcClient;
1611
- declare const createTransactionMessageFromInstructions: (rpc: Rpc<SolanaRpcApi>, signer: TransactionSigner, instruction: Instruction[]) => Promise<Omit<_solana_kit.ExcludeTransactionMessageWithinSizeLimit<Omit<_solana_kit.ExcludeTransactionMessageLifetime<Omit<Readonly<{
1612
- instructions: readonly Instruction<string, readonly (_solana_kit.AccountMeta<string> | _solana_kit.AccountLookupMeta<string, string>)[]>[];
1613
- version: 0;
1614
- }>, "instructions"> & _solana_kit.TransactionMessageWithinSizeLimit & {
1615
- instructions: readonly [];
1616
- }> & _solana_kit.TransactionMessageWithBlockhashLifetime, "feePayer"> & _solana_kit.TransactionMessageWithFeePayerSigner<string, TransactionSigner<string>>>, "instructions"> & {
1617
- readonly instructions: readonly Instruction<string, readonly (_solana_kit.AccountMeta<string> | _solana_kit.AccountLookupMeta<string, string>)[]>[];
1618
- }>;
1619
-
1620
1604
  type DropsyPda = readonly [Address<string>, ProgramDerivedAddressBump];
1621
1605
  type Seed = ReadonlyUint8Array | string;
1622
1606
  declare function getDropsyDerivedAddress(seeds: Seed[]): Promise<DropsyPda>;
@@ -1627,15 +1611,6 @@ declare function getAffiliateDerivedAddress(authority: Address): Promise<DropsyP
1627
1611
  declare function getAirdropDerivedAddress(authority: Address, mint: Address): Promise<DropsyPda>;
1628
1612
  declare function getClaimMapDerivedAddress(airdrop: Address, id: number): Promise<DropsyPda>;
1629
1613
 
1630
- declare const createWLMerkleTree: (wallets: string[]) => MerkleTree;
1631
- declare const getSimpleMerkleProof: (merkleTree: MerkleTree, address: string) => Buffer[];
1632
- declare const getMerkleRootArray: (merkleTree: MerkleTree) => ReadonlyUint8Array;
1633
- declare const createMerkleTree: (claimList: {
1634
- index: number;
1635
- address: string;
1636
- amount: number;
1637
- }[]) => MerkleTree;
1638
-
1639
1614
  /**
1640
1615
  * -------------------------
1641
1616
  * PDA Seed Constants
@@ -1687,4 +1662,4 @@ declare const STATE_REDEEMED = 2;
1687
1662
  */
1688
1663
  declare const MUTABLE_NONE = 0;
1689
1664
 
1690
- export { ADMIN, AFFILIATE_DISCRIMINATOR, AFFILIATE_MASTER_DISCRIMINATOR, AFFILIATE_MASTER_SEED, AFFILIATE_SEED, AIRDROP_CONFIG_DISCRIMINATOR, AIRDROP_CONFIG_SEED, AIRDROP_DISCRIMINATOR, AIRDROP_MASTER_DISCRIMINATOR, AIRDROP_MASTER_SEED, AIRDROP_SEED, type AdvancedFeeConfig, type AdvancedFeeConfigArgs, type Affiliate, type AffiliateArgs, type AffiliateMaster, type AffiliateMasterArgs, type Airdrop, type AirdropArgs, type AirdropBoosted, type AirdropBoostedArgs, type AirdropClosed, type AirdropClosedArgs, type AirdropConfig, type AirdropConfigArgs, type AirdropDelegated, type AirdropDelegatedArgs, type AirdropInitialized, type AirdropInitializedArgs, type AirdropMaster, type AirdropMasterArgs, type AirdropUpdated, type AirdropUpdatedArgs, BITMAP_SEED, BITMAP_SIZE, type BaseDurationConfig, type BaseDurationConfigArgs, type BaseFeatureFeeConfig, type BaseFeatureFeeConfigArgs, type BaseFeeConfig, type BaseFeeConfigArgs, CLAIM_AIRDROP_DISCRIMINATOR, CLAIM_MAP_DISCRIMINATOR, CREATE_AIRDROP_DISCRIMINATOR, CREATE_CLAIM_MAP_DISCRIMINATOR, type ClaimAirdropAsyncInput, type ClaimAirdropInput, type ClaimAirdropInstruction, type ClaimAirdropInstructionData, type ClaimAirdropInstructionDataArgs, type ClaimMap, type ClaimMapArgs, type ClaimMapClosed, type ClaimMapClosedArgs, type ClaimMapInitialized, type ClaimMapInitializedArgs, type CreateAirdropAsyncInput, type CreateAirdropInput, type CreateAirdropInstruction, type CreateAirdropInstructionData, type CreateAirdropInstructionDataArgs, type CreateAirdropV0Input, type CreateClaimMapAsyncInput, type CreateClaimMapInput, type CreateClaimMapInstruction, type CreateClaimMapInstructionData, type CreateClaimMapInstructionDataArgs, DEPOSIT_TOKENS_DISCRIMINATOR, DROPSY_ERROR__ACTIVE_BITMAPS_EXIST, DROPSY_ERROR__AIRDROP_ENDED, DROPSY_ERROR__AIRDROP_NOT_ENDED, DROPSY_ERROR__AIRDROP_NOT_STARTED, DROPSY_ERROR__ALREADY_CLAIMED, DROPSY_ERROR__BITMAP_AIRDROP_MISMATCH, DROPSY_ERROR__BITMAP_COUNT_UNDERFLOW, DROPSY_ERROR__BITMAP_TOO_LARGE, DROPSY_ERROR__CLAIM_FEE_TOO_HIGH, DROPSY_ERROR__CREATE_FEE_TOO_HIGH, DROPSY_ERROR__DESTINATION_MINT_MISMATCH, DROPSY_ERROR__DURATION_TOO_SHORT, DROPSY_ERROR__IMMUTABLE_AIRDROP, DROPSY_ERROR__IMMUTABLE_FIELD, DROPSY_ERROR__INSUFFICIENT_DEPOSIT, DROPSY_ERROR__INSUFFICIENT_FUNDS_FOR_FEE, DROPSY_ERROR__INSUFFICIENT_VAULT_FUNDS, DROPSY_ERROR__INVALID_ADMIN, DROPSY_ERROR__INVALID_AFFILIATE_PDA, DROPSY_ERROR__INVALID_AIRDROP_MASTER_ACCOUNT, DROPSY_ERROR__INVALID_AIRDROP_PDA, DROPSY_ERROR__INVALID_AIRDROP_VERSION, DROPSY_ERROR__INVALID_AIRDROP_VESTING_VERSION, DROPSY_ERROR__INVALID_AMOUNT, DROPSY_ERROR__INVALID_BITMAP_ACCOUNT, DROPSY_ERROR__INVALID_BITMAP_INDEX, DROPSY_ERROR__INVALID_DELEGATE_PERMISSION, DROPSY_ERROR__INVALID_DESTINATION_OWNER, DROPSY_ERROR__INVALID_END_TIME, DROPSY_ERROR__INVALID_FEE_VAULT, DROPSY_ERROR__INVALID_FEE_VAULT_CURVE, DROPSY_ERROR__INVALID_FEE_VAULT_OWNER, DROPSY_ERROR__INVALID_MINT, DROPSY_ERROR__INVALID_MINT_OWNER, DROPSY_ERROR__INVALID_MUTABILITY, DROPSY_ERROR__INVALID_OWNER, DROPSY_ERROR__INVALID_PARENT_ACCOUNT, DROPSY_ERROR__INVALID_PDA, DROPSY_ERROR__INVALID_PERCENTAGE, DROPSY_ERROR__INVALID_PROOF, DROPSY_ERROR__INVALID_PUB_KEY, DROPSY_ERROR__INVALID_TIMESTAMP, DROPSY_ERROR__INVALID_TOTAL, DROPSY_ERROR__INVALID_TREASURY_ACCOUNT, DROPSY_ERROR__INVALID_VAULT_AUTHORITY, DROPSY_ERROR__INVALID_VESTING_SCHEDULE, DROPSY_ERROR__INVALID_VESTING_TYPE, DROPSY_ERROR__MAX_AIRDROPS_REACHED, DROPSY_ERROR__MAX_CLAIM_MAPS_REACHED, DROPSY_ERROR__MINT_HAS_FREEZE_AUTHORITY, DROPSY_ERROR__MINT_IS_FROZEN, DROPSY_ERROR__MINT_IS_NOT_INITIALIZED, DROPSY_ERROR__MINT_MISMATCH, DROPSY_ERROR__MISSING_BITMAP_PDA, DROPSY_ERROR__NFT_NOT_ALLOWED, DROPSY_ERROR__NON_ZERO_VALUE_REQUIRED, DROPSY_ERROR__OVERFLOW, DROPSY_ERROR__OWNER_MISMATCH, DROPSY_ERROR__SOURCE_ACCOUNT_FROZEN, DROPSY_ERROR__SOURCE_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__SOURCE_HAS_DELEGATE, DROPSY_ERROR__TOO_MANY_BITMAPS, DROPSY_ERROR__UNAUTHORIZED, DROPSY_ERROR__UN_AUTHORIZED, DROPSY_ERROR__UPDATE_CUTOFF_TIME_PASSED, DROPSY_ERROR__VALUE_BELOW_THE_MINIMUM, DROPSY_ERROR__VALUE_EXCEEDS_MAXIMUM, DROPSY_ERROR__VALUE_OUT_OF_RANGE, DROPSY_ERROR__VAULT_FROZEN, DROPSY_ERROR__VAULT_HAS_CLOSE_AUTHORITY, DROPSY_ERROR__VAULT_HAS_DELEGATE, DROPSY_ERROR__VAULT_MINT_MISMATCH, DROPSY_ERROR__VAULT_NOT_INITIALIZED, DROPSY_ERROR__VAULT_NOT_RENT_EXEMPT, DROPSY_ERROR__VESTING_ACCOUNT_REQUIRED, DROPSY_MASTER_SEED, DROPSY_PROGRAM_ADDRESS, type DepositTokensAsyncInput, type DepositTokensInput, type DepositTokensInstruction, type DepositTokensInstructionData, type DepositTokensInstructionDataArgs, DropsyAccount, type DropsyError, DropsyInstruction, type DropsyPda, INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR, INITIALIZE_MASTER_DISCRIMINATOR, type InitAirdropConfigArgs, type InitAirdropConfigArgsArgs, type InitializeAirdropMasterAsyncInput, type InitializeAirdropMasterInput, type InitializeAirdropMasterInstruction, type InitializeAirdropMasterInstructionData, type InitializeAirdropMasterInstructionDataArgs, type InitializeMasterAsyncInput, type InitializeMasterInput, type InitializeMasterInstruction, type InitializeMasterInstructionData, type InitializeMasterInstructionDataArgs, MASTER_DISCRIMINATOR, MAX_BITMAP_CLAIM, MUTABLE_NONE, type Master, type MasterArgs, type MasterInitialized, type MasterInitializedArgs, PRESALE_SEED, type ParsedClaimAirdropInstruction, type ParsedCreateAirdropInstruction, type ParsedCreateClaimMapInstruction, type ParsedDepositTokensInstruction, type ParsedDropsyInstruction, type ParsedInitializeAirdropMasterInstruction, type ParsedInitializeMasterInstruction, type ParsedRedeemAirdropTokensInstruction, REDEEM_AIRDROP_TOKENS_DISCRIMINATOR, type RedeemAirdropTokensAsyncInput, type RedeemAirdropTokensInput, type RedeemAirdropTokensInstruction, type RedeemAirdropTokensInstructionData, type RedeemAirdropTokensInstructionDataArgs, STATE_DELEGATED, STATE_INITIALIZED, STATE_REDEEMED, type TokensDeposited, type TokensDepositedArgs, type TokensRedeemed, type TokensRedeemedArgs, VAULT_SEED, VERSION_BASIC, VERSION_VESTED, VESTING_SEED, createDefaultSolanaClient, createMerkleTree, createTransactionMessageFromInstructions, createWLMerkleTree, decodeAffiliate, decodeAffiliateMaster, decodeAirdrop, decodeAirdropConfig, decodeAirdropMaster, decodeClaimMap, decodeMaster, fetchAffiliate, fetchAffiliateMaster, fetchAirdrop, fetchAirdropConfig, fetchAirdropMaster, fetchAllAffiliate, fetchAllAffiliateMaster, fetchAllAirdrop, fetchAllAirdropConfig, fetchAllAirdropMaster, fetchAllClaimMap, fetchAllMaster, fetchAllMaybeAffiliate, fetchAllMaybeAffiliateMaster, fetchAllMaybeAirdrop, fetchAllMaybeAirdropConfig, fetchAllMaybeAirdropMaster, fetchAllMaybeClaimMap, fetchAllMaybeMaster, fetchClaimMap, fetchMaster, fetchMaybeAffiliate, fetchMaybeAffiliateMaster, fetchMaybeAirdrop, fetchMaybeAirdropConfig, fetchMaybeAirdropMaster, fetchMaybeClaimMap, fetchMaybeMaster, generateKeyPairSignerWithSol, getAdvancedFeeConfigCodec, getAdvancedFeeConfigDecoder, getAdvancedFeeConfigEncoder, getAffiliateCodec, getAffiliateDecoder, getAffiliateDerivedAddress, getAffiliateDiscriminatorBytes, getAffiliateEncoder, getAffiliateMasterCodec, getAffiliateMasterDecoder, getAffiliateMasterDiscriminatorBytes, getAffiliateMasterEncoder, getAffiliateMasterSize, getAffiliateSize, getAirdropBoostedCodec, getAirdropBoostedDecoder, getAirdropBoostedEncoder, getAirdropClosedCodec, getAirdropClosedDecoder, getAirdropClosedEncoder, getAirdropCodec, getAirdropConfigCodec, getAirdropConfigDecoder, getAirdropConfigDerivedAddress, getAirdropConfigDiscriminatorBytes, getAirdropConfigEncoder, getAirdropConfigSize, getAirdropDecoder, getAirdropDelegatedCodec, getAirdropDelegatedDecoder, getAirdropDelegatedEncoder, getAirdropDerivedAddress, getAirdropDiscriminatorBytes, getAirdropEncoder, getAirdropInitializedCodec, getAirdropInitializedDecoder, getAirdropInitializedEncoder, getAirdropMasterCodec, getAirdropMasterDecoder, getAirdropMasterDerivedAddress, getAirdropMasterDiscriminatorBytes, getAirdropMasterEncoder, getAirdropMasterSize, getAirdropSize, getAirdropUpdatedCodec, getAirdropUpdatedDecoder, getAirdropUpdatedEncoder, getBaseDurationConfigCodec, getBaseDurationConfigDecoder, getBaseDurationConfigEncoder, getBaseFeatureFeeConfigCodec, getBaseFeatureFeeConfigDecoder, getBaseFeatureFeeConfigEncoder, getBaseFeeConfigCodec, getBaseFeeConfigDecoder, getBaseFeeConfigEncoder, getClaimAirdropDiscriminatorBytes, getClaimAirdropInstruction, getClaimAirdropInstructionAsync, getClaimAirdropInstructionDataCodec, getClaimAirdropInstructionDataDecoder, getClaimAirdropInstructionDataEncoder, getClaimMapClosedCodec, getClaimMapClosedDecoder, getClaimMapClosedEncoder, getClaimMapCodec, getClaimMapDecoder, getClaimMapDerivedAddress, getClaimMapDiscriminatorBytes, getClaimMapEncoder, getClaimMapInitializedCodec, getClaimMapInitializedDecoder, getClaimMapInitializedEncoder, getClaimMapSize, getCreateAirdropDiscriminatorBytes, getCreateAirdropInstruction, getCreateAirdropInstructionAsync, getCreateAirdropInstructionDataCodec, getCreateAirdropInstructionDataDecoder, getCreateAirdropInstructionDataEncoder, getCreateAirdropV0Instruction, getCreateClaimMapDiscriminatorBytes, getCreateClaimMapInstruction, getCreateClaimMapInstructionAsync, getCreateClaimMapInstructionDataCodec, getCreateClaimMapInstructionDataDecoder, getCreateClaimMapInstructionDataEncoder, getDepositTokensDiscriminatorBytes, getDepositTokensInstruction, getDepositTokensInstructionAsync, getDepositTokensInstructionDataCodec, getDepositTokensInstructionDataDecoder, getDepositTokensInstructionDataEncoder, getDropsyDerivedAddress, getDropsyErrorMessage, getInitAirdropConfigArgsCodec, getInitAirdropConfigArgsDecoder, getInitAirdropConfigArgsEncoder, getInitializeAirdropMasterDiscriminatorBytes, getInitializeAirdropMasterInstruction, getInitializeAirdropMasterInstructionAsync, getInitializeAirdropMasterInstructionDataCodec, getInitializeAirdropMasterInstructionDataDecoder, getInitializeAirdropMasterInstructionDataEncoder, getInitializeMasterDiscriminatorBytes, getInitializeMasterInstruction, getInitializeMasterInstructionAsync, getInitializeMasterInstructionDataCodec, getInitializeMasterInstructionDataDecoder, getInitializeMasterInstructionDataEncoder, getMasterCodec, getMasterDecoder, getMasterDerivedAddress, getMasterDiscriminatorBytes, getMasterEncoder, getMasterInitializedCodec, getMasterInitializedDecoder, getMasterInitializedEncoder, getMasterSize, getMerkleRootArray, getRedeemAirdropTokensDiscriminatorBytes, getRedeemAirdropTokensInstruction, getRedeemAirdropTokensInstructionAsync, getRedeemAirdropTokensInstructionDataCodec, getRedeemAirdropTokensInstructionDataDecoder, getRedeemAirdropTokensInstructionDataEncoder, getSimpleMerkleProof, getTokensDepositedCodec, getTokensDepositedDecoder, getTokensDepositedEncoder, getTokensRedeemedCodec, getTokensRedeemedDecoder, getTokensRedeemedEncoder, identifyDropsyAccount, identifyDropsyInstruction, isDropsyError, parseClaimAirdropInstruction, parseCreateAirdropInstruction, parseCreateClaimMapInstruction, parseDepositTokensInstruction, parseInitializeAirdropMasterInstruction, parseInitializeMasterInstruction, parseRedeemAirdropTokensInstruction };
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 };
package/dist/index.js CHANGED
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
 
30
20
  // src/index.ts
@@ -141,10 +131,6 @@ __export(index_exports, {
141
131
  VERSION_BASIC: () => VERSION_BASIC,
142
132
  VERSION_VESTED: () => VERSION_VESTED,
143
133
  VESTING_SEED: () => VESTING_SEED,
144
- createDefaultSolanaClient: () => createDefaultSolanaClient,
145
- createMerkleTree: () => createMerkleTree,
146
- createTransactionMessageFromInstructions: () => createTransactionMessageFromInstructions,
147
- createWLMerkleTree: () => createWLMerkleTree,
148
134
  decodeAffiliate: () => decodeAffiliate,
149
135
  decodeAffiliateMaster: () => decodeAffiliateMaster,
150
136
  decodeAirdrop: () => decodeAirdrop,
@@ -180,7 +166,6 @@ __export(index_exports, {
180
166
  fetchMaybeAirdropMaster: () => fetchMaybeAirdropMaster,
181
167
  fetchMaybeClaimMap: () => fetchMaybeClaimMap,
182
168
  fetchMaybeMaster: () => fetchMaybeMaster,
183
- generateKeyPairSignerWithSol: () => generateKeyPairSignerWithSol,
184
169
  getAdvancedFeeConfigCodec: () => getAdvancedFeeConfigCodec,
185
170
  getAdvancedFeeConfigDecoder: () => getAdvancedFeeConfigDecoder,
186
171
  getAdvancedFeeConfigEncoder: () => getAdvancedFeeConfigEncoder,
@@ -300,14 +285,12 @@ __export(index_exports, {
300
285
  getMasterInitializedDecoder: () => getMasterInitializedDecoder,
301
286
  getMasterInitializedEncoder: () => getMasterInitializedEncoder,
302
287
  getMasterSize: () => getMasterSize,
303
- getMerkleRootArray: () => getMerkleRootArray,
304
288
  getRedeemAirdropTokensDiscriminatorBytes: () => getRedeemAirdropTokensDiscriminatorBytes,
305
289
  getRedeemAirdropTokensInstruction: () => getRedeemAirdropTokensInstruction,
306
290
  getRedeemAirdropTokensInstructionAsync: () => getRedeemAirdropTokensInstructionAsync,
307
291
  getRedeemAirdropTokensInstructionDataCodec: () => getRedeemAirdropTokensInstructionDataCodec,
308
292
  getRedeemAirdropTokensInstructionDataDecoder: () => getRedeemAirdropTokensInstructionDataDecoder,
309
293
  getRedeemAirdropTokensInstructionDataEncoder: () => getRedeemAirdropTokensInstructionDataEncoder,
310
- getSimpleMerkleProof: () => getSimpleMerkleProof,
311
294
  getTokensDepositedCodec: () => getTokensDepositedCodec,
312
295
  getTokensDepositedDecoder: () => getTokensDepositedDecoder,
313
296
  getTokensDepositedEncoder: () => getTokensDepositedEncoder,
@@ -3384,39 +3367,11 @@ function parseRedeemAirdropTokensInstruction(instruction) {
3384
3367
  };
3385
3368
  }
3386
3369
 
3387
- // src/utils/client.ts
3388
- var import_kit33 = require("@solana/kit");
3389
- var generateKeyPairSignerWithSol = async (rpcClient, putativeLamports = 1000000000n) => {
3390
- const signer = await (0, import_kit33.generateKeyPairSigner)();
3391
- await (0, import_kit33.airdropFactory)(rpcClient)({
3392
- recipientAddress: signer.address,
3393
- lamports: (0, import_kit33.lamports)(putativeLamports),
3394
- commitment: "confirmed"
3395
- });
3396
- return signer;
3397
- };
3398
- var createDefaultSolanaClient = () => {
3399
- const rpc = (0, import_kit33.createSolanaRpc)("https://api.devnet.solana.com");
3400
- const rpcSubscriptions = (0, import_kit33.createSolanaRpcSubscriptions)(
3401
- "wss://api.devnet.solana.com"
3402
- );
3403
- return { rpc, rpcSubscriptions };
3404
- };
3405
- var createTransactionMessageFromInstructions = async (rpc, signer, instruction) => {
3406
- const { value: latestBlockhash } = await rpc.getLatestBlockhash().send();
3407
- return (0, import_kit33.pipe)(
3408
- (0, import_kit33.createTransactionMessage)({ version: 0 }),
3409
- (tx) => (0, import_kit33.setTransactionMessageLifetimeUsingBlockhash)(latestBlockhash, tx),
3410
- (tx) => (0, import_kit33.setTransactionMessageFeePayerSigner)(signer, tx),
3411
- (tx) => (0, import_kit33.appendTransactionMessageInstructions)(instruction, tx)
3412
- );
3413
- };
3414
-
3415
3370
  // src/utils/derive.ts
3416
- var import_kit35 = require("@solana/kit");
3371
+ var import_kit34 = require("@solana/kit");
3417
3372
 
3418
3373
  // src/constants/index.ts
3419
- var import_kit34 = require("@solana/kit");
3374
+ var import_kit33 = require("@solana/kit");
3420
3375
  var DROPSY_MASTER_SEED = "master";
3421
3376
  var AIRDROP_CONFIG_SEED = "airdrop_config";
3422
3377
  var AFFILIATE_MASTER_SEED = "affiliate_master";
@@ -3427,7 +3382,7 @@ var BITMAP_SEED = "bitmap";
3427
3382
  var VESTING_SEED = "vesting";
3428
3383
  var PRESALE_SEED = "presale";
3429
3384
  var VAULT_SEED = "vault";
3430
- var ADMIN = (0, import_kit34.address)("8mtUD2XrkNnTxnjCehZ4DEtTXeGR1yrepSEGhCaSj2kT");
3385
+ var ADMIN = (0, import_kit33.address)("8mtUD2XrkNnTxnjCehZ4DEtTXeGR1yrepSEGhCaSj2kT");
3431
3386
  var BITMAP_SIZE = 8e3;
3432
3387
  var MAX_BITMAP_CLAIM = BITMAP_SIZE * 8;
3433
3388
  var VERSION_BASIC = 0;
@@ -3439,7 +3394,7 @@ var MUTABLE_NONE = 0;
3439
3394
 
3440
3395
  // src/utils/derive.ts
3441
3396
  async function getDropsyDerivedAddress(seeds) {
3442
- return await (0, import_kit35.getProgramDerivedAddress)({
3397
+ return await (0, import_kit34.getProgramDerivedAddress)({
3443
3398
  seeds,
3444
3399
  programAddress: DROPSY_PROGRAM_ADDRESS
3445
3400
  });
@@ -3453,22 +3408,22 @@ async function getAirdropConfigDerivedAddress() {
3453
3408
  async function getAirdropMasterDerivedAddress(authority) {
3454
3409
  const seeds = [
3455
3410
  AIRDROP_MASTER_SEED,
3456
- (0, import_kit35.getAddressEncoder)().encode(authority)
3411
+ (0, import_kit34.getAddressEncoder)().encode(authority)
3457
3412
  ];
3458
3413
  return await getDropsyDerivedAddress(seeds);
3459
3414
  }
3460
3415
  async function getAffiliateDerivedAddress(authority) {
3461
3416
  const seeds = [
3462
3417
  AFFILIATE_SEED,
3463
- (0, import_kit35.getAddressEncoder)().encode(authority)
3418
+ (0, import_kit34.getAddressEncoder)().encode(authority)
3464
3419
  ];
3465
3420
  return await getDropsyDerivedAddress(seeds);
3466
3421
  }
3467
3422
  async function getAirdropDerivedAddress(authority, mint) {
3468
3423
  const seeds = [
3469
3424
  AIRDROP_SEED,
3470
- (0, import_kit35.getAddressEncoder)().encode(mint),
3471
- (0, import_kit35.getAddressEncoder)().encode(authority)
3425
+ (0, import_kit34.getAddressEncoder)().encode(mint),
3426
+ (0, import_kit34.getAddressEncoder)().encode(authority)
3472
3427
  ];
3473
3428
  return await getDropsyDerivedAddress(seeds);
3474
3429
  }
@@ -3477,53 +3432,11 @@ async function getClaimMapDerivedAddress(airdrop, id) {
3477
3432
  idBuffer.writeUInt16LE(id);
3478
3433
  const seeds = [
3479
3434
  BITMAP_SEED,
3480
- (0, import_kit35.getAddressEncoder)().encode(airdrop),
3435
+ (0, import_kit34.getAddressEncoder)().encode(airdrop),
3481
3436
  idBuffer
3482
3437
  ];
3483
3438
  return await getDropsyDerivedAddress(seeds);
3484
3439
  }
3485
-
3486
- // src/utils/merkle.ts
3487
- var import_crypto = require("crypto");
3488
- var import_merkletreejs = __toESM(require("merkletreejs"));
3489
- function hashLeaf(index, address2, amount) {
3490
- const data = `${index}:${address2}:${amount.toString()}`;
3491
- return (0, import_crypto.createHash)("sha256").update(data).digest();
3492
- }
3493
- function hashAddress(address2) {
3494
- return (0, import_crypto.createHash)("sha256").update(address2).digest();
3495
- }
3496
- var createWLMerkleTree = (wallets) => {
3497
- const leaves = wallets.map((address2) => hashAddress(address2));
3498
- return new import_merkletreejs.default(
3499
- leaves,
3500
- (data) => (0, import_crypto.createHash)("sha256").update(data).digest(),
3501
- { sortPairs: true }
3502
- );
3503
- };
3504
- var getSimpleMerkleProof = (merkleTree, address2) => {
3505
- const leaf = hashAddress(address2);
3506
- return merkleTree.getProof(leaf).map((p) => p.data);
3507
- };
3508
- var getMerkleRootArray = (merkleTree) => {
3509
- const root = merkleTree.getRoot();
3510
- if (root.length !== 32) {
3511
- throw new Error("Merkle root must be 32 bytes");
3512
- }
3513
- const uint8Root = new Uint8Array(root);
3514
- return uint8Root;
3515
- };
3516
- var createMerkleTree = (claimList) => {
3517
- const leaves = claimList.map(
3518
- ({ index, address: address2, amount }) => hashLeaf(index, address2, amount)
3519
- );
3520
- const merkleTree = new import_merkletreejs.default(
3521
- leaves,
3522
- (data) => (0, import_crypto.createHash)("sha256").update(data).digest(),
3523
- { sortPairs: true }
3524
- );
3525
- return merkleTree;
3526
- };
3527
3440
  // Annotate the CommonJS export names for ESM import in node:
3528
3441
  0 && (module.exports = {
3529
3442
  ADMIN,
@@ -3637,10 +3550,6 @@ var createMerkleTree = (claimList) => {
3637
3550
  VERSION_BASIC,
3638
3551
  VERSION_VESTED,
3639
3552
  VESTING_SEED,
3640
- createDefaultSolanaClient,
3641
- createMerkleTree,
3642
- createTransactionMessageFromInstructions,
3643
- createWLMerkleTree,
3644
3553
  decodeAffiliate,
3645
3554
  decodeAffiliateMaster,
3646
3555
  decodeAirdrop,
@@ -3676,7 +3585,6 @@ var createMerkleTree = (claimList) => {
3676
3585
  fetchMaybeAirdropMaster,
3677
3586
  fetchMaybeClaimMap,
3678
3587
  fetchMaybeMaster,
3679
- generateKeyPairSignerWithSol,
3680
3588
  getAdvancedFeeConfigCodec,
3681
3589
  getAdvancedFeeConfigDecoder,
3682
3590
  getAdvancedFeeConfigEncoder,
@@ -3796,14 +3704,12 @@ var createMerkleTree = (claimList) => {
3796
3704
  getMasterInitializedDecoder,
3797
3705
  getMasterInitializedEncoder,
3798
3706
  getMasterSize,
3799
- getMerkleRootArray,
3800
3707
  getRedeemAirdropTokensDiscriminatorBytes,
3801
3708
  getRedeemAirdropTokensInstruction,
3802
3709
  getRedeemAirdropTokensInstructionAsync,
3803
3710
  getRedeemAirdropTokensInstructionDataCodec,
3804
3711
  getRedeemAirdropTokensInstructionDataDecoder,
3805
3712
  getRedeemAirdropTokensInstructionDataEncoder,
3806
- getSimpleMerkleProof,
3807
3713
  getTokensDepositedCodec,
3808
3714
  getTokensDepositedDecoder,
3809
3715
  getTokensDepositedEncoder,