@dropsy/airdrop 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts 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;
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;
package/dist/index.js CHANGED
@@ -235,17 +235,16 @@ function getAirdropEncoder() {
235
235
  ["mint", (0, import_kit.getAddressEncoder)()],
236
236
  ["delegateAuthority", (0, import_kit.getAddressEncoder)()],
237
237
  ["merkleRoot", (0, import_kit.fixEncoderSize)((0, import_kit.getBytesEncoder)(), 32)],
238
+ ["id", (0, import_kit.getU64Encoder)()],
238
239
  ["supply", (0, import_kit.getU64Encoder)()],
239
240
  ["boost", (0, import_kit.getU64Encoder)()],
240
241
  ["startsAt", (0, import_kit.getI64Encoder)()],
241
242
  ["endsAt", (0, import_kit.getI64Encoder)()],
242
243
  ["bitmapCount", (0, import_kit.getU16Encoder)()],
243
- ["delegatePermissions", (0, import_kit.getU8Encoder)()],
244
- ["mutable", (0, import_kit.getU8Encoder)()],
245
244
  ["state", (0, import_kit.getU8Encoder)()],
246
245
  ["version", (0, import_kit.getU8Encoder)()],
247
246
  ["bump", (0, import_kit.getU8Encoder)()],
248
- ["padding", (0, import_kit.fixEncoderSize)((0, import_kit.getBytesEncoder)(), 1)]
247
+ ["padding", (0, import_kit.fixEncoderSize)((0, import_kit.getBytesEncoder)(), 3)]
249
248
  ]),
250
249
  (value) => ({ ...value, discriminator: AIRDROP_DISCRIMINATOR })
251
250
  );
@@ -258,17 +257,16 @@ function getAirdropDecoder() {
258
257
  ["mint", (0, import_kit.getAddressDecoder)()],
259
258
  ["delegateAuthority", (0, import_kit.getAddressDecoder)()],
260
259
  ["merkleRoot", (0, import_kit.fixDecoderSize)((0, import_kit.getBytesDecoder)(), 32)],
260
+ ["id", (0, import_kit.getU64Decoder)()],
261
261
  ["supply", (0, import_kit.getU64Decoder)()],
262
262
  ["boost", (0, import_kit.getU64Decoder)()],
263
263
  ["startsAt", (0, import_kit.getI64Decoder)()],
264
264
  ["endsAt", (0, import_kit.getI64Decoder)()],
265
265
  ["bitmapCount", (0, import_kit.getU16Decoder)()],
266
- ["delegatePermissions", (0, import_kit.getU8Decoder)()],
267
- ["mutable", (0, import_kit.getU8Decoder)()],
268
266
  ["state", (0, import_kit.getU8Decoder)()],
269
267
  ["version", (0, import_kit.getU8Decoder)()],
270
268
  ["bump", (0, import_kit.getU8Decoder)()],
271
- ["padding", (0, import_kit.fixDecoderSize)((0, import_kit.getBytesDecoder)(), 1)]
269
+ ["padding", (0, import_kit.fixDecoderSize)((0, import_kit.getBytesDecoder)(), 3)]
272
270
  ]);
273
271
  }
274
272
  function getAirdropCodec() {
@@ -299,7 +297,7 @@ async function fetchAllMaybeAirdrop(rpc, addresses, config) {
299
297
  return maybeAccounts.map((maybeAccount) => decodeAirdrop(maybeAccount));
300
298
  }
301
299
  function getAirdropSize() {
302
- return 208;
300
+ return 216;
303
301
  }
304
302
 
305
303
  // src/accounts/airdropConfig.ts
@@ -423,6 +421,7 @@ function getAirdropMasterEncoder() {
423
421
  ["creator", (0, import_kit3.getAddressEncoder)()],
424
422
  ["authority", (0, import_kit3.getAddressEncoder)()],
425
423
  ["treasury", (0, import_kit3.getAddressEncoder)()],
424
+ ["createdAirdrops", (0, import_kit3.getU64Encoder)()],
426
425
  ["points", (0, import_kit3.getU64Encoder)()],
427
426
  ["totalClaimCount", (0, import_kit3.getU64Encoder)()],
428
427
  ["monetizedClaimQuota", (0, import_kit3.getU64Encoder)()],
@@ -444,6 +443,7 @@ function getAirdropMasterDecoder() {
444
443
  ["creator", (0, import_kit3.getAddressDecoder)()],
445
444
  ["authority", (0, import_kit3.getAddressDecoder)()],
446
445
  ["treasury", (0, import_kit3.getAddressDecoder)()],
446
+ ["createdAirdrops", (0, import_kit3.getU64Decoder)()],
447
447
  ["points", (0, import_kit3.getU64Decoder)()],
448
448
  ["totalClaimCount", (0, import_kit3.getU64Decoder)()],
449
449
  ["monetizedClaimQuota", (0, import_kit3.getU64Decoder)()],
@@ -489,7 +489,7 @@ async function fetchAllMaybeAirdropMaster(rpc, addresses, config) {
489
489
  return maybeAccounts.map((maybeAccount) => decodeAirdropMaster(maybeAccount));
490
490
  }
491
491
  function getAirdropMasterSize() {
492
- return 184;
492
+ return 192;
493
493
  }
494
494
 
495
495
  // src/accounts/bitmapAccount.ts
@@ -516,7 +516,7 @@ function getBitmapAccountEncoder() {
516
516
  ["authority", (0, import_kit4.getAddressEncoder)()],
517
517
  ["airdrop", (0, import_kit4.getAddressEncoder)()],
518
518
  ["total", (0, import_kit4.getU32Encoder)()],
519
- ["claimedBitmap", (0, import_kit4.fixEncoderSize)((0, import_kit4.getBytesEncoder)(), 8e3)],
519
+ ["claimedBitmap", (0, import_kit4.fixEncoderSize)((0, import_kit4.getBytesEncoder)(), 1e3)],
520
520
  ["id", (0, import_kit4.getU16Encoder)()],
521
521
  ["version", (0, import_kit4.getU8Encoder)()],
522
522
  ["bump", (0, import_kit4.getU8Encoder)()]
@@ -530,7 +530,7 @@ function getBitmapAccountDecoder() {
530
530
  ["authority", (0, import_kit4.getAddressDecoder)()],
531
531
  ["airdrop", (0, import_kit4.getAddressDecoder)()],
532
532
  ["total", (0, import_kit4.getU32Decoder)()],
533
- ["claimedBitmap", (0, import_kit4.fixDecoderSize)((0, import_kit4.getBytesDecoder)(), 8e3)],
533
+ ["claimedBitmap", (0, import_kit4.fixDecoderSize)((0, import_kit4.getBytesDecoder)(), 1e3)],
534
534
  ["id", (0, import_kit4.getU16Decoder)()],
535
535
  ["version", (0, import_kit4.getU8Decoder)()],
536
536
  ["bump", (0, import_kit4.getU8Decoder)()]
@@ -568,7 +568,7 @@ async function fetchAllMaybeBitmapAccount(rpc, addresses, config) {
568
568
  return maybeAccounts.map((maybeAccount) => decodeBitmapAccount(maybeAccount));
569
569
  }
570
570
  function getBitmapAccountSize() {
571
- return 8080;
571
+ return 1080;
572
572
  }
573
573
 
574
574
  // src/errors/dropsyAirdrop.ts
@@ -913,13 +913,12 @@ function getCreateAirdropInstructionDataEncoder() {
913
913
  return (0, import_kit7.transformEncoder)(
914
914
  (0, import_kit7.getStructEncoder)([
915
915
  ["discriminator", (0, import_kit7.fixEncoderSize)((0, import_kit7.getBytesEncoder)(), 8)],
916
+ ["id", (0, import_kit7.getU64Encoder)()],
916
917
  ["merkleRoot", (0, import_kit7.getOptionEncoder)((0, import_kit7.fixEncoderSize)((0, import_kit7.getBytesEncoder)(), 32))],
917
918
  ["startsAt", (0, import_kit7.getOptionEncoder)((0, import_kit7.getI64Encoder)())],
918
919
  ["endsAt", (0, import_kit7.getOptionEncoder)((0, import_kit7.getI64Encoder)())],
919
920
  ["version", (0, import_kit7.getOptionEncoder)((0, import_kit7.getU8Encoder)())],
920
- ["mutable", (0, import_kit7.getOptionEncoder)((0, import_kit7.getU8Encoder)())],
921
- ["delegateAuthority", (0, import_kit7.getOptionEncoder)((0, import_kit7.getAddressEncoder)())],
922
- ["delegatePermissions", (0, import_kit7.getOptionEncoder)((0, import_kit7.getU8Encoder)())]
921
+ ["delegateAuthority", (0, import_kit7.getOptionEncoder)((0, import_kit7.getAddressEncoder)())]
923
922
  ]),
924
923
  (value) => ({ ...value, discriminator: CREATE_AIRDROP_DISCRIMINATOR })
925
924
  );
@@ -927,13 +926,12 @@ function getCreateAirdropInstructionDataEncoder() {
927
926
  function getCreateAirdropInstructionDataDecoder() {
928
927
  return (0, import_kit7.getStructDecoder)([
929
928
  ["discriminator", (0, import_kit7.fixDecoderSize)((0, import_kit7.getBytesDecoder)(), 8)],
929
+ ["id", (0, import_kit7.getU64Decoder)()],
930
930
  ["merkleRoot", (0, import_kit7.getOptionDecoder)((0, import_kit7.fixDecoderSize)((0, import_kit7.getBytesDecoder)(), 32))],
931
931
  ["startsAt", (0, import_kit7.getOptionDecoder)((0, import_kit7.getI64Decoder)())],
932
932
  ["endsAt", (0, import_kit7.getOptionDecoder)((0, import_kit7.getI64Decoder)())],
933
933
  ["version", (0, import_kit7.getOptionDecoder)((0, import_kit7.getU8Decoder)())],
934
- ["mutable", (0, import_kit7.getOptionDecoder)((0, import_kit7.getU8Decoder)())],
935
- ["delegateAuthority", (0, import_kit7.getOptionDecoder)((0, import_kit7.getAddressDecoder)())],
936
- ["delegatePermissions", (0, import_kit7.getOptionDecoder)((0, import_kit7.getU8Decoder)())]
934
+ ["delegateAuthority", (0, import_kit7.getOptionDecoder)((0, import_kit7.getAddressDecoder)())]
937
935
  ]);
938
936
  }
939
937
  function getCreateAirdropInstructionDataCodec() {
@@ -1011,18 +1009,6 @@ async function getCreateAirdropInstructionAsync(input, config) {
1011
1009
  ]
1012
1010
  });
1013
1011
  }
1014
- if (!accounts.airdrop.value) {
1015
- accounts.airdrop.value = await (0, import_kit7.getProgramDerivedAddress)({
1016
- programAddress,
1017
- seeds: [
1018
- (0, import_kit7.getBytesEncoder)().encode(
1019
- new Uint8Array([97, 105, 114, 100, 114, 111, 112])
1020
- ),
1021
- (0, import_kit7.getAddressEncoder)().encode(expectAddress(accounts.authority.value)),
1022
- (0, import_kit7.getAddressEncoder)().encode(expectAddress(accounts.mint.value))
1023
- ]
1024
- });
1025
- }
1026
1012
  if (!accounts.systemProgram.value) {
1027
1013
  accounts.systemProgram.value = "11111111111111111111111111111111";
1028
1014
  }
@@ -1905,7 +1891,7 @@ function parseInitializeAirdropMasterInstruction(instruction) {
1905
1891
  }
1906
1892
 
1907
1893
  // src/programs/dropsyAirdrop.ts
1908
- var DROPSY_AIRDROP_PROGRAM_ADDRESS = "BWd3s27cPuinNkZYqZvRbdfvpGyP9ff5rJZk4WhuNwDw";
1894
+ var DROPSY_AIRDROP_PROGRAM_ADDRESS = "3b97gLF94DDpa7sJQ8orbE3Ab6JQWBsDQTdQ5azoZqcz";
1909
1895
  var DropsyAirdropAccount = /* @__PURE__ */ ((DropsyAirdropAccount2) => {
1910
1896
  DropsyAirdropAccount2[DropsyAirdropAccount2["Airdrop"] = 0] = "Airdrop";
1911
1897
  DropsyAirdropAccount2[DropsyAirdropAccount2["AirdropConfig"] = 1] = "AirdropConfig";