@dropsy/airdrop 0.4.2 → 0.4.3
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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -466,12 +466,14 @@ type ClaimAirdropInstructionData = {
|
|
|
466
466
|
proof: Array<ReadonlyUint8Array>;
|
|
467
467
|
amount: bigint;
|
|
468
468
|
claimMapIndex: number;
|
|
469
|
+
airdropId: bigint;
|
|
469
470
|
};
|
|
470
471
|
type ClaimAirdropInstructionDataArgs = {
|
|
471
472
|
index: number | bigint;
|
|
472
473
|
proof: Array<ReadonlyUint8Array>;
|
|
473
474
|
amount: number | bigint;
|
|
474
475
|
claimMapIndex: number;
|
|
476
|
+
airdropId: number | bigint;
|
|
475
477
|
};
|
|
476
478
|
declare function getClaimAirdropInstructionDataEncoder(): Encoder<ClaimAirdropInstructionDataArgs>;
|
|
477
479
|
declare function getClaimAirdropInstructionDataDecoder(): Decoder<ClaimAirdropInstructionData>;
|
|
@@ -496,6 +498,7 @@ type ClaimAirdropAsyncInput<TAccountSourceTokenAccount extends string = string,
|
|
|
496
498
|
proof: ClaimAirdropInstructionDataArgs["proof"];
|
|
497
499
|
amount: ClaimAirdropInstructionDataArgs["amount"];
|
|
498
500
|
claimMapIndex: ClaimAirdropInstructionDataArgs["claimMapIndex"];
|
|
501
|
+
airdropId: ClaimAirdropInstructionDataArgs["airdropId"];
|
|
499
502
|
};
|
|
500
503
|
declare function getClaimAirdropInstructionAsync<TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountClaimer extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountAuthority extends string, TAccountBitmap extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: ClaimAirdropAsyncInput<TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>, config?: {
|
|
501
504
|
programAddress?: TProgramAddress;
|
|
@@ -520,6 +523,7 @@ type ClaimAirdropInput<TAccountSourceTokenAccount extends string = string, TAcco
|
|
|
520
523
|
proof: ClaimAirdropInstructionDataArgs["proof"];
|
|
521
524
|
amount: ClaimAirdropInstructionDataArgs["amount"];
|
|
522
525
|
claimMapIndex: ClaimAirdropInstructionDataArgs["claimMapIndex"];
|
|
526
|
+
airdropId: ClaimAirdropInstructionDataArgs["airdropId"];
|
|
523
527
|
};
|
|
524
528
|
declare function getClaimAirdropInstruction<TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountClaimer extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountAuthority extends string, TAccountBitmap extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: ClaimAirdropInput<TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>, config?: {
|
|
525
529
|
programAddress?: TProgramAddress;
|
package/dist/index.d.ts
CHANGED
|
@@ -466,12 +466,14 @@ type ClaimAirdropInstructionData = {
|
|
|
466
466
|
proof: Array<ReadonlyUint8Array>;
|
|
467
467
|
amount: bigint;
|
|
468
468
|
claimMapIndex: number;
|
|
469
|
+
airdropId: bigint;
|
|
469
470
|
};
|
|
470
471
|
type ClaimAirdropInstructionDataArgs = {
|
|
471
472
|
index: number | bigint;
|
|
472
473
|
proof: Array<ReadonlyUint8Array>;
|
|
473
474
|
amount: number | bigint;
|
|
474
475
|
claimMapIndex: number;
|
|
476
|
+
airdropId: number | bigint;
|
|
475
477
|
};
|
|
476
478
|
declare function getClaimAirdropInstructionDataEncoder(): Encoder<ClaimAirdropInstructionDataArgs>;
|
|
477
479
|
declare function getClaimAirdropInstructionDataDecoder(): Decoder<ClaimAirdropInstructionData>;
|
|
@@ -496,6 +498,7 @@ type ClaimAirdropAsyncInput<TAccountSourceTokenAccount extends string = string,
|
|
|
496
498
|
proof: ClaimAirdropInstructionDataArgs["proof"];
|
|
497
499
|
amount: ClaimAirdropInstructionDataArgs["amount"];
|
|
498
500
|
claimMapIndex: ClaimAirdropInstructionDataArgs["claimMapIndex"];
|
|
501
|
+
airdropId: ClaimAirdropInstructionDataArgs["airdropId"];
|
|
499
502
|
};
|
|
500
503
|
declare function getClaimAirdropInstructionAsync<TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountClaimer extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountAuthority extends string, TAccountBitmap extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: ClaimAirdropAsyncInput<TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>, config?: {
|
|
501
504
|
programAddress?: TProgramAddress;
|
|
@@ -520,6 +523,7 @@ type ClaimAirdropInput<TAccountSourceTokenAccount extends string = string, TAcco
|
|
|
520
523
|
proof: ClaimAirdropInstructionDataArgs["proof"];
|
|
521
524
|
amount: ClaimAirdropInstructionDataArgs["amount"];
|
|
522
525
|
claimMapIndex: ClaimAirdropInstructionDataArgs["claimMapIndex"];
|
|
526
|
+
airdropId: ClaimAirdropInstructionDataArgs["airdropId"];
|
|
523
527
|
};
|
|
524
528
|
declare function getClaimAirdropInstruction<TAccountSourceTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountClaimer extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountAuthority extends string, TAccountBitmap extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: ClaimAirdropInput<TAccountSourceTokenAccount, TAccountDestinationTokenAccount, TAccountClaimer, TAccountMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountAuthority, TAccountBitmap>, config?: {
|
|
525
529
|
programAddress?: TProgramAddress;
|
package/dist/index.js
CHANGED
|
@@ -644,7 +644,8 @@ function getClaimAirdropInstructionDataEncoder() {
|
|
|
644
644
|
["index", (0, import_kit6.getU64Encoder)()],
|
|
645
645
|
["proof", (0, import_kit6.getArrayEncoder)((0, import_kit6.fixEncoderSize)((0, import_kit6.getBytesEncoder)(), 32))],
|
|
646
646
|
["amount", (0, import_kit6.getU64Encoder)()],
|
|
647
|
-
["claimMapIndex", (0, import_kit6.getU16Encoder)()]
|
|
647
|
+
["claimMapIndex", (0, import_kit6.getU16Encoder)()],
|
|
648
|
+
["airdropId", (0, import_kit6.getU64Encoder)()]
|
|
648
649
|
]),
|
|
649
650
|
(value) => ({ ...value, discriminator: CLAIM_AIRDROP_DISCRIMINATOR })
|
|
650
651
|
);
|
|
@@ -655,7 +656,8 @@ function getClaimAirdropInstructionDataDecoder() {
|
|
|
655
656
|
["index", (0, import_kit6.getU64Decoder)()],
|
|
656
657
|
["proof", (0, import_kit6.getArrayDecoder)((0, import_kit6.fixDecoderSize)((0, import_kit6.getBytesDecoder)(), 32))],
|
|
657
658
|
["amount", (0, import_kit6.getU64Decoder)()],
|
|
658
|
-
["claimMapIndex", (0, import_kit6.getU16Decoder)()]
|
|
659
|
+
["claimMapIndex", (0, import_kit6.getU16Decoder)()],
|
|
660
|
+
["airdropId", (0, import_kit6.getU64Decoder)()]
|
|
659
661
|
]);
|
|
660
662
|
}
|
|
661
663
|
function getClaimAirdropInstructionDataCodec() {
|