@dropsy/airdrop 0.3.0 → 0.4.0

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.
@@ -17,13 +17,12 @@ type Airdrop = {
17
17
  mint: Address;
18
18
  delegateAuthority: Address;
19
19
  merkleRoot: ReadonlyUint8Array;
20
+ id: bigint;
20
21
  supply: bigint;
21
22
  boost: bigint;
22
23
  startsAt: bigint;
23
24
  endsAt: bigint;
24
25
  bitmapCount: number;
25
- delegatePermissions: number;
26
- mutable: number;
27
26
  state: number;
28
27
  version: number;
29
28
  bump: number;
@@ -35,13 +34,12 @@ type AirdropArgs = {
35
34
  mint: Address;
36
35
  delegateAuthority: Address;
37
36
  merkleRoot: ReadonlyUint8Array;
37
+ id: number | bigint;
38
38
  supply: number | bigint;
39
39
  boost: number | bigint;
40
40
  startsAt: number | bigint;
41
41
  endsAt: number | bigint;
42
42
  bitmapCount: number;
43
- delegatePermissions: number;
44
- mutable: number;
45
43
  state: number;
46
44
  version: number;
47
45
  bump: number;
@@ -137,6 +135,7 @@ type AirdropMaster = {
137
135
  creator: Address;
138
136
  authority: Address;
139
137
  treasury: Address;
138
+ createdAirdrops: bigint;
140
139
  points: bigint;
141
140
  totalClaimCount: bigint;
142
141
  monetizedClaimQuota: bigint;
@@ -153,6 +152,7 @@ type AirdropMasterArgs = {
153
152
  creator: Address;
154
153
  authority: Address;
155
154
  treasury: Address;
155
+ createdAirdrops: number | bigint;
156
156
  points: number | bigint;
157
157
  totalClaimCount: number | bigint;
158
158
  monetizedClaimQuota: number | bigint;
@@ -396,7 +396,7 @@ declare function isDropsyAirdropError<TProgramErrorCode extends DropsyAirdropErr
396
396
  * @see https://github.com/codama-idl/codama
397
397
  */
398
398
 
399
- declare const DROPSY_AIRDROP_PROGRAM_ADDRESS: Address<"BWd3s27cPuinNkZYqZvRbdfvpGyP9ff5rJZk4WhuNwDw">;
399
+ declare const DROPSY_AIRDROP_PROGRAM_ADDRESS: Address<"3b97gLF94DDpa7sJQ8orbE3Ab6JQWBsDQTdQ5azoZqcz">;
400
400
  declare enum DropsyAirdropAccount {
401
401
  Airdrop = 0,
402
402
  AirdropConfig = 1,
@@ -417,7 +417,7 @@ declare enum DropsyAirdropInstruction {
417
417
  declare function identifyDropsyAirdropInstruction(instruction: {
418
418
  data: ReadonlyUint8Array;
419
419
  } | ReadonlyUint8Array): DropsyAirdropInstruction;
420
- type ParsedDropsyAirdropInstruction<TProgram extends string = "BWd3s27cPuinNkZYqZvRbdfvpGyP9ff5rJZk4WhuNwDw"> = ({
420
+ type ParsedDropsyAirdropInstruction<TProgram extends string = "3b97gLF94DDpa7sJQ8orbE3Ab6JQWBsDQTdQ5azoZqcz"> = ({
421
421
  instructionType: DropsyAirdropInstruction.ClaimAirdrop;
422
422
  } & ParsedClaimAirdropInstruction<TProgram>) | ({
423
423
  instructionType: DropsyAirdropInstruction.CreateAirdrop;
@@ -571,22 +571,20 @@ type CreateAirdropInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PR
571
571
  ]>;
572
572
  type CreateAirdropInstructionData = {
573
573
  discriminator: ReadonlyUint8Array;
574
+ id: bigint;
574
575
  merkleRoot: Option<ReadonlyUint8Array>;
575
576
  startsAt: Option<bigint>;
576
577
  endsAt: Option<bigint>;
577
578
  version: Option<number>;
578
- mutable: Option<number>;
579
579
  delegateAuthority: Option<Address>;
580
- delegatePermissions: Option<number>;
581
580
  };
582
581
  type CreateAirdropInstructionDataArgs = {
582
+ id: number | bigint;
583
583
  merkleRoot: OptionOrNullable<ReadonlyUint8Array>;
584
584
  startsAt: OptionOrNullable<number | bigint>;
585
585
  endsAt: OptionOrNullable<number | bigint>;
586
586
  version: OptionOrNullable<number>;
587
- mutable: OptionOrNullable<number>;
588
587
  delegateAuthority: OptionOrNullable<Address>;
589
- delegatePermissions: OptionOrNullable<number>;
590
588
  };
591
589
  declare function getCreateAirdropInstructionDataEncoder(): Encoder<CreateAirdropInstructionDataArgs>;
592
590
  declare function getCreateAirdropInstructionDataDecoder(): Decoder<CreateAirdropInstructionData>;
@@ -597,17 +595,16 @@ type CreateAirdropAsyncInput<TAccountAirdropConfig extends string = string, TAcc
597
595
  airdropMaster?: Address<TAccountAirdropMaster>;
598
596
  treasury: Address<TAccountTreasury>;
599
597
  masterCreator: Address<TAccountMasterCreator>;
600
- airdrop?: Address<TAccountAirdrop>;
598
+ airdrop: Address<TAccountAirdrop>;
601
599
  mint: Address<TAccountMint>;
602
600
  authority: TransactionSigner<TAccountAuthority>;
603
601
  systemProgram?: Address<TAccountSystemProgram>;
602
+ id: CreateAirdropInstructionDataArgs["id"];
604
603
  merkleRoot: CreateAirdropInstructionDataArgs["merkleRoot"];
605
604
  startsAt: CreateAirdropInstructionDataArgs["startsAt"];
606
605
  endsAt: CreateAirdropInstructionDataArgs["endsAt"];
607
606
  version: CreateAirdropInstructionDataArgs["version"];
608
- mutable: CreateAirdropInstructionDataArgs["mutable"];
609
607
  delegateAuthority: CreateAirdropInstructionDataArgs["delegateAuthority"];
610
- delegatePermissions: CreateAirdropInstructionDataArgs["delegatePermissions"];
611
608
  };
612
609
  declare function getCreateAirdropInstructionAsync<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateAirdropAsyncInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
613
610
  programAddress?: TProgramAddress;
@@ -622,13 +619,12 @@ type CreateAirdropInput<TAccountAirdropConfig extends string = string, TAccountP
622
619
  mint: Address<TAccountMint>;
623
620
  authority: TransactionSigner<TAccountAuthority>;
624
621
  systemProgram?: Address<TAccountSystemProgram>;
622
+ id: CreateAirdropInstructionDataArgs["id"];
625
623
  merkleRoot: CreateAirdropInstructionDataArgs["merkleRoot"];
626
624
  startsAt: CreateAirdropInstructionDataArgs["startsAt"];
627
625
  endsAt: CreateAirdropInstructionDataArgs["endsAt"];
628
626
  version: CreateAirdropInstructionDataArgs["version"];
629
- mutable: CreateAirdropInstructionDataArgs["mutable"];
630
627
  delegateAuthority: CreateAirdropInstructionDataArgs["delegateAuthority"];
631
- delegatePermissions: CreateAirdropInstructionDataArgs["delegatePermissions"];
632
628
  };
633
629
  declare function getCreateAirdropInstruction<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateAirdropInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
634
630
  programAddress?: TProgramAddress;
package/dist/index.d.ts CHANGED
@@ -17,13 +17,12 @@ type Airdrop = {
17
17
  mint: Address;
18
18
  delegateAuthority: Address;
19
19
  merkleRoot: ReadonlyUint8Array;
20
+ id: bigint;
20
21
  supply: bigint;
21
22
  boost: bigint;
22
23
  startsAt: bigint;
23
24
  endsAt: bigint;
24
25
  bitmapCount: number;
25
- delegatePermissions: number;
26
- mutable: number;
27
26
  state: number;
28
27
  version: number;
29
28
  bump: number;
@@ -35,13 +34,12 @@ type AirdropArgs = {
35
34
  mint: Address;
36
35
  delegateAuthority: Address;
37
36
  merkleRoot: ReadonlyUint8Array;
37
+ id: number | bigint;
38
38
  supply: number | bigint;
39
39
  boost: number | bigint;
40
40
  startsAt: number | bigint;
41
41
  endsAt: number | bigint;
42
42
  bitmapCount: number;
43
- delegatePermissions: number;
44
- mutable: number;
45
43
  state: number;
46
44
  version: number;
47
45
  bump: number;
@@ -137,6 +135,7 @@ type AirdropMaster = {
137
135
  creator: Address;
138
136
  authority: Address;
139
137
  treasury: Address;
138
+ createdAirdrops: bigint;
140
139
  points: bigint;
141
140
  totalClaimCount: bigint;
142
141
  monetizedClaimQuota: bigint;
@@ -153,6 +152,7 @@ type AirdropMasterArgs = {
153
152
  creator: Address;
154
153
  authority: Address;
155
154
  treasury: Address;
155
+ createdAirdrops: number | bigint;
156
156
  points: number | bigint;
157
157
  totalClaimCount: number | bigint;
158
158
  monetizedClaimQuota: number | bigint;
@@ -396,7 +396,7 @@ declare function isDropsyAirdropError<TProgramErrorCode extends DropsyAirdropErr
396
396
  * @see https://github.com/codama-idl/codama
397
397
  */
398
398
 
399
- declare const DROPSY_AIRDROP_PROGRAM_ADDRESS: Address<"BWd3s27cPuinNkZYqZvRbdfvpGyP9ff5rJZk4WhuNwDw">;
399
+ declare const DROPSY_AIRDROP_PROGRAM_ADDRESS: Address<"3b97gLF94DDpa7sJQ8orbE3Ab6JQWBsDQTdQ5azoZqcz">;
400
400
  declare enum DropsyAirdropAccount {
401
401
  Airdrop = 0,
402
402
  AirdropConfig = 1,
@@ -417,7 +417,7 @@ declare enum DropsyAirdropInstruction {
417
417
  declare function identifyDropsyAirdropInstruction(instruction: {
418
418
  data: ReadonlyUint8Array;
419
419
  } | ReadonlyUint8Array): DropsyAirdropInstruction;
420
- type ParsedDropsyAirdropInstruction<TProgram extends string = "BWd3s27cPuinNkZYqZvRbdfvpGyP9ff5rJZk4WhuNwDw"> = ({
420
+ type ParsedDropsyAirdropInstruction<TProgram extends string = "3b97gLF94DDpa7sJQ8orbE3Ab6JQWBsDQTdQ5azoZqcz"> = ({
421
421
  instructionType: DropsyAirdropInstruction.ClaimAirdrop;
422
422
  } & ParsedClaimAirdropInstruction<TProgram>) | ({
423
423
  instructionType: DropsyAirdropInstruction.CreateAirdrop;
@@ -571,22 +571,20 @@ type CreateAirdropInstruction<TProgram extends string = typeof DROPSY_AIRDROP_PR
571
571
  ]>;
572
572
  type CreateAirdropInstructionData = {
573
573
  discriminator: ReadonlyUint8Array;
574
+ id: bigint;
574
575
  merkleRoot: Option<ReadonlyUint8Array>;
575
576
  startsAt: Option<bigint>;
576
577
  endsAt: Option<bigint>;
577
578
  version: Option<number>;
578
- mutable: Option<number>;
579
579
  delegateAuthority: Option<Address>;
580
- delegatePermissions: Option<number>;
581
580
  };
582
581
  type CreateAirdropInstructionDataArgs = {
582
+ id: number | bigint;
583
583
  merkleRoot: OptionOrNullable<ReadonlyUint8Array>;
584
584
  startsAt: OptionOrNullable<number | bigint>;
585
585
  endsAt: OptionOrNullable<number | bigint>;
586
586
  version: OptionOrNullable<number>;
587
- mutable: OptionOrNullable<number>;
588
587
  delegateAuthority: OptionOrNullable<Address>;
589
- delegatePermissions: OptionOrNullable<number>;
590
588
  };
591
589
  declare function getCreateAirdropInstructionDataEncoder(): Encoder<CreateAirdropInstructionDataArgs>;
592
590
  declare function getCreateAirdropInstructionDataDecoder(): Decoder<CreateAirdropInstructionData>;
@@ -597,17 +595,16 @@ type CreateAirdropAsyncInput<TAccountAirdropConfig extends string = string, TAcc
597
595
  airdropMaster?: Address<TAccountAirdropMaster>;
598
596
  treasury: Address<TAccountTreasury>;
599
597
  masterCreator: Address<TAccountMasterCreator>;
600
- airdrop?: Address<TAccountAirdrop>;
598
+ airdrop: Address<TAccountAirdrop>;
601
599
  mint: Address<TAccountMint>;
602
600
  authority: TransactionSigner<TAccountAuthority>;
603
601
  systemProgram?: Address<TAccountSystemProgram>;
602
+ id: CreateAirdropInstructionDataArgs["id"];
604
603
  merkleRoot: CreateAirdropInstructionDataArgs["merkleRoot"];
605
604
  startsAt: CreateAirdropInstructionDataArgs["startsAt"];
606
605
  endsAt: CreateAirdropInstructionDataArgs["endsAt"];
607
606
  version: CreateAirdropInstructionDataArgs["version"];
608
- mutable: CreateAirdropInstructionDataArgs["mutable"];
609
607
  delegateAuthority: CreateAirdropInstructionDataArgs["delegateAuthority"];
610
- delegatePermissions: CreateAirdropInstructionDataArgs["delegatePermissions"];
611
608
  };
612
609
  declare function getCreateAirdropInstructionAsync<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateAirdropAsyncInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
613
610
  programAddress?: TProgramAddress;
@@ -622,13 +619,12 @@ type CreateAirdropInput<TAccountAirdropConfig extends string = string, TAccountP
622
619
  mint: Address<TAccountMint>;
623
620
  authority: TransactionSigner<TAccountAuthority>;
624
621
  systemProgram?: Address<TAccountSystemProgram>;
622
+ id: CreateAirdropInstructionDataArgs["id"];
625
623
  merkleRoot: CreateAirdropInstructionDataArgs["merkleRoot"];
626
624
  startsAt: CreateAirdropInstructionDataArgs["startsAt"];
627
625
  endsAt: CreateAirdropInstructionDataArgs["endsAt"];
628
626
  version: CreateAirdropInstructionDataArgs["version"];
629
- mutable: CreateAirdropInstructionDataArgs["mutable"];
630
627
  delegateAuthority: CreateAirdropInstructionDataArgs["delegateAuthority"];
631
- delegatePermissions: CreateAirdropInstructionDataArgs["delegatePermissions"];
632
628
  };
633
629
  declare function getCreateAirdropInstruction<TAccountAirdropConfig extends string, TAccountProtocolTreasury extends string, TAccountAirdropMaster extends string, TAccountTreasury extends string, TAccountMasterCreator extends string, TAccountAirdrop extends string, TAccountMint extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DROPSY_AIRDROP_PROGRAM_ADDRESS>(input: CreateAirdropInput<TAccountAirdropConfig, TAccountProtocolTreasury, TAccountAirdropMaster, TAccountTreasury, TAccountMasterCreator, TAccountAirdrop, TAccountMint, TAccountAuthority, TAccountSystemProgram>, config?: {
634
630
  programAddress?: TProgramAddress;