@satrush/client 0.1.10 → 0.1.12

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.js CHANGED
@@ -85,8 +85,10 @@ __export(index_exports, {
85
85
  SATRUSH_ERROR__INVALID_AUTOMATION_STRATEGY_MASK: () => SATRUSH_ERROR__INVALID_AUTOMATION_STRATEGY_MASK,
86
86
  SATRUSH_ERROR__INVALID_CLAIM_AMOUNT: () => SATRUSH_ERROR__INVALID_CLAIM_AMOUNT,
87
87
  SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT: () => SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT,
88
+ SATRUSH_ERROR__INVALID_DEPLOY_FEES: () => SATRUSH_ERROR__INVALID_DEPLOY_FEES,
88
89
  SATRUSH_ERROR__INVALID_ENTROPY: () => SATRUSH_ERROR__INVALID_ENTROPY,
89
90
  SATRUSH_ERROR__INVALID_EPOCH_ITERATION_DURATION: () => SATRUSH_ERROR__INVALID_EPOCH_ITERATION_DURATION,
91
+ SATRUSH_ERROR__INVALID_MINT_DATA: () => SATRUSH_ERROR__INVALID_MINT_DATA,
90
92
  SATRUSH_ERROR__INVALID_ROUND_DURATION: () => SATRUSH_ERROR__INVALID_ROUND_DURATION,
91
93
  SATRUSH_ERROR__INVALID_ROUND_ID: () => SATRUSH_ERROR__INVALID_ROUND_ID,
92
94
  SATRUSH_ERROR__INVALID_SELECTION_MASK: () => SATRUSH_ERROR__INVALID_SELECTION_MASK,
@@ -122,6 +124,8 @@ __export(index_exports, {
122
124
  SETTLE_DEPLOY_PUBLIC_DISCRIMINATOR: () => SETTLE_DEPLOY_PUBLIC_DISCRIMINATOR,
123
125
  SHARE_OFFSET: () => SHARE_OFFSET,
124
126
  SKILL_WEIGHT: () => SKILL_WEIGHT,
127
+ STRIKE_BOOST_HASHRATE_MULTIPLIER: () => STRIKE_BOOST_HASHRATE_MULTIPLIER,
128
+ STRIKE_BOOST_ROUNDS: () => STRIKE_BOOST_ROUNDS,
125
129
  SWAP_EPOCH_STAKE_DISCRIMINATOR: () => SWAP_EPOCH_STAKE_DISCRIMINATOR,
126
130
  SWAP_ONE_BTC_STAKE_DISCRIMINATOR: () => SWAP_ONE_BTC_STAKE_DISCRIMINATOR,
127
131
  SWAP_ROUND_STAKE_DISCRIMINATOR: () => SWAP_ROUND_STAKE_DISCRIMINATOR,
@@ -135,6 +139,7 @@ __export(index_exports, {
135
139
  TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR: () => TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR,
136
140
  UPDATE_BOARD_ROUND_DURATION_DISCRIMINATOR: () => UPDATE_BOARD_ROUND_DURATION_DISCRIMINATOR,
137
141
  UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR: () => UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR,
142
+ UPDATE_DEPLOY_FEES_DISCRIMINATOR: () => UPDATE_DEPLOY_FEES_DISCRIMINATOR,
138
143
  UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR: () => UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR,
139
144
  UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR: () => UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR,
140
145
  UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR: () => UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR,
@@ -313,6 +318,7 @@ __export(index_exports, {
313
318
  getCloseOneBtcIterationInstructionDataEncoder: () => getCloseOneBtcIterationInstructionDataEncoder,
314
319
  getCloseOneBtcTicketDiscriminatorBytes: () => getCloseOneBtcTicketDiscriminatorBytes,
315
320
  getCloseOneBtcTicketInstruction: () => getCloseOneBtcTicketInstruction,
321
+ getCloseOneBtcTicketInstructionAsync: () => getCloseOneBtcTicketInstructionAsync,
316
322
  getCloseOneBtcTicketInstructionDataCodec: () => getCloseOneBtcTicketInstructionDataCodec,
317
323
  getCloseOneBtcTicketInstructionDataDecoder: () => getCloseOneBtcTicketInstructionDataDecoder,
318
324
  getCloseOneBtcTicketInstructionDataEncoder: () => getCloseOneBtcTicketInstructionDataEncoder,
@@ -578,6 +584,12 @@ __export(index_exports, {
578
584
  getUpdateBoardRoundDurationInstructionDataCodec: () => getUpdateBoardRoundDurationInstructionDataCodec,
579
585
  getUpdateBoardRoundDurationInstructionDataDecoder: () => getUpdateBoardRoundDurationInstructionDataDecoder,
580
586
  getUpdateBoardRoundDurationInstructionDataEncoder: () => getUpdateBoardRoundDurationInstructionDataEncoder,
587
+ getUpdateDeployFeesDiscriminatorBytes: () => getUpdateDeployFeesDiscriminatorBytes,
588
+ getUpdateDeployFeesInstruction: () => getUpdateDeployFeesInstruction,
589
+ getUpdateDeployFeesInstructionAsync: () => getUpdateDeployFeesInstructionAsync,
590
+ getUpdateDeployFeesInstructionDataCodec: () => getUpdateDeployFeesInstructionDataCodec,
591
+ getUpdateDeployFeesInstructionDataDecoder: () => getUpdateDeployFeesInstructionDataDecoder,
592
+ getUpdateDeployFeesInstructionDataEncoder: () => getUpdateDeployFeesInstructionDataEncoder,
581
593
  getUpdateDeploymentSettleGraceDurationDiscriminatorBytes: () => getUpdateDeploymentSettleGraceDurationDiscriminatorBytes,
582
594
  getUpdateDeploymentSettleGraceDurationInstruction: () => getUpdateDeploymentSettleGraceDurationInstruction,
583
595
  getUpdateDeploymentSettleGraceDurationInstructionAsync: () => getUpdateDeploymentSettleGraceDurationInstructionAsync,
@@ -657,6 +669,7 @@ __export(index_exports, {
657
669
  parseTriggerEpochDrawInstruction: () => parseTriggerEpochDrawInstruction,
658
670
  parseTriggerOneBtcDrawInstruction: () => parseTriggerOneBtcDrawInstruction,
659
671
  parseUpdateBoardRoundDurationInstruction: () => parseUpdateBoardRoundDurationInstruction,
672
+ parseUpdateDeployFeesInstruction: () => parseUpdateDeployFeesInstruction,
660
673
  parseUpdateDeploymentSettleGraceDurationInstruction: () => parseUpdateDeploymentSettleGraceDurationInstruction,
661
674
  parseUpdateEpochVaultIterationDurationInstruction: () => parseUpdateEpochVaultIterationDurationInstruction,
662
675
  parseUpdateMinDeployUsdAmountInstruction: () => parseUpdateMinDeployUsdAmountInstruction,
@@ -699,7 +712,9 @@ function getBoardEncoder() {
699
712
  ["strikeUsdAmount", (0, import_kit.getU64Encoder)()],
700
713
  ["strikeBtcAmount", (0, import_kit.getU64Encoder)()],
701
714
  ["strikeLastTriggerRoundId", (0, import_kit.getU32Encoder)()],
702
- ["reserved", (0, import_kit.fixEncoderSize)((0, import_kit.getBytesEncoder)(), 30)]
715
+ ["strikeReserveUsdAmount", (0, import_kit.getU64Encoder)()],
716
+ ["strikeReserveBtcAmount", (0, import_kit.getU64Encoder)()],
717
+ ["reserved", (0, import_kit.fixEncoderSize)((0, import_kit.getBytesEncoder)(), 14)]
703
718
  ]),
704
719
  (value) => ({ ...value, discriminator: BOARD_DISCRIMINATOR })
705
720
  );
@@ -717,7 +732,9 @@ function getBoardDecoder() {
717
732
  ["strikeUsdAmount", (0, import_kit.getU64Decoder)()],
718
733
  ["strikeBtcAmount", (0, import_kit.getU64Decoder)()],
719
734
  ["strikeLastTriggerRoundId", (0, import_kit.getU32Decoder)()],
720
- ["reserved", (0, import_kit.fixDecoderSize)((0, import_kit.getBytesDecoder)(), 30)]
735
+ ["strikeReserveUsdAmount", (0, import_kit.getU64Decoder)()],
736
+ ["strikeReserveBtcAmount", (0, import_kit.getU64Decoder)()],
737
+ ["reserved", (0, import_kit.fixDecoderSize)((0, import_kit.getBytesDecoder)(), 14)]
721
738
  ]);
722
739
  }
723
740
  function getBoardCodec() {
@@ -1310,6 +1327,12 @@ function getRoundRevealedEncoder() {
1310
1327
  ["isStrikeTriggered", (0, import_kit15.getBooleanEncoder)()],
1311
1328
  ["strikeBonusUsd", (0, import_kit15.getU64Encoder)()],
1312
1329
  ["strikeBonusBtc", (0, import_kit15.getU64Encoder)()],
1330
+ ["strikeEpochUsd", (0, import_kit15.getU64Encoder)()],
1331
+ ["strikeEpochBtc", (0, import_kit15.getU64Encoder)()],
1332
+ ["strikeReserveUsd", (0, import_kit15.getU64Encoder)()],
1333
+ ["strikeReserveBtc", (0, import_kit15.getU64Encoder)()],
1334
+ ["strikeSeedFromReserveUsd", (0, import_kit15.getU64Encoder)()],
1335
+ ["strikeSeedFromReserveBtc", (0, import_kit15.getU64Encoder)()],
1313
1336
  ["epochFeeUsdAmount", (0, import_kit15.getU64Encoder)()],
1314
1337
  ["oneBtcFeeUsdAmount", (0, import_kit15.getU64Encoder)()],
1315
1338
  ["protocolFeeUsdAmount", (0, import_kit15.getU64Encoder)()]
@@ -1331,6 +1354,12 @@ function getRoundRevealedDecoder() {
1331
1354
  ["isStrikeTriggered", (0, import_kit15.getBooleanDecoder)()],
1332
1355
  ["strikeBonusUsd", (0, import_kit15.getU64Decoder)()],
1333
1356
  ["strikeBonusBtc", (0, import_kit15.getU64Decoder)()],
1357
+ ["strikeEpochUsd", (0, import_kit15.getU64Decoder)()],
1358
+ ["strikeEpochBtc", (0, import_kit15.getU64Decoder)()],
1359
+ ["strikeReserveUsd", (0, import_kit15.getU64Decoder)()],
1360
+ ["strikeReserveBtc", (0, import_kit15.getU64Decoder)()],
1361
+ ["strikeSeedFromReserveUsd", (0, import_kit15.getU64Decoder)()],
1362
+ ["strikeSeedFromReserveBtc", (0, import_kit15.getU64Decoder)()],
1334
1363
  ["epochFeeUsdAmount", (0, import_kit15.getU64Decoder)()],
1335
1364
  ["oneBtcFeeUsdAmount", (0, import_kit15.getU64Decoder)()],
1336
1365
  ["protocolFeeUsdAmount", (0, import_kit15.getU64Decoder)()]
@@ -2184,7 +2213,8 @@ function getRoundEncoder() {
2184
2213
  ["pendingEpochFeeUsdAmount", (0, import_kit29.getU64Encoder)()],
2185
2214
  ["pendingOneBtcFeeUsdAmount", (0, import_kit29.getU64Encoder)()],
2186
2215
  ["pendingProtocolFeeUsdAmount", (0, import_kit29.getU64Encoder)()],
2187
- ["reserved", (0, import_kit29.fixEncoderSize)((0, import_kit29.getBytesEncoder)(), 40)]
2216
+ ["isHashrateBoosted", (0, import_kit29.getBooleanEncoder)()],
2217
+ ["reserved", (0, import_kit29.fixEncoderSize)((0, import_kit29.getBytesEncoder)(), 39)]
2188
2218
  ]),
2189
2219
  (value) => ({ ...value, discriminator: ROUND_DISCRIMINATOR })
2190
2220
  );
@@ -2214,7 +2244,8 @@ function getRoundDecoder() {
2214
2244
  ["pendingEpochFeeUsdAmount", (0, import_kit29.getU64Decoder)()],
2215
2245
  ["pendingOneBtcFeeUsdAmount", (0, import_kit29.getU64Decoder)()],
2216
2246
  ["pendingProtocolFeeUsdAmount", (0, import_kit29.getU64Decoder)()],
2217
- ["reserved", (0, import_kit29.fixDecoderSize)((0, import_kit29.getBytesDecoder)(), 40)]
2247
+ ["isHashrateBoosted", (0, import_kit29.getBooleanDecoder)()],
2248
+ ["reserved", (0, import_kit29.fixDecoderSize)((0, import_kit29.getBytesDecoder)(), 39)]
2218
2249
  ]);
2219
2250
  }
2220
2251
  function getRoundCodec() {
@@ -2491,11 +2522,11 @@ function getTreasurySize() {
2491
2522
  }
2492
2523
 
2493
2524
  // src/generated/errors/satrush.ts
2494
- var import_kit86 = require("@solana/kit");
2525
+ var import_kit87 = require("@solana/kit");
2495
2526
 
2496
2527
  // src/generated/programs/satrush.ts
2497
- var import_kit85 = require("@solana/kit");
2498
- var import_program_client_core41 = require("@solana/program-client-core");
2528
+ var import_kit86 = require("@solana/kit");
2529
+ var import_program_client_core42 = require("@solana/program-client-core");
2499
2530
 
2500
2531
  // src/generated/instructions/buyEpochTickets.ts
2501
2532
  var import_kit45 = require("@solana/kit");
@@ -3807,18 +3838,20 @@ async function getClaimOneBtcRewardInstructionAsync(input, config) {
3807
3838
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
3808
3839
  const originalAccounts = {
3809
3840
  authority: { value: input.authority ?? null, isWritable: true },
3841
+ satrushConfig: { value: input.satrushConfig ?? null, isWritable: false },
3810
3842
  oneBtcVault: { value: input.oneBtcVault ?? null, isWritable: true },
3811
3843
  oneBtcVaultIteration: {
3812
3844
  value: input.oneBtcVaultIteration ?? null,
3813
3845
  isWritable: true
3814
3846
  },
3815
3847
  ticket: { value: input.ticket ?? null, isWritable: false },
3848
+ winner: { value: input.winner ?? null, isWritable: false },
3816
3849
  btcMint: { value: input.btcMint ?? null, isWritable: false },
3817
3850
  oneBtcVaultBtcAta: {
3818
3851
  value: input.oneBtcVaultBtcAta ?? null,
3819
3852
  isWritable: true
3820
3853
  },
3821
- authorityBtcAta: { value: input.authorityBtcAta ?? null, isWritable: true },
3854
+ winnerBtcAta: { value: input.winnerBtcAta ?? null, isWritable: true },
3822
3855
  tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
3823
3856
  associatedTokenProgram: {
3824
3857
  value: input.associatedTokenProgram ?? null,
@@ -3827,6 +3860,9 @@ async function getClaimOneBtcRewardInstructionAsync(input, config) {
3827
3860
  systemProgram: { value: input.systemProgram ?? null, isWritable: false }
3828
3861
  };
3829
3862
  const accounts = originalAccounts;
3863
+ if (!accounts.satrushConfig.value) {
3864
+ accounts.satrushConfig.value = await findSatrushConfigPda();
3865
+ }
3830
3866
  if (!accounts.oneBtcVault.value) {
3831
3867
  accounts.oneBtcVault.value = await findOneBtcVaultPda();
3832
3868
  }
@@ -3885,14 +3921,14 @@ async function getClaimOneBtcRewardInstructionAsync(input, config) {
3885
3921
  ]
3886
3922
  });
3887
3923
  }
3888
- if (!accounts.authorityBtcAta.value) {
3889
- accounts.authorityBtcAta.value = await (0, import_kit49.getProgramDerivedAddress)({
3924
+ if (!accounts.winnerBtcAta.value) {
3925
+ accounts.winnerBtcAta.value = await (0, import_kit49.getProgramDerivedAddress)({
3890
3926
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
3891
3927
  seeds: [
3892
3928
  (0, import_kit49.getAddressEncoder)().encode(
3893
3929
  (0, import_program_client_core5.getAddressFromResolvedInstructionAccount)(
3894
- "authority",
3895
- accounts.authority.value
3930
+ "winner",
3931
+ accounts.winner.value
3896
3932
  )
3897
3933
  ),
3898
3934
  (0, import_kit49.getBytesEncoder)().encode(
@@ -3953,12 +3989,14 @@ async function getClaimOneBtcRewardInstructionAsync(input, config) {
3953
3989
  return Object.freeze({
3954
3990
  accounts: [
3955
3991
  getAccountMeta("authority", accounts.authority),
3992
+ getAccountMeta("satrushConfig", accounts.satrushConfig),
3956
3993
  getAccountMeta("oneBtcVault", accounts.oneBtcVault),
3957
3994
  getAccountMeta("oneBtcVaultIteration", accounts.oneBtcVaultIteration),
3958
3995
  getAccountMeta("ticket", accounts.ticket),
3996
+ getAccountMeta("winner", accounts.winner),
3959
3997
  getAccountMeta("btcMint", accounts.btcMint),
3960
3998
  getAccountMeta("oneBtcVaultBtcAta", accounts.oneBtcVaultBtcAta),
3961
- getAccountMeta("authorityBtcAta", accounts.authorityBtcAta),
3999
+ getAccountMeta("winnerBtcAta", accounts.winnerBtcAta),
3962
4000
  getAccountMeta("tokenProgram", accounts.tokenProgram),
3963
4001
  getAccountMeta("associatedTokenProgram", accounts.associatedTokenProgram),
3964
4002
  getAccountMeta("systemProgram", accounts.systemProgram)
@@ -3971,18 +4009,20 @@ function getClaimOneBtcRewardInstruction(input, config) {
3971
4009
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
3972
4010
  const originalAccounts = {
3973
4011
  authority: { value: input.authority ?? null, isWritable: true },
4012
+ satrushConfig: { value: input.satrushConfig ?? null, isWritable: false },
3974
4013
  oneBtcVault: { value: input.oneBtcVault ?? null, isWritable: true },
3975
4014
  oneBtcVaultIteration: {
3976
4015
  value: input.oneBtcVaultIteration ?? null,
3977
4016
  isWritable: true
3978
4017
  },
3979
4018
  ticket: { value: input.ticket ?? null, isWritable: false },
4019
+ winner: { value: input.winner ?? null, isWritable: false },
3980
4020
  btcMint: { value: input.btcMint ?? null, isWritable: false },
3981
4021
  oneBtcVaultBtcAta: {
3982
4022
  value: input.oneBtcVaultBtcAta ?? null,
3983
4023
  isWritable: true
3984
4024
  },
3985
- authorityBtcAta: { value: input.authorityBtcAta ?? null, isWritable: true },
4025
+ winnerBtcAta: { value: input.winnerBtcAta ?? null, isWritable: true },
3986
4026
  tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
3987
4027
  associatedTokenProgram: {
3988
4028
  value: input.associatedTokenProgram ?? null,
@@ -4004,12 +4044,14 @@ function getClaimOneBtcRewardInstruction(input, config) {
4004
4044
  return Object.freeze({
4005
4045
  accounts: [
4006
4046
  getAccountMeta("authority", accounts.authority),
4047
+ getAccountMeta("satrushConfig", accounts.satrushConfig),
4007
4048
  getAccountMeta("oneBtcVault", accounts.oneBtcVault),
4008
4049
  getAccountMeta("oneBtcVaultIteration", accounts.oneBtcVaultIteration),
4009
4050
  getAccountMeta("ticket", accounts.ticket),
4051
+ getAccountMeta("winner", accounts.winner),
4010
4052
  getAccountMeta("btcMint", accounts.btcMint),
4011
4053
  getAccountMeta("oneBtcVaultBtcAta", accounts.oneBtcVaultBtcAta),
4012
- getAccountMeta("authorityBtcAta", accounts.authorityBtcAta),
4054
+ getAccountMeta("winnerBtcAta", accounts.winnerBtcAta),
4013
4055
  getAccountMeta("tokenProgram", accounts.tokenProgram),
4014
4056
  getAccountMeta("associatedTokenProgram", accounts.associatedTokenProgram),
4015
4057
  getAccountMeta("systemProgram", accounts.systemProgram)
@@ -4019,12 +4061,12 @@ function getClaimOneBtcRewardInstruction(input, config) {
4019
4061
  });
4020
4062
  }
4021
4063
  function parseClaimOneBtcRewardInstruction(instruction) {
4022
- if (instruction.accounts.length < 10) {
4064
+ if (instruction.accounts.length < 12) {
4023
4065
  throw new import_kit49.SolanaError(
4024
4066
  import_kit49.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
4025
4067
  {
4026
4068
  actualAccountMetas: instruction.accounts.length,
4027
- expectedAccountMetas: 10
4069
+ expectedAccountMetas: 12
4028
4070
  }
4029
4071
  );
4030
4072
  }
@@ -4038,12 +4080,14 @@ function parseClaimOneBtcRewardInstruction(instruction) {
4038
4080
  programAddress: instruction.programAddress,
4039
4081
  accounts: {
4040
4082
  authority: getNextAccount(),
4083
+ satrushConfig: getNextAccount(),
4041
4084
  oneBtcVault: getNextAccount(),
4042
4085
  oneBtcVaultIteration: getNextAccount(),
4043
4086
  ticket: getNextAccount(),
4087
+ winner: getNextAccount(),
4044
4088
  btcMint: getNextAccount(),
4045
4089
  oneBtcVaultBtcAta: getNextAccount(),
4046
- authorityBtcAta: getNextAccount(),
4090
+ winnerBtcAta: getNextAccount(),
4047
4091
  tokenProgram: getNextAccount(),
4048
4092
  associatedTokenProgram: getNextAccount(),
4049
4093
  systemProgram: getNextAccount()
@@ -4679,7 +4723,8 @@ async function getCloseEpochEntryInstructionAsync(input, config) {
4679
4723
  value: input.epochVaultIteration ?? null,
4680
4724
  isWritable: false
4681
4725
  },
4682
- epochVaultEntry: { value: input.epochVaultEntry ?? null, isWritable: true }
4726
+ epochVaultEntry: { value: input.epochVaultEntry ?? null, isWritable: true },
4727
+ entryOwner: { value: input.entryOwner ?? null, isWritable: true }
4683
4728
  };
4684
4729
  const accounts = originalAccounts;
4685
4730
  if (!accounts.satrushConfig.value) {
@@ -4691,7 +4736,8 @@ async function getCloseEpochEntryInstructionAsync(input, config) {
4691
4736
  getAccountMeta("authority", accounts.authority),
4692
4737
  getAccountMeta("satrushConfig", accounts.satrushConfig),
4693
4738
  getAccountMeta("epochVaultIteration", accounts.epochVaultIteration),
4694
- getAccountMeta("epochVaultEntry", accounts.epochVaultEntry)
4739
+ getAccountMeta("epochVaultEntry", accounts.epochVaultEntry),
4740
+ getAccountMeta("entryOwner", accounts.entryOwner)
4695
4741
  ],
4696
4742
  data: getCloseEpochEntryInstructionDataEncoder().encode({}),
4697
4743
  programAddress
@@ -4706,7 +4752,8 @@ function getCloseEpochEntryInstruction(input, config) {
4706
4752
  value: input.epochVaultIteration ?? null,
4707
4753
  isWritable: false
4708
4754
  },
4709
- epochVaultEntry: { value: input.epochVaultEntry ?? null, isWritable: true }
4755
+ epochVaultEntry: { value: input.epochVaultEntry ?? null, isWritable: true },
4756
+ entryOwner: { value: input.entryOwner ?? null, isWritable: true }
4710
4757
  };
4711
4758
  const accounts = originalAccounts;
4712
4759
  const getAccountMeta = (0, import_program_client_core8.getAccountMetaFactory)(programAddress, "programId");
@@ -4715,19 +4762,20 @@ function getCloseEpochEntryInstruction(input, config) {
4715
4762
  getAccountMeta("authority", accounts.authority),
4716
4763
  getAccountMeta("satrushConfig", accounts.satrushConfig),
4717
4764
  getAccountMeta("epochVaultIteration", accounts.epochVaultIteration),
4718
- getAccountMeta("epochVaultEntry", accounts.epochVaultEntry)
4765
+ getAccountMeta("epochVaultEntry", accounts.epochVaultEntry),
4766
+ getAccountMeta("entryOwner", accounts.entryOwner)
4719
4767
  ],
4720
4768
  data: getCloseEpochEntryInstructionDataEncoder().encode({}),
4721
4769
  programAddress
4722
4770
  });
4723
4771
  }
4724
4772
  function parseCloseEpochEntryInstruction(instruction) {
4725
- if (instruction.accounts.length < 4) {
4773
+ if (instruction.accounts.length < 5) {
4726
4774
  throw new import_kit52.SolanaError(
4727
4775
  import_kit52.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
4728
4776
  {
4729
4777
  actualAccountMetas: instruction.accounts.length,
4730
- expectedAccountMetas: 4
4778
+ expectedAccountMetas: 5
4731
4779
  }
4732
4780
  );
4733
4781
  }
@@ -4743,7 +4791,8 @@ function parseCloseEpochEntryInstruction(instruction) {
4743
4791
  authority: getNextAccount(),
4744
4792
  satrushConfig: getNextAccount(),
4745
4793
  epochVaultIteration: getNextAccount(),
4746
- epochVaultEntry: getNextAccount()
4794
+ epochVaultEntry: getNextAccount(),
4795
+ entryOwner: getNextAccount()
4747
4796
  },
4748
4797
  data: getCloseEpochEntryInstructionDataDecoder().decode(instruction.data)
4749
4798
  };
@@ -5087,35 +5136,68 @@ function getCloseOneBtcTicketInstructionDataCodec() {
5087
5136
  getCloseOneBtcTicketInstructionDataDecoder()
5088
5137
  );
5089
5138
  }
5139
+ async function getCloseOneBtcTicketInstructionAsync(input, config) {
5140
+ const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
5141
+ const originalAccounts = {
5142
+ authority: { value: input.authority ?? null, isWritable: true },
5143
+ satrushConfig: { value: input.satrushConfig ?? null, isWritable: false },
5144
+ oneBtcVaultIteration: {
5145
+ value: input.oneBtcVaultIteration ?? null,
5146
+ isWritable: false
5147
+ },
5148
+ ticket: { value: input.ticket ?? null, isWritable: true },
5149
+ ticketOwner: { value: input.ticketOwner ?? null, isWritable: true }
5150
+ };
5151
+ const accounts = originalAccounts;
5152
+ if (!accounts.satrushConfig.value) {
5153
+ accounts.satrushConfig.value = await findSatrushConfigPda();
5154
+ }
5155
+ const getAccountMeta = (0, import_program_client_core12.getAccountMetaFactory)(programAddress, "programId");
5156
+ return Object.freeze({
5157
+ accounts: [
5158
+ getAccountMeta("authority", accounts.authority),
5159
+ getAccountMeta("satrushConfig", accounts.satrushConfig),
5160
+ getAccountMeta("oneBtcVaultIteration", accounts.oneBtcVaultIteration),
5161
+ getAccountMeta("ticket", accounts.ticket),
5162
+ getAccountMeta("ticketOwner", accounts.ticketOwner)
5163
+ ],
5164
+ data: getCloseOneBtcTicketInstructionDataEncoder().encode({}),
5165
+ programAddress
5166
+ });
5167
+ }
5090
5168
  function getCloseOneBtcTicketInstruction(input, config) {
5091
5169
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
5092
5170
  const originalAccounts = {
5093
5171
  authority: { value: input.authority ?? null, isWritable: true },
5172
+ satrushConfig: { value: input.satrushConfig ?? null, isWritable: false },
5094
5173
  oneBtcVaultIteration: {
5095
5174
  value: input.oneBtcVaultIteration ?? null,
5096
5175
  isWritable: false
5097
5176
  },
5098
- ticket: { value: input.ticket ?? null, isWritable: true }
5177
+ ticket: { value: input.ticket ?? null, isWritable: true },
5178
+ ticketOwner: { value: input.ticketOwner ?? null, isWritable: true }
5099
5179
  };
5100
5180
  const accounts = originalAccounts;
5101
5181
  const getAccountMeta = (0, import_program_client_core12.getAccountMetaFactory)(programAddress, "programId");
5102
5182
  return Object.freeze({
5103
5183
  accounts: [
5104
5184
  getAccountMeta("authority", accounts.authority),
5185
+ getAccountMeta("satrushConfig", accounts.satrushConfig),
5105
5186
  getAccountMeta("oneBtcVaultIteration", accounts.oneBtcVaultIteration),
5106
- getAccountMeta("ticket", accounts.ticket)
5187
+ getAccountMeta("ticket", accounts.ticket),
5188
+ getAccountMeta("ticketOwner", accounts.ticketOwner)
5107
5189
  ],
5108
5190
  data: getCloseOneBtcTicketInstructionDataEncoder().encode({}),
5109
5191
  programAddress
5110
5192
  });
5111
5193
  }
5112
5194
  function parseCloseOneBtcTicketInstruction(instruction) {
5113
- if (instruction.accounts.length < 3) {
5195
+ if (instruction.accounts.length < 5) {
5114
5196
  throw new import_kit56.SolanaError(
5115
5197
  import_kit56.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
5116
5198
  {
5117
5199
  actualAccountMetas: instruction.accounts.length,
5118
- expectedAccountMetas: 3
5200
+ expectedAccountMetas: 5
5119
5201
  }
5120
5202
  );
5121
5203
  }
@@ -5129,8 +5211,10 @@ function parseCloseOneBtcTicketInstruction(instruction) {
5129
5211
  programAddress: instruction.programAddress,
5130
5212
  accounts: {
5131
5213
  authority: getNextAccount(),
5214
+ satrushConfig: getNextAccount(),
5132
5215
  oneBtcVaultIteration: getNextAccount(),
5133
- ticket: getNextAccount()
5216
+ ticket: getNextAccount(),
5217
+ ticketOwner: getNextAccount()
5134
5218
  },
5135
5219
  data: getCloseOneBtcTicketInstructionDataDecoder().decode(instruction.data)
5136
5220
  };
@@ -7760,12 +7844,18 @@ async function getRotateRoundInstructionAsync(input, config) {
7760
7844
  currentRound: { value: input.currentRound ?? null, isWritable: true },
7761
7845
  nextRound: { value: input.nextRound ?? null, isWritable: true },
7762
7846
  usdMint: { value: input.usdMint ?? null, isWritable: false },
7847
+ btcMint: { value: input.btcMint ?? null, isWritable: false },
7763
7848
  boardUsdAta: { value: input.boardUsdAta ?? null, isWritable: true },
7849
+ boardBtcAta: { value: input.boardBtcAta ?? null, isWritable: true },
7764
7850
  epochVault: { value: input.epochVault ?? null, isWritable: true },
7765
7851
  epochVaultUsdAta: {
7766
7852
  value: input.epochVaultUsdAta ?? null,
7767
7853
  isWritable: true
7768
7854
  },
7855
+ epochVaultBtcAta: {
7856
+ value: input.epochVaultBtcAta ?? null,
7857
+ isWritable: true
7858
+ },
7769
7859
  oneBtcVault: { value: input.oneBtcVault ?? null, isWritable: true },
7770
7860
  oneBtcVaultUsdAta: {
7771
7861
  value: input.oneBtcVaultUsdAta ?? null,
@@ -7910,61 +8000,6 @@ async function getRotateRoundInstructionAsync(input, config) {
7910
8000
  if (!accounts.oneBtcVault.value) {
7911
8001
  accounts.oneBtcVault.value = await findOneBtcVaultPda();
7912
8002
  }
7913
- if (!accounts.oneBtcVaultUsdAta.value) {
7914
- accounts.oneBtcVaultUsdAta.value = await (0, import_kit67.getProgramDerivedAddress)({
7915
- programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
7916
- seeds: [
7917
- (0, import_kit67.getAddressEncoder)().encode(
7918
- (0, import_program_client_core23.getAddressFromResolvedInstructionAccount)(
7919
- "oneBtcVault",
7920
- accounts.oneBtcVault.value
7921
- )
7922
- ),
7923
- (0, import_kit67.getBytesEncoder)().encode(
7924
- new Uint8Array([
7925
- 6,
7926
- 221,
7927
- 246,
7928
- 225,
7929
- 215,
7930
- 101,
7931
- 161,
7932
- 147,
7933
- 217,
7934
- 203,
7935
- 225,
7936
- 70,
7937
- 206,
7938
- 235,
7939
- 121,
7940
- 172,
7941
- 28,
7942
- 180,
7943
- 133,
7944
- 237,
7945
- 95,
7946
- 91,
7947
- 55,
7948
- 145,
7949
- 58,
7950
- 140,
7951
- 245,
7952
- 133,
7953
- 126,
7954
- 255,
7955
- 0,
7956
- 169
7957
- ])
7958
- ),
7959
- (0, import_kit67.getAddressEncoder)().encode(
7960
- (0, import_program_client_core23.getAddressFromResolvedInstructionAccount)(
7961
- "usdMint",
7962
- accounts.usdMint.value
7963
- )
7964
- )
7965
- ]
7966
- });
7967
- }
7968
8003
  if (!accounts.treasuryUsdAta.value) {
7969
8004
  accounts.treasuryUsdAta.value = await (0, import_kit67.getProgramDerivedAddress)({
7970
8005
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
@@ -8038,9 +8073,12 @@ async function getRotateRoundInstructionAsync(input, config) {
8038
8073
  getAccountMeta("currentRound", accounts.currentRound),
8039
8074
  getAccountMeta("nextRound", accounts.nextRound),
8040
8075
  getAccountMeta("usdMint", accounts.usdMint),
8076
+ getAccountMeta("btcMint", accounts.btcMint),
8041
8077
  getAccountMeta("boardUsdAta", accounts.boardUsdAta),
8078
+ getAccountMeta("boardBtcAta", accounts.boardBtcAta),
8042
8079
  getAccountMeta("epochVault", accounts.epochVault),
8043
8080
  getAccountMeta("epochVaultUsdAta", accounts.epochVaultUsdAta),
8081
+ getAccountMeta("epochVaultBtcAta", accounts.epochVaultBtcAta),
8044
8082
  getAccountMeta("oneBtcVault", accounts.oneBtcVault),
8045
8083
  getAccountMeta("oneBtcVaultUsdAta", accounts.oneBtcVaultUsdAta),
8046
8084
  getAccountMeta("treasury", accounts.treasury),
@@ -8064,12 +8102,18 @@ function getRotateRoundInstruction(input, config) {
8064
8102
  currentRound: { value: input.currentRound ?? null, isWritable: true },
8065
8103
  nextRound: { value: input.nextRound ?? null, isWritable: true },
8066
8104
  usdMint: { value: input.usdMint ?? null, isWritable: false },
8105
+ btcMint: { value: input.btcMint ?? null, isWritable: false },
8067
8106
  boardUsdAta: { value: input.boardUsdAta ?? null, isWritable: true },
8107
+ boardBtcAta: { value: input.boardBtcAta ?? null, isWritable: true },
8068
8108
  epochVault: { value: input.epochVault ?? null, isWritable: true },
8069
8109
  epochVaultUsdAta: {
8070
8110
  value: input.epochVaultUsdAta ?? null,
8071
8111
  isWritable: true
8072
8112
  },
8113
+ epochVaultBtcAta: {
8114
+ value: input.epochVaultBtcAta ?? null,
8115
+ isWritable: true
8116
+ },
8073
8117
  oneBtcVault: { value: input.oneBtcVault ?? null, isWritable: true },
8074
8118
  oneBtcVaultUsdAta: {
8075
8119
  value: input.oneBtcVaultUsdAta ?? null,
@@ -8102,9 +8146,12 @@ function getRotateRoundInstruction(input, config) {
8102
8146
  getAccountMeta("currentRound", accounts.currentRound),
8103
8147
  getAccountMeta("nextRound", accounts.nextRound),
8104
8148
  getAccountMeta("usdMint", accounts.usdMint),
8149
+ getAccountMeta("btcMint", accounts.btcMint),
8105
8150
  getAccountMeta("boardUsdAta", accounts.boardUsdAta),
8151
+ getAccountMeta("boardBtcAta", accounts.boardBtcAta),
8106
8152
  getAccountMeta("epochVault", accounts.epochVault),
8107
8153
  getAccountMeta("epochVaultUsdAta", accounts.epochVaultUsdAta),
8154
+ getAccountMeta("epochVaultBtcAta", accounts.epochVaultBtcAta),
8108
8155
  getAccountMeta("oneBtcVault", accounts.oneBtcVault),
8109
8156
  getAccountMeta("oneBtcVaultUsdAta", accounts.oneBtcVaultUsdAta),
8110
8157
  getAccountMeta("treasury", accounts.treasury),
@@ -8120,12 +8167,12 @@ function getRotateRoundInstruction(input, config) {
8120
8167
  });
8121
8168
  }
8122
8169
  function parseRotateRoundInstruction(instruction) {
8123
- if (instruction.accounts.length < 18) {
8170
+ if (instruction.accounts.length < 21) {
8124
8171
  throw new import_kit67.SolanaError(
8125
8172
  import_kit67.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
8126
8173
  {
8127
8174
  actualAccountMetas: instruction.accounts.length,
8128
- expectedAccountMetas: 18
8175
+ expectedAccountMetas: 21
8129
8176
  }
8130
8177
  );
8131
8178
  }
@@ -8144,9 +8191,12 @@ function parseRotateRoundInstruction(instruction) {
8144
8191
  currentRound: getNextAccount(),
8145
8192
  nextRound: getNextAccount(),
8146
8193
  usdMint: getNextAccount(),
8194
+ btcMint: getNextAccount(),
8147
8195
  boardUsdAta: getNextAccount(),
8196
+ boardBtcAta: getNextAccount(),
8148
8197
  epochVault: getNextAccount(),
8149
8198
  epochVaultUsdAta: getNextAccount(),
8199
+ epochVaultBtcAta: getNextAccount(),
8150
8200
  oneBtcVault: getNextAccount(),
8151
8201
  oneBtcVaultUsdAta: getNextAccount(),
8152
8202
  treasury: getNextAccount(),
@@ -10527,20 +10577,122 @@ function parseUpdateBoardRoundDurationInstruction(instruction) {
10527
10577
  };
10528
10578
  }
10529
10579
 
10530
- // src/generated/instructions/updateDeploymentSettleGraceDuration.ts
10580
+ // src/generated/instructions/updateDeployFees.ts
10531
10581
  var import_kit79 = require("@solana/kit");
10532
10582
  var import_program_client_core35 = require("@solana/program-client-core");
10533
- var UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR = new Uint8Array([2, 212, 246, 89, 139, 64, 104, 74]);
10534
- function getUpdateDeploymentSettleGraceDurationDiscriminatorBytes() {
10583
+ var UPDATE_DEPLOY_FEES_DISCRIMINATOR = new Uint8Array([0, 170, 26, 215, 156, 171, 22, 68]);
10584
+ function getUpdateDeployFeesDiscriminatorBytes() {
10535
10585
  return (0, import_kit79.fixEncoderSize)((0, import_kit79.getBytesEncoder)(), 8).encode(
10536
- UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR
10586
+ UPDATE_DEPLOY_FEES_DISCRIMINATOR
10537
10587
  );
10538
10588
  }
10539
- function getUpdateDeploymentSettleGraceDurationInstructionDataEncoder() {
10589
+ function getUpdateDeployFeesInstructionDataEncoder() {
10540
10590
  return (0, import_kit79.transformEncoder)(
10541
10591
  (0, import_kit79.getStructEncoder)([
10542
10592
  ["discriminator", (0, import_kit79.fixEncoderSize)((0, import_kit79.getBytesEncoder)(), 8)],
10543
- ["newGraceDuration", (0, import_kit79.getU64Encoder)()]
10593
+ ["newStrikeFeeBps", (0, import_kit79.getU32Encoder)()],
10594
+ ["newEpochFeeBps", (0, import_kit79.getU32Encoder)()],
10595
+ ["newOneBtcFeeBps", (0, import_kit79.getU32Encoder)()],
10596
+ ["newProtocolFeeBps", (0, import_kit79.getU32Encoder)()]
10597
+ ]),
10598
+ (value) => ({ ...value, discriminator: UPDATE_DEPLOY_FEES_DISCRIMINATOR })
10599
+ );
10600
+ }
10601
+ function getUpdateDeployFeesInstructionDataDecoder() {
10602
+ return (0, import_kit79.getStructDecoder)([
10603
+ ["discriminator", (0, import_kit79.fixDecoderSize)((0, import_kit79.getBytesDecoder)(), 8)],
10604
+ ["newStrikeFeeBps", (0, import_kit79.getU32Decoder)()],
10605
+ ["newEpochFeeBps", (0, import_kit79.getU32Decoder)()],
10606
+ ["newOneBtcFeeBps", (0, import_kit79.getU32Decoder)()],
10607
+ ["newProtocolFeeBps", (0, import_kit79.getU32Decoder)()]
10608
+ ]);
10609
+ }
10610
+ function getUpdateDeployFeesInstructionDataCodec() {
10611
+ return (0, import_kit79.combineCodec)(
10612
+ getUpdateDeployFeesInstructionDataEncoder(),
10613
+ getUpdateDeployFeesInstructionDataDecoder()
10614
+ );
10615
+ }
10616
+ async function getUpdateDeployFeesInstructionAsync(input, config) {
10617
+ const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
10618
+ const originalAccounts = {
10619
+ authority: { value: input.authority ?? null, isWritable: false },
10620
+ satrushConfig: { value: input.satrushConfig ?? null, isWritable: true }
10621
+ };
10622
+ const accounts = originalAccounts;
10623
+ const args = { ...input };
10624
+ if (!accounts.satrushConfig.value) {
10625
+ accounts.satrushConfig.value = await findSatrushConfigPda();
10626
+ }
10627
+ const getAccountMeta = (0, import_program_client_core35.getAccountMetaFactory)(programAddress, "programId");
10628
+ return Object.freeze({
10629
+ accounts: [
10630
+ getAccountMeta("authority", accounts.authority),
10631
+ getAccountMeta("satrushConfig", accounts.satrushConfig)
10632
+ ],
10633
+ data: getUpdateDeployFeesInstructionDataEncoder().encode(
10634
+ args
10635
+ ),
10636
+ programAddress
10637
+ });
10638
+ }
10639
+ function getUpdateDeployFeesInstruction(input, config) {
10640
+ const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
10641
+ const originalAccounts = {
10642
+ authority: { value: input.authority ?? null, isWritable: false },
10643
+ satrushConfig: { value: input.satrushConfig ?? null, isWritable: true }
10644
+ };
10645
+ const accounts = originalAccounts;
10646
+ const args = { ...input };
10647
+ const getAccountMeta = (0, import_program_client_core35.getAccountMetaFactory)(programAddress, "programId");
10648
+ return Object.freeze({
10649
+ accounts: [
10650
+ getAccountMeta("authority", accounts.authority),
10651
+ getAccountMeta("satrushConfig", accounts.satrushConfig)
10652
+ ],
10653
+ data: getUpdateDeployFeesInstructionDataEncoder().encode(
10654
+ args
10655
+ ),
10656
+ programAddress
10657
+ });
10658
+ }
10659
+ function parseUpdateDeployFeesInstruction(instruction) {
10660
+ if (instruction.accounts.length < 2) {
10661
+ throw new import_kit79.SolanaError(
10662
+ import_kit79.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
10663
+ {
10664
+ actualAccountMetas: instruction.accounts.length,
10665
+ expectedAccountMetas: 2
10666
+ }
10667
+ );
10668
+ }
10669
+ let accountIndex = 0;
10670
+ const getNextAccount = () => {
10671
+ const accountMeta = instruction.accounts[accountIndex];
10672
+ accountIndex += 1;
10673
+ return accountMeta;
10674
+ };
10675
+ return {
10676
+ programAddress: instruction.programAddress,
10677
+ accounts: { authority: getNextAccount(), satrushConfig: getNextAccount() },
10678
+ data: getUpdateDeployFeesInstructionDataDecoder().decode(instruction.data)
10679
+ };
10680
+ }
10681
+
10682
+ // src/generated/instructions/updateDeploymentSettleGraceDuration.ts
10683
+ var import_kit80 = require("@solana/kit");
10684
+ var import_program_client_core36 = require("@solana/program-client-core");
10685
+ var UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR = new Uint8Array([2, 212, 246, 89, 139, 64, 104, 74]);
10686
+ function getUpdateDeploymentSettleGraceDurationDiscriminatorBytes() {
10687
+ return (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8).encode(
10688
+ UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR
10689
+ );
10690
+ }
10691
+ function getUpdateDeploymentSettleGraceDurationInstructionDataEncoder() {
10692
+ return (0, import_kit80.transformEncoder)(
10693
+ (0, import_kit80.getStructEncoder)([
10694
+ ["discriminator", (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8)],
10695
+ ["newGraceDuration", (0, import_kit80.getU64Encoder)()]
10544
10696
  ]),
10545
10697
  (value) => ({
10546
10698
  ...value,
@@ -10549,13 +10701,13 @@ function getUpdateDeploymentSettleGraceDurationInstructionDataEncoder() {
10549
10701
  );
10550
10702
  }
10551
10703
  function getUpdateDeploymentSettleGraceDurationInstructionDataDecoder() {
10552
- return (0, import_kit79.getStructDecoder)([
10553
- ["discriminator", (0, import_kit79.fixDecoderSize)((0, import_kit79.getBytesDecoder)(), 8)],
10554
- ["newGraceDuration", (0, import_kit79.getU64Decoder)()]
10704
+ return (0, import_kit80.getStructDecoder)([
10705
+ ["discriminator", (0, import_kit80.fixDecoderSize)((0, import_kit80.getBytesDecoder)(), 8)],
10706
+ ["newGraceDuration", (0, import_kit80.getU64Decoder)()]
10555
10707
  ]);
10556
10708
  }
10557
10709
  function getUpdateDeploymentSettleGraceDurationInstructionDataCodec() {
10558
- return (0, import_kit79.combineCodec)(
10710
+ return (0, import_kit80.combineCodec)(
10559
10711
  getUpdateDeploymentSettleGraceDurationInstructionDataEncoder(),
10560
10712
  getUpdateDeploymentSettleGraceDurationInstructionDataDecoder()
10561
10713
  );
@@ -10571,7 +10723,7 @@ async function getUpdateDeploymentSettleGraceDurationInstructionAsync(input, con
10571
10723
  if (!accounts.satrushConfig.value) {
10572
10724
  accounts.satrushConfig.value = await findSatrushConfigPda();
10573
10725
  }
10574
- const getAccountMeta = (0, import_program_client_core35.getAccountMetaFactory)(programAddress, "programId");
10726
+ const getAccountMeta = (0, import_program_client_core36.getAccountMetaFactory)(programAddress, "programId");
10575
10727
  return Object.freeze({
10576
10728
  accounts: [
10577
10729
  getAccountMeta("authority", accounts.authority),
@@ -10591,7 +10743,7 @@ function getUpdateDeploymentSettleGraceDurationInstruction(input, config) {
10591
10743
  };
10592
10744
  const accounts = originalAccounts;
10593
10745
  const args = { ...input };
10594
- const getAccountMeta = (0, import_program_client_core35.getAccountMetaFactory)(programAddress, "programId");
10746
+ const getAccountMeta = (0, import_program_client_core36.getAccountMetaFactory)(programAddress, "programId");
10595
10747
  return Object.freeze({
10596
10748
  accounts: [
10597
10749
  getAccountMeta("authority", accounts.authority),
@@ -10605,8 +10757,8 @@ function getUpdateDeploymentSettleGraceDurationInstruction(input, config) {
10605
10757
  }
10606
10758
  function parseUpdateDeploymentSettleGraceDurationInstruction(instruction) {
10607
10759
  if (instruction.accounts.length < 2) {
10608
- throw new import_kit79.SolanaError(
10609
- import_kit79.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
10760
+ throw new import_kit80.SolanaError(
10761
+ import_kit80.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
10610
10762
  {
10611
10763
  actualAccountMetas: instruction.accounts.length,
10612
10764
  expectedAccountMetas: 2
@@ -10629,19 +10781,19 @@ function parseUpdateDeploymentSettleGraceDurationInstruction(instruction) {
10629
10781
  }
10630
10782
 
10631
10783
  // src/generated/instructions/updateEpochVaultIterationDuration.ts
10632
- var import_kit80 = require("@solana/kit");
10633
- var import_program_client_core36 = require("@solana/program-client-core");
10784
+ var import_kit81 = require("@solana/kit");
10785
+ var import_program_client_core37 = require("@solana/program-client-core");
10634
10786
  var UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR = new Uint8Array([171, 103, 59, 229, 174, 188, 210, 121]);
10635
10787
  function getUpdateEpochVaultIterationDurationDiscriminatorBytes() {
10636
- return (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8).encode(
10788
+ return (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8).encode(
10637
10789
  UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR
10638
10790
  );
10639
10791
  }
10640
10792
  function getUpdateEpochVaultIterationDurationInstructionDataEncoder() {
10641
- return (0, import_kit80.transformEncoder)(
10642
- (0, import_kit80.getStructEncoder)([
10643
- ["discriminator", (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8)],
10644
- ["newIterationDuration", (0, import_kit80.getU64Encoder)()]
10793
+ return (0, import_kit81.transformEncoder)(
10794
+ (0, import_kit81.getStructEncoder)([
10795
+ ["discriminator", (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8)],
10796
+ ["newIterationDuration", (0, import_kit81.getU64Encoder)()]
10645
10797
  ]),
10646
10798
  (value) => ({
10647
10799
  ...value,
@@ -10650,13 +10802,13 @@ function getUpdateEpochVaultIterationDurationInstructionDataEncoder() {
10650
10802
  );
10651
10803
  }
10652
10804
  function getUpdateEpochVaultIterationDurationInstructionDataDecoder() {
10653
- return (0, import_kit80.getStructDecoder)([
10654
- ["discriminator", (0, import_kit80.fixDecoderSize)((0, import_kit80.getBytesDecoder)(), 8)],
10655
- ["newIterationDuration", (0, import_kit80.getU64Decoder)()]
10805
+ return (0, import_kit81.getStructDecoder)([
10806
+ ["discriminator", (0, import_kit81.fixDecoderSize)((0, import_kit81.getBytesDecoder)(), 8)],
10807
+ ["newIterationDuration", (0, import_kit81.getU64Decoder)()]
10656
10808
  ]);
10657
10809
  }
10658
10810
  function getUpdateEpochVaultIterationDurationInstructionDataCodec() {
10659
- return (0, import_kit80.combineCodec)(
10811
+ return (0, import_kit81.combineCodec)(
10660
10812
  getUpdateEpochVaultIterationDurationInstructionDataEncoder(),
10661
10813
  getUpdateEpochVaultIterationDurationInstructionDataDecoder()
10662
10814
  );
@@ -10672,7 +10824,7 @@ async function getUpdateEpochVaultIterationDurationInstructionAsync(input, confi
10672
10824
  if (!accounts.satrushConfig.value) {
10673
10825
  accounts.satrushConfig.value = await findSatrushConfigPda();
10674
10826
  }
10675
- const getAccountMeta = (0, import_program_client_core36.getAccountMetaFactory)(programAddress, "programId");
10827
+ const getAccountMeta = (0, import_program_client_core37.getAccountMetaFactory)(programAddress, "programId");
10676
10828
  return Object.freeze({
10677
10829
  accounts: [
10678
10830
  getAccountMeta("authority", accounts.authority),
@@ -10692,7 +10844,7 @@ function getUpdateEpochVaultIterationDurationInstruction(input, config) {
10692
10844
  };
10693
10845
  const accounts = originalAccounts;
10694
10846
  const args = { ...input };
10695
- const getAccountMeta = (0, import_program_client_core36.getAccountMetaFactory)(programAddress, "programId");
10847
+ const getAccountMeta = (0, import_program_client_core37.getAccountMetaFactory)(programAddress, "programId");
10696
10848
  return Object.freeze({
10697
10849
  accounts: [
10698
10850
  getAccountMeta("authority", accounts.authority),
@@ -10706,8 +10858,8 @@ function getUpdateEpochVaultIterationDurationInstruction(input, config) {
10706
10858
  }
10707
10859
  function parseUpdateEpochVaultIterationDurationInstruction(instruction) {
10708
10860
  if (instruction.accounts.length < 2) {
10709
- throw new import_kit80.SolanaError(
10710
- import_kit80.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
10861
+ throw new import_kit81.SolanaError(
10862
+ import_kit81.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
10711
10863
  {
10712
10864
  actualAccountMetas: instruction.accounts.length,
10713
10865
  expectedAccountMetas: 2
@@ -10730,19 +10882,19 @@ function parseUpdateEpochVaultIterationDurationInstruction(instruction) {
10730
10882
  }
10731
10883
 
10732
10884
  // src/generated/instructions/updateMinDeployUsdAmount.ts
10733
- var import_kit81 = require("@solana/kit");
10734
- var import_program_client_core37 = require("@solana/program-client-core");
10885
+ var import_kit82 = require("@solana/kit");
10886
+ var import_program_client_core38 = require("@solana/program-client-core");
10735
10887
  var UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR = new Uint8Array([187, 108, 89, 178, 249, 101, 187, 33]);
10736
10888
  function getUpdateMinDeployUsdAmountDiscriminatorBytes() {
10737
- return (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8).encode(
10889
+ return (0, import_kit82.fixEncoderSize)((0, import_kit82.getBytesEncoder)(), 8).encode(
10738
10890
  UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR
10739
10891
  );
10740
10892
  }
10741
10893
  function getUpdateMinDeployUsdAmountInstructionDataEncoder() {
10742
- return (0, import_kit81.transformEncoder)(
10743
- (0, import_kit81.getStructEncoder)([
10744
- ["discriminator", (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8)],
10745
- ["newMinDeployUsdAmount", (0, import_kit81.getU64Encoder)()]
10894
+ return (0, import_kit82.transformEncoder)(
10895
+ (0, import_kit82.getStructEncoder)([
10896
+ ["discriminator", (0, import_kit82.fixEncoderSize)((0, import_kit82.getBytesEncoder)(), 8)],
10897
+ ["newMinDeployUsdAmount", (0, import_kit82.getU64Encoder)()]
10746
10898
  ]),
10747
10899
  (value) => ({
10748
10900
  ...value,
@@ -10751,13 +10903,13 @@ function getUpdateMinDeployUsdAmountInstructionDataEncoder() {
10751
10903
  );
10752
10904
  }
10753
10905
  function getUpdateMinDeployUsdAmountInstructionDataDecoder() {
10754
- return (0, import_kit81.getStructDecoder)([
10755
- ["discriminator", (0, import_kit81.fixDecoderSize)((0, import_kit81.getBytesDecoder)(), 8)],
10756
- ["newMinDeployUsdAmount", (0, import_kit81.getU64Decoder)()]
10906
+ return (0, import_kit82.getStructDecoder)([
10907
+ ["discriminator", (0, import_kit82.fixDecoderSize)((0, import_kit82.getBytesDecoder)(), 8)],
10908
+ ["newMinDeployUsdAmount", (0, import_kit82.getU64Decoder)()]
10757
10909
  ]);
10758
10910
  }
10759
10911
  function getUpdateMinDeployUsdAmountInstructionDataCodec() {
10760
- return (0, import_kit81.combineCodec)(
10912
+ return (0, import_kit82.combineCodec)(
10761
10913
  getUpdateMinDeployUsdAmountInstructionDataEncoder(),
10762
10914
  getUpdateMinDeployUsdAmountInstructionDataDecoder()
10763
10915
  );
@@ -10773,7 +10925,7 @@ async function getUpdateMinDeployUsdAmountInstructionAsync(input, config) {
10773
10925
  if (!accounts.satrushConfig.value) {
10774
10926
  accounts.satrushConfig.value = await findSatrushConfigPda();
10775
10927
  }
10776
- const getAccountMeta = (0, import_program_client_core37.getAccountMetaFactory)(programAddress, "programId");
10928
+ const getAccountMeta = (0, import_program_client_core38.getAccountMetaFactory)(programAddress, "programId");
10777
10929
  return Object.freeze({
10778
10930
  accounts: [
10779
10931
  getAccountMeta("authority", accounts.authority),
@@ -10793,7 +10945,7 @@ function getUpdateMinDeployUsdAmountInstruction(input, config) {
10793
10945
  };
10794
10946
  const accounts = originalAccounts;
10795
10947
  const args = { ...input };
10796
- const getAccountMeta = (0, import_program_client_core37.getAccountMetaFactory)(programAddress, "programId");
10948
+ const getAccountMeta = (0, import_program_client_core38.getAccountMetaFactory)(programAddress, "programId");
10797
10949
  return Object.freeze({
10798
10950
  accounts: [
10799
10951
  getAccountMeta("authority", accounts.authority),
@@ -10807,8 +10959,8 @@ function getUpdateMinDeployUsdAmountInstruction(input, config) {
10807
10959
  }
10808
10960
  function parseUpdateMinDeployUsdAmountInstruction(instruction) {
10809
10961
  if (instruction.accounts.length < 2) {
10810
- throw new import_kit81.SolanaError(
10811
- import_kit81.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
10962
+ throw new import_kit82.SolanaError(
10963
+ import_kit82.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
10812
10964
  {
10813
10965
  actualAccountMetas: instruction.accounts.length,
10814
10966
  expectedAccountMetas: 2
@@ -10831,19 +10983,19 @@ function parseUpdateMinDeployUsdAmountInstruction(instruction) {
10831
10983
  }
10832
10984
 
10833
10985
  // src/generated/instructions/updateStrikeTriggerModulus.ts
10834
- var import_kit82 = require("@solana/kit");
10835
- var import_program_client_core38 = require("@solana/program-client-core");
10986
+ var import_kit83 = require("@solana/kit");
10987
+ var import_program_client_core39 = require("@solana/program-client-core");
10836
10988
  var UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR = new Uint8Array([241, 172, 229, 62, 191, 163, 60, 186]);
10837
10989
  function getUpdateStrikeTriggerModulusDiscriminatorBytes() {
10838
- return (0, import_kit82.fixEncoderSize)((0, import_kit82.getBytesEncoder)(), 8).encode(
10990
+ return (0, import_kit83.fixEncoderSize)((0, import_kit83.getBytesEncoder)(), 8).encode(
10839
10991
  UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR
10840
10992
  );
10841
10993
  }
10842
10994
  function getUpdateStrikeTriggerModulusInstructionDataEncoder() {
10843
- return (0, import_kit82.transformEncoder)(
10844
- (0, import_kit82.getStructEncoder)([
10845
- ["discriminator", (0, import_kit82.fixEncoderSize)((0, import_kit82.getBytesEncoder)(), 8)],
10846
- ["newModulus", (0, import_kit82.getU16Encoder)()]
10995
+ return (0, import_kit83.transformEncoder)(
10996
+ (0, import_kit83.getStructEncoder)([
10997
+ ["discriminator", (0, import_kit83.fixEncoderSize)((0, import_kit83.getBytesEncoder)(), 8)],
10998
+ ["newModulus", (0, import_kit83.getU16Encoder)()]
10847
10999
  ]),
10848
11000
  (value) => ({
10849
11001
  ...value,
@@ -10852,13 +11004,13 @@ function getUpdateStrikeTriggerModulusInstructionDataEncoder() {
10852
11004
  );
10853
11005
  }
10854
11006
  function getUpdateStrikeTriggerModulusInstructionDataDecoder() {
10855
- return (0, import_kit82.getStructDecoder)([
10856
- ["discriminator", (0, import_kit82.fixDecoderSize)((0, import_kit82.getBytesDecoder)(), 8)],
10857
- ["newModulus", (0, import_kit82.getU16Decoder)()]
11007
+ return (0, import_kit83.getStructDecoder)([
11008
+ ["discriminator", (0, import_kit83.fixDecoderSize)((0, import_kit83.getBytesDecoder)(), 8)],
11009
+ ["newModulus", (0, import_kit83.getU16Decoder)()]
10858
11010
  ]);
10859
11011
  }
10860
11012
  function getUpdateStrikeTriggerModulusInstructionDataCodec() {
10861
- return (0, import_kit82.combineCodec)(
11013
+ return (0, import_kit83.combineCodec)(
10862
11014
  getUpdateStrikeTriggerModulusInstructionDataEncoder(),
10863
11015
  getUpdateStrikeTriggerModulusInstructionDataDecoder()
10864
11016
  );
@@ -10874,7 +11026,7 @@ async function getUpdateStrikeTriggerModulusInstructionAsync(input, config) {
10874
11026
  if (!accounts.satrushConfig.value) {
10875
11027
  accounts.satrushConfig.value = await findSatrushConfigPda();
10876
11028
  }
10877
- const getAccountMeta = (0, import_program_client_core38.getAccountMetaFactory)(programAddress, "programId");
11029
+ const getAccountMeta = (0, import_program_client_core39.getAccountMetaFactory)(programAddress, "programId");
10878
11030
  return Object.freeze({
10879
11031
  accounts: [
10880
11032
  getAccountMeta("authority", accounts.authority),
@@ -10894,7 +11046,7 @@ function getUpdateStrikeTriggerModulusInstruction(input, config) {
10894
11046
  };
10895
11047
  const accounts = originalAccounts;
10896
11048
  const args = { ...input };
10897
- const getAccountMeta = (0, import_program_client_core38.getAccountMetaFactory)(programAddress, "programId");
11049
+ const getAccountMeta = (0, import_program_client_core39.getAccountMetaFactory)(programAddress, "programId");
10898
11050
  return Object.freeze({
10899
11051
  accounts: [
10900
11052
  getAccountMeta("authority", accounts.authority),
@@ -10908,8 +11060,8 @@ function getUpdateStrikeTriggerModulusInstruction(input, config) {
10908
11060
  }
10909
11061
  function parseUpdateStrikeTriggerModulusInstruction(instruction) {
10910
11062
  if (instruction.accounts.length < 2) {
10911
- throw new import_kit82.SolanaError(
10912
- import_kit82.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
11063
+ throw new import_kit83.SolanaError(
11064
+ import_kit83.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
10913
11065
  {
10914
11066
  actualAccountMetas: instruction.accounts.length,
10915
11067
  expectedAccountMetas: 2
@@ -10932,19 +11084,19 @@ function parseUpdateStrikeTriggerModulusInstruction(instruction) {
10932
11084
  }
10933
11085
 
10934
11086
  // src/generated/instructions/updateUnclaimedHashrateBps.ts
10935
- var import_kit83 = require("@solana/kit");
10936
- var import_program_client_core39 = require("@solana/program-client-core");
11087
+ var import_kit84 = require("@solana/kit");
11088
+ var import_program_client_core40 = require("@solana/program-client-core");
10937
11089
  var UPDATE_UNCLAIMED_HASHRATE_BPS_DISCRIMINATOR = new Uint8Array([237, 38, 26, 14, 73, 161, 208, 157]);
10938
11090
  function getUpdateUnclaimedHashrateBpsDiscriminatorBytes() {
10939
- return (0, import_kit83.fixEncoderSize)((0, import_kit83.getBytesEncoder)(), 8).encode(
11091
+ return (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8).encode(
10940
11092
  UPDATE_UNCLAIMED_HASHRATE_BPS_DISCRIMINATOR
10941
11093
  );
10942
11094
  }
10943
11095
  function getUpdateUnclaimedHashrateBpsInstructionDataEncoder() {
10944
- return (0, import_kit83.transformEncoder)(
10945
- (0, import_kit83.getStructEncoder)([
10946
- ["discriminator", (0, import_kit83.fixEncoderSize)((0, import_kit83.getBytesEncoder)(), 8)],
10947
- ["newUnclaimedHashrateBps", (0, import_kit83.getU32Encoder)()]
11096
+ return (0, import_kit84.transformEncoder)(
11097
+ (0, import_kit84.getStructEncoder)([
11098
+ ["discriminator", (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8)],
11099
+ ["newUnclaimedHashrateBps", (0, import_kit84.getU32Encoder)()]
10948
11100
  ]),
10949
11101
  (value) => ({
10950
11102
  ...value,
@@ -10953,13 +11105,13 @@ function getUpdateUnclaimedHashrateBpsInstructionDataEncoder() {
10953
11105
  );
10954
11106
  }
10955
11107
  function getUpdateUnclaimedHashrateBpsInstructionDataDecoder() {
10956
- return (0, import_kit83.getStructDecoder)([
10957
- ["discriminator", (0, import_kit83.fixDecoderSize)((0, import_kit83.getBytesDecoder)(), 8)],
10958
- ["newUnclaimedHashrateBps", (0, import_kit83.getU32Decoder)()]
11108
+ return (0, import_kit84.getStructDecoder)([
11109
+ ["discriminator", (0, import_kit84.fixDecoderSize)((0, import_kit84.getBytesDecoder)(), 8)],
11110
+ ["newUnclaimedHashrateBps", (0, import_kit84.getU32Decoder)()]
10959
11111
  ]);
10960
11112
  }
10961
11113
  function getUpdateUnclaimedHashrateBpsInstructionDataCodec() {
10962
- return (0, import_kit83.combineCodec)(
11114
+ return (0, import_kit84.combineCodec)(
10963
11115
  getUpdateUnclaimedHashrateBpsInstructionDataEncoder(),
10964
11116
  getUpdateUnclaimedHashrateBpsInstructionDataDecoder()
10965
11117
  );
@@ -10975,7 +11127,7 @@ async function getUpdateUnclaimedHashrateBpsInstructionAsync(input, config) {
10975
11127
  if (!accounts.satrushConfig.value) {
10976
11128
  accounts.satrushConfig.value = await findSatrushConfigPda();
10977
11129
  }
10978
- const getAccountMeta = (0, import_program_client_core39.getAccountMetaFactory)(programAddress, "programId");
11130
+ const getAccountMeta = (0, import_program_client_core40.getAccountMetaFactory)(programAddress, "programId");
10979
11131
  return Object.freeze({
10980
11132
  accounts: [
10981
11133
  getAccountMeta("authority", accounts.authority),
@@ -10995,7 +11147,7 @@ function getUpdateUnclaimedHashrateBpsInstruction(input, config) {
10995
11147
  };
10996
11148
  const accounts = originalAccounts;
10997
11149
  const args = { ...input };
10998
- const getAccountMeta = (0, import_program_client_core39.getAccountMetaFactory)(programAddress, "programId");
11150
+ const getAccountMeta = (0, import_program_client_core40.getAccountMetaFactory)(programAddress, "programId");
10999
11151
  return Object.freeze({
11000
11152
  accounts: [
11001
11153
  getAccountMeta("authority", accounts.authority),
@@ -11009,8 +11161,8 @@ function getUpdateUnclaimedHashrateBpsInstruction(input, config) {
11009
11161
  }
11010
11162
  function parseUpdateUnclaimedHashrateBpsInstruction(instruction) {
11011
11163
  if (instruction.accounts.length < 2) {
11012
- throw new import_kit83.SolanaError(
11013
- import_kit83.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
11164
+ throw new import_kit84.SolanaError(
11165
+ import_kit84.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
11014
11166
  {
11015
11167
  actualAccountMetas: instruction.accounts.length,
11016
11168
  expectedAccountMetas: 2
@@ -11033,27 +11185,27 @@ function parseUpdateUnclaimedHashrateBpsInstruction(instruction) {
11033
11185
  }
11034
11186
 
11035
11187
  // src/generated/instructions/withdrawProtocolFees.ts
11036
- var import_kit84 = require("@solana/kit");
11037
- var import_program_client_core40 = require("@solana/program-client-core");
11188
+ var import_kit85 = require("@solana/kit");
11189
+ var import_program_client_core41 = require("@solana/program-client-core");
11038
11190
  var WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR = new Uint8Array([11, 68, 165, 98, 18, 208, 134, 73]);
11039
11191
  function getWithdrawProtocolFeesDiscriminatorBytes() {
11040
- return (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8).encode(
11192
+ return (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11041
11193
  WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR
11042
11194
  );
11043
11195
  }
11044
11196
  function getWithdrawProtocolFeesInstructionDataEncoder() {
11045
- return (0, import_kit84.transformEncoder)(
11046
- (0, import_kit84.getStructEncoder)([["discriminator", (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8)]]),
11197
+ return (0, import_kit85.transformEncoder)(
11198
+ (0, import_kit85.getStructEncoder)([["discriminator", (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8)]]),
11047
11199
  (value) => ({ ...value, discriminator: WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR })
11048
11200
  );
11049
11201
  }
11050
11202
  function getWithdrawProtocolFeesInstructionDataDecoder() {
11051
- return (0, import_kit84.getStructDecoder)([
11052
- ["discriminator", (0, import_kit84.fixDecoderSize)((0, import_kit84.getBytesDecoder)(), 8)]
11203
+ return (0, import_kit85.getStructDecoder)([
11204
+ ["discriminator", (0, import_kit85.fixDecoderSize)((0, import_kit85.getBytesDecoder)(), 8)]
11053
11205
  ]);
11054
11206
  }
11055
11207
  function getWithdrawProtocolFeesInstructionDataCodec() {
11056
- return (0, import_kit84.combineCodec)(
11208
+ return (0, import_kit85.combineCodec)(
11057
11209
  getWithdrawProtocolFeesInstructionDataEncoder(),
11058
11210
  getWithdrawProtocolFeesInstructionDataDecoder()
11059
11211
  );
@@ -11092,16 +11244,16 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11092
11244
  accounts.treasury.value = await findTreasuryPda();
11093
11245
  }
11094
11246
  if (!accounts.treasuryUsdAta.value) {
11095
- accounts.treasuryUsdAta.value = await (0, import_kit84.getProgramDerivedAddress)({
11247
+ accounts.treasuryUsdAta.value = await (0, import_kit85.getProgramDerivedAddress)({
11096
11248
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
11097
11249
  seeds: [
11098
- (0, import_kit84.getAddressEncoder)().encode(
11099
- (0, import_program_client_core40.getAddressFromResolvedInstructionAccount)(
11250
+ (0, import_kit85.getAddressEncoder)().encode(
11251
+ (0, import_program_client_core41.getAddressFromResolvedInstructionAccount)(
11100
11252
  "treasury",
11101
11253
  accounts.treasury.value
11102
11254
  )
11103
11255
  ),
11104
- (0, import_kit84.getBytesEncoder)().encode(
11256
+ (0, import_kit85.getBytesEncoder)().encode(
11105
11257
  new Uint8Array([
11106
11258
  6,
11107
11259
  221,
@@ -11137,8 +11289,8 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11137
11289
  169
11138
11290
  ])
11139
11291
  ),
11140
- (0, import_kit84.getAddressEncoder)().encode(
11141
- (0, import_program_client_core40.getAddressFromResolvedInstructionAccount)(
11292
+ (0, import_kit85.getAddressEncoder)().encode(
11293
+ (0, import_program_client_core41.getAddressFromResolvedInstructionAccount)(
11142
11294
  "usdMint",
11143
11295
  accounts.usdMint.value
11144
11296
  )
@@ -11147,16 +11299,16 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11147
11299
  });
11148
11300
  }
11149
11301
  if (!accounts.treasuryBtcAta.value) {
11150
- accounts.treasuryBtcAta.value = await (0, import_kit84.getProgramDerivedAddress)({
11302
+ accounts.treasuryBtcAta.value = await (0, import_kit85.getProgramDerivedAddress)({
11151
11303
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
11152
11304
  seeds: [
11153
- (0, import_kit84.getAddressEncoder)().encode(
11154
- (0, import_program_client_core40.getAddressFromResolvedInstructionAccount)(
11305
+ (0, import_kit85.getAddressEncoder)().encode(
11306
+ (0, import_program_client_core41.getAddressFromResolvedInstructionAccount)(
11155
11307
  "treasury",
11156
11308
  accounts.treasury.value
11157
11309
  )
11158
11310
  ),
11159
- (0, import_kit84.getBytesEncoder)().encode(
11311
+ (0, import_kit85.getBytesEncoder)().encode(
11160
11312
  new Uint8Array([
11161
11313
  6,
11162
11314
  221,
@@ -11192,8 +11344,8 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11192
11344
  169
11193
11345
  ])
11194
11346
  ),
11195
- (0, import_kit84.getAddressEncoder)().encode(
11196
- (0, import_program_client_core40.getAddressFromResolvedInstructionAccount)(
11347
+ (0, import_kit85.getAddressEncoder)().encode(
11348
+ (0, import_program_client_core41.getAddressFromResolvedInstructionAccount)(
11197
11349
  "btcMint",
11198
11350
  accounts.btcMint.value
11199
11351
  )
@@ -11202,16 +11354,16 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11202
11354
  });
11203
11355
  }
11204
11356
  if (!accounts.feeRecipientUsdAta.value) {
11205
- accounts.feeRecipientUsdAta.value = await (0, import_kit84.getProgramDerivedAddress)({
11357
+ accounts.feeRecipientUsdAta.value = await (0, import_kit85.getProgramDerivedAddress)({
11206
11358
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
11207
11359
  seeds: [
11208
- (0, import_kit84.getAddressEncoder)().encode(
11209
- (0, import_program_client_core40.getAddressFromResolvedInstructionAccount)(
11360
+ (0, import_kit85.getAddressEncoder)().encode(
11361
+ (0, import_program_client_core41.getAddressFromResolvedInstructionAccount)(
11210
11362
  "feeRecipient",
11211
11363
  accounts.feeRecipient.value
11212
11364
  )
11213
11365
  ),
11214
- (0, import_kit84.getBytesEncoder)().encode(
11366
+ (0, import_kit85.getBytesEncoder)().encode(
11215
11367
  new Uint8Array([
11216
11368
  6,
11217
11369
  221,
@@ -11247,8 +11399,8 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11247
11399
  169
11248
11400
  ])
11249
11401
  ),
11250
- (0, import_kit84.getAddressEncoder)().encode(
11251
- (0, import_program_client_core40.getAddressFromResolvedInstructionAccount)(
11402
+ (0, import_kit85.getAddressEncoder)().encode(
11403
+ (0, import_program_client_core41.getAddressFromResolvedInstructionAccount)(
11252
11404
  "usdMint",
11253
11405
  accounts.usdMint.value
11254
11406
  )
@@ -11257,16 +11409,16 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11257
11409
  });
11258
11410
  }
11259
11411
  if (!accounts.feeRecipientBtcAta.value) {
11260
- accounts.feeRecipientBtcAta.value = await (0, import_kit84.getProgramDerivedAddress)({
11412
+ accounts.feeRecipientBtcAta.value = await (0, import_kit85.getProgramDerivedAddress)({
11261
11413
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
11262
11414
  seeds: [
11263
- (0, import_kit84.getAddressEncoder)().encode(
11264
- (0, import_program_client_core40.getAddressFromResolvedInstructionAccount)(
11415
+ (0, import_kit85.getAddressEncoder)().encode(
11416
+ (0, import_program_client_core41.getAddressFromResolvedInstructionAccount)(
11265
11417
  "feeRecipient",
11266
11418
  accounts.feeRecipient.value
11267
11419
  )
11268
11420
  ),
11269
- (0, import_kit84.getBytesEncoder)().encode(
11421
+ (0, import_kit85.getBytesEncoder)().encode(
11270
11422
  new Uint8Array([
11271
11423
  6,
11272
11424
  221,
@@ -11302,8 +11454,8 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11302
11454
  169
11303
11455
  ])
11304
11456
  ),
11305
- (0, import_kit84.getAddressEncoder)().encode(
11306
- (0, import_program_client_core40.getAddressFromResolvedInstructionAccount)(
11457
+ (0, import_kit85.getAddressEncoder)().encode(
11458
+ (0, import_program_client_core41.getAddressFromResolvedInstructionAccount)(
11307
11459
  "btcMint",
11308
11460
  accounts.btcMint.value
11309
11461
  )
@@ -11320,7 +11472,7 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11320
11472
  if (!accounts.systemProgram.value) {
11321
11473
  accounts.systemProgram.value = "11111111111111111111111111111111";
11322
11474
  }
11323
- const getAccountMeta = (0, import_program_client_core40.getAccountMetaFactory)(programAddress, "programId");
11475
+ const getAccountMeta = (0, import_program_client_core41.getAccountMetaFactory)(programAddress, "programId");
11324
11476
  return Object.freeze({
11325
11477
  accounts: [
11326
11478
  getAccountMeta("authority", accounts.authority),
@@ -11377,7 +11529,7 @@ function getWithdrawProtocolFeesInstruction(input, config) {
11377
11529
  if (!accounts.systemProgram.value) {
11378
11530
  accounts.systemProgram.value = "11111111111111111111111111111111";
11379
11531
  }
11380
- const getAccountMeta = (0, import_program_client_core40.getAccountMetaFactory)(programAddress, "programId");
11532
+ const getAccountMeta = (0, import_program_client_core41.getAccountMetaFactory)(programAddress, "programId");
11381
11533
  return Object.freeze({
11382
11534
  accounts: [
11383
11535
  getAccountMeta("authority", accounts.authority),
@@ -11400,8 +11552,8 @@ function getWithdrawProtocolFeesInstruction(input, config) {
11400
11552
  }
11401
11553
  function parseWithdrawProtocolFeesInstruction(instruction) {
11402
11554
  if (instruction.accounts.length < 13) {
11403
- throw new import_kit84.SolanaError(
11404
- import_kit84.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
11555
+ throw new import_kit85.SolanaError(
11556
+ import_kit85.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
11405
11557
  {
11406
11558
  actualAccountMetas: instruction.accounts.length,
11407
11559
  expectedAccountMetas: 13
@@ -11459,143 +11611,143 @@ var SatrushAccount = /* @__PURE__ */ ((SatrushAccount2) => {
11459
11611
  })(SatrushAccount || {});
11460
11612
  function identifySatrushAccount(account) {
11461
11613
  const data = "data" in account ? account.data : account;
11462
- if ((0, import_kit85.containsBytes)(
11614
+ if ((0, import_kit86.containsBytes)(
11463
11615
  data,
11464
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11616
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11465
11617
  new Uint8Array([79, 48, 160, 63, 153, 132, 240, 56])
11466
11618
  ),
11467
11619
  0
11468
11620
  )) {
11469
11621
  return 0 /* Board */;
11470
11622
  }
11471
- if ((0, import_kit85.containsBytes)(
11623
+ if ((0, import_kit86.containsBytes)(
11472
11624
  data,
11473
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11625
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11474
11626
  new Uint8Array([100, 209, 6, 66, 115, 53, 132, 9])
11475
11627
  ),
11476
11628
  0
11477
11629
  )) {
11478
11630
  return 1 /* EpochVault */;
11479
11631
  }
11480
- if ((0, import_kit85.containsBytes)(
11632
+ if ((0, import_kit86.containsBytes)(
11481
11633
  data,
11482
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11634
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11483
11635
  new Uint8Array([75, 243, 246, 41, 173, 130, 196, 91])
11484
11636
  ),
11485
11637
  0
11486
11638
  )) {
11487
11639
  return 2 /* EpochVaultEntry */;
11488
11640
  }
11489
- if ((0, import_kit85.containsBytes)(
11641
+ if ((0, import_kit86.containsBytes)(
11490
11642
  data,
11491
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11643
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11492
11644
  new Uint8Array([116, 108, 198, 176, 193, 190, 91, 125])
11493
11645
  ),
11494
11646
  0
11495
11647
  )) {
11496
11648
  return 3 /* EpochVaultIteration */;
11497
11649
  }
11498
- if ((0, import_kit85.containsBytes)(
11650
+ if ((0, import_kit86.containsBytes)(
11499
11651
  data,
11500
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11652
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11501
11653
  new Uint8Array([121, 238, 146, 107, 234, 24, 227, 31])
11502
11654
  ),
11503
11655
  0
11504
11656
  )) {
11505
11657
  return 4 /* EpochVaultPage */;
11506
11658
  }
11507
- if ((0, import_kit85.containsBytes)(
11659
+ if ((0, import_kit86.containsBytes)(
11508
11660
  data,
11509
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11661
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11510
11662
  new Uint8Array([223, 113, 15, 54, 123, 122, 140, 100])
11511
11663
  ),
11512
11664
  0
11513
11665
  )) {
11514
11666
  return 5 /* Miner */;
11515
11667
  }
11516
- if ((0, import_kit85.containsBytes)(
11668
+ if ((0, import_kit86.containsBytes)(
11517
11669
  data,
11518
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11670
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11519
11671
  new Uint8Array([134, 90, 53, 34, 240, 221, 175, 212])
11520
11672
  ),
11521
11673
  0
11522
11674
  )) {
11523
11675
  return 6 /* OneBtcVault */;
11524
11676
  }
11525
- if ((0, import_kit85.containsBytes)(
11677
+ if ((0, import_kit86.containsBytes)(
11526
11678
  data,
11527
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11679
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11528
11680
  new Uint8Array([255, 64, 185, 130, 97, 37, 230, 219])
11529
11681
  ),
11530
11682
  0
11531
11683
  )) {
11532
11684
  return 7 /* OneBtcVaultEntry */;
11533
11685
  }
11534
- if ((0, import_kit85.containsBytes)(
11686
+ if ((0, import_kit86.containsBytes)(
11535
11687
  data,
11536
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11688
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11537
11689
  new Uint8Array([190, 205, 75, 222, 220, 249, 43, 126])
11538
11690
  ),
11539
11691
  0
11540
11692
  )) {
11541
11693
  return 8 /* OneBtcVaultIteration */;
11542
11694
  }
11543
- if ((0, import_kit85.containsBytes)(
11695
+ if ((0, import_kit86.containsBytes)(
11544
11696
  data,
11545
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11697
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11546
11698
  new Uint8Array([16, 128, 211, 70, 213, 109, 108, 216])
11547
11699
  ),
11548
11700
  0
11549
11701
  )) {
11550
11702
  return 9 /* PublicAutomation */;
11551
11703
  }
11552
- if ((0, import_kit85.containsBytes)(
11704
+ if ((0, import_kit86.containsBytes)(
11553
11705
  data,
11554
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11706
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11555
11707
  new Uint8Array([209, 64, 180, 169, 40, 181, 110, 236])
11556
11708
  ),
11557
11709
  0
11558
11710
  )) {
11559
11711
  return 10 /* PublicDeployment */;
11560
11712
  }
11561
- if ((0, import_kit85.containsBytes)(
11713
+ if ((0, import_kit86.containsBytes)(
11562
11714
  data,
11563
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11715
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11564
11716
  new Uint8Array([87, 127, 165, 51, 73, 78, 116, 174])
11565
11717
  ),
11566
11718
  0
11567
11719
  )) {
11568
11720
  return 11 /* Round */;
11569
11721
  }
11570
- if ((0, import_kit85.containsBytes)(
11722
+ if ((0, import_kit86.containsBytes)(
11571
11723
  data,
11572
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11724
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11573
11725
  new Uint8Array([113, 169, 164, 118, 148, 217, 160, 200])
11574
11726
  ),
11575
11727
  0
11576
11728
  )) {
11577
11729
  return 12 /* SatrushConfig */;
11578
11730
  }
11579
- if ((0, import_kit85.containsBytes)(
11731
+ if ((0, import_kit86.containsBytes)(
11580
11732
  data,
11581
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11733
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11582
11734
  new Uint8Array([97, 10, 251, 68, 215, 103, 124, 183])
11583
11735
  ),
11584
11736
  0
11585
11737
  )) {
11586
11738
  return 13 /* SatsVault */;
11587
11739
  }
11588
- if ((0, import_kit85.containsBytes)(
11740
+ if ((0, import_kit86.containsBytes)(
11589
11741
  data,
11590
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11742
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11591
11743
  new Uint8Array([238, 239, 123, 238, 89, 1, 168, 253])
11592
11744
  ),
11593
11745
  0
11594
11746
  )) {
11595
11747
  return 14 /* Treasury */;
11596
11748
  }
11597
- throw new import_kit85.SolanaError(
11598
- import_kit85.SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT,
11749
+ throw new import_kit86.SolanaError(
11750
+ import_kit86.SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT,
11599
11751
  { accountData: data, programName: "satrush" }
11600
11752
  );
11601
11753
  }
@@ -11634,378 +11786,388 @@ var SatrushInstruction = /* @__PURE__ */ ((SatrushInstruction2) => {
11634
11786
  SatrushInstruction2[SatrushInstruction2["TriggerEpochDraw"] = 31] = "TriggerEpochDraw";
11635
11787
  SatrushInstruction2[SatrushInstruction2["TriggerOneBtcDraw"] = 32] = "TriggerOneBtcDraw";
11636
11788
  SatrushInstruction2[SatrushInstruction2["UpdateBoardRoundDuration"] = 33] = "UpdateBoardRoundDuration";
11637
- SatrushInstruction2[SatrushInstruction2["UpdateDeploymentSettleGraceDuration"] = 34] = "UpdateDeploymentSettleGraceDuration";
11638
- SatrushInstruction2[SatrushInstruction2["UpdateEpochVaultIterationDuration"] = 35] = "UpdateEpochVaultIterationDuration";
11639
- SatrushInstruction2[SatrushInstruction2["UpdateMinDeployUsdAmount"] = 36] = "UpdateMinDeployUsdAmount";
11640
- SatrushInstruction2[SatrushInstruction2["UpdateStrikeTriggerModulus"] = 37] = "UpdateStrikeTriggerModulus";
11641
- SatrushInstruction2[SatrushInstruction2["UpdateUnclaimedHashrateBps"] = 38] = "UpdateUnclaimedHashrateBps";
11642
- SatrushInstruction2[SatrushInstruction2["WithdrawProtocolFees"] = 39] = "WithdrawProtocolFees";
11789
+ SatrushInstruction2[SatrushInstruction2["UpdateDeployFees"] = 34] = "UpdateDeployFees";
11790
+ SatrushInstruction2[SatrushInstruction2["UpdateDeploymentSettleGraceDuration"] = 35] = "UpdateDeploymentSettleGraceDuration";
11791
+ SatrushInstruction2[SatrushInstruction2["UpdateEpochVaultIterationDuration"] = 36] = "UpdateEpochVaultIterationDuration";
11792
+ SatrushInstruction2[SatrushInstruction2["UpdateMinDeployUsdAmount"] = 37] = "UpdateMinDeployUsdAmount";
11793
+ SatrushInstruction2[SatrushInstruction2["UpdateStrikeTriggerModulus"] = 38] = "UpdateStrikeTriggerModulus";
11794
+ SatrushInstruction2[SatrushInstruction2["UpdateUnclaimedHashrateBps"] = 39] = "UpdateUnclaimedHashrateBps";
11795
+ SatrushInstruction2[SatrushInstruction2["WithdrawProtocolFees"] = 40] = "WithdrawProtocolFees";
11643
11796
  return SatrushInstruction2;
11644
11797
  })(SatrushInstruction || {});
11645
11798
  function identifySatrushInstruction(instruction) {
11646
11799
  const data = "data" in instruction ? instruction.data : instruction;
11647
- if ((0, import_kit85.containsBytes)(
11800
+ if ((0, import_kit86.containsBytes)(
11648
11801
  data,
11649
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11802
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11650
11803
  new Uint8Array([90, 201, 98, 189, 106, 249, 86, 109])
11651
11804
  ),
11652
11805
  0
11653
11806
  )) {
11654
11807
  return 0 /* BuyEpochTickets */;
11655
11808
  }
11656
- if ((0, import_kit85.containsBytes)(
11809
+ if ((0, import_kit86.containsBytes)(
11657
11810
  data,
11658
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11811
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11659
11812
  new Uint8Array([4, 48, 106, 230, 146, 124, 140, 167])
11660
11813
  ),
11661
11814
  0
11662
11815
  )) {
11663
11816
  return 1 /* BuyOneBtcTickets */;
11664
11817
  }
11665
- if ((0, import_kit85.containsBytes)(
11818
+ if ((0, import_kit86.containsBytes)(
11666
11819
  data,
11667
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11820
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11668
11821
  new Uint8Array([87, 135, 14, 43, 190, 79, 45, 212])
11669
11822
  ),
11670
11823
  0
11671
11824
  )) {
11672
11825
  return 2 /* CancelPublicAutomation */;
11673
11826
  }
11674
- if ((0, import_kit85.containsBytes)(
11827
+ if ((0, import_kit86.containsBytes)(
11675
11828
  data,
11676
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11829
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11677
11830
  new Uint8Array([226, 196, 170, 104, 125, 21, 190, 232])
11678
11831
  ),
11679
11832
  0
11680
11833
  )) {
11681
11834
  return 3 /* ClaimEpochReward */;
11682
11835
  }
11683
- if ((0, import_kit85.containsBytes)(
11836
+ if ((0, import_kit86.containsBytes)(
11684
11837
  data,
11685
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11838
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11686
11839
  new Uint8Array([53, 168, 61, 211, 206, 81, 133, 175])
11687
11840
  ),
11688
11841
  0
11689
11842
  )) {
11690
11843
  return 4 /* ClaimOneBtcReward */;
11691
11844
  }
11692
- if ((0, import_kit85.containsBytes)(
11845
+ if ((0, import_kit86.containsBytes)(
11693
11846
  data,
11694
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11847
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11695
11848
  new Uint8Array([196, 77, 168, 181, 6, 119, 249, 154])
11696
11849
  ),
11697
11850
  0
11698
11851
  )) {
11699
11852
  return 5 /* ClaimSats */;
11700
11853
  }
11701
- if ((0, import_kit85.containsBytes)(
11854
+ if ((0, import_kit86.containsBytes)(
11702
11855
  data,
11703
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11856
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11704
11857
  new Uint8Array([241, 89, 98, 124, 223, 205, 215, 104])
11705
11858
  ),
11706
11859
  0
11707
11860
  )) {
11708
11861
  return 6 /* ClaimUsd */;
11709
11862
  }
11710
- if ((0, import_kit85.containsBytes)(
11863
+ if ((0, import_kit86.containsBytes)(
11711
11864
  data,
11712
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11865
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11713
11866
  new Uint8Array([27, 23, 127, 47, 147, 184, 239, 190])
11714
11867
  ),
11715
11868
  0
11716
11869
  )) {
11717
11870
  return 7 /* CloseEpochEntry */;
11718
11871
  }
11719
- if ((0, import_kit85.containsBytes)(
11872
+ if ((0, import_kit86.containsBytes)(
11720
11873
  data,
11721
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11874
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11722
11875
  new Uint8Array([80, 74, 10, 29, 63, 106, 63, 192])
11723
11876
  ),
11724
11877
  0
11725
11878
  )) {
11726
11879
  return 8 /* CloseEpochIteration */;
11727
11880
  }
11728
- if ((0, import_kit85.containsBytes)(
11881
+ if ((0, import_kit86.containsBytes)(
11729
11882
  data,
11730
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11883
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11731
11884
  new Uint8Array([11, 123, 237, 176, 25, 240, 59, 135])
11732
11885
  ),
11733
11886
  0
11734
11887
  )) {
11735
11888
  return 9 /* CloseEpochPage */;
11736
11889
  }
11737
- if ((0, import_kit85.containsBytes)(
11890
+ if ((0, import_kit86.containsBytes)(
11738
11891
  data,
11739
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11892
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11740
11893
  new Uint8Array([181, 42, 174, 200, 192, 21, 27, 187])
11741
11894
  ),
11742
11895
  0
11743
11896
  )) {
11744
11897
  return 10 /* CloseOneBtcIteration */;
11745
11898
  }
11746
- if ((0, import_kit85.containsBytes)(
11899
+ if ((0, import_kit86.containsBytes)(
11747
11900
  data,
11748
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11901
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11749
11902
  new Uint8Array([251, 62, 143, 106, 218, 1, 162, 181])
11750
11903
  ),
11751
11904
  0
11752
11905
  )) {
11753
11906
  return 11 /* CloseOneBtcTicket */;
11754
11907
  }
11755
- if ((0, import_kit85.containsBytes)(
11908
+ if ((0, import_kit86.containsBytes)(
11756
11909
  data,
11757
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11910
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11758
11911
  new Uint8Array([149, 14, 81, 88, 230, 226, 234, 37])
11759
11912
  ),
11760
11913
  0
11761
11914
  )) {
11762
11915
  return 12 /* CloseRound */;
11763
11916
  }
11764
- if ((0, import_kit85.containsBytes)(
11917
+ if ((0, import_kit86.containsBytes)(
11765
11918
  data,
11766
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11919
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11767
11920
  new Uint8Array([81, 129, 130, 38, 99, 204, 224, 177])
11768
11921
  ),
11769
11922
  0
11770
11923
  )) {
11771
11924
  return 13 /* CreateBoard */;
11772
11925
  }
11773
- if ((0, import_kit85.containsBytes)(
11926
+ if ((0, import_kit86.containsBytes)(
11774
11927
  data,
11775
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11928
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11776
11929
  new Uint8Array([69, 146, 29, 218, 228, 29, 229, 241])
11777
11930
  ),
11778
11931
  0
11779
11932
  )) {
11780
11933
  return 14 /* CreateEpochVault */;
11781
11934
  }
11782
- if ((0, import_kit85.containsBytes)(
11935
+ if ((0, import_kit86.containsBytes)(
11783
11936
  data,
11784
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11937
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11785
11938
  new Uint8Array([156, 160, 69, 94, 108, 6, 145, 211])
11786
11939
  ),
11787
11940
  0
11788
11941
  )) {
11789
11942
  return 15 /* CreateOneBtcVault */;
11790
11943
  }
11791
- if ((0, import_kit85.containsBytes)(
11944
+ if ((0, import_kit86.containsBytes)(
11792
11945
  data,
11793
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11946
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11794
11947
  new Uint8Array([195, 44, 245, 180, 58, 206, 203, 229])
11795
11948
  ),
11796
11949
  0
11797
11950
  )) {
11798
11951
  return 16 /* CreatePublicAutomation */;
11799
11952
  }
11800
- if ((0, import_kit85.containsBytes)(
11953
+ if ((0, import_kit86.containsBytes)(
11801
11954
  data,
11802
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11955
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11803
11956
  new Uint8Array([96, 175, 39, 171, 158, 44, 117, 18])
11804
11957
  ),
11805
11958
  0
11806
11959
  )) {
11807
11960
  return 17 /* CreateSatrushConfig */;
11808
11961
  }
11809
- if ((0, import_kit85.containsBytes)(
11962
+ if ((0, import_kit86.containsBytes)(
11810
11963
  data,
11811
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11964
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11812
11965
  new Uint8Array([159, 29, 126, 216, 29, 240, 141, 61])
11813
11966
  ),
11814
11967
  0
11815
11968
  )) {
11816
11969
  return 18 /* CreateSatsVault */;
11817
11970
  }
11818
- if ((0, import_kit85.containsBytes)(
11971
+ if ((0, import_kit86.containsBytes)(
11819
11972
  data,
11820
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11973
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11821
11974
  new Uint8Array([254, 98, 217, 51, 25, 88, 140, 45])
11822
11975
  ),
11823
11976
  0
11824
11977
  )) {
11825
11978
  return 19 /* CreateTreasury */;
11826
11979
  }
11827
- if ((0, import_kit85.containsBytes)(
11980
+ if ((0, import_kit86.containsBytes)(
11828
11981
  data,
11829
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11982
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11830
11983
  new Uint8Array([193, 31, 240, 159, 30, 224, 157, 85])
11831
11984
  ),
11832
11985
  0
11833
11986
  )) {
11834
11987
  return 20 /* DeployPublic */;
11835
11988
  }
11836
- if ((0, import_kit85.containsBytes)(
11989
+ if ((0, import_kit86.containsBytes)(
11837
11990
  data,
11838
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
11991
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11839
11992
  new Uint8Array([212, 191, 100, 136, 18, 213, 42, 72])
11840
11993
  ),
11841
11994
  0
11842
11995
  )) {
11843
11996
  return 21 /* ExecutePublicAutomation */;
11844
11997
  }
11845
- if ((0, import_kit85.containsBytes)(
11998
+ if ((0, import_kit86.containsBytes)(
11846
11999
  data,
11847
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12000
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11848
12001
  new Uint8Array([3, 245, 202, 88, 161, 29, 51, 141])
11849
12002
  ),
11850
12003
  0
11851
12004
  )) {
11852
12005
  return 22 /* RotateRound */;
11853
12006
  }
11854
- if ((0, import_kit85.containsBytes)(
12007
+ if ((0, import_kit86.containsBytes)(
11855
12008
  data,
11856
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12009
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11857
12010
  new Uint8Array([89, 228, 101, 114, 103, 98, 126, 229])
11858
12011
  ),
11859
12012
  0
11860
12013
  )) {
11861
12014
  return 23 /* SealEpochPage */;
11862
12015
  }
11863
- if ((0, import_kit85.containsBytes)(
12016
+ if ((0, import_kit86.containsBytes)(
11864
12017
  data,
11865
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12018
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11866
12019
  new Uint8Array([222, 36, 211, 175, 4, 220, 2, 251])
11867
12020
  ),
11868
12021
  0
11869
12022
  )) {
11870
12023
  return 24 /* SelectEpochWinner */;
11871
12024
  }
11872
- if ((0, import_kit85.containsBytes)(
12025
+ if ((0, import_kit86.containsBytes)(
11873
12026
  data,
11874
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12027
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11875
12028
  new Uint8Array([249, 111, 122, 103, 93, 86, 76, 198])
11876
12029
  ),
11877
12030
  0
11878
12031
  )) {
11879
12032
  return 25 /* SettleDeployPublic */;
11880
12033
  }
11881
- if ((0, import_kit85.containsBytes)(
12034
+ if ((0, import_kit86.containsBytes)(
11882
12035
  data,
11883
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12036
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11884
12037
  new Uint8Array([82, 124, 95, 215, 213, 107, 134, 122])
11885
12038
  ),
11886
12039
  0
11887
12040
  )) {
11888
12041
  return 26 /* SwapEpochStake */;
11889
12042
  }
11890
- if ((0, import_kit85.containsBytes)(
12043
+ if ((0, import_kit86.containsBytes)(
11891
12044
  data,
11892
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12045
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11893
12046
  new Uint8Array([61, 147, 13, 247, 164, 34, 14, 57])
11894
12047
  ),
11895
12048
  0
11896
12049
  )) {
11897
12050
  return 27 /* SwapOneBtcStake */;
11898
12051
  }
11899
- if ((0, import_kit85.containsBytes)(
12052
+ if ((0, import_kit86.containsBytes)(
11900
12053
  data,
11901
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12054
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11902
12055
  new Uint8Array([86, 168, 42, 98, 2, 164, 250, 185])
11903
12056
  ),
11904
12057
  0
11905
12058
  )) {
11906
12059
  return 28 /* SwapRoundStake */;
11907
12060
  }
11908
- if ((0, import_kit85.containsBytes)(
12061
+ if ((0, import_kit86.containsBytes)(
11909
12062
  data,
11910
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12063
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11911
12064
  new Uint8Array([129, 112, 9, 43, 91, 154, 157, 135])
11912
12065
  ),
11913
12066
  0
11914
12067
  )) {
11915
12068
  return 29 /* SwapStrikeStake */;
11916
12069
  }
11917
- if ((0, import_kit85.containsBytes)(
12070
+ if ((0, import_kit86.containsBytes)(
11918
12071
  data,
11919
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12072
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11920
12073
  new Uint8Array([1, 96, 199, 199, 107, 118, 193, 87])
11921
12074
  ),
11922
12075
  0
11923
12076
  )) {
11924
12077
  return 30 /* TopUpPublicAutomation */;
11925
12078
  }
11926
- if ((0, import_kit85.containsBytes)(
12079
+ if ((0, import_kit86.containsBytes)(
11927
12080
  data,
11928
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12081
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11929
12082
  new Uint8Array([93, 12, 139, 55, 235, 88, 37, 117])
11930
12083
  ),
11931
12084
  0
11932
12085
  )) {
11933
12086
  return 31 /* TriggerEpochDraw */;
11934
12087
  }
11935
- if ((0, import_kit85.containsBytes)(
12088
+ if ((0, import_kit86.containsBytes)(
11936
12089
  data,
11937
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12090
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11938
12091
  new Uint8Array([252, 210, 238, 28, 169, 118, 28, 11])
11939
12092
  ),
11940
12093
  0
11941
12094
  )) {
11942
12095
  return 32 /* TriggerOneBtcDraw */;
11943
12096
  }
11944
- if ((0, import_kit85.containsBytes)(
12097
+ if ((0, import_kit86.containsBytes)(
11945
12098
  data,
11946
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12099
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11947
12100
  new Uint8Array([12, 130, 188, 85, 167, 187, 204, 183])
11948
12101
  ),
11949
12102
  0
11950
12103
  )) {
11951
12104
  return 33 /* UpdateBoardRoundDuration */;
11952
12105
  }
11953
- if ((0, import_kit85.containsBytes)(
12106
+ if ((0, import_kit86.containsBytes)(
11954
12107
  data,
11955
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12108
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
12109
+ new Uint8Array([0, 170, 26, 215, 156, 171, 22, 68])
12110
+ ),
12111
+ 0
12112
+ )) {
12113
+ return 34 /* UpdateDeployFees */;
12114
+ }
12115
+ if ((0, import_kit86.containsBytes)(
12116
+ data,
12117
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11956
12118
  new Uint8Array([2, 212, 246, 89, 139, 64, 104, 74])
11957
12119
  ),
11958
12120
  0
11959
12121
  )) {
11960
- return 34 /* UpdateDeploymentSettleGraceDuration */;
12122
+ return 35 /* UpdateDeploymentSettleGraceDuration */;
11961
12123
  }
11962
- if ((0, import_kit85.containsBytes)(
12124
+ if ((0, import_kit86.containsBytes)(
11963
12125
  data,
11964
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12126
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11965
12127
  new Uint8Array([171, 103, 59, 229, 174, 188, 210, 121])
11966
12128
  ),
11967
12129
  0
11968
12130
  )) {
11969
- return 35 /* UpdateEpochVaultIterationDuration */;
12131
+ return 36 /* UpdateEpochVaultIterationDuration */;
11970
12132
  }
11971
- if ((0, import_kit85.containsBytes)(
12133
+ if ((0, import_kit86.containsBytes)(
11972
12134
  data,
11973
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12135
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11974
12136
  new Uint8Array([187, 108, 89, 178, 249, 101, 187, 33])
11975
12137
  ),
11976
12138
  0
11977
12139
  )) {
11978
- return 36 /* UpdateMinDeployUsdAmount */;
12140
+ return 37 /* UpdateMinDeployUsdAmount */;
11979
12141
  }
11980
- if ((0, import_kit85.containsBytes)(
12142
+ if ((0, import_kit86.containsBytes)(
11981
12143
  data,
11982
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12144
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11983
12145
  new Uint8Array([241, 172, 229, 62, 191, 163, 60, 186])
11984
12146
  ),
11985
12147
  0
11986
12148
  )) {
11987
- return 37 /* UpdateStrikeTriggerModulus */;
12149
+ return 38 /* UpdateStrikeTriggerModulus */;
11988
12150
  }
11989
- if ((0, import_kit85.containsBytes)(
12151
+ if ((0, import_kit86.containsBytes)(
11990
12152
  data,
11991
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12153
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
11992
12154
  new Uint8Array([237, 38, 26, 14, 73, 161, 208, 157])
11993
12155
  ),
11994
12156
  0
11995
12157
  )) {
11996
- return 38 /* UpdateUnclaimedHashrateBps */;
12158
+ return 39 /* UpdateUnclaimedHashrateBps */;
11997
12159
  }
11998
- if ((0, import_kit85.containsBytes)(
12160
+ if ((0, import_kit86.containsBytes)(
11999
12161
  data,
12000
- (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
12162
+ (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
12001
12163
  new Uint8Array([11, 68, 165, 98, 18, 208, 134, 73])
12002
12164
  ),
12003
12165
  0
12004
12166
  )) {
12005
- return 39 /* WithdrawProtocolFees */;
12167
+ return 40 /* WithdrawProtocolFees */;
12006
12168
  }
12007
- throw new import_kit85.SolanaError(
12008
- import_kit85.SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION,
12169
+ throw new import_kit86.SolanaError(
12170
+ import_kit86.SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION,
12009
12171
  { instructionData: data, programName: "satrush" }
12010
12172
  );
12011
12173
  }
@@ -12013,492 +12175,503 @@ function parseSatrushInstruction(instruction) {
12013
12175
  const instructionType = identifySatrushInstruction(instruction);
12014
12176
  switch (instructionType) {
12015
12177
  case 0 /* BuyEpochTickets */: {
12016
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12178
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12017
12179
  return {
12018
12180
  instructionType: 0 /* BuyEpochTickets */,
12019
12181
  ...parseBuyEpochTicketsInstruction(instruction)
12020
12182
  };
12021
12183
  }
12022
12184
  case 1 /* BuyOneBtcTickets */: {
12023
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12185
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12024
12186
  return {
12025
12187
  instructionType: 1 /* BuyOneBtcTickets */,
12026
12188
  ...parseBuyOneBtcTicketsInstruction(instruction)
12027
12189
  };
12028
12190
  }
12029
12191
  case 2 /* CancelPublicAutomation */: {
12030
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12192
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12031
12193
  return {
12032
12194
  instructionType: 2 /* CancelPublicAutomation */,
12033
12195
  ...parseCancelPublicAutomationInstruction(instruction)
12034
12196
  };
12035
12197
  }
12036
12198
  case 3 /* ClaimEpochReward */: {
12037
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12199
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12038
12200
  return {
12039
12201
  instructionType: 3 /* ClaimEpochReward */,
12040
12202
  ...parseClaimEpochRewardInstruction(instruction)
12041
12203
  };
12042
12204
  }
12043
12205
  case 4 /* ClaimOneBtcReward */: {
12044
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12206
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12045
12207
  return {
12046
12208
  instructionType: 4 /* ClaimOneBtcReward */,
12047
12209
  ...parseClaimOneBtcRewardInstruction(instruction)
12048
12210
  };
12049
12211
  }
12050
12212
  case 5 /* ClaimSats */: {
12051
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12213
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12052
12214
  return {
12053
12215
  instructionType: 5 /* ClaimSats */,
12054
12216
  ...parseClaimSatsInstruction(instruction)
12055
12217
  };
12056
12218
  }
12057
12219
  case 6 /* ClaimUsd */: {
12058
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12220
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12059
12221
  return {
12060
12222
  instructionType: 6 /* ClaimUsd */,
12061
12223
  ...parseClaimUsdInstruction(instruction)
12062
12224
  };
12063
12225
  }
12064
12226
  case 7 /* CloseEpochEntry */: {
12065
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12227
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12066
12228
  return {
12067
12229
  instructionType: 7 /* CloseEpochEntry */,
12068
12230
  ...parseCloseEpochEntryInstruction(instruction)
12069
12231
  };
12070
12232
  }
12071
12233
  case 8 /* CloseEpochIteration */: {
12072
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12234
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12073
12235
  return {
12074
12236
  instructionType: 8 /* CloseEpochIteration */,
12075
12237
  ...parseCloseEpochIterationInstruction(instruction)
12076
12238
  };
12077
12239
  }
12078
12240
  case 9 /* CloseEpochPage */: {
12079
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12241
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12080
12242
  return {
12081
12243
  instructionType: 9 /* CloseEpochPage */,
12082
12244
  ...parseCloseEpochPageInstruction(instruction)
12083
12245
  };
12084
12246
  }
12085
12247
  case 10 /* CloseOneBtcIteration */: {
12086
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12248
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12087
12249
  return {
12088
12250
  instructionType: 10 /* CloseOneBtcIteration */,
12089
12251
  ...parseCloseOneBtcIterationInstruction(instruction)
12090
12252
  };
12091
12253
  }
12092
12254
  case 11 /* CloseOneBtcTicket */: {
12093
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12255
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12094
12256
  return {
12095
12257
  instructionType: 11 /* CloseOneBtcTicket */,
12096
12258
  ...parseCloseOneBtcTicketInstruction(instruction)
12097
12259
  };
12098
12260
  }
12099
12261
  case 12 /* CloseRound */: {
12100
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12262
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12101
12263
  return {
12102
12264
  instructionType: 12 /* CloseRound */,
12103
12265
  ...parseCloseRoundInstruction(instruction)
12104
12266
  };
12105
12267
  }
12106
12268
  case 13 /* CreateBoard */: {
12107
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12269
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12108
12270
  return {
12109
12271
  instructionType: 13 /* CreateBoard */,
12110
12272
  ...parseCreateBoardInstruction(instruction)
12111
12273
  };
12112
12274
  }
12113
12275
  case 14 /* CreateEpochVault */: {
12114
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12276
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12115
12277
  return {
12116
12278
  instructionType: 14 /* CreateEpochVault */,
12117
12279
  ...parseCreateEpochVaultInstruction(instruction)
12118
12280
  };
12119
12281
  }
12120
12282
  case 15 /* CreateOneBtcVault */: {
12121
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12283
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12122
12284
  return {
12123
12285
  instructionType: 15 /* CreateOneBtcVault */,
12124
12286
  ...parseCreateOneBtcVaultInstruction(instruction)
12125
12287
  };
12126
12288
  }
12127
12289
  case 16 /* CreatePublicAutomation */: {
12128
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12290
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12129
12291
  return {
12130
12292
  instructionType: 16 /* CreatePublicAutomation */,
12131
12293
  ...parseCreatePublicAutomationInstruction(instruction)
12132
12294
  };
12133
12295
  }
12134
12296
  case 17 /* CreateSatrushConfig */: {
12135
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12297
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12136
12298
  return {
12137
12299
  instructionType: 17 /* CreateSatrushConfig */,
12138
12300
  ...parseCreateSatrushConfigInstruction(instruction)
12139
12301
  };
12140
12302
  }
12141
12303
  case 18 /* CreateSatsVault */: {
12142
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12304
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12143
12305
  return {
12144
12306
  instructionType: 18 /* CreateSatsVault */,
12145
12307
  ...parseCreateSatsVaultInstruction(instruction)
12146
12308
  };
12147
12309
  }
12148
12310
  case 19 /* CreateTreasury */: {
12149
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12311
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12150
12312
  return {
12151
12313
  instructionType: 19 /* CreateTreasury */,
12152
12314
  ...parseCreateTreasuryInstruction(instruction)
12153
12315
  };
12154
12316
  }
12155
12317
  case 20 /* DeployPublic */: {
12156
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12318
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12157
12319
  return {
12158
12320
  instructionType: 20 /* DeployPublic */,
12159
12321
  ...parseDeployPublicInstruction(instruction)
12160
12322
  };
12161
12323
  }
12162
12324
  case 21 /* ExecutePublicAutomation */: {
12163
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12325
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12164
12326
  return {
12165
12327
  instructionType: 21 /* ExecutePublicAutomation */,
12166
12328
  ...parseExecutePublicAutomationInstruction(instruction)
12167
12329
  };
12168
12330
  }
12169
12331
  case 22 /* RotateRound */: {
12170
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12332
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12171
12333
  return {
12172
12334
  instructionType: 22 /* RotateRound */,
12173
12335
  ...parseRotateRoundInstruction(instruction)
12174
12336
  };
12175
12337
  }
12176
12338
  case 23 /* SealEpochPage */: {
12177
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12339
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12178
12340
  return {
12179
12341
  instructionType: 23 /* SealEpochPage */,
12180
12342
  ...parseSealEpochPageInstruction(instruction)
12181
12343
  };
12182
12344
  }
12183
12345
  case 24 /* SelectEpochWinner */: {
12184
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12346
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12185
12347
  return {
12186
12348
  instructionType: 24 /* SelectEpochWinner */,
12187
12349
  ...parseSelectEpochWinnerInstruction(instruction)
12188
12350
  };
12189
12351
  }
12190
12352
  case 25 /* SettleDeployPublic */: {
12191
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12353
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12192
12354
  return {
12193
12355
  instructionType: 25 /* SettleDeployPublic */,
12194
12356
  ...parseSettleDeployPublicInstruction(instruction)
12195
12357
  };
12196
12358
  }
12197
12359
  case 26 /* SwapEpochStake */: {
12198
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12360
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12199
12361
  return {
12200
12362
  instructionType: 26 /* SwapEpochStake */,
12201
12363
  ...parseSwapEpochStakeInstruction(instruction)
12202
12364
  };
12203
12365
  }
12204
12366
  case 27 /* SwapOneBtcStake */: {
12205
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12367
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12206
12368
  return {
12207
12369
  instructionType: 27 /* SwapOneBtcStake */,
12208
12370
  ...parseSwapOneBtcStakeInstruction(instruction)
12209
12371
  };
12210
12372
  }
12211
12373
  case 28 /* SwapRoundStake */: {
12212
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12374
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12213
12375
  return {
12214
12376
  instructionType: 28 /* SwapRoundStake */,
12215
12377
  ...parseSwapRoundStakeInstruction(instruction)
12216
12378
  };
12217
12379
  }
12218
12380
  case 29 /* SwapStrikeStake */: {
12219
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12381
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12220
12382
  return {
12221
12383
  instructionType: 29 /* SwapStrikeStake */,
12222
12384
  ...parseSwapStrikeStakeInstruction(instruction)
12223
12385
  };
12224
12386
  }
12225
12387
  case 30 /* TopUpPublicAutomation */: {
12226
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12388
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12227
12389
  return {
12228
12390
  instructionType: 30 /* TopUpPublicAutomation */,
12229
12391
  ...parseTopUpPublicAutomationInstruction(instruction)
12230
12392
  };
12231
12393
  }
12232
12394
  case 31 /* TriggerEpochDraw */: {
12233
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12395
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12234
12396
  return {
12235
12397
  instructionType: 31 /* TriggerEpochDraw */,
12236
12398
  ...parseTriggerEpochDrawInstruction(instruction)
12237
12399
  };
12238
12400
  }
12239
12401
  case 32 /* TriggerOneBtcDraw */: {
12240
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12402
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12241
12403
  return {
12242
12404
  instructionType: 32 /* TriggerOneBtcDraw */,
12243
12405
  ...parseTriggerOneBtcDrawInstruction(instruction)
12244
12406
  };
12245
12407
  }
12246
12408
  case 33 /* UpdateBoardRoundDuration */: {
12247
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12409
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12248
12410
  return {
12249
12411
  instructionType: 33 /* UpdateBoardRoundDuration */,
12250
12412
  ...parseUpdateBoardRoundDurationInstruction(instruction)
12251
12413
  };
12252
12414
  }
12253
- case 34 /* UpdateDeploymentSettleGraceDuration */: {
12254
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12415
+ case 34 /* UpdateDeployFees */: {
12416
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12417
+ return {
12418
+ instructionType: 34 /* UpdateDeployFees */,
12419
+ ...parseUpdateDeployFeesInstruction(instruction)
12420
+ };
12421
+ }
12422
+ case 35 /* UpdateDeploymentSettleGraceDuration */: {
12423
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12255
12424
  return {
12256
- instructionType: 34 /* UpdateDeploymentSettleGraceDuration */,
12425
+ instructionType: 35 /* UpdateDeploymentSettleGraceDuration */,
12257
12426
  ...parseUpdateDeploymentSettleGraceDurationInstruction(instruction)
12258
12427
  };
12259
12428
  }
12260
- case 35 /* UpdateEpochVaultIterationDuration */: {
12261
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12429
+ case 36 /* UpdateEpochVaultIterationDuration */: {
12430
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12262
12431
  return {
12263
- instructionType: 35 /* UpdateEpochVaultIterationDuration */,
12432
+ instructionType: 36 /* UpdateEpochVaultIterationDuration */,
12264
12433
  ...parseUpdateEpochVaultIterationDurationInstruction(instruction)
12265
12434
  };
12266
12435
  }
12267
- case 36 /* UpdateMinDeployUsdAmount */: {
12268
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12436
+ case 37 /* UpdateMinDeployUsdAmount */: {
12437
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12269
12438
  return {
12270
- instructionType: 36 /* UpdateMinDeployUsdAmount */,
12439
+ instructionType: 37 /* UpdateMinDeployUsdAmount */,
12271
12440
  ...parseUpdateMinDeployUsdAmountInstruction(instruction)
12272
12441
  };
12273
12442
  }
12274
- case 37 /* UpdateStrikeTriggerModulus */: {
12275
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12443
+ case 38 /* UpdateStrikeTriggerModulus */: {
12444
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12276
12445
  return {
12277
- instructionType: 37 /* UpdateStrikeTriggerModulus */,
12446
+ instructionType: 38 /* UpdateStrikeTriggerModulus */,
12278
12447
  ...parseUpdateStrikeTriggerModulusInstruction(instruction)
12279
12448
  };
12280
12449
  }
12281
- case 38 /* UpdateUnclaimedHashrateBps */: {
12282
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12450
+ case 39 /* UpdateUnclaimedHashrateBps */: {
12451
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12283
12452
  return {
12284
- instructionType: 38 /* UpdateUnclaimedHashrateBps */,
12453
+ instructionType: 39 /* UpdateUnclaimedHashrateBps */,
12285
12454
  ...parseUpdateUnclaimedHashrateBpsInstruction(instruction)
12286
12455
  };
12287
12456
  }
12288
- case 39 /* WithdrawProtocolFees */: {
12289
- (0, import_kit85.assertIsInstructionWithAccounts)(instruction);
12457
+ case 40 /* WithdrawProtocolFees */: {
12458
+ (0, import_kit86.assertIsInstructionWithAccounts)(instruction);
12290
12459
  return {
12291
- instructionType: 39 /* WithdrawProtocolFees */,
12460
+ instructionType: 40 /* WithdrawProtocolFees */,
12292
12461
  ...parseWithdrawProtocolFeesInstruction(instruction)
12293
12462
  };
12294
12463
  }
12295
12464
  default:
12296
- throw new import_kit85.SolanaError(
12297
- import_kit85.SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE,
12465
+ throw new import_kit86.SolanaError(
12466
+ import_kit86.SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE,
12298
12467
  { instructionType, programName: "satrush" }
12299
12468
  );
12300
12469
  }
12301
12470
  }
12302
12471
  function satrushProgram() {
12303
12472
  return (client) => {
12304
- return (0, import_kit85.extendClient)(client, {
12473
+ return (0, import_kit86.extendClient)(client, {
12305
12474
  satrush: {
12306
12475
  accounts: {
12307
- board: (0, import_program_client_core41.addSelfFetchFunctions)(client, getBoardCodec()),
12308
- epochVault: (0, import_program_client_core41.addSelfFetchFunctions)(client, getEpochVaultCodec()),
12309
- epochVaultEntry: (0, import_program_client_core41.addSelfFetchFunctions)(
12476
+ board: (0, import_program_client_core42.addSelfFetchFunctions)(client, getBoardCodec()),
12477
+ epochVault: (0, import_program_client_core42.addSelfFetchFunctions)(client, getEpochVaultCodec()),
12478
+ epochVaultEntry: (0, import_program_client_core42.addSelfFetchFunctions)(
12310
12479
  client,
12311
12480
  getEpochVaultEntryCodec()
12312
12481
  ),
12313
- epochVaultIteration: (0, import_program_client_core41.addSelfFetchFunctions)(
12482
+ epochVaultIteration: (0, import_program_client_core42.addSelfFetchFunctions)(
12314
12483
  client,
12315
12484
  getEpochVaultIterationCodec()
12316
12485
  ),
12317
- epochVaultPage: (0, import_program_client_core41.addSelfFetchFunctions)(
12486
+ epochVaultPage: (0, import_program_client_core42.addSelfFetchFunctions)(
12318
12487
  client,
12319
12488
  getEpochVaultPageCodec()
12320
12489
  ),
12321
- miner: (0, import_program_client_core41.addSelfFetchFunctions)(client, getMinerCodec()),
12322
- oneBtcVault: (0, import_program_client_core41.addSelfFetchFunctions)(client, getOneBtcVaultCodec()),
12323
- oneBtcVaultEntry: (0, import_program_client_core41.addSelfFetchFunctions)(
12490
+ miner: (0, import_program_client_core42.addSelfFetchFunctions)(client, getMinerCodec()),
12491
+ oneBtcVault: (0, import_program_client_core42.addSelfFetchFunctions)(client, getOneBtcVaultCodec()),
12492
+ oneBtcVaultEntry: (0, import_program_client_core42.addSelfFetchFunctions)(
12324
12493
  client,
12325
12494
  getOneBtcVaultEntryCodec()
12326
12495
  ),
12327
- oneBtcVaultIteration: (0, import_program_client_core41.addSelfFetchFunctions)(
12496
+ oneBtcVaultIteration: (0, import_program_client_core42.addSelfFetchFunctions)(
12328
12497
  client,
12329
12498
  getOneBtcVaultIterationCodec()
12330
12499
  ),
12331
- publicAutomation: (0, import_program_client_core41.addSelfFetchFunctions)(
12500
+ publicAutomation: (0, import_program_client_core42.addSelfFetchFunctions)(
12332
12501
  client,
12333
12502
  getPublicAutomationCodec()
12334
12503
  ),
12335
- publicDeployment: (0, import_program_client_core41.addSelfFetchFunctions)(
12504
+ publicDeployment: (0, import_program_client_core42.addSelfFetchFunctions)(
12336
12505
  client,
12337
12506
  getPublicDeploymentCodec()
12338
12507
  ),
12339
- round: (0, import_program_client_core41.addSelfFetchFunctions)(client, getRoundCodec()),
12340
- satrushConfig: (0, import_program_client_core41.addSelfFetchFunctions)(client, getSatrushConfigCodec()),
12341
- satsVault: (0, import_program_client_core41.addSelfFetchFunctions)(client, getSatsVaultCodec()),
12342
- treasury: (0, import_program_client_core41.addSelfFetchFunctions)(client, getTreasuryCodec())
12508
+ round: (0, import_program_client_core42.addSelfFetchFunctions)(client, getRoundCodec()),
12509
+ satrushConfig: (0, import_program_client_core42.addSelfFetchFunctions)(client, getSatrushConfigCodec()),
12510
+ satsVault: (0, import_program_client_core42.addSelfFetchFunctions)(client, getSatsVaultCodec()),
12511
+ treasury: (0, import_program_client_core42.addSelfFetchFunctions)(client, getTreasuryCodec())
12343
12512
  },
12344
12513
  instructions: {
12345
- buyEpochTickets: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12514
+ buyEpochTickets: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12346
12515
  client,
12347
12516
  getBuyEpochTicketsInstructionAsync(input)
12348
12517
  ),
12349
- buyOneBtcTickets: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12518
+ buyOneBtcTickets: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12350
12519
  client,
12351
12520
  getBuyOneBtcTicketsInstructionAsync(input)
12352
12521
  ),
12353
- cancelPublicAutomation: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12522
+ cancelPublicAutomation: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12354
12523
  client,
12355
12524
  getCancelPublicAutomationInstructionAsync(input)
12356
12525
  ),
12357
- claimEpochReward: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12526
+ claimEpochReward: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12358
12527
  client,
12359
12528
  getClaimEpochRewardInstructionAsync(input)
12360
12529
  ),
12361
- claimOneBtcReward: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12530
+ claimOneBtcReward: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12362
12531
  client,
12363
12532
  getClaimOneBtcRewardInstructionAsync(input)
12364
12533
  ),
12365
- claimSats: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12534
+ claimSats: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12366
12535
  client,
12367
12536
  getClaimSatsInstructionAsync(input)
12368
12537
  ),
12369
- claimUsd: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12538
+ claimUsd: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12370
12539
  client,
12371
12540
  getClaimUsdInstructionAsync(input)
12372
12541
  ),
12373
- closeEpochEntry: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12542
+ closeEpochEntry: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12374
12543
  client,
12375
12544
  getCloseEpochEntryInstructionAsync(input)
12376
12545
  ),
12377
- closeEpochIteration: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12546
+ closeEpochIteration: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12378
12547
  client,
12379
12548
  getCloseEpochIterationInstructionAsync(input)
12380
12549
  ),
12381
- closeEpochPage: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12550
+ closeEpochPage: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12382
12551
  client,
12383
12552
  getCloseEpochPageInstructionAsync(input)
12384
12553
  ),
12385
- closeOneBtcIteration: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12554
+ closeOneBtcIteration: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12386
12555
  client,
12387
12556
  getCloseOneBtcIterationInstructionAsync(input)
12388
12557
  ),
12389
- closeOneBtcTicket: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12558
+ closeOneBtcTicket: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12390
12559
  client,
12391
- getCloseOneBtcTicketInstruction(input)
12560
+ getCloseOneBtcTicketInstructionAsync(input)
12392
12561
  ),
12393
- closeRound: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12562
+ closeRound: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12394
12563
  client,
12395
12564
  getCloseRoundInstructionAsync(input)
12396
12565
  ),
12397
- createBoard: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12566
+ createBoard: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12398
12567
  client,
12399
12568
  getCreateBoardInstructionAsync(input)
12400
12569
  ),
12401
- createEpochVault: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12570
+ createEpochVault: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12402
12571
  client,
12403
12572
  getCreateEpochVaultInstructionAsync(input)
12404
12573
  ),
12405
- createOneBtcVault: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12574
+ createOneBtcVault: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12406
12575
  client,
12407
12576
  getCreateOneBtcVaultInstructionAsync(input)
12408
12577
  ),
12409
- createPublicAutomation: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12578
+ createPublicAutomation: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12410
12579
  client,
12411
12580
  getCreatePublicAutomationInstructionAsync(input)
12412
12581
  ),
12413
- createSatrushConfig: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12582
+ createSatrushConfig: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12414
12583
  client,
12415
12584
  getCreateSatrushConfigInstructionAsync(input)
12416
12585
  ),
12417
- createSatsVault: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12586
+ createSatsVault: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12418
12587
  client,
12419
12588
  getCreateSatsVaultInstructionAsync(input)
12420
12589
  ),
12421
- createTreasury: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12590
+ createTreasury: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12422
12591
  client,
12423
12592
  getCreateTreasuryInstructionAsync(input)
12424
12593
  ),
12425
- deployPublic: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12594
+ deployPublic: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12426
12595
  client,
12427
12596
  getDeployPublicInstructionAsync(input)
12428
12597
  ),
12429
- executePublicAutomation: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12598
+ executePublicAutomation: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12430
12599
  client,
12431
12600
  getExecutePublicAutomationInstructionAsync(input)
12432
12601
  ),
12433
- rotateRound: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12602
+ rotateRound: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12434
12603
  client,
12435
12604
  getRotateRoundInstructionAsync(input)
12436
12605
  ),
12437
- sealEpochPage: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12606
+ sealEpochPage: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12438
12607
  client,
12439
12608
  getSealEpochPageInstructionAsync(input)
12440
12609
  ),
12441
- selectEpochWinner: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12610
+ selectEpochWinner: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12442
12611
  client,
12443
12612
  getSelectEpochWinnerInstructionAsync(input)
12444
12613
  ),
12445
- settleDeployPublic: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12614
+ settleDeployPublic: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12446
12615
  client,
12447
12616
  getSettleDeployPublicInstructionAsync(input)
12448
12617
  ),
12449
- swapEpochStake: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12618
+ swapEpochStake: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12450
12619
  client,
12451
12620
  getSwapEpochStakeInstructionAsync(input)
12452
12621
  ),
12453
- swapOneBtcStake: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12622
+ swapOneBtcStake: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12454
12623
  client,
12455
12624
  getSwapOneBtcStakeInstructionAsync(input)
12456
12625
  ),
12457
- swapRoundStake: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12626
+ swapRoundStake: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12458
12627
  client,
12459
12628
  getSwapRoundStakeInstructionAsync(input)
12460
12629
  ),
12461
- swapStrikeStake: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12630
+ swapStrikeStake: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12462
12631
  client,
12463
12632
  getSwapStrikeStakeInstructionAsync(input)
12464
12633
  ),
12465
- topUpPublicAutomation: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12634
+ topUpPublicAutomation: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12466
12635
  client,
12467
12636
  getTopUpPublicAutomationInstructionAsync(input)
12468
12637
  ),
12469
- triggerEpochDraw: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12638
+ triggerEpochDraw: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12470
12639
  client,
12471
12640
  getTriggerEpochDrawInstructionAsync(input)
12472
12641
  ),
12473
- triggerOneBtcDraw: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12642
+ triggerOneBtcDraw: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12474
12643
  client,
12475
12644
  getTriggerOneBtcDrawInstructionAsync(input)
12476
12645
  ),
12477
- updateBoardRoundDuration: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12646
+ updateBoardRoundDuration: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12478
12647
  client,
12479
12648
  getUpdateBoardRoundDurationInstructionAsync(input)
12480
12649
  ),
12481
- updateDeploymentSettleGraceDuration: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12650
+ updateDeployFees: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12651
+ client,
12652
+ getUpdateDeployFeesInstructionAsync(input)
12653
+ ),
12654
+ updateDeploymentSettleGraceDuration: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12482
12655
  client,
12483
12656
  getUpdateDeploymentSettleGraceDurationInstructionAsync(input)
12484
12657
  ),
12485
- updateEpochVaultIterationDuration: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12658
+ updateEpochVaultIterationDuration: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12486
12659
  client,
12487
12660
  getUpdateEpochVaultIterationDurationInstructionAsync(input)
12488
12661
  ),
12489
- updateMinDeployUsdAmount: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12662
+ updateMinDeployUsdAmount: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12490
12663
  client,
12491
12664
  getUpdateMinDeployUsdAmountInstructionAsync(input)
12492
12665
  ),
12493
- updateStrikeTriggerModulus: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12666
+ updateStrikeTriggerModulus: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12494
12667
  client,
12495
12668
  getUpdateStrikeTriggerModulusInstructionAsync(input)
12496
12669
  ),
12497
- updateUnclaimedHashrateBps: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12670
+ updateUnclaimedHashrateBps: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12498
12671
  client,
12499
12672
  getUpdateUnclaimedHashrateBpsInstructionAsync(input)
12500
12673
  ),
12501
- withdrawProtocolFees: (input) => (0, import_program_client_core41.addSelfPlanAndSendFunctions)(
12674
+ withdrawProtocolFees: (input) => (0, import_program_client_core42.addSelfPlanAndSendFunctions)(
12502
12675
  client,
12503
12676
  getWithdrawProtocolFeesInstructionAsync(input)
12504
12677
  )
@@ -12578,6 +12751,8 @@ var SATRUSH_ERROR__INVALID_EPOCH_ITERATION_DURATION = 6048;
12578
12751
  var SATRUSH_ERROR__INVALID_UNCLAIMED_HASHRATE_BPS = 6049;
12579
12752
  var SATRUSH_ERROR__INVALID_STRIKE_TRIGGER_MODULUS = 6050;
12580
12753
  var SATRUSH_ERROR__INVALID_SWAP_BPS = 6051;
12754
+ var SATRUSH_ERROR__INVALID_MINT_DATA = 6052;
12755
+ var SATRUSH_ERROR__INVALID_DEPLOY_FEES = 6053;
12581
12756
  var satrushErrorMessages;
12582
12757
  if (process.env["NODE_ENV"] !== "production") {
12583
12758
  satrushErrorMessages = {
@@ -12602,9 +12777,11 @@ if (process.env["NODE_ENV"] !== "production") {
12602
12777
  [SATRUSH_ERROR__INVALID_AUTOMATION_AMOUNT]: `Automation amount must be greater than zero`,
12603
12778
  [SATRUSH_ERROR__INVALID_AUTOMATION_STRATEGY_MASK]: `Selection mask does not match the automation strategy`,
12604
12779
  [SATRUSH_ERROR__INVALID_CLAIM_AMOUNT]: `Claim amount must be greater than zero`,
12780
+ [SATRUSH_ERROR__INVALID_DEPLOY_FEES]: `Deploy fee legs must each be at least 1 bps and sum to exactly 800 bps`,
12605
12781
  [SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT]: `Deployment amount must be greater than zero`,
12606
12782
  [SATRUSH_ERROR__INVALID_ENTROPY]: `Entropy value is invalid`,
12607
12783
  [SATRUSH_ERROR__INVALID_EPOCH_ITERATION_DURATION]: `Epoch iteration duration must be greater than zero`,
12784
+ [SATRUSH_ERROR__INVALID_MINT_DATA]: `Mint account data is too short to contain the decimals field`,
12608
12785
  [SATRUSH_ERROR__INVALID_ROUND_DURATION]: `Round duration must be greater than zero`,
12609
12786
  [SATRUSH_ERROR__INVALID_ROUND_ID]: `Invalid round id supplied to create round`,
12610
12787
  [SATRUSH_ERROR__INVALID_SELECTION_MASK]: `Selection mask must pick between 1 and 21 tiles within the 21-bit range`,
@@ -12642,7 +12819,7 @@ function getSatrushErrorMessage(code) {
12642
12819
  return "Error message not available in production bundles.";
12643
12820
  }
12644
12821
  function isSatrushError(error, transactionMessage, code) {
12645
- return (0, import_kit86.isProgramError)(
12822
+ return (0, import_kit87.isProgramError)(
12646
12823
  error,
12647
12824
  transactionMessage,
12648
12825
  SATRUSH_PROGRAM_ADDRESS,
@@ -12651,111 +12828,111 @@ function isSatrushError(error, transactionMessage, code) {
12651
12828
  }
12652
12829
 
12653
12830
  // src/builders.ts
12654
- var import_kit88 = require("@solana/kit");
12831
+ var import_kit89 = require("@solana/kit");
12655
12832
  var import_token = require("@solana-program/token");
12656
12833
 
12657
12834
  // src/pda.ts
12658
- var import_kit87 = require("@solana/kit");
12835
+ var import_kit88 = require("@solana/kit");
12659
12836
  async function getSatrushConfigAddress() {
12660
- return await (0, import_kit87.getProgramDerivedAddress)({
12837
+ return await (0, import_kit88.getProgramDerivedAddress)({
12661
12838
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12662
12839
  seeds: ["satrush_config"]
12663
12840
  });
12664
12841
  }
12665
12842
  async function getEventAuthorityAddress() {
12666
- return await (0, import_kit87.getProgramDerivedAddress)({
12843
+ return await (0, import_kit88.getProgramDerivedAddress)({
12667
12844
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12668
12845
  seeds: ["__event_authority"]
12669
12846
  });
12670
12847
  }
12671
12848
  async function getBoardAddress() {
12672
- return await (0, import_kit87.getProgramDerivedAddress)({
12849
+ return await (0, import_kit88.getProgramDerivedAddress)({
12673
12850
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12674
12851
  seeds: ["board"]
12675
12852
  });
12676
12853
  }
12677
12854
  async function getRoundAddress(roundId) {
12678
- return await (0, import_kit87.getProgramDerivedAddress)({
12855
+ return await (0, import_kit88.getProgramDerivedAddress)({
12679
12856
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12680
- seeds: ["round", (0, import_kit87.getU32Encoder)().encode(roundId)]
12857
+ seeds: ["round", (0, import_kit88.getU32Encoder)().encode(roundId)]
12681
12858
  });
12682
12859
  }
12683
12860
  async function getPublicDeploymentAddress(authority, roundId) {
12684
- return await (0, import_kit87.getProgramDerivedAddress)({
12861
+ return await (0, import_kit88.getProgramDerivedAddress)({
12685
12862
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12686
12863
  seeds: [
12687
12864
  "public_deployment",
12688
- (0, import_kit87.getAddressEncoder)().encode(authority),
12689
- (0, import_kit87.getU32Encoder)().encode(roundId)
12865
+ (0, import_kit88.getAddressEncoder)().encode(authority),
12866
+ (0, import_kit88.getU32Encoder)().encode(roundId)
12690
12867
  ]
12691
12868
  });
12692
12869
  }
12693
12870
  async function getMinerAddress(authority) {
12694
- return await (0, import_kit87.getProgramDerivedAddress)({
12871
+ return await (0, import_kit88.getProgramDerivedAddress)({
12695
12872
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12696
- seeds: ["miner", (0, import_kit87.getAddressEncoder)().encode(authority)]
12873
+ seeds: ["miner", (0, import_kit88.getAddressEncoder)().encode(authority)]
12697
12874
  });
12698
12875
  }
12699
12876
  async function getSatsVaultAddress() {
12700
- return await (0, import_kit87.getProgramDerivedAddress)({
12877
+ return await (0, import_kit88.getProgramDerivedAddress)({
12701
12878
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12702
12879
  seeds: ["sats_vault"]
12703
12880
  });
12704
12881
  }
12705
12882
  async function getEpochVaultAddress() {
12706
- return await (0, import_kit87.getProgramDerivedAddress)({
12883
+ return await (0, import_kit88.getProgramDerivedAddress)({
12707
12884
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12708
12885
  seeds: ["epoch_vault"]
12709
12886
  });
12710
12887
  }
12711
12888
  async function getEpochVaultIterationAddress(iterationId) {
12712
- return await (0, import_kit87.getProgramDerivedAddress)({
12889
+ return await (0, import_kit88.getProgramDerivedAddress)({
12713
12890
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12714
- seeds: ["epoch_vault_iteration", (0, import_kit87.getU32Encoder)().encode(iterationId)]
12891
+ seeds: ["epoch_vault_iteration", (0, import_kit88.getU32Encoder)().encode(iterationId)]
12715
12892
  });
12716
12893
  }
12717
12894
  async function getEpochVaultEntryAddress(iterationId, authority) {
12718
- return await (0, import_kit87.getProgramDerivedAddress)({
12895
+ return await (0, import_kit88.getProgramDerivedAddress)({
12719
12896
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12720
12897
  seeds: [
12721
12898
  "epoch_vault_entry",
12722
- (0, import_kit87.getU32Encoder)().encode(iterationId),
12723
- (0, import_kit87.getAddressEncoder)().encode(authority)
12899
+ (0, import_kit88.getU32Encoder)().encode(iterationId),
12900
+ (0, import_kit88.getAddressEncoder)().encode(authority)
12724
12901
  ]
12725
12902
  });
12726
12903
  }
12727
12904
  async function getEpochVaultPageAddress(iterationId, pageIndex) {
12728
- return await (0, import_kit87.getProgramDerivedAddress)({
12905
+ return await (0, import_kit88.getProgramDerivedAddress)({
12729
12906
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12730
12907
  seeds: [
12731
12908
  "epoch_vault_page",
12732
- (0, import_kit87.getU32Encoder)().encode(iterationId),
12733
- (0, import_kit87.getU16Encoder)().encode(pageIndex)
12909
+ (0, import_kit88.getU32Encoder)().encode(iterationId),
12910
+ (0, import_kit88.getU16Encoder)().encode(pageIndex)
12734
12911
  ]
12735
12912
  });
12736
12913
  }
12737
12914
  async function getOneBtcVaultAddress() {
12738
- return await (0, import_kit87.getProgramDerivedAddress)({
12915
+ return await (0, import_kit88.getProgramDerivedAddress)({
12739
12916
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12740
12917
  seeds: ["one_btc_vault"]
12741
12918
  });
12742
12919
  }
12743
12920
  async function getOneBtcVaultIterationAddress(iterationId) {
12744
- return await (0, import_kit87.getProgramDerivedAddress)({
12921
+ return await (0, import_kit88.getProgramDerivedAddress)({
12745
12922
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12746
- seeds: ["one_btc_vault_iteration", (0, import_kit87.getU32Encoder)().encode(iterationId)]
12923
+ seeds: ["one_btc_vault_iteration", (0, import_kit88.getU32Encoder)().encode(iterationId)]
12747
12924
  });
12748
12925
  }
12749
12926
  async function getTreasuryAddress() {
12750
- return await (0, import_kit87.getProgramDerivedAddress)({
12927
+ return await (0, import_kit88.getProgramDerivedAddress)({
12751
12928
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12752
12929
  seeds: ["treasury"]
12753
12930
  });
12754
12931
  }
12755
12932
  async function getPublicAutomationAddress(authority) {
12756
- return await (0, import_kit87.getProgramDerivedAddress)({
12933
+ return await (0, import_kit88.getProgramDerivedAddress)({
12757
12934
  programAddress: SATRUSH_PROGRAM_ADDRESS,
12758
- seeds: ["public_automation", (0, import_kit87.getAddressEncoder)().encode(authority)]
12935
+ seeds: ["public_automation", (0, import_kit88.getAddressEncoder)().encode(authority)]
12759
12936
  });
12760
12937
  }
12761
12938
 
@@ -12773,7 +12950,7 @@ async function buildDeployPublicInstruction(authority, usdMint, roundId, selecti
12773
12950
  });
12774
12951
  const [eventAuthority] = await getEventAuthorityAddress();
12775
12952
  return await getDeployPublicInstructionAsync({
12776
- authority: (0, import_kit88.createNoopSigner)(authority),
12953
+ authority: (0, import_kit89.createNoopSigner)(authority),
12777
12954
  usdMint,
12778
12955
  round,
12779
12956
  authorityUsdAta,
@@ -12799,7 +12976,7 @@ async function buildSettleDeployPublicInstruction(authority, deploymentAuthority
12799
12976
  mint: usdMint
12800
12977
  });
12801
12978
  return await getSettleDeployPublicInstructionAsync({
12802
- authority: (0, import_kit88.createNoopSigner)(authority),
12979
+ authority: (0, import_kit89.createNoopSigner)(authority),
12803
12980
  rentRecipient,
12804
12981
  round,
12805
12982
  publicDeployment,
@@ -12815,7 +12992,7 @@ async function buildSettleDeployPublicInstruction(authority, deploymentAuthority
12815
12992
  async function buildClaimSatsInstruction(authority, btcMint, shares) {
12816
12993
  const [eventAuthority] = await getEventAuthorityAddress();
12817
12994
  return await getClaimSatsInstructionAsync({
12818
- authority: (0, import_kit88.createNoopSigner)(authority),
12995
+ authority: (0, import_kit89.createNoopSigner)(authority),
12819
12996
  btcMint,
12820
12997
  shares,
12821
12998
  eventAuthority,
@@ -12824,7 +13001,7 @@ async function buildClaimSatsInstruction(authority, btcMint, shares) {
12824
13001
  }
12825
13002
  async function buildClaimUsdInstruction(authority, usdMint, amount) {
12826
13003
  return await getClaimUsdInstructionAsync({
12827
- authority: (0, import_kit88.createNoopSigner)(authority),
13004
+ authority: (0, import_kit89.createNoopSigner)(authority),
12828
13005
  usdMint,
12829
13006
  amount
12830
13007
  });
@@ -12836,7 +13013,7 @@ async function buildCreatePublicAutomationInstruction(authority, usdMint, strate
12836
13013
  mint: usdMint
12837
13014
  });
12838
13015
  return await getCreatePublicAutomationInstructionAsync({
12839
- authority: (0, import_kit88.createNoopSigner)(authority),
13016
+ authority: (0, import_kit89.createNoopSigner)(authority),
12840
13017
  usdMint,
12841
13018
  authorityUsdAta,
12842
13019
  strategy,
@@ -12853,7 +13030,7 @@ async function buildTopUpPublicAutomationInstruction(authority, usdMint, amount)
12853
13030
  mint: usdMint
12854
13031
  });
12855
13032
  return await getTopUpPublicAutomationInstructionAsync({
12856
- authority: (0, import_kit88.createNoopSigner)(authority),
13033
+ authority: (0, import_kit89.createNoopSigner)(authority),
12857
13034
  usdMint,
12858
13035
  authorityUsdAta,
12859
13036
  amount
@@ -12861,7 +13038,7 @@ async function buildTopUpPublicAutomationInstruction(authority, usdMint, amount)
12861
13038
  }
12862
13039
  async function buildCancelPublicAutomationInstruction(authority, usdMint) {
12863
13040
  return await getCancelPublicAutomationInstructionAsync({
12864
- authority: (0, import_kit88.createNoopSigner)(authority),
13041
+ authority: (0, import_kit89.createNoopSigner)(authority),
12865
13042
  usdMint
12866
13043
  });
12867
13044
  }
@@ -12885,7 +13062,7 @@ async function buildExecutePublicAutomationInstruction(crankAuthority, automatio
12885
13062
  ]);
12886
13063
  const [eventAuthority] = await getEventAuthorityAddress();
12887
13064
  return await getExecutePublicAutomationInstructionAsync({
12888
- authority: (0, import_kit88.createNoopSigner)(crankAuthority),
13065
+ authority: (0, import_kit89.createNoopSigner)(crankAuthority),
12889
13066
  round,
12890
13067
  publicAutomation,
12891
13068
  usdMint,
@@ -12910,6 +13087,8 @@ var HASHRATE_DECIMALS = 2;
12910
13087
  var HASHRATE_PER_TICKET = 100n;
12911
13088
  var LOYALTY_WEIGHT = 1n;
12912
13089
  var SKILL_WEIGHT = 1n;
13090
+ var STRIKE_BOOST_ROUNDS = 240;
13091
+ var STRIKE_BOOST_HASHRATE_MULTIPLIER = 2n;
12913
13092
  function getHashrateUiAmount(hashrate) {
12914
13093
  assertU64(hashrate, "hashrate");
12915
13094
  const whole = hashrate / HASHRATE_PER_TICKET;
@@ -12925,9 +13104,10 @@ var ZERO_REWARD = {
12925
13104
  skillPoints: 0n,
12926
13105
  total: 0n
12927
13106
  };
12928
- function hashrateReward(stake, streak, covered, totalTiles, usdUnit) {
13107
+ function hashrateReward(stake, streak, covered, totalTiles, usdUnit, hashrateMultiplier = 1n) {
12929
13108
  assertU64(stake, "stake");
12930
13109
  assertU64(usdUnit, "usdUnit");
13110
+ assertU64(hashrateMultiplier, "hashrateMultiplier");
12931
13111
  if (stake === 0n || covered === 0) {
12932
13112
  return ZERO_REWARD;
12933
13113
  }
@@ -12935,9 +13115,9 @@ function hashrateReward(stake, streak, covered, totalTiles, usdUnit) {
12935
13115
  const denom = coveredBig * usdUnit;
12936
13116
  const skillNum = stake * (SKILL_WEIGHT * BigInt(totalTiles));
12937
13117
  const loyaltyNum = stake * (LOYALTY_WEIGHT * BigInt(streak) * coveredBig);
12938
- const total = (loyaltyNum + skillNum) / denom;
13118
+ const total = (loyaltyNum + skillNum) / denom * hashrateMultiplier;
12939
13119
  assertU64(total, "hashrate reward total");
12940
- const skillPoints = skillNum / denom;
13120
+ const skillPoints = skillNum / denom * hashrateMultiplier;
12941
13121
  const loyaltyPoints = total - skillPoints;
12942
13122
  return { loyaltyPoints, skillPoints, total };
12943
13123
  }
@@ -13080,8 +13260,10 @@ function nextStreakMultiplier(currentStreakCount, lastMinedRoundId, nextRoundId)
13080
13260
  SATRUSH_ERROR__INVALID_AUTOMATION_STRATEGY_MASK,
13081
13261
  SATRUSH_ERROR__INVALID_CLAIM_AMOUNT,
13082
13262
  SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT,
13263
+ SATRUSH_ERROR__INVALID_DEPLOY_FEES,
13083
13264
  SATRUSH_ERROR__INVALID_ENTROPY,
13084
13265
  SATRUSH_ERROR__INVALID_EPOCH_ITERATION_DURATION,
13266
+ SATRUSH_ERROR__INVALID_MINT_DATA,
13085
13267
  SATRUSH_ERROR__INVALID_ROUND_DURATION,
13086
13268
  SATRUSH_ERROR__INVALID_ROUND_ID,
13087
13269
  SATRUSH_ERROR__INVALID_SELECTION_MASK,
@@ -13117,6 +13299,8 @@ function nextStreakMultiplier(currentStreakCount, lastMinedRoundId, nextRoundId)
13117
13299
  SETTLE_DEPLOY_PUBLIC_DISCRIMINATOR,
13118
13300
  SHARE_OFFSET,
13119
13301
  SKILL_WEIGHT,
13302
+ STRIKE_BOOST_HASHRATE_MULTIPLIER,
13303
+ STRIKE_BOOST_ROUNDS,
13120
13304
  SWAP_EPOCH_STAKE_DISCRIMINATOR,
13121
13305
  SWAP_ONE_BTC_STAKE_DISCRIMINATOR,
13122
13306
  SWAP_ROUND_STAKE_DISCRIMINATOR,
@@ -13130,6 +13314,7 @@ function nextStreakMultiplier(currentStreakCount, lastMinedRoundId, nextRoundId)
13130
13314
  TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR,
13131
13315
  UPDATE_BOARD_ROUND_DURATION_DISCRIMINATOR,
13132
13316
  UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR,
13317
+ UPDATE_DEPLOY_FEES_DISCRIMINATOR,
13133
13318
  UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR,
13134
13319
  UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR,
13135
13320
  UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR,
@@ -13308,6 +13493,7 @@ function nextStreakMultiplier(currentStreakCount, lastMinedRoundId, nextRoundId)
13308
13493
  getCloseOneBtcIterationInstructionDataEncoder,
13309
13494
  getCloseOneBtcTicketDiscriminatorBytes,
13310
13495
  getCloseOneBtcTicketInstruction,
13496
+ getCloseOneBtcTicketInstructionAsync,
13311
13497
  getCloseOneBtcTicketInstructionDataCodec,
13312
13498
  getCloseOneBtcTicketInstructionDataDecoder,
13313
13499
  getCloseOneBtcTicketInstructionDataEncoder,
@@ -13573,6 +13759,12 @@ function nextStreakMultiplier(currentStreakCount, lastMinedRoundId, nextRoundId)
13573
13759
  getUpdateBoardRoundDurationInstructionDataCodec,
13574
13760
  getUpdateBoardRoundDurationInstructionDataDecoder,
13575
13761
  getUpdateBoardRoundDurationInstructionDataEncoder,
13762
+ getUpdateDeployFeesDiscriminatorBytes,
13763
+ getUpdateDeployFeesInstruction,
13764
+ getUpdateDeployFeesInstructionAsync,
13765
+ getUpdateDeployFeesInstructionDataCodec,
13766
+ getUpdateDeployFeesInstructionDataDecoder,
13767
+ getUpdateDeployFeesInstructionDataEncoder,
13576
13768
  getUpdateDeploymentSettleGraceDurationDiscriminatorBytes,
13577
13769
  getUpdateDeploymentSettleGraceDurationInstruction,
13578
13770
  getUpdateDeploymentSettleGraceDurationInstructionAsync,
@@ -13652,6 +13844,7 @@ function nextStreakMultiplier(currentStreakCount, lastMinedRoundId, nextRoundId)
13652
13844
  parseTriggerEpochDrawInstruction,
13653
13845
  parseTriggerOneBtcDrawInstruction,
13654
13846
  parseUpdateBoardRoundDurationInstruction,
13847
+ parseUpdateDeployFeesInstruction,
13655
13848
  parseUpdateDeploymentSettleGraceDurationInstruction,
13656
13849
  parseUpdateEpochVaultIterationDurationInstruction,
13657
13850
  parseUpdateMinDeployUsdAmountInstruction,