@satrush/client 0.1.9 → 0.1.11

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.mjs CHANGED
@@ -49,7 +49,9 @@ function getBoardEncoder() {
49
49
  ["strikeUsdAmount", getU64Encoder()],
50
50
  ["strikeBtcAmount", getU64Encoder()],
51
51
  ["strikeLastTriggerRoundId", getU32Encoder()],
52
- ["reserved", fixEncoderSize(getBytesEncoder(), 30)]
52
+ ["strikeReserveUsdAmount", getU64Encoder()],
53
+ ["strikeReserveBtcAmount", getU64Encoder()],
54
+ ["reserved", fixEncoderSize(getBytesEncoder(), 14)]
53
55
  ]),
54
56
  (value) => ({ ...value, discriminator: BOARD_DISCRIMINATOR })
55
57
  );
@@ -67,7 +69,9 @@ function getBoardDecoder() {
67
69
  ["strikeUsdAmount", getU64Decoder()],
68
70
  ["strikeBtcAmount", getU64Decoder()],
69
71
  ["strikeLastTriggerRoundId", getU32Decoder()],
70
- ["reserved", fixDecoderSize(getBytesDecoder(), 30)]
72
+ ["strikeReserveUsdAmount", getU64Decoder()],
73
+ ["strikeReserveBtcAmount", getU64Decoder()],
74
+ ["reserved", fixDecoderSize(getBytesDecoder(), 14)]
71
75
  ]);
72
76
  }
73
77
  function getBoardCodec() {
@@ -886,6 +890,12 @@ function getRoundRevealedEncoder() {
886
890
  ["isStrikeTriggered", getBooleanEncoder3()],
887
891
  ["strikeBonusUsd", getU64Encoder12()],
888
892
  ["strikeBonusBtc", getU64Encoder12()],
893
+ ["strikeEpochUsd", getU64Encoder12()],
894
+ ["strikeEpochBtc", getU64Encoder12()],
895
+ ["strikeReserveUsd", getU64Encoder12()],
896
+ ["strikeReserveBtc", getU64Encoder12()],
897
+ ["strikeSeedFromReserveUsd", getU64Encoder12()],
898
+ ["strikeSeedFromReserveBtc", getU64Encoder12()],
889
899
  ["epochFeeUsdAmount", getU64Encoder12()],
890
900
  ["oneBtcFeeUsdAmount", getU64Encoder12()],
891
901
  ["protocolFeeUsdAmount", getU64Encoder12()]
@@ -907,6 +917,12 @@ function getRoundRevealedDecoder() {
907
917
  ["isStrikeTriggered", getBooleanDecoder3()],
908
918
  ["strikeBonusUsd", getU64Decoder12()],
909
919
  ["strikeBonusBtc", getU64Decoder12()],
920
+ ["strikeEpochUsd", getU64Decoder12()],
921
+ ["strikeEpochBtc", getU64Decoder12()],
922
+ ["strikeReserveUsd", getU64Decoder12()],
923
+ ["strikeReserveBtc", getU64Decoder12()],
924
+ ["strikeSeedFromReserveUsd", getU64Decoder12()],
925
+ ["strikeSeedFromReserveBtc", getU64Decoder12()],
910
926
  ["epochFeeUsdAmount", getU64Decoder12()],
911
927
  ["oneBtcFeeUsdAmount", getU64Decoder12()],
912
928
  ["protocolFeeUsdAmount", getU64Decoder12()]
@@ -1948,6 +1964,8 @@ import {
1948
1964
  fixEncoderSize as fixEncoderSize22,
1949
1965
  getArrayDecoder as getArrayDecoder3,
1950
1966
  getArrayEncoder as getArrayEncoder3,
1967
+ getBooleanDecoder as getBooleanDecoder7,
1968
+ getBooleanEncoder as getBooleanEncoder7,
1951
1969
  getBytesDecoder as getBytesDecoder12,
1952
1970
  getBytesEncoder as getBytesEncoder22,
1953
1971
  getOptionDecoder as getOptionDecoder2,
@@ -2006,7 +2024,8 @@ function getRoundEncoder() {
2006
2024
  ["pendingEpochFeeUsdAmount", getU64Encoder25()],
2007
2025
  ["pendingOneBtcFeeUsdAmount", getU64Encoder25()],
2008
2026
  ["pendingProtocolFeeUsdAmount", getU64Encoder25()],
2009
- ["reserved", fixEncoderSize22(getBytesEncoder22(), 40)]
2027
+ ["isHashrateBoosted", getBooleanEncoder7()],
2028
+ ["reserved", fixEncoderSize22(getBytesEncoder22(), 39)]
2010
2029
  ]),
2011
2030
  (value) => ({ ...value, discriminator: ROUND_DISCRIMINATOR })
2012
2031
  );
@@ -2036,7 +2055,8 @@ function getRoundDecoder() {
2036
2055
  ["pendingEpochFeeUsdAmount", getU64Decoder25()],
2037
2056
  ["pendingOneBtcFeeUsdAmount", getU64Decoder25()],
2038
2057
  ["pendingProtocolFeeUsdAmount", getU64Decoder25()],
2039
- ["reserved", fixDecoderSize12(getBytesDecoder12(), 40)]
2058
+ ["isHashrateBoosted", getBooleanDecoder7()],
2059
+ ["reserved", fixDecoderSize12(getBytesDecoder12(), 39)]
2040
2060
  ]);
2041
2061
  }
2042
2062
  function getRoundCodec() {
@@ -2116,7 +2136,7 @@ function getSatrushConfigEncoder() {
2116
2136
  ["bump", getU8Encoder14()],
2117
2137
  ["ownerAuthority", getAddressEncoder14()],
2118
2138
  ["adminAuthority", getAddressEncoder14()],
2119
- ["roundAuthority", getAddressEncoder14()],
2139
+ ["gameAuthority", getAddressEncoder14()],
2120
2140
  ["feeRecipient", getAddressEncoder14()],
2121
2141
  ["usdMint", getAddressEncoder14()],
2122
2142
  ["btcMint", getAddressEncoder14()],
@@ -2143,7 +2163,7 @@ function getSatrushConfigDecoder() {
2143
2163
  ["bump", getU8Decoder14()],
2144
2164
  ["ownerAuthority", getAddressDecoder14()],
2145
2165
  ["adminAuthority", getAddressDecoder14()],
2146
- ["roundAuthority", getAddressDecoder14()],
2166
+ ["gameAuthority", getAddressDecoder14()],
2147
2167
  ["feeRecipient", getAddressDecoder14()],
2148
2168
  ["usdMint", getAddressDecoder14()],
2149
2169
  ["btcMint", getAddressDecoder14()],
@@ -2386,12 +2406,12 @@ import {
2386
2406
  assertIsInstructionWithAccounts,
2387
2407
  containsBytes,
2388
2408
  extendClient,
2389
- fixEncoderSize as fixEncoderSize66,
2390
- getBytesEncoder as getBytesEncoder78,
2409
+ fixEncoderSize as fixEncoderSize67,
2410
+ getBytesEncoder as getBytesEncoder79,
2391
2411
  SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT,
2392
2412
  SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION,
2393
2413
  SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE,
2394
- SolanaError as SolanaError41
2414
+ SolanaError as SolanaError42
2395
2415
  } from "@solana/kit";
2396
2416
  import {
2397
2417
  addSelfFetchFunctions,
@@ -4750,7 +4770,8 @@ async function getCloseEpochEntryInstructionAsync(input, config) {
4750
4770
  value: input.epochVaultIteration ?? null,
4751
4771
  isWritable: false
4752
4772
  },
4753
- epochVaultEntry: { value: input.epochVaultEntry ?? null, isWritable: true }
4773
+ epochVaultEntry: { value: input.epochVaultEntry ?? null, isWritable: true },
4774
+ entryOwner: { value: input.entryOwner ?? null, isWritable: true }
4754
4775
  };
4755
4776
  const accounts = originalAccounts;
4756
4777
  if (!accounts.satrushConfig.value) {
@@ -4762,7 +4783,8 @@ async function getCloseEpochEntryInstructionAsync(input, config) {
4762
4783
  getAccountMeta("authority", accounts.authority),
4763
4784
  getAccountMeta("satrushConfig", accounts.satrushConfig),
4764
4785
  getAccountMeta("epochVaultIteration", accounts.epochVaultIteration),
4765
- getAccountMeta("epochVaultEntry", accounts.epochVaultEntry)
4786
+ getAccountMeta("epochVaultEntry", accounts.epochVaultEntry),
4787
+ getAccountMeta("entryOwner", accounts.entryOwner)
4766
4788
  ],
4767
4789
  data: getCloseEpochEntryInstructionDataEncoder().encode({}),
4768
4790
  programAddress
@@ -4777,7 +4799,8 @@ function getCloseEpochEntryInstruction(input, config) {
4777
4799
  value: input.epochVaultIteration ?? null,
4778
4800
  isWritable: false
4779
4801
  },
4780
- epochVaultEntry: { value: input.epochVaultEntry ?? null, isWritable: true }
4802
+ epochVaultEntry: { value: input.epochVaultEntry ?? null, isWritable: true },
4803
+ entryOwner: { value: input.entryOwner ?? null, isWritable: true }
4781
4804
  };
4782
4805
  const accounts = originalAccounts;
4783
4806
  const getAccountMeta = getAccountMetaFactory8(programAddress, "programId");
@@ -4786,19 +4809,20 @@ function getCloseEpochEntryInstruction(input, config) {
4786
4809
  getAccountMeta("authority", accounts.authority),
4787
4810
  getAccountMeta("satrushConfig", accounts.satrushConfig),
4788
4811
  getAccountMeta("epochVaultIteration", accounts.epochVaultIteration),
4789
- getAccountMeta("epochVaultEntry", accounts.epochVaultEntry)
4812
+ getAccountMeta("epochVaultEntry", accounts.epochVaultEntry),
4813
+ getAccountMeta("entryOwner", accounts.entryOwner)
4790
4814
  ],
4791
4815
  data: getCloseEpochEntryInstructionDataEncoder().encode({}),
4792
4816
  programAddress
4793
4817
  });
4794
4818
  }
4795
4819
  function parseCloseEpochEntryInstruction(instruction) {
4796
- if (instruction.accounts.length < 4) {
4820
+ if (instruction.accounts.length < 5) {
4797
4821
  throw new SolanaError8(
4798
4822
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS8,
4799
4823
  {
4800
4824
  actualAccountMetas: instruction.accounts.length,
4801
- expectedAccountMetas: 4
4825
+ expectedAccountMetas: 5
4802
4826
  }
4803
4827
  );
4804
4828
  }
@@ -4814,7 +4838,8 @@ function parseCloseEpochEntryInstruction(instruction) {
4814
4838
  authority: getNextAccount(),
4815
4839
  satrushConfig: getNextAccount(),
4816
4840
  epochVaultIteration: getNextAccount(),
4817
- epochVaultEntry: getNextAccount()
4841
+ epochVaultEntry: getNextAccount(),
4842
+ entryOwner: getNextAccount()
4818
4843
  },
4819
4844
  data: getCloseEpochEntryInstructionDataDecoder().decode(instruction.data)
4820
4845
  };
@@ -5210,35 +5235,68 @@ function getCloseOneBtcTicketInstructionDataCodec() {
5210
5235
  getCloseOneBtcTicketInstructionDataDecoder()
5211
5236
  );
5212
5237
  }
5238
+ async function getCloseOneBtcTicketInstructionAsync(input, config) {
5239
+ const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
5240
+ const originalAccounts = {
5241
+ authority: { value: input.authority ?? null, isWritable: true },
5242
+ satrushConfig: { value: input.satrushConfig ?? null, isWritable: false },
5243
+ oneBtcVaultIteration: {
5244
+ value: input.oneBtcVaultIteration ?? null,
5245
+ isWritable: false
5246
+ },
5247
+ ticket: { value: input.ticket ?? null, isWritable: true },
5248
+ ticketOwner: { value: input.ticketOwner ?? null, isWritable: true }
5249
+ };
5250
+ const accounts = originalAccounts;
5251
+ if (!accounts.satrushConfig.value) {
5252
+ accounts.satrushConfig.value = await findSatrushConfigPda();
5253
+ }
5254
+ const getAccountMeta = getAccountMetaFactory12(programAddress, "programId");
5255
+ return Object.freeze({
5256
+ accounts: [
5257
+ getAccountMeta("authority", accounts.authority),
5258
+ getAccountMeta("satrushConfig", accounts.satrushConfig),
5259
+ getAccountMeta("oneBtcVaultIteration", accounts.oneBtcVaultIteration),
5260
+ getAccountMeta("ticket", accounts.ticket),
5261
+ getAccountMeta("ticketOwner", accounts.ticketOwner)
5262
+ ],
5263
+ data: getCloseOneBtcTicketInstructionDataEncoder().encode({}),
5264
+ programAddress
5265
+ });
5266
+ }
5213
5267
  function getCloseOneBtcTicketInstruction(input, config) {
5214
5268
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
5215
5269
  const originalAccounts = {
5216
5270
  authority: { value: input.authority ?? null, isWritable: true },
5271
+ satrushConfig: { value: input.satrushConfig ?? null, isWritable: false },
5217
5272
  oneBtcVaultIteration: {
5218
5273
  value: input.oneBtcVaultIteration ?? null,
5219
5274
  isWritable: false
5220
5275
  },
5221
- ticket: { value: input.ticket ?? null, isWritable: true }
5276
+ ticket: { value: input.ticket ?? null, isWritable: true },
5277
+ ticketOwner: { value: input.ticketOwner ?? null, isWritable: true }
5222
5278
  };
5223
5279
  const accounts = originalAccounts;
5224
5280
  const getAccountMeta = getAccountMetaFactory12(programAddress, "programId");
5225
5281
  return Object.freeze({
5226
5282
  accounts: [
5227
5283
  getAccountMeta("authority", accounts.authority),
5284
+ getAccountMeta("satrushConfig", accounts.satrushConfig),
5228
5285
  getAccountMeta("oneBtcVaultIteration", accounts.oneBtcVaultIteration),
5229
- getAccountMeta("ticket", accounts.ticket)
5286
+ getAccountMeta("ticket", accounts.ticket),
5287
+ getAccountMeta("ticketOwner", accounts.ticketOwner)
5230
5288
  ],
5231
5289
  data: getCloseOneBtcTicketInstructionDataEncoder().encode({}),
5232
5290
  programAddress
5233
5291
  });
5234
5292
  }
5235
5293
  function parseCloseOneBtcTicketInstruction(instruction) {
5236
- if (instruction.accounts.length < 3) {
5294
+ if (instruction.accounts.length < 5) {
5237
5295
  throw new SolanaError12(
5238
5296
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS12,
5239
5297
  {
5240
5298
  actualAccountMetas: instruction.accounts.length,
5241
- expectedAccountMetas: 3
5299
+ expectedAccountMetas: 5
5242
5300
  }
5243
5301
  );
5244
5302
  }
@@ -5252,8 +5310,10 @@ function parseCloseOneBtcTicketInstruction(instruction) {
5252
5310
  programAddress: instruction.programAddress,
5253
5311
  accounts: {
5254
5312
  authority: getNextAccount(),
5313
+ satrushConfig: getNextAccount(),
5255
5314
  oneBtcVaultIteration: getNextAccount(),
5256
- ticket: getNextAccount()
5315
+ ticket: getNextAccount(),
5316
+ ticketOwner: getNextAccount()
5257
5317
  },
5258
5318
  data: getCloseOneBtcTicketInstructionDataDecoder().decode(instruction.data)
5259
5319
  };
@@ -6612,8 +6672,8 @@ import {
6612
6672
  fixDecoderSize as fixDecoderSize32,
6613
6673
  fixEncoderSize as fixEncoderSize42,
6614
6674
  getAddressEncoder as getAddressEncoder27,
6615
- getBooleanDecoder as getBooleanDecoder7,
6616
- getBooleanEncoder as getBooleanEncoder7,
6675
+ getBooleanDecoder as getBooleanDecoder8,
6676
+ getBooleanEncoder as getBooleanEncoder8,
6617
6677
  getBytesDecoder as getBytesDecoder32,
6618
6678
  getBytesEncoder as getBytesEncoder54,
6619
6679
  getProgramDerivedAddress as getProgramDerivedAddress22,
@@ -6644,7 +6704,7 @@ function getCreatePublicAutomationInstructionDataEncoder() {
6644
6704
  ["strategy", getAutomationStrategyEncoder()],
6645
6705
  ["selectionMask", getU32Encoder24()],
6646
6706
  ["perRoundUsdAmount", getU64Encoder33()],
6647
- ["reload", getBooleanEncoder7()],
6707
+ ["reload", getBooleanEncoder8()],
6648
6708
  ["depositUsdAmount", getU64Encoder33()]
6649
6709
  ]),
6650
6710
  (value) => ({
@@ -6659,7 +6719,7 @@ function getCreatePublicAutomationInstructionDataDecoder() {
6659
6719
  ["strategy", getAutomationStrategyDecoder()],
6660
6720
  ["selectionMask", getU32Decoder24()],
6661
6721
  ["perRoundUsdAmount", getU64Decoder33()],
6662
- ["reload", getBooleanDecoder7()],
6722
+ ["reload", getBooleanDecoder8()],
6663
6723
  ["depositUsdAmount", getU64Decoder33()]
6664
6724
  ]);
6665
6725
  }
@@ -6917,7 +6977,7 @@ function getCreateSatrushConfigInstructionDataEncoder() {
6917
6977
  ["discriminator", fixEncoderSize43(getBytesEncoder55(), 8)],
6918
6978
  ["ownerAuthority", getAddressEncoder28()],
6919
6979
  ["adminAuthority", getAddressEncoder28()],
6920
- ["roundAuthority", getAddressEncoder28()],
6980
+ ["gameAuthority", getAddressEncoder28()],
6921
6981
  ["feeRecipient", getAddressEncoder28()],
6922
6982
  ["usdMint", getAddressEncoder28()],
6923
6983
  ["btcMint", getAddressEncoder28()]
@@ -6930,7 +6990,7 @@ function getCreateSatrushConfigInstructionDataDecoder() {
6930
6990
  ["discriminator", fixDecoderSize33(getBytesDecoder33(), 8)],
6931
6991
  ["ownerAuthority", getAddressDecoder15()],
6932
6992
  ["adminAuthority", getAddressDecoder15()],
6933
- ["roundAuthority", getAddressDecoder15()],
6993
+ ["gameAuthority", getAddressDecoder15()],
6934
6994
  ["feeRecipient", getAddressDecoder15()],
6935
6995
  ["usdMint", getAddressDecoder15()],
6936
6996
  ["btcMint", getAddressDecoder15()]
@@ -8072,12 +8132,18 @@ async function getRotateRoundInstructionAsync(input, config) {
8072
8132
  currentRound: { value: input.currentRound ?? null, isWritable: true },
8073
8133
  nextRound: { value: input.nextRound ?? null, isWritable: true },
8074
8134
  usdMint: { value: input.usdMint ?? null, isWritable: false },
8135
+ btcMint: { value: input.btcMint ?? null, isWritable: false },
8075
8136
  boardUsdAta: { value: input.boardUsdAta ?? null, isWritable: true },
8137
+ boardBtcAta: { value: input.boardBtcAta ?? null, isWritable: true },
8076
8138
  epochVault: { value: input.epochVault ?? null, isWritable: true },
8077
8139
  epochVaultUsdAta: {
8078
8140
  value: input.epochVaultUsdAta ?? null,
8079
8141
  isWritable: true
8080
8142
  },
8143
+ epochVaultBtcAta: {
8144
+ value: input.epochVaultBtcAta ?? null,
8145
+ isWritable: true
8146
+ },
8081
8147
  oneBtcVault: { value: input.oneBtcVault ?? null, isWritable: true },
8082
8148
  oneBtcVaultUsdAta: {
8083
8149
  value: input.oneBtcVaultUsdAta ?? null,
@@ -8222,61 +8288,6 @@ async function getRotateRoundInstructionAsync(input, config) {
8222
8288
  if (!accounts.oneBtcVault.value) {
8223
8289
  accounts.oneBtcVault.value = await findOneBtcVaultPda();
8224
8290
  }
8225
- if (!accounts.oneBtcVaultUsdAta.value) {
8226
- accounts.oneBtcVaultUsdAta.value = await getProgramDerivedAddress27({
8227
- programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
8228
- seeds: [
8229
- getAddressEncoder33().encode(
8230
- getAddressFromResolvedInstructionAccount17(
8231
- "oneBtcVault",
8232
- accounts.oneBtcVault.value
8233
- )
8234
- ),
8235
- getBytesEncoder60().encode(
8236
- new Uint8Array([
8237
- 6,
8238
- 221,
8239
- 246,
8240
- 225,
8241
- 215,
8242
- 101,
8243
- 161,
8244
- 147,
8245
- 217,
8246
- 203,
8247
- 225,
8248
- 70,
8249
- 206,
8250
- 235,
8251
- 121,
8252
- 172,
8253
- 28,
8254
- 180,
8255
- 133,
8256
- 237,
8257
- 95,
8258
- 91,
8259
- 55,
8260
- 145,
8261
- 58,
8262
- 140,
8263
- 245,
8264
- 133,
8265
- 126,
8266
- 255,
8267
- 0,
8268
- 169
8269
- ])
8270
- ),
8271
- getAddressEncoder33().encode(
8272
- getAddressFromResolvedInstructionAccount17(
8273
- "usdMint",
8274
- accounts.usdMint.value
8275
- )
8276
- )
8277
- ]
8278
- });
8279
- }
8280
8291
  if (!accounts.treasuryUsdAta.value) {
8281
8292
  accounts.treasuryUsdAta.value = await getProgramDerivedAddress27({
8282
8293
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
@@ -8350,9 +8361,12 @@ async function getRotateRoundInstructionAsync(input, config) {
8350
8361
  getAccountMeta("currentRound", accounts.currentRound),
8351
8362
  getAccountMeta("nextRound", accounts.nextRound),
8352
8363
  getAccountMeta("usdMint", accounts.usdMint),
8364
+ getAccountMeta("btcMint", accounts.btcMint),
8353
8365
  getAccountMeta("boardUsdAta", accounts.boardUsdAta),
8366
+ getAccountMeta("boardBtcAta", accounts.boardBtcAta),
8354
8367
  getAccountMeta("epochVault", accounts.epochVault),
8355
8368
  getAccountMeta("epochVaultUsdAta", accounts.epochVaultUsdAta),
8369
+ getAccountMeta("epochVaultBtcAta", accounts.epochVaultBtcAta),
8356
8370
  getAccountMeta("oneBtcVault", accounts.oneBtcVault),
8357
8371
  getAccountMeta("oneBtcVaultUsdAta", accounts.oneBtcVaultUsdAta),
8358
8372
  getAccountMeta("treasury", accounts.treasury),
@@ -8376,12 +8390,18 @@ function getRotateRoundInstruction(input, config) {
8376
8390
  currentRound: { value: input.currentRound ?? null, isWritable: true },
8377
8391
  nextRound: { value: input.nextRound ?? null, isWritable: true },
8378
8392
  usdMint: { value: input.usdMint ?? null, isWritable: false },
8393
+ btcMint: { value: input.btcMint ?? null, isWritable: false },
8379
8394
  boardUsdAta: { value: input.boardUsdAta ?? null, isWritable: true },
8395
+ boardBtcAta: { value: input.boardBtcAta ?? null, isWritable: true },
8380
8396
  epochVault: { value: input.epochVault ?? null, isWritable: true },
8381
8397
  epochVaultUsdAta: {
8382
8398
  value: input.epochVaultUsdAta ?? null,
8383
8399
  isWritable: true
8384
8400
  },
8401
+ epochVaultBtcAta: {
8402
+ value: input.epochVaultBtcAta ?? null,
8403
+ isWritable: true
8404
+ },
8385
8405
  oneBtcVault: { value: input.oneBtcVault ?? null, isWritable: true },
8386
8406
  oneBtcVaultUsdAta: {
8387
8407
  value: input.oneBtcVaultUsdAta ?? null,
@@ -8414,9 +8434,12 @@ function getRotateRoundInstruction(input, config) {
8414
8434
  getAccountMeta("currentRound", accounts.currentRound),
8415
8435
  getAccountMeta("nextRound", accounts.nextRound),
8416
8436
  getAccountMeta("usdMint", accounts.usdMint),
8437
+ getAccountMeta("btcMint", accounts.btcMint),
8417
8438
  getAccountMeta("boardUsdAta", accounts.boardUsdAta),
8439
+ getAccountMeta("boardBtcAta", accounts.boardBtcAta),
8418
8440
  getAccountMeta("epochVault", accounts.epochVault),
8419
8441
  getAccountMeta("epochVaultUsdAta", accounts.epochVaultUsdAta),
8442
+ getAccountMeta("epochVaultBtcAta", accounts.epochVaultBtcAta),
8420
8443
  getAccountMeta("oneBtcVault", accounts.oneBtcVault),
8421
8444
  getAccountMeta("oneBtcVaultUsdAta", accounts.oneBtcVaultUsdAta),
8422
8445
  getAccountMeta("treasury", accounts.treasury),
@@ -8432,12 +8455,12 @@ function getRotateRoundInstruction(input, config) {
8432
8455
  });
8433
8456
  }
8434
8457
  function parseRotateRoundInstruction(instruction) {
8435
- if (instruction.accounts.length < 18) {
8458
+ if (instruction.accounts.length < 21) {
8436
8459
  throw new SolanaError23(
8437
8460
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS23,
8438
8461
  {
8439
8462
  actualAccountMetas: instruction.accounts.length,
8440
- expectedAccountMetas: 18
8463
+ expectedAccountMetas: 21
8441
8464
  }
8442
8465
  );
8443
8466
  }
@@ -8456,9 +8479,12 @@ function parseRotateRoundInstruction(instruction) {
8456
8479
  currentRound: getNextAccount(),
8457
8480
  nextRound: getNextAccount(),
8458
8481
  usdMint: getNextAccount(),
8482
+ btcMint: getNextAccount(),
8459
8483
  boardUsdAta: getNextAccount(),
8484
+ boardBtcAta: getNextAccount(),
8460
8485
  epochVault: getNextAccount(),
8461
8486
  epochVaultUsdAta: getNextAccount(),
8487
+ epochVaultBtcAta: getNextAccount(),
8462
8488
  oneBtcVault: getNextAccount(),
8463
8489
  oneBtcVaultUsdAta: getNextAccount(),
8464
8490
  treasury: getNextAccount(),
@@ -11030,7 +11056,7 @@ function parseUpdateBoardRoundDurationInstruction(instruction) {
11030
11056
  };
11031
11057
  }
11032
11058
 
11033
- // src/generated/instructions/updateDeploymentSettleGraceDuration.ts
11059
+ // src/generated/instructions/updateDeployFees.ts
11034
11060
  import {
11035
11061
  combineCodec as combineCodec67,
11036
11062
  fixDecoderSize as fixDecoderSize50,
@@ -11039,8 +11065,8 @@ import {
11039
11065
  getBytesEncoder as getBytesEncoder72,
11040
11066
  getStructDecoder as getStructDecoder63,
11041
11067
  getStructEncoder as getStructEncoder63,
11042
- getU64Decoder as getU64Decoder40,
11043
- getU64Encoder as getU64Encoder40,
11068
+ getU32Decoder as getU32Decoder32,
11069
+ getU32Encoder as getU32Encoder32,
11044
11070
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS35,
11045
11071
  SolanaError as SolanaError35,
11046
11072
  transformEncoder as transformEncoder50
@@ -11048,37 +11074,40 @@ import {
11048
11074
  import {
11049
11075
  getAccountMetaFactory as getAccountMetaFactory35
11050
11076
  } from "@solana/program-client-core";
11051
- var UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR = new Uint8Array([2, 212, 246, 89, 139, 64, 104, 74]);
11052
- function getUpdateDeploymentSettleGraceDurationDiscriminatorBytes() {
11077
+ var UPDATE_DEPLOY_FEES_DISCRIMINATOR = new Uint8Array([0, 170, 26, 215, 156, 171, 22, 68]);
11078
+ function getUpdateDeployFeesDiscriminatorBytes() {
11053
11079
  return fixEncoderSize60(getBytesEncoder72(), 8).encode(
11054
- UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR
11080
+ UPDATE_DEPLOY_FEES_DISCRIMINATOR
11055
11081
  );
11056
11082
  }
11057
- function getUpdateDeploymentSettleGraceDurationInstructionDataEncoder() {
11083
+ function getUpdateDeployFeesInstructionDataEncoder() {
11058
11084
  return transformEncoder50(
11059
11085
  getStructEncoder63([
11060
11086
  ["discriminator", fixEncoderSize60(getBytesEncoder72(), 8)],
11061
- ["newGraceDuration", getU64Encoder40()]
11087
+ ["newStrikeFeeBps", getU32Encoder32()],
11088
+ ["newEpochFeeBps", getU32Encoder32()],
11089
+ ["newOneBtcFeeBps", getU32Encoder32()],
11090
+ ["newProtocolFeeBps", getU32Encoder32()]
11062
11091
  ]),
11063
- (value) => ({
11064
- ...value,
11065
- discriminator: UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR
11066
- })
11092
+ (value) => ({ ...value, discriminator: UPDATE_DEPLOY_FEES_DISCRIMINATOR })
11067
11093
  );
11068
11094
  }
11069
- function getUpdateDeploymentSettleGraceDurationInstructionDataDecoder() {
11095
+ function getUpdateDeployFeesInstructionDataDecoder() {
11070
11096
  return getStructDecoder63([
11071
11097
  ["discriminator", fixDecoderSize50(getBytesDecoder50(), 8)],
11072
- ["newGraceDuration", getU64Decoder40()]
11098
+ ["newStrikeFeeBps", getU32Decoder32()],
11099
+ ["newEpochFeeBps", getU32Decoder32()],
11100
+ ["newOneBtcFeeBps", getU32Decoder32()],
11101
+ ["newProtocolFeeBps", getU32Decoder32()]
11073
11102
  ]);
11074
11103
  }
11075
- function getUpdateDeploymentSettleGraceDurationInstructionDataCodec() {
11104
+ function getUpdateDeployFeesInstructionDataCodec() {
11076
11105
  return combineCodec67(
11077
- getUpdateDeploymentSettleGraceDurationInstructionDataEncoder(),
11078
- getUpdateDeploymentSettleGraceDurationInstructionDataDecoder()
11106
+ getUpdateDeployFeesInstructionDataEncoder(),
11107
+ getUpdateDeployFeesInstructionDataDecoder()
11079
11108
  );
11080
11109
  }
11081
- async function getUpdateDeploymentSettleGraceDurationInstructionAsync(input, config) {
11110
+ async function getUpdateDeployFeesInstructionAsync(input, config) {
11082
11111
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11083
11112
  const originalAccounts = {
11084
11113
  authority: { value: input.authority ?? null, isWritable: false },
@@ -11095,13 +11124,13 @@ async function getUpdateDeploymentSettleGraceDurationInstructionAsync(input, con
11095
11124
  getAccountMeta("authority", accounts.authority),
11096
11125
  getAccountMeta("satrushConfig", accounts.satrushConfig)
11097
11126
  ],
11098
- data: getUpdateDeploymentSettleGraceDurationInstructionDataEncoder().encode(
11127
+ data: getUpdateDeployFeesInstructionDataEncoder().encode(
11099
11128
  args
11100
11129
  ),
11101
11130
  programAddress
11102
11131
  });
11103
11132
  }
11104
- function getUpdateDeploymentSettleGraceDurationInstruction(input, config) {
11133
+ function getUpdateDeployFeesInstruction(input, config) {
11105
11134
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11106
11135
  const originalAccounts = {
11107
11136
  authority: { value: input.authority ?? null, isWritable: false },
@@ -11115,13 +11144,13 @@ function getUpdateDeploymentSettleGraceDurationInstruction(input, config) {
11115
11144
  getAccountMeta("authority", accounts.authority),
11116
11145
  getAccountMeta("satrushConfig", accounts.satrushConfig)
11117
11146
  ],
11118
- data: getUpdateDeploymentSettleGraceDurationInstructionDataEncoder().encode(
11147
+ data: getUpdateDeployFeesInstructionDataEncoder().encode(
11119
11148
  args
11120
11149
  ),
11121
11150
  programAddress
11122
11151
  });
11123
11152
  }
11124
- function parseUpdateDeploymentSettleGraceDurationInstruction(instruction) {
11153
+ function parseUpdateDeployFeesInstruction(instruction) {
11125
11154
  if (instruction.accounts.length < 2) {
11126
11155
  throw new SolanaError35(
11127
11156
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS35,
@@ -11140,13 +11169,11 @@ function parseUpdateDeploymentSettleGraceDurationInstruction(instruction) {
11140
11169
  return {
11141
11170
  programAddress: instruction.programAddress,
11142
11171
  accounts: { authority: getNextAccount(), satrushConfig: getNextAccount() },
11143
- data: getUpdateDeploymentSettleGraceDurationInstructionDataDecoder().decode(
11144
- instruction.data
11145
- )
11172
+ data: getUpdateDeployFeesInstructionDataDecoder().decode(instruction.data)
11146
11173
  };
11147
11174
  }
11148
11175
 
11149
- // src/generated/instructions/updateEpochVaultIterationDuration.ts
11176
+ // src/generated/instructions/updateDeploymentSettleGraceDuration.ts
11150
11177
  import {
11151
11178
  combineCodec as combineCodec68,
11152
11179
  fixDecoderSize as fixDecoderSize51,
@@ -11155,8 +11182,8 @@ import {
11155
11182
  getBytesEncoder as getBytesEncoder73,
11156
11183
  getStructDecoder as getStructDecoder64,
11157
11184
  getStructEncoder as getStructEncoder64,
11158
- getU64Decoder as getU64Decoder41,
11159
- getU64Encoder as getU64Encoder41,
11185
+ getU64Decoder as getU64Decoder40,
11186
+ getU64Encoder as getU64Encoder40,
11160
11187
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS36,
11161
11188
  SolanaError as SolanaError36,
11162
11189
  transformEncoder as transformEncoder51
@@ -11164,37 +11191,37 @@ import {
11164
11191
  import {
11165
11192
  getAccountMetaFactory as getAccountMetaFactory36
11166
11193
  } from "@solana/program-client-core";
11167
- var UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR = new Uint8Array([171, 103, 59, 229, 174, 188, 210, 121]);
11168
- function getUpdateEpochVaultIterationDurationDiscriminatorBytes() {
11194
+ var UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR = new Uint8Array([2, 212, 246, 89, 139, 64, 104, 74]);
11195
+ function getUpdateDeploymentSettleGraceDurationDiscriminatorBytes() {
11169
11196
  return fixEncoderSize61(getBytesEncoder73(), 8).encode(
11170
- UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR
11197
+ UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR
11171
11198
  );
11172
11199
  }
11173
- function getUpdateEpochVaultIterationDurationInstructionDataEncoder() {
11200
+ function getUpdateDeploymentSettleGraceDurationInstructionDataEncoder() {
11174
11201
  return transformEncoder51(
11175
11202
  getStructEncoder64([
11176
11203
  ["discriminator", fixEncoderSize61(getBytesEncoder73(), 8)],
11177
- ["newIterationDuration", getU64Encoder41()]
11204
+ ["newGraceDuration", getU64Encoder40()]
11178
11205
  ]),
11179
11206
  (value) => ({
11180
11207
  ...value,
11181
- discriminator: UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR
11208
+ discriminator: UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR
11182
11209
  })
11183
11210
  );
11184
11211
  }
11185
- function getUpdateEpochVaultIterationDurationInstructionDataDecoder() {
11212
+ function getUpdateDeploymentSettleGraceDurationInstructionDataDecoder() {
11186
11213
  return getStructDecoder64([
11187
11214
  ["discriminator", fixDecoderSize51(getBytesDecoder51(), 8)],
11188
- ["newIterationDuration", getU64Decoder41()]
11215
+ ["newGraceDuration", getU64Decoder40()]
11189
11216
  ]);
11190
11217
  }
11191
- function getUpdateEpochVaultIterationDurationInstructionDataCodec() {
11218
+ function getUpdateDeploymentSettleGraceDurationInstructionDataCodec() {
11192
11219
  return combineCodec68(
11193
- getUpdateEpochVaultIterationDurationInstructionDataEncoder(),
11194
- getUpdateEpochVaultIterationDurationInstructionDataDecoder()
11220
+ getUpdateDeploymentSettleGraceDurationInstructionDataEncoder(),
11221
+ getUpdateDeploymentSettleGraceDurationInstructionDataDecoder()
11195
11222
  );
11196
11223
  }
11197
- async function getUpdateEpochVaultIterationDurationInstructionAsync(input, config) {
11224
+ async function getUpdateDeploymentSettleGraceDurationInstructionAsync(input, config) {
11198
11225
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11199
11226
  const originalAccounts = {
11200
11227
  authority: { value: input.authority ?? null, isWritable: false },
@@ -11211,13 +11238,13 @@ async function getUpdateEpochVaultIterationDurationInstructionAsync(input, confi
11211
11238
  getAccountMeta("authority", accounts.authority),
11212
11239
  getAccountMeta("satrushConfig", accounts.satrushConfig)
11213
11240
  ],
11214
- data: getUpdateEpochVaultIterationDurationInstructionDataEncoder().encode(
11241
+ data: getUpdateDeploymentSettleGraceDurationInstructionDataEncoder().encode(
11215
11242
  args
11216
11243
  ),
11217
11244
  programAddress
11218
11245
  });
11219
11246
  }
11220
- function getUpdateEpochVaultIterationDurationInstruction(input, config) {
11247
+ function getUpdateDeploymentSettleGraceDurationInstruction(input, config) {
11221
11248
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11222
11249
  const originalAccounts = {
11223
11250
  authority: { value: input.authority ?? null, isWritable: false },
@@ -11231,13 +11258,13 @@ function getUpdateEpochVaultIterationDurationInstruction(input, config) {
11231
11258
  getAccountMeta("authority", accounts.authority),
11232
11259
  getAccountMeta("satrushConfig", accounts.satrushConfig)
11233
11260
  ],
11234
- data: getUpdateEpochVaultIterationDurationInstructionDataEncoder().encode(
11261
+ data: getUpdateDeploymentSettleGraceDurationInstructionDataEncoder().encode(
11235
11262
  args
11236
11263
  ),
11237
11264
  programAddress
11238
11265
  });
11239
11266
  }
11240
- function parseUpdateEpochVaultIterationDurationInstruction(instruction) {
11267
+ function parseUpdateDeploymentSettleGraceDurationInstruction(instruction) {
11241
11268
  if (instruction.accounts.length < 2) {
11242
11269
  throw new SolanaError36(
11243
11270
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS36,
@@ -11256,13 +11283,13 @@ function parseUpdateEpochVaultIterationDurationInstruction(instruction) {
11256
11283
  return {
11257
11284
  programAddress: instruction.programAddress,
11258
11285
  accounts: { authority: getNextAccount(), satrushConfig: getNextAccount() },
11259
- data: getUpdateEpochVaultIterationDurationInstructionDataDecoder().decode(
11286
+ data: getUpdateDeploymentSettleGraceDurationInstructionDataDecoder().decode(
11260
11287
  instruction.data
11261
11288
  )
11262
11289
  };
11263
11290
  }
11264
11291
 
11265
- // src/generated/instructions/updateMinDeployUsdAmount.ts
11292
+ // src/generated/instructions/updateEpochVaultIterationDuration.ts
11266
11293
  import {
11267
11294
  combineCodec as combineCodec69,
11268
11295
  fixDecoderSize as fixDecoderSize52,
@@ -11271,8 +11298,8 @@ import {
11271
11298
  getBytesEncoder as getBytesEncoder74,
11272
11299
  getStructDecoder as getStructDecoder65,
11273
11300
  getStructEncoder as getStructEncoder65,
11274
- getU64Decoder as getU64Decoder42,
11275
- getU64Encoder as getU64Encoder42,
11301
+ getU64Decoder as getU64Decoder41,
11302
+ getU64Encoder as getU64Encoder41,
11276
11303
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS37,
11277
11304
  SolanaError as SolanaError37,
11278
11305
  transformEncoder as transformEncoder52
@@ -11280,37 +11307,37 @@ import {
11280
11307
  import {
11281
11308
  getAccountMetaFactory as getAccountMetaFactory37
11282
11309
  } from "@solana/program-client-core";
11283
- var UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR = new Uint8Array([187, 108, 89, 178, 249, 101, 187, 33]);
11284
- function getUpdateMinDeployUsdAmountDiscriminatorBytes() {
11310
+ var UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR = new Uint8Array([171, 103, 59, 229, 174, 188, 210, 121]);
11311
+ function getUpdateEpochVaultIterationDurationDiscriminatorBytes() {
11285
11312
  return fixEncoderSize62(getBytesEncoder74(), 8).encode(
11286
- UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR
11313
+ UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR
11287
11314
  );
11288
11315
  }
11289
- function getUpdateMinDeployUsdAmountInstructionDataEncoder() {
11316
+ function getUpdateEpochVaultIterationDurationInstructionDataEncoder() {
11290
11317
  return transformEncoder52(
11291
11318
  getStructEncoder65([
11292
11319
  ["discriminator", fixEncoderSize62(getBytesEncoder74(), 8)],
11293
- ["newMinDeployUsdAmount", getU64Encoder42()]
11320
+ ["newIterationDuration", getU64Encoder41()]
11294
11321
  ]),
11295
11322
  (value) => ({
11296
11323
  ...value,
11297
- discriminator: UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR
11324
+ discriminator: UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR
11298
11325
  })
11299
11326
  );
11300
11327
  }
11301
- function getUpdateMinDeployUsdAmountInstructionDataDecoder() {
11328
+ function getUpdateEpochVaultIterationDurationInstructionDataDecoder() {
11302
11329
  return getStructDecoder65([
11303
11330
  ["discriminator", fixDecoderSize52(getBytesDecoder52(), 8)],
11304
- ["newMinDeployUsdAmount", getU64Decoder42()]
11331
+ ["newIterationDuration", getU64Decoder41()]
11305
11332
  ]);
11306
11333
  }
11307
- function getUpdateMinDeployUsdAmountInstructionDataCodec() {
11334
+ function getUpdateEpochVaultIterationDurationInstructionDataCodec() {
11308
11335
  return combineCodec69(
11309
- getUpdateMinDeployUsdAmountInstructionDataEncoder(),
11310
- getUpdateMinDeployUsdAmountInstructionDataDecoder()
11336
+ getUpdateEpochVaultIterationDurationInstructionDataEncoder(),
11337
+ getUpdateEpochVaultIterationDurationInstructionDataDecoder()
11311
11338
  );
11312
11339
  }
11313
- async function getUpdateMinDeployUsdAmountInstructionAsync(input, config) {
11340
+ async function getUpdateEpochVaultIterationDurationInstructionAsync(input, config) {
11314
11341
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11315
11342
  const originalAccounts = {
11316
11343
  authority: { value: input.authority ?? null, isWritable: false },
@@ -11327,13 +11354,13 @@ async function getUpdateMinDeployUsdAmountInstructionAsync(input, config) {
11327
11354
  getAccountMeta("authority", accounts.authority),
11328
11355
  getAccountMeta("satrushConfig", accounts.satrushConfig)
11329
11356
  ],
11330
- data: getUpdateMinDeployUsdAmountInstructionDataEncoder().encode(
11357
+ data: getUpdateEpochVaultIterationDurationInstructionDataEncoder().encode(
11331
11358
  args
11332
11359
  ),
11333
11360
  programAddress
11334
11361
  });
11335
11362
  }
11336
- function getUpdateMinDeployUsdAmountInstruction(input, config) {
11363
+ function getUpdateEpochVaultIterationDurationInstruction(input, config) {
11337
11364
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11338
11365
  const originalAccounts = {
11339
11366
  authority: { value: input.authority ?? null, isWritable: false },
@@ -11347,13 +11374,13 @@ function getUpdateMinDeployUsdAmountInstruction(input, config) {
11347
11374
  getAccountMeta("authority", accounts.authority),
11348
11375
  getAccountMeta("satrushConfig", accounts.satrushConfig)
11349
11376
  ],
11350
- data: getUpdateMinDeployUsdAmountInstructionDataEncoder().encode(
11377
+ data: getUpdateEpochVaultIterationDurationInstructionDataEncoder().encode(
11351
11378
  args
11352
11379
  ),
11353
11380
  programAddress
11354
11381
  });
11355
11382
  }
11356
- function parseUpdateMinDeployUsdAmountInstruction(instruction) {
11383
+ function parseUpdateEpochVaultIterationDurationInstruction(instruction) {
11357
11384
  if (instruction.accounts.length < 2) {
11358
11385
  throw new SolanaError37(
11359
11386
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS37,
@@ -11372,13 +11399,13 @@ function parseUpdateMinDeployUsdAmountInstruction(instruction) {
11372
11399
  return {
11373
11400
  programAddress: instruction.programAddress,
11374
11401
  accounts: { authority: getNextAccount(), satrushConfig: getNextAccount() },
11375
- data: getUpdateMinDeployUsdAmountInstructionDataDecoder().decode(
11402
+ data: getUpdateEpochVaultIterationDurationInstructionDataDecoder().decode(
11376
11403
  instruction.data
11377
11404
  )
11378
11405
  };
11379
11406
  }
11380
11407
 
11381
- // src/generated/instructions/updateStrikeTriggerModulus.ts
11408
+ // src/generated/instructions/updateMinDeployUsdAmount.ts
11382
11409
  import {
11383
11410
  combineCodec as combineCodec70,
11384
11411
  fixDecoderSize as fixDecoderSize53,
@@ -11387,8 +11414,8 @@ import {
11387
11414
  getBytesEncoder as getBytesEncoder75,
11388
11415
  getStructDecoder as getStructDecoder66,
11389
11416
  getStructEncoder as getStructEncoder66,
11390
- getU16Decoder as getU16Decoder21,
11391
- getU16Encoder as getU16Encoder21,
11417
+ getU64Decoder as getU64Decoder42,
11418
+ getU64Encoder as getU64Encoder42,
11392
11419
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS38,
11393
11420
  SolanaError as SolanaError38,
11394
11421
  transformEncoder as transformEncoder53
@@ -11396,37 +11423,37 @@ import {
11396
11423
  import {
11397
11424
  getAccountMetaFactory as getAccountMetaFactory38
11398
11425
  } from "@solana/program-client-core";
11399
- var UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR = new Uint8Array([241, 172, 229, 62, 191, 163, 60, 186]);
11400
- function getUpdateStrikeTriggerModulusDiscriminatorBytes() {
11426
+ var UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR = new Uint8Array([187, 108, 89, 178, 249, 101, 187, 33]);
11427
+ function getUpdateMinDeployUsdAmountDiscriminatorBytes() {
11401
11428
  return fixEncoderSize63(getBytesEncoder75(), 8).encode(
11402
- UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR
11429
+ UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR
11403
11430
  );
11404
11431
  }
11405
- function getUpdateStrikeTriggerModulusInstructionDataEncoder() {
11432
+ function getUpdateMinDeployUsdAmountInstructionDataEncoder() {
11406
11433
  return transformEncoder53(
11407
11434
  getStructEncoder66([
11408
11435
  ["discriminator", fixEncoderSize63(getBytesEncoder75(), 8)],
11409
- ["newModulus", getU16Encoder21()]
11436
+ ["newMinDeployUsdAmount", getU64Encoder42()]
11410
11437
  ]),
11411
11438
  (value) => ({
11412
11439
  ...value,
11413
- discriminator: UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR
11440
+ discriminator: UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR
11414
11441
  })
11415
11442
  );
11416
11443
  }
11417
- function getUpdateStrikeTriggerModulusInstructionDataDecoder() {
11444
+ function getUpdateMinDeployUsdAmountInstructionDataDecoder() {
11418
11445
  return getStructDecoder66([
11419
11446
  ["discriminator", fixDecoderSize53(getBytesDecoder53(), 8)],
11420
- ["newModulus", getU16Decoder21()]
11447
+ ["newMinDeployUsdAmount", getU64Decoder42()]
11421
11448
  ]);
11422
11449
  }
11423
- function getUpdateStrikeTriggerModulusInstructionDataCodec() {
11450
+ function getUpdateMinDeployUsdAmountInstructionDataCodec() {
11424
11451
  return combineCodec70(
11425
- getUpdateStrikeTriggerModulusInstructionDataEncoder(),
11426
- getUpdateStrikeTriggerModulusInstructionDataDecoder()
11452
+ getUpdateMinDeployUsdAmountInstructionDataEncoder(),
11453
+ getUpdateMinDeployUsdAmountInstructionDataDecoder()
11427
11454
  );
11428
11455
  }
11429
- async function getUpdateStrikeTriggerModulusInstructionAsync(input, config) {
11456
+ async function getUpdateMinDeployUsdAmountInstructionAsync(input, config) {
11430
11457
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11431
11458
  const originalAccounts = {
11432
11459
  authority: { value: input.authority ?? null, isWritable: false },
@@ -11443,13 +11470,13 @@ async function getUpdateStrikeTriggerModulusInstructionAsync(input, config) {
11443
11470
  getAccountMeta("authority", accounts.authority),
11444
11471
  getAccountMeta("satrushConfig", accounts.satrushConfig)
11445
11472
  ],
11446
- data: getUpdateStrikeTriggerModulusInstructionDataEncoder().encode(
11473
+ data: getUpdateMinDeployUsdAmountInstructionDataEncoder().encode(
11447
11474
  args
11448
11475
  ),
11449
11476
  programAddress
11450
11477
  });
11451
11478
  }
11452
- function getUpdateStrikeTriggerModulusInstruction(input, config) {
11479
+ function getUpdateMinDeployUsdAmountInstruction(input, config) {
11453
11480
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11454
11481
  const originalAccounts = {
11455
11482
  authority: { value: input.authority ?? null, isWritable: false },
@@ -11463,13 +11490,13 @@ function getUpdateStrikeTriggerModulusInstruction(input, config) {
11463
11490
  getAccountMeta("authority", accounts.authority),
11464
11491
  getAccountMeta("satrushConfig", accounts.satrushConfig)
11465
11492
  ],
11466
- data: getUpdateStrikeTriggerModulusInstructionDataEncoder().encode(
11493
+ data: getUpdateMinDeployUsdAmountInstructionDataEncoder().encode(
11467
11494
  args
11468
11495
  ),
11469
11496
  programAddress
11470
11497
  });
11471
11498
  }
11472
- function parseUpdateStrikeTriggerModulusInstruction(instruction) {
11499
+ function parseUpdateMinDeployUsdAmountInstruction(instruction) {
11473
11500
  if (instruction.accounts.length < 2) {
11474
11501
  throw new SolanaError38(
11475
11502
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS38,
@@ -11488,13 +11515,13 @@ function parseUpdateStrikeTriggerModulusInstruction(instruction) {
11488
11515
  return {
11489
11516
  programAddress: instruction.programAddress,
11490
11517
  accounts: { authority: getNextAccount(), satrushConfig: getNextAccount() },
11491
- data: getUpdateStrikeTriggerModulusInstructionDataDecoder().decode(
11518
+ data: getUpdateMinDeployUsdAmountInstructionDataDecoder().decode(
11492
11519
  instruction.data
11493
11520
  )
11494
11521
  };
11495
11522
  }
11496
11523
 
11497
- // src/generated/instructions/updateUnclaimedHashrateBps.ts
11524
+ // src/generated/instructions/updateStrikeTriggerModulus.ts
11498
11525
  import {
11499
11526
  combineCodec as combineCodec71,
11500
11527
  fixDecoderSize as fixDecoderSize54,
@@ -11503,8 +11530,8 @@ import {
11503
11530
  getBytesEncoder as getBytesEncoder76,
11504
11531
  getStructDecoder as getStructDecoder67,
11505
11532
  getStructEncoder as getStructEncoder67,
11506
- getU32Decoder as getU32Decoder32,
11507
- getU32Encoder as getU32Encoder32,
11533
+ getU16Decoder as getU16Decoder21,
11534
+ getU16Encoder as getU16Encoder21,
11508
11535
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS39,
11509
11536
  SolanaError as SolanaError39,
11510
11537
  transformEncoder as transformEncoder54
@@ -11512,37 +11539,37 @@ import {
11512
11539
  import {
11513
11540
  getAccountMetaFactory as getAccountMetaFactory39
11514
11541
  } from "@solana/program-client-core";
11515
- var UPDATE_UNCLAIMED_HASHRATE_BPS_DISCRIMINATOR = new Uint8Array([237, 38, 26, 14, 73, 161, 208, 157]);
11516
- function getUpdateUnclaimedHashrateBpsDiscriminatorBytes() {
11542
+ var UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR = new Uint8Array([241, 172, 229, 62, 191, 163, 60, 186]);
11543
+ function getUpdateStrikeTriggerModulusDiscriminatorBytes() {
11517
11544
  return fixEncoderSize64(getBytesEncoder76(), 8).encode(
11518
- UPDATE_UNCLAIMED_HASHRATE_BPS_DISCRIMINATOR
11545
+ UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR
11519
11546
  );
11520
11547
  }
11521
- function getUpdateUnclaimedHashrateBpsInstructionDataEncoder() {
11548
+ function getUpdateStrikeTriggerModulusInstructionDataEncoder() {
11522
11549
  return transformEncoder54(
11523
11550
  getStructEncoder67([
11524
11551
  ["discriminator", fixEncoderSize64(getBytesEncoder76(), 8)],
11525
- ["newUnclaimedHashrateBps", getU32Encoder32()]
11552
+ ["newModulus", getU16Encoder21()]
11526
11553
  ]),
11527
11554
  (value) => ({
11528
11555
  ...value,
11529
- discriminator: UPDATE_UNCLAIMED_HASHRATE_BPS_DISCRIMINATOR
11556
+ discriminator: UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR
11530
11557
  })
11531
11558
  );
11532
11559
  }
11533
- function getUpdateUnclaimedHashrateBpsInstructionDataDecoder() {
11560
+ function getUpdateStrikeTriggerModulusInstructionDataDecoder() {
11534
11561
  return getStructDecoder67([
11535
11562
  ["discriminator", fixDecoderSize54(getBytesDecoder54(), 8)],
11536
- ["newUnclaimedHashrateBps", getU32Decoder32()]
11563
+ ["newModulus", getU16Decoder21()]
11537
11564
  ]);
11538
11565
  }
11539
- function getUpdateUnclaimedHashrateBpsInstructionDataCodec() {
11566
+ function getUpdateStrikeTriggerModulusInstructionDataCodec() {
11540
11567
  return combineCodec71(
11541
- getUpdateUnclaimedHashrateBpsInstructionDataEncoder(),
11542
- getUpdateUnclaimedHashrateBpsInstructionDataDecoder()
11568
+ getUpdateStrikeTriggerModulusInstructionDataEncoder(),
11569
+ getUpdateStrikeTriggerModulusInstructionDataDecoder()
11543
11570
  );
11544
11571
  }
11545
- async function getUpdateUnclaimedHashrateBpsInstructionAsync(input, config) {
11572
+ async function getUpdateStrikeTriggerModulusInstructionAsync(input, config) {
11546
11573
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11547
11574
  const originalAccounts = {
11548
11575
  authority: { value: input.authority ?? null, isWritable: false },
@@ -11559,13 +11586,13 @@ async function getUpdateUnclaimedHashrateBpsInstructionAsync(input, config) {
11559
11586
  getAccountMeta("authority", accounts.authority),
11560
11587
  getAccountMeta("satrushConfig", accounts.satrushConfig)
11561
11588
  ],
11562
- data: getUpdateUnclaimedHashrateBpsInstructionDataEncoder().encode(
11589
+ data: getUpdateStrikeTriggerModulusInstructionDataEncoder().encode(
11563
11590
  args
11564
11591
  ),
11565
11592
  programAddress
11566
11593
  });
11567
11594
  }
11568
- function getUpdateUnclaimedHashrateBpsInstruction(input, config) {
11595
+ function getUpdateStrikeTriggerModulusInstruction(input, config) {
11569
11596
  const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11570
11597
  const originalAccounts = {
11571
11598
  authority: { value: input.authority ?? null, isWritable: false },
@@ -11579,13 +11606,13 @@ function getUpdateUnclaimedHashrateBpsInstruction(input, config) {
11579
11606
  getAccountMeta("authority", accounts.authority),
11580
11607
  getAccountMeta("satrushConfig", accounts.satrushConfig)
11581
11608
  ],
11582
- data: getUpdateUnclaimedHashrateBpsInstructionDataEncoder().encode(
11609
+ data: getUpdateStrikeTriggerModulusInstructionDataEncoder().encode(
11583
11610
  args
11584
11611
  ),
11585
11612
  programAddress
11586
11613
  });
11587
11614
  }
11588
- function parseUpdateUnclaimedHashrateBpsInstruction(instruction) {
11615
+ function parseUpdateStrikeTriggerModulusInstruction(instruction) {
11589
11616
  if (instruction.accounts.length < 2) {
11590
11617
  throw new SolanaError39(
11591
11618
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS39,
@@ -11604,50 +11631,166 @@ function parseUpdateUnclaimedHashrateBpsInstruction(instruction) {
11604
11631
  return {
11605
11632
  programAddress: instruction.programAddress,
11606
11633
  accounts: { authority: getNextAccount(), satrushConfig: getNextAccount() },
11607
- data: getUpdateUnclaimedHashrateBpsInstructionDataDecoder().decode(
11634
+ data: getUpdateStrikeTriggerModulusInstructionDataDecoder().decode(
11608
11635
  instruction.data
11609
11636
  )
11610
11637
  };
11611
11638
  }
11612
11639
 
11613
- // src/generated/instructions/withdrawProtocolFees.ts
11640
+ // src/generated/instructions/updateUnclaimedHashrateBps.ts
11614
11641
  import {
11615
11642
  combineCodec as combineCodec72,
11616
11643
  fixDecoderSize as fixDecoderSize55,
11617
11644
  fixEncoderSize as fixEncoderSize65,
11618
- getAddressEncoder as getAddressEncoder40,
11619
11645
  getBytesDecoder as getBytesDecoder55,
11620
11646
  getBytesEncoder as getBytesEncoder77,
11621
- getProgramDerivedAddress as getProgramDerivedAddress34,
11622
11647
  getStructDecoder as getStructDecoder68,
11623
11648
  getStructEncoder as getStructEncoder68,
11649
+ getU32Decoder as getU32Decoder33,
11650
+ getU32Encoder as getU32Encoder33,
11624
11651
  SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS40,
11625
11652
  SolanaError as SolanaError40,
11626
11653
  transformEncoder as transformEncoder55
11627
11654
  } from "@solana/kit";
11628
11655
  import {
11629
- getAccountMetaFactory as getAccountMetaFactory40,
11656
+ getAccountMetaFactory as getAccountMetaFactory40
11657
+ } from "@solana/program-client-core";
11658
+ var UPDATE_UNCLAIMED_HASHRATE_BPS_DISCRIMINATOR = new Uint8Array([237, 38, 26, 14, 73, 161, 208, 157]);
11659
+ function getUpdateUnclaimedHashrateBpsDiscriminatorBytes() {
11660
+ return fixEncoderSize65(getBytesEncoder77(), 8).encode(
11661
+ UPDATE_UNCLAIMED_HASHRATE_BPS_DISCRIMINATOR
11662
+ );
11663
+ }
11664
+ function getUpdateUnclaimedHashrateBpsInstructionDataEncoder() {
11665
+ return transformEncoder55(
11666
+ getStructEncoder68([
11667
+ ["discriminator", fixEncoderSize65(getBytesEncoder77(), 8)],
11668
+ ["newUnclaimedHashrateBps", getU32Encoder33()]
11669
+ ]),
11670
+ (value) => ({
11671
+ ...value,
11672
+ discriminator: UPDATE_UNCLAIMED_HASHRATE_BPS_DISCRIMINATOR
11673
+ })
11674
+ );
11675
+ }
11676
+ function getUpdateUnclaimedHashrateBpsInstructionDataDecoder() {
11677
+ return getStructDecoder68([
11678
+ ["discriminator", fixDecoderSize55(getBytesDecoder55(), 8)],
11679
+ ["newUnclaimedHashrateBps", getU32Decoder33()]
11680
+ ]);
11681
+ }
11682
+ function getUpdateUnclaimedHashrateBpsInstructionDataCodec() {
11683
+ return combineCodec72(
11684
+ getUpdateUnclaimedHashrateBpsInstructionDataEncoder(),
11685
+ getUpdateUnclaimedHashrateBpsInstructionDataDecoder()
11686
+ );
11687
+ }
11688
+ async function getUpdateUnclaimedHashrateBpsInstructionAsync(input, config) {
11689
+ const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11690
+ const originalAccounts = {
11691
+ authority: { value: input.authority ?? null, isWritable: false },
11692
+ satrushConfig: { value: input.satrushConfig ?? null, isWritable: true }
11693
+ };
11694
+ const accounts = originalAccounts;
11695
+ const args = { ...input };
11696
+ if (!accounts.satrushConfig.value) {
11697
+ accounts.satrushConfig.value = await findSatrushConfigPda();
11698
+ }
11699
+ const getAccountMeta = getAccountMetaFactory40(programAddress, "programId");
11700
+ return Object.freeze({
11701
+ accounts: [
11702
+ getAccountMeta("authority", accounts.authority),
11703
+ getAccountMeta("satrushConfig", accounts.satrushConfig)
11704
+ ],
11705
+ data: getUpdateUnclaimedHashrateBpsInstructionDataEncoder().encode(
11706
+ args
11707
+ ),
11708
+ programAddress
11709
+ });
11710
+ }
11711
+ function getUpdateUnclaimedHashrateBpsInstruction(input, config) {
11712
+ const programAddress = config?.programAddress ?? SATRUSH_PROGRAM_ADDRESS;
11713
+ const originalAccounts = {
11714
+ authority: { value: input.authority ?? null, isWritable: false },
11715
+ satrushConfig: { value: input.satrushConfig ?? null, isWritable: true }
11716
+ };
11717
+ const accounts = originalAccounts;
11718
+ const args = { ...input };
11719
+ const getAccountMeta = getAccountMetaFactory40(programAddress, "programId");
11720
+ return Object.freeze({
11721
+ accounts: [
11722
+ getAccountMeta("authority", accounts.authority),
11723
+ getAccountMeta("satrushConfig", accounts.satrushConfig)
11724
+ ],
11725
+ data: getUpdateUnclaimedHashrateBpsInstructionDataEncoder().encode(
11726
+ args
11727
+ ),
11728
+ programAddress
11729
+ });
11730
+ }
11731
+ function parseUpdateUnclaimedHashrateBpsInstruction(instruction) {
11732
+ if (instruction.accounts.length < 2) {
11733
+ throw new SolanaError40(
11734
+ SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS40,
11735
+ {
11736
+ actualAccountMetas: instruction.accounts.length,
11737
+ expectedAccountMetas: 2
11738
+ }
11739
+ );
11740
+ }
11741
+ let accountIndex = 0;
11742
+ const getNextAccount = () => {
11743
+ const accountMeta = instruction.accounts[accountIndex];
11744
+ accountIndex += 1;
11745
+ return accountMeta;
11746
+ };
11747
+ return {
11748
+ programAddress: instruction.programAddress,
11749
+ accounts: { authority: getNextAccount(), satrushConfig: getNextAccount() },
11750
+ data: getUpdateUnclaimedHashrateBpsInstructionDataDecoder().decode(
11751
+ instruction.data
11752
+ )
11753
+ };
11754
+ }
11755
+
11756
+ // src/generated/instructions/withdrawProtocolFees.ts
11757
+ import {
11758
+ combineCodec as combineCodec73,
11759
+ fixDecoderSize as fixDecoderSize56,
11760
+ fixEncoderSize as fixEncoderSize66,
11761
+ getAddressEncoder as getAddressEncoder40,
11762
+ getBytesDecoder as getBytesDecoder56,
11763
+ getBytesEncoder as getBytesEncoder78,
11764
+ getProgramDerivedAddress as getProgramDerivedAddress34,
11765
+ getStructDecoder as getStructDecoder69,
11766
+ getStructEncoder as getStructEncoder69,
11767
+ SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS41,
11768
+ SolanaError as SolanaError41,
11769
+ transformEncoder as transformEncoder56
11770
+ } from "@solana/kit";
11771
+ import {
11772
+ getAccountMetaFactory as getAccountMetaFactory41,
11630
11773
  getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount24
11631
11774
  } from "@solana/program-client-core";
11632
11775
  var WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR = new Uint8Array([11, 68, 165, 98, 18, 208, 134, 73]);
11633
11776
  function getWithdrawProtocolFeesDiscriminatorBytes() {
11634
- return fixEncoderSize65(getBytesEncoder77(), 8).encode(
11777
+ return fixEncoderSize66(getBytesEncoder78(), 8).encode(
11635
11778
  WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR
11636
11779
  );
11637
11780
  }
11638
11781
  function getWithdrawProtocolFeesInstructionDataEncoder() {
11639
- return transformEncoder55(
11640
- getStructEncoder68([["discriminator", fixEncoderSize65(getBytesEncoder77(), 8)]]),
11782
+ return transformEncoder56(
11783
+ getStructEncoder69([["discriminator", fixEncoderSize66(getBytesEncoder78(), 8)]]),
11641
11784
  (value) => ({ ...value, discriminator: WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR })
11642
11785
  );
11643
11786
  }
11644
11787
  function getWithdrawProtocolFeesInstructionDataDecoder() {
11645
- return getStructDecoder68([
11646
- ["discriminator", fixDecoderSize55(getBytesDecoder55(), 8)]
11788
+ return getStructDecoder69([
11789
+ ["discriminator", fixDecoderSize56(getBytesDecoder56(), 8)]
11647
11790
  ]);
11648
11791
  }
11649
11792
  function getWithdrawProtocolFeesInstructionDataCodec() {
11650
- return combineCodec72(
11793
+ return combineCodec73(
11651
11794
  getWithdrawProtocolFeesInstructionDataEncoder(),
11652
11795
  getWithdrawProtocolFeesInstructionDataDecoder()
11653
11796
  );
@@ -11695,7 +11838,7 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11695
11838
  accounts.treasury.value
11696
11839
  )
11697
11840
  ),
11698
- getBytesEncoder77().encode(
11841
+ getBytesEncoder78().encode(
11699
11842
  new Uint8Array([
11700
11843
  6,
11701
11844
  221,
@@ -11750,7 +11893,7 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11750
11893
  accounts.treasury.value
11751
11894
  )
11752
11895
  ),
11753
- getBytesEncoder77().encode(
11896
+ getBytesEncoder78().encode(
11754
11897
  new Uint8Array([
11755
11898
  6,
11756
11899
  221,
@@ -11805,7 +11948,7 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11805
11948
  accounts.feeRecipient.value
11806
11949
  )
11807
11950
  ),
11808
- getBytesEncoder77().encode(
11951
+ getBytesEncoder78().encode(
11809
11952
  new Uint8Array([
11810
11953
  6,
11811
11954
  221,
@@ -11860,7 +12003,7 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11860
12003
  accounts.feeRecipient.value
11861
12004
  )
11862
12005
  ),
11863
- getBytesEncoder77().encode(
12006
+ getBytesEncoder78().encode(
11864
12007
  new Uint8Array([
11865
12008
  6,
11866
12009
  221,
@@ -11914,7 +12057,7 @@ async function getWithdrawProtocolFeesInstructionAsync(input, config) {
11914
12057
  if (!accounts.systemProgram.value) {
11915
12058
  accounts.systemProgram.value = "11111111111111111111111111111111";
11916
12059
  }
11917
- const getAccountMeta = getAccountMetaFactory40(programAddress, "programId");
12060
+ const getAccountMeta = getAccountMetaFactory41(programAddress, "programId");
11918
12061
  return Object.freeze({
11919
12062
  accounts: [
11920
12063
  getAccountMeta("authority", accounts.authority),
@@ -11971,7 +12114,7 @@ function getWithdrawProtocolFeesInstruction(input, config) {
11971
12114
  if (!accounts.systemProgram.value) {
11972
12115
  accounts.systemProgram.value = "11111111111111111111111111111111";
11973
12116
  }
11974
- const getAccountMeta = getAccountMetaFactory40(programAddress, "programId");
12117
+ const getAccountMeta = getAccountMetaFactory41(programAddress, "programId");
11975
12118
  return Object.freeze({
11976
12119
  accounts: [
11977
12120
  getAccountMeta("authority", accounts.authority),
@@ -11994,8 +12137,8 @@ function getWithdrawProtocolFeesInstruction(input, config) {
11994
12137
  }
11995
12138
  function parseWithdrawProtocolFeesInstruction(instruction) {
11996
12139
  if (instruction.accounts.length < 13) {
11997
- throw new SolanaError40(
11998
- SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS40,
12140
+ throw new SolanaError41(
12141
+ SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS41,
11999
12142
  {
12000
12143
  actualAccountMetas: instruction.accounts.length,
12001
12144
  expectedAccountMetas: 13
@@ -12055,7 +12198,7 @@ function identifySatrushAccount(account) {
12055
12198
  const data = "data" in account ? account.data : account;
12056
12199
  if (containsBytes(
12057
12200
  data,
12058
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12201
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12059
12202
  new Uint8Array([79, 48, 160, 63, 153, 132, 240, 56])
12060
12203
  ),
12061
12204
  0
@@ -12064,7 +12207,7 @@ function identifySatrushAccount(account) {
12064
12207
  }
12065
12208
  if (containsBytes(
12066
12209
  data,
12067
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12210
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12068
12211
  new Uint8Array([100, 209, 6, 66, 115, 53, 132, 9])
12069
12212
  ),
12070
12213
  0
@@ -12073,7 +12216,7 @@ function identifySatrushAccount(account) {
12073
12216
  }
12074
12217
  if (containsBytes(
12075
12218
  data,
12076
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12219
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12077
12220
  new Uint8Array([75, 243, 246, 41, 173, 130, 196, 91])
12078
12221
  ),
12079
12222
  0
@@ -12082,7 +12225,7 @@ function identifySatrushAccount(account) {
12082
12225
  }
12083
12226
  if (containsBytes(
12084
12227
  data,
12085
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12228
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12086
12229
  new Uint8Array([116, 108, 198, 176, 193, 190, 91, 125])
12087
12230
  ),
12088
12231
  0
@@ -12091,7 +12234,7 @@ function identifySatrushAccount(account) {
12091
12234
  }
12092
12235
  if (containsBytes(
12093
12236
  data,
12094
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12237
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12095
12238
  new Uint8Array([121, 238, 146, 107, 234, 24, 227, 31])
12096
12239
  ),
12097
12240
  0
@@ -12100,7 +12243,7 @@ function identifySatrushAccount(account) {
12100
12243
  }
12101
12244
  if (containsBytes(
12102
12245
  data,
12103
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12246
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12104
12247
  new Uint8Array([223, 113, 15, 54, 123, 122, 140, 100])
12105
12248
  ),
12106
12249
  0
@@ -12109,7 +12252,7 @@ function identifySatrushAccount(account) {
12109
12252
  }
12110
12253
  if (containsBytes(
12111
12254
  data,
12112
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12255
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12113
12256
  new Uint8Array([134, 90, 53, 34, 240, 221, 175, 212])
12114
12257
  ),
12115
12258
  0
@@ -12118,7 +12261,7 @@ function identifySatrushAccount(account) {
12118
12261
  }
12119
12262
  if (containsBytes(
12120
12263
  data,
12121
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12264
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12122
12265
  new Uint8Array([255, 64, 185, 130, 97, 37, 230, 219])
12123
12266
  ),
12124
12267
  0
@@ -12127,7 +12270,7 @@ function identifySatrushAccount(account) {
12127
12270
  }
12128
12271
  if (containsBytes(
12129
12272
  data,
12130
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12273
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12131
12274
  new Uint8Array([190, 205, 75, 222, 220, 249, 43, 126])
12132
12275
  ),
12133
12276
  0
@@ -12136,7 +12279,7 @@ function identifySatrushAccount(account) {
12136
12279
  }
12137
12280
  if (containsBytes(
12138
12281
  data,
12139
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12282
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12140
12283
  new Uint8Array([16, 128, 211, 70, 213, 109, 108, 216])
12141
12284
  ),
12142
12285
  0
@@ -12145,7 +12288,7 @@ function identifySatrushAccount(account) {
12145
12288
  }
12146
12289
  if (containsBytes(
12147
12290
  data,
12148
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12291
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12149
12292
  new Uint8Array([209, 64, 180, 169, 40, 181, 110, 236])
12150
12293
  ),
12151
12294
  0
@@ -12154,7 +12297,7 @@ function identifySatrushAccount(account) {
12154
12297
  }
12155
12298
  if (containsBytes(
12156
12299
  data,
12157
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12300
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12158
12301
  new Uint8Array([87, 127, 165, 51, 73, 78, 116, 174])
12159
12302
  ),
12160
12303
  0
@@ -12163,7 +12306,7 @@ function identifySatrushAccount(account) {
12163
12306
  }
12164
12307
  if (containsBytes(
12165
12308
  data,
12166
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12309
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12167
12310
  new Uint8Array([113, 169, 164, 118, 148, 217, 160, 200])
12168
12311
  ),
12169
12312
  0
@@ -12172,7 +12315,7 @@ function identifySatrushAccount(account) {
12172
12315
  }
12173
12316
  if (containsBytes(
12174
12317
  data,
12175
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12318
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12176
12319
  new Uint8Array([97, 10, 251, 68, 215, 103, 124, 183])
12177
12320
  ),
12178
12321
  0
@@ -12181,14 +12324,14 @@ function identifySatrushAccount(account) {
12181
12324
  }
12182
12325
  if (containsBytes(
12183
12326
  data,
12184
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12327
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12185
12328
  new Uint8Array([238, 239, 123, 238, 89, 1, 168, 253])
12186
12329
  ),
12187
12330
  0
12188
12331
  )) {
12189
12332
  return 14 /* Treasury */;
12190
12333
  }
12191
- throw new SolanaError41(
12334
+ throw new SolanaError42(
12192
12335
  SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT,
12193
12336
  { accountData: data, programName: "satrush" }
12194
12337
  );
@@ -12228,19 +12371,20 @@ var SatrushInstruction = /* @__PURE__ */ ((SatrushInstruction2) => {
12228
12371
  SatrushInstruction2[SatrushInstruction2["TriggerEpochDraw"] = 31] = "TriggerEpochDraw";
12229
12372
  SatrushInstruction2[SatrushInstruction2["TriggerOneBtcDraw"] = 32] = "TriggerOneBtcDraw";
12230
12373
  SatrushInstruction2[SatrushInstruction2["UpdateBoardRoundDuration"] = 33] = "UpdateBoardRoundDuration";
12231
- SatrushInstruction2[SatrushInstruction2["UpdateDeploymentSettleGraceDuration"] = 34] = "UpdateDeploymentSettleGraceDuration";
12232
- SatrushInstruction2[SatrushInstruction2["UpdateEpochVaultIterationDuration"] = 35] = "UpdateEpochVaultIterationDuration";
12233
- SatrushInstruction2[SatrushInstruction2["UpdateMinDeployUsdAmount"] = 36] = "UpdateMinDeployUsdAmount";
12234
- SatrushInstruction2[SatrushInstruction2["UpdateStrikeTriggerModulus"] = 37] = "UpdateStrikeTriggerModulus";
12235
- SatrushInstruction2[SatrushInstruction2["UpdateUnclaimedHashrateBps"] = 38] = "UpdateUnclaimedHashrateBps";
12236
- SatrushInstruction2[SatrushInstruction2["WithdrawProtocolFees"] = 39] = "WithdrawProtocolFees";
12374
+ SatrushInstruction2[SatrushInstruction2["UpdateDeployFees"] = 34] = "UpdateDeployFees";
12375
+ SatrushInstruction2[SatrushInstruction2["UpdateDeploymentSettleGraceDuration"] = 35] = "UpdateDeploymentSettleGraceDuration";
12376
+ SatrushInstruction2[SatrushInstruction2["UpdateEpochVaultIterationDuration"] = 36] = "UpdateEpochVaultIterationDuration";
12377
+ SatrushInstruction2[SatrushInstruction2["UpdateMinDeployUsdAmount"] = 37] = "UpdateMinDeployUsdAmount";
12378
+ SatrushInstruction2[SatrushInstruction2["UpdateStrikeTriggerModulus"] = 38] = "UpdateStrikeTriggerModulus";
12379
+ SatrushInstruction2[SatrushInstruction2["UpdateUnclaimedHashrateBps"] = 39] = "UpdateUnclaimedHashrateBps";
12380
+ SatrushInstruction2[SatrushInstruction2["WithdrawProtocolFees"] = 40] = "WithdrawProtocolFees";
12237
12381
  return SatrushInstruction2;
12238
12382
  })(SatrushInstruction || {});
12239
12383
  function identifySatrushInstruction(instruction) {
12240
12384
  const data = "data" in instruction ? instruction.data : instruction;
12241
12385
  if (containsBytes(
12242
12386
  data,
12243
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12387
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12244
12388
  new Uint8Array([90, 201, 98, 189, 106, 249, 86, 109])
12245
12389
  ),
12246
12390
  0
@@ -12249,7 +12393,7 @@ function identifySatrushInstruction(instruction) {
12249
12393
  }
12250
12394
  if (containsBytes(
12251
12395
  data,
12252
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12396
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12253
12397
  new Uint8Array([4, 48, 106, 230, 146, 124, 140, 167])
12254
12398
  ),
12255
12399
  0
@@ -12258,7 +12402,7 @@ function identifySatrushInstruction(instruction) {
12258
12402
  }
12259
12403
  if (containsBytes(
12260
12404
  data,
12261
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12405
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12262
12406
  new Uint8Array([87, 135, 14, 43, 190, 79, 45, 212])
12263
12407
  ),
12264
12408
  0
@@ -12267,7 +12411,7 @@ function identifySatrushInstruction(instruction) {
12267
12411
  }
12268
12412
  if (containsBytes(
12269
12413
  data,
12270
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12414
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12271
12415
  new Uint8Array([226, 196, 170, 104, 125, 21, 190, 232])
12272
12416
  ),
12273
12417
  0
@@ -12276,7 +12420,7 @@ function identifySatrushInstruction(instruction) {
12276
12420
  }
12277
12421
  if (containsBytes(
12278
12422
  data,
12279
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12423
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12280
12424
  new Uint8Array([53, 168, 61, 211, 206, 81, 133, 175])
12281
12425
  ),
12282
12426
  0
@@ -12285,7 +12429,7 @@ function identifySatrushInstruction(instruction) {
12285
12429
  }
12286
12430
  if (containsBytes(
12287
12431
  data,
12288
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12432
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12289
12433
  new Uint8Array([196, 77, 168, 181, 6, 119, 249, 154])
12290
12434
  ),
12291
12435
  0
@@ -12294,7 +12438,7 @@ function identifySatrushInstruction(instruction) {
12294
12438
  }
12295
12439
  if (containsBytes(
12296
12440
  data,
12297
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12441
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12298
12442
  new Uint8Array([241, 89, 98, 124, 223, 205, 215, 104])
12299
12443
  ),
12300
12444
  0
@@ -12303,7 +12447,7 @@ function identifySatrushInstruction(instruction) {
12303
12447
  }
12304
12448
  if (containsBytes(
12305
12449
  data,
12306
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12450
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12307
12451
  new Uint8Array([27, 23, 127, 47, 147, 184, 239, 190])
12308
12452
  ),
12309
12453
  0
@@ -12312,7 +12456,7 @@ function identifySatrushInstruction(instruction) {
12312
12456
  }
12313
12457
  if (containsBytes(
12314
12458
  data,
12315
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12459
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12316
12460
  new Uint8Array([80, 74, 10, 29, 63, 106, 63, 192])
12317
12461
  ),
12318
12462
  0
@@ -12321,7 +12465,7 @@ function identifySatrushInstruction(instruction) {
12321
12465
  }
12322
12466
  if (containsBytes(
12323
12467
  data,
12324
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12468
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12325
12469
  new Uint8Array([11, 123, 237, 176, 25, 240, 59, 135])
12326
12470
  ),
12327
12471
  0
@@ -12330,7 +12474,7 @@ function identifySatrushInstruction(instruction) {
12330
12474
  }
12331
12475
  if (containsBytes(
12332
12476
  data,
12333
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12477
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12334
12478
  new Uint8Array([181, 42, 174, 200, 192, 21, 27, 187])
12335
12479
  ),
12336
12480
  0
@@ -12339,7 +12483,7 @@ function identifySatrushInstruction(instruction) {
12339
12483
  }
12340
12484
  if (containsBytes(
12341
12485
  data,
12342
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12486
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12343
12487
  new Uint8Array([251, 62, 143, 106, 218, 1, 162, 181])
12344
12488
  ),
12345
12489
  0
@@ -12348,7 +12492,7 @@ function identifySatrushInstruction(instruction) {
12348
12492
  }
12349
12493
  if (containsBytes(
12350
12494
  data,
12351
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12495
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12352
12496
  new Uint8Array([149, 14, 81, 88, 230, 226, 234, 37])
12353
12497
  ),
12354
12498
  0
@@ -12357,7 +12501,7 @@ function identifySatrushInstruction(instruction) {
12357
12501
  }
12358
12502
  if (containsBytes(
12359
12503
  data,
12360
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12504
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12361
12505
  new Uint8Array([81, 129, 130, 38, 99, 204, 224, 177])
12362
12506
  ),
12363
12507
  0
@@ -12366,7 +12510,7 @@ function identifySatrushInstruction(instruction) {
12366
12510
  }
12367
12511
  if (containsBytes(
12368
12512
  data,
12369
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12513
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12370
12514
  new Uint8Array([69, 146, 29, 218, 228, 29, 229, 241])
12371
12515
  ),
12372
12516
  0
@@ -12375,7 +12519,7 @@ function identifySatrushInstruction(instruction) {
12375
12519
  }
12376
12520
  if (containsBytes(
12377
12521
  data,
12378
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12522
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12379
12523
  new Uint8Array([156, 160, 69, 94, 108, 6, 145, 211])
12380
12524
  ),
12381
12525
  0
@@ -12384,7 +12528,7 @@ function identifySatrushInstruction(instruction) {
12384
12528
  }
12385
12529
  if (containsBytes(
12386
12530
  data,
12387
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12531
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12388
12532
  new Uint8Array([195, 44, 245, 180, 58, 206, 203, 229])
12389
12533
  ),
12390
12534
  0
@@ -12393,7 +12537,7 @@ function identifySatrushInstruction(instruction) {
12393
12537
  }
12394
12538
  if (containsBytes(
12395
12539
  data,
12396
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12540
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12397
12541
  new Uint8Array([96, 175, 39, 171, 158, 44, 117, 18])
12398
12542
  ),
12399
12543
  0
@@ -12402,7 +12546,7 @@ function identifySatrushInstruction(instruction) {
12402
12546
  }
12403
12547
  if (containsBytes(
12404
12548
  data,
12405
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12549
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12406
12550
  new Uint8Array([159, 29, 126, 216, 29, 240, 141, 61])
12407
12551
  ),
12408
12552
  0
@@ -12411,7 +12555,7 @@ function identifySatrushInstruction(instruction) {
12411
12555
  }
12412
12556
  if (containsBytes(
12413
12557
  data,
12414
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12558
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12415
12559
  new Uint8Array([254, 98, 217, 51, 25, 88, 140, 45])
12416
12560
  ),
12417
12561
  0
@@ -12420,7 +12564,7 @@ function identifySatrushInstruction(instruction) {
12420
12564
  }
12421
12565
  if (containsBytes(
12422
12566
  data,
12423
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12567
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12424
12568
  new Uint8Array([193, 31, 240, 159, 30, 224, 157, 85])
12425
12569
  ),
12426
12570
  0
@@ -12429,7 +12573,7 @@ function identifySatrushInstruction(instruction) {
12429
12573
  }
12430
12574
  if (containsBytes(
12431
12575
  data,
12432
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12576
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12433
12577
  new Uint8Array([212, 191, 100, 136, 18, 213, 42, 72])
12434
12578
  ),
12435
12579
  0
@@ -12438,7 +12582,7 @@ function identifySatrushInstruction(instruction) {
12438
12582
  }
12439
12583
  if (containsBytes(
12440
12584
  data,
12441
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12585
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12442
12586
  new Uint8Array([3, 245, 202, 88, 161, 29, 51, 141])
12443
12587
  ),
12444
12588
  0
@@ -12447,7 +12591,7 @@ function identifySatrushInstruction(instruction) {
12447
12591
  }
12448
12592
  if (containsBytes(
12449
12593
  data,
12450
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12594
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12451
12595
  new Uint8Array([89, 228, 101, 114, 103, 98, 126, 229])
12452
12596
  ),
12453
12597
  0
@@ -12456,7 +12600,7 @@ function identifySatrushInstruction(instruction) {
12456
12600
  }
12457
12601
  if (containsBytes(
12458
12602
  data,
12459
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12603
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12460
12604
  new Uint8Array([222, 36, 211, 175, 4, 220, 2, 251])
12461
12605
  ),
12462
12606
  0
@@ -12465,7 +12609,7 @@ function identifySatrushInstruction(instruction) {
12465
12609
  }
12466
12610
  if (containsBytes(
12467
12611
  data,
12468
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12612
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12469
12613
  new Uint8Array([249, 111, 122, 103, 93, 86, 76, 198])
12470
12614
  ),
12471
12615
  0
@@ -12474,7 +12618,7 @@ function identifySatrushInstruction(instruction) {
12474
12618
  }
12475
12619
  if (containsBytes(
12476
12620
  data,
12477
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12621
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12478
12622
  new Uint8Array([82, 124, 95, 215, 213, 107, 134, 122])
12479
12623
  ),
12480
12624
  0
@@ -12483,7 +12627,7 @@ function identifySatrushInstruction(instruction) {
12483
12627
  }
12484
12628
  if (containsBytes(
12485
12629
  data,
12486
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12630
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12487
12631
  new Uint8Array([61, 147, 13, 247, 164, 34, 14, 57])
12488
12632
  ),
12489
12633
  0
@@ -12492,7 +12636,7 @@ function identifySatrushInstruction(instruction) {
12492
12636
  }
12493
12637
  if (containsBytes(
12494
12638
  data,
12495
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12639
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12496
12640
  new Uint8Array([86, 168, 42, 98, 2, 164, 250, 185])
12497
12641
  ),
12498
12642
  0
@@ -12501,7 +12645,7 @@ function identifySatrushInstruction(instruction) {
12501
12645
  }
12502
12646
  if (containsBytes(
12503
12647
  data,
12504
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12648
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12505
12649
  new Uint8Array([129, 112, 9, 43, 91, 154, 157, 135])
12506
12650
  ),
12507
12651
  0
@@ -12510,7 +12654,7 @@ function identifySatrushInstruction(instruction) {
12510
12654
  }
12511
12655
  if (containsBytes(
12512
12656
  data,
12513
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12657
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12514
12658
  new Uint8Array([1, 96, 199, 199, 107, 118, 193, 87])
12515
12659
  ),
12516
12660
  0
@@ -12519,7 +12663,7 @@ function identifySatrushInstruction(instruction) {
12519
12663
  }
12520
12664
  if (containsBytes(
12521
12665
  data,
12522
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12666
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12523
12667
  new Uint8Array([93, 12, 139, 55, 235, 88, 37, 117])
12524
12668
  ),
12525
12669
  0
@@ -12528,7 +12672,7 @@ function identifySatrushInstruction(instruction) {
12528
12672
  }
12529
12673
  if (containsBytes(
12530
12674
  data,
12531
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12675
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12532
12676
  new Uint8Array([252, 210, 238, 28, 169, 118, 28, 11])
12533
12677
  ),
12534
12678
  0
@@ -12537,7 +12681,7 @@ function identifySatrushInstruction(instruction) {
12537
12681
  }
12538
12682
  if (containsBytes(
12539
12683
  data,
12540
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12684
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12541
12685
  new Uint8Array([12, 130, 188, 85, 167, 187, 204, 183])
12542
12686
  ),
12543
12687
  0
@@ -12546,59 +12690,68 @@ function identifySatrushInstruction(instruction) {
12546
12690
  }
12547
12691
  if (containsBytes(
12548
12692
  data,
12549
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12693
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12694
+ new Uint8Array([0, 170, 26, 215, 156, 171, 22, 68])
12695
+ ),
12696
+ 0
12697
+ )) {
12698
+ return 34 /* UpdateDeployFees */;
12699
+ }
12700
+ if (containsBytes(
12701
+ data,
12702
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12550
12703
  new Uint8Array([2, 212, 246, 89, 139, 64, 104, 74])
12551
12704
  ),
12552
12705
  0
12553
12706
  )) {
12554
- return 34 /* UpdateDeploymentSettleGraceDuration */;
12707
+ return 35 /* UpdateDeploymentSettleGraceDuration */;
12555
12708
  }
12556
12709
  if (containsBytes(
12557
12710
  data,
12558
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12711
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12559
12712
  new Uint8Array([171, 103, 59, 229, 174, 188, 210, 121])
12560
12713
  ),
12561
12714
  0
12562
12715
  )) {
12563
- return 35 /* UpdateEpochVaultIterationDuration */;
12716
+ return 36 /* UpdateEpochVaultIterationDuration */;
12564
12717
  }
12565
12718
  if (containsBytes(
12566
12719
  data,
12567
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12720
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12568
12721
  new Uint8Array([187, 108, 89, 178, 249, 101, 187, 33])
12569
12722
  ),
12570
12723
  0
12571
12724
  )) {
12572
- return 36 /* UpdateMinDeployUsdAmount */;
12725
+ return 37 /* UpdateMinDeployUsdAmount */;
12573
12726
  }
12574
12727
  if (containsBytes(
12575
12728
  data,
12576
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12729
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12577
12730
  new Uint8Array([241, 172, 229, 62, 191, 163, 60, 186])
12578
12731
  ),
12579
12732
  0
12580
12733
  )) {
12581
- return 37 /* UpdateStrikeTriggerModulus */;
12734
+ return 38 /* UpdateStrikeTriggerModulus */;
12582
12735
  }
12583
12736
  if (containsBytes(
12584
12737
  data,
12585
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12738
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12586
12739
  new Uint8Array([237, 38, 26, 14, 73, 161, 208, 157])
12587
12740
  ),
12588
12741
  0
12589
12742
  )) {
12590
- return 38 /* UpdateUnclaimedHashrateBps */;
12743
+ return 39 /* UpdateUnclaimedHashrateBps */;
12591
12744
  }
12592
12745
  if (containsBytes(
12593
12746
  data,
12594
- fixEncoderSize66(getBytesEncoder78(), 8).encode(
12747
+ fixEncoderSize67(getBytesEncoder79(), 8).encode(
12595
12748
  new Uint8Array([11, 68, 165, 98, 18, 208, 134, 73])
12596
12749
  ),
12597
12750
  0
12598
12751
  )) {
12599
- return 39 /* WithdrawProtocolFees */;
12752
+ return 40 /* WithdrawProtocolFees */;
12600
12753
  }
12601
- throw new SolanaError41(
12754
+ throw new SolanaError42(
12602
12755
  SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION,
12603
12756
  { instructionData: data, programName: "satrush" }
12604
12757
  );
@@ -12844,50 +12997,57 @@ function parseSatrushInstruction(instruction) {
12844
12997
  ...parseUpdateBoardRoundDurationInstruction(instruction)
12845
12998
  };
12846
12999
  }
12847
- case 34 /* UpdateDeploymentSettleGraceDuration */: {
13000
+ case 34 /* UpdateDeployFees */: {
12848
13001
  assertIsInstructionWithAccounts(instruction);
12849
13002
  return {
12850
- instructionType: 34 /* UpdateDeploymentSettleGraceDuration */,
13003
+ instructionType: 34 /* UpdateDeployFees */,
13004
+ ...parseUpdateDeployFeesInstruction(instruction)
13005
+ };
13006
+ }
13007
+ case 35 /* UpdateDeploymentSettleGraceDuration */: {
13008
+ assertIsInstructionWithAccounts(instruction);
13009
+ return {
13010
+ instructionType: 35 /* UpdateDeploymentSettleGraceDuration */,
12851
13011
  ...parseUpdateDeploymentSettleGraceDurationInstruction(instruction)
12852
13012
  };
12853
13013
  }
12854
- case 35 /* UpdateEpochVaultIterationDuration */: {
13014
+ case 36 /* UpdateEpochVaultIterationDuration */: {
12855
13015
  assertIsInstructionWithAccounts(instruction);
12856
13016
  return {
12857
- instructionType: 35 /* UpdateEpochVaultIterationDuration */,
13017
+ instructionType: 36 /* UpdateEpochVaultIterationDuration */,
12858
13018
  ...parseUpdateEpochVaultIterationDurationInstruction(instruction)
12859
13019
  };
12860
13020
  }
12861
- case 36 /* UpdateMinDeployUsdAmount */: {
13021
+ case 37 /* UpdateMinDeployUsdAmount */: {
12862
13022
  assertIsInstructionWithAccounts(instruction);
12863
13023
  return {
12864
- instructionType: 36 /* UpdateMinDeployUsdAmount */,
13024
+ instructionType: 37 /* UpdateMinDeployUsdAmount */,
12865
13025
  ...parseUpdateMinDeployUsdAmountInstruction(instruction)
12866
13026
  };
12867
13027
  }
12868
- case 37 /* UpdateStrikeTriggerModulus */: {
13028
+ case 38 /* UpdateStrikeTriggerModulus */: {
12869
13029
  assertIsInstructionWithAccounts(instruction);
12870
13030
  return {
12871
- instructionType: 37 /* UpdateStrikeTriggerModulus */,
13031
+ instructionType: 38 /* UpdateStrikeTriggerModulus */,
12872
13032
  ...parseUpdateStrikeTriggerModulusInstruction(instruction)
12873
13033
  };
12874
13034
  }
12875
- case 38 /* UpdateUnclaimedHashrateBps */: {
13035
+ case 39 /* UpdateUnclaimedHashrateBps */: {
12876
13036
  assertIsInstructionWithAccounts(instruction);
12877
13037
  return {
12878
- instructionType: 38 /* UpdateUnclaimedHashrateBps */,
13038
+ instructionType: 39 /* UpdateUnclaimedHashrateBps */,
12879
13039
  ...parseUpdateUnclaimedHashrateBpsInstruction(instruction)
12880
13040
  };
12881
13041
  }
12882
- case 39 /* WithdrawProtocolFees */: {
13042
+ case 40 /* WithdrawProtocolFees */: {
12883
13043
  assertIsInstructionWithAccounts(instruction);
12884
13044
  return {
12885
- instructionType: 39 /* WithdrawProtocolFees */,
13045
+ instructionType: 40 /* WithdrawProtocolFees */,
12886
13046
  ...parseWithdrawProtocolFeesInstruction(instruction)
12887
13047
  };
12888
13048
  }
12889
13049
  default:
12890
- throw new SolanaError41(
13050
+ throw new SolanaError42(
12891
13051
  SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE,
12892
13052
  { instructionType, programName: "satrush" }
12893
13053
  );
@@ -12982,7 +13142,7 @@ function satrushProgram() {
12982
13142
  ),
12983
13143
  closeOneBtcTicket: (input) => addSelfPlanAndSendFunctions(
12984
13144
  client,
12985
- getCloseOneBtcTicketInstruction(input)
13145
+ getCloseOneBtcTicketInstructionAsync(input)
12986
13146
  ),
12987
13147
  closeRound: (input) => addSelfPlanAndSendFunctions(
12988
13148
  client,
@@ -13072,6 +13232,10 @@ function satrushProgram() {
13072
13232
  client,
13073
13233
  getUpdateBoardRoundDurationInstructionAsync(input)
13074
13234
  ),
13235
+ updateDeployFees: (input) => addSelfPlanAndSendFunctions(
13236
+ client,
13237
+ getUpdateDeployFeesInstructionAsync(input)
13238
+ ),
13075
13239
  updateDeploymentSettleGraceDuration: (input) => addSelfPlanAndSendFunctions(
13076
13240
  client,
13077
13241
  getUpdateDeploymentSettleGraceDurationInstructionAsync(input)
@@ -13172,6 +13336,8 @@ var SATRUSH_ERROR__INVALID_EPOCH_ITERATION_DURATION = 6048;
13172
13336
  var SATRUSH_ERROR__INVALID_UNCLAIMED_HASHRATE_BPS = 6049;
13173
13337
  var SATRUSH_ERROR__INVALID_STRIKE_TRIGGER_MODULUS = 6050;
13174
13338
  var SATRUSH_ERROR__INVALID_SWAP_BPS = 6051;
13339
+ var SATRUSH_ERROR__INVALID_MINT_DATA = 6052;
13340
+ var SATRUSH_ERROR__INVALID_DEPLOY_FEES = 6053;
13175
13341
  var satrushErrorMessages;
13176
13342
  if (process.env["NODE_ENV"] !== "production") {
13177
13343
  satrushErrorMessages = {
@@ -13196,9 +13362,11 @@ if (process.env["NODE_ENV"] !== "production") {
13196
13362
  [SATRUSH_ERROR__INVALID_AUTOMATION_AMOUNT]: `Automation amount must be greater than zero`,
13197
13363
  [SATRUSH_ERROR__INVALID_AUTOMATION_STRATEGY_MASK]: `Selection mask does not match the automation strategy`,
13198
13364
  [SATRUSH_ERROR__INVALID_CLAIM_AMOUNT]: `Claim amount must be greater than zero`,
13365
+ [SATRUSH_ERROR__INVALID_DEPLOY_FEES]: `Deploy fee legs must each be at least 1 bps and sum to exactly 800 bps`,
13199
13366
  [SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT]: `Deployment amount must be greater than zero`,
13200
13367
  [SATRUSH_ERROR__INVALID_ENTROPY]: `Entropy value is invalid`,
13201
13368
  [SATRUSH_ERROR__INVALID_EPOCH_ITERATION_DURATION]: `Epoch iteration duration must be greater than zero`,
13369
+ [SATRUSH_ERROR__INVALID_MINT_DATA]: `Mint account data is too short to contain the decimals field`,
13202
13370
  [SATRUSH_ERROR__INVALID_ROUND_DURATION]: `Round duration must be greater than zero`,
13203
13371
  [SATRUSH_ERROR__INVALID_ROUND_ID]: `Invalid round id supplied to create round`,
13204
13372
  [SATRUSH_ERROR__INVALID_SELECTION_MASK]: `Selection mask must pick between 1 and 21 tiles within the 21-bit range`,
@@ -13256,7 +13424,7 @@ import {
13256
13424
  getAddressEncoder as getAddressEncoder41,
13257
13425
  getProgramDerivedAddress as getProgramDerivedAddress35,
13258
13426
  getU16Encoder as getU16Encoder22,
13259
- getU32Encoder as getU32Encoder33
13427
+ getU32Encoder as getU32Encoder34
13260
13428
  } from "@solana/kit";
13261
13429
  async function getSatrushConfigAddress() {
13262
13430
  return await getProgramDerivedAddress35({
@@ -13279,7 +13447,7 @@ async function getBoardAddress() {
13279
13447
  async function getRoundAddress(roundId) {
13280
13448
  return await getProgramDerivedAddress35({
13281
13449
  programAddress: SATRUSH_PROGRAM_ADDRESS,
13282
- seeds: ["round", getU32Encoder33().encode(roundId)]
13450
+ seeds: ["round", getU32Encoder34().encode(roundId)]
13283
13451
  });
13284
13452
  }
13285
13453
  async function getPublicDeploymentAddress(authority, roundId) {
@@ -13288,7 +13456,7 @@ async function getPublicDeploymentAddress(authority, roundId) {
13288
13456
  seeds: [
13289
13457
  "public_deployment",
13290
13458
  getAddressEncoder41().encode(authority),
13291
- getU32Encoder33().encode(roundId)
13459
+ getU32Encoder34().encode(roundId)
13292
13460
  ]
13293
13461
  });
13294
13462
  }
@@ -13313,7 +13481,7 @@ async function getEpochVaultAddress() {
13313
13481
  async function getEpochVaultIterationAddress(iterationId) {
13314
13482
  return await getProgramDerivedAddress35({
13315
13483
  programAddress: SATRUSH_PROGRAM_ADDRESS,
13316
- seeds: ["epoch_vault_iteration", getU32Encoder33().encode(iterationId)]
13484
+ seeds: ["epoch_vault_iteration", getU32Encoder34().encode(iterationId)]
13317
13485
  });
13318
13486
  }
13319
13487
  async function getEpochVaultEntryAddress(iterationId, authority) {
@@ -13321,7 +13489,7 @@ async function getEpochVaultEntryAddress(iterationId, authority) {
13321
13489
  programAddress: SATRUSH_PROGRAM_ADDRESS,
13322
13490
  seeds: [
13323
13491
  "epoch_vault_entry",
13324
- getU32Encoder33().encode(iterationId),
13492
+ getU32Encoder34().encode(iterationId),
13325
13493
  getAddressEncoder41().encode(authority)
13326
13494
  ]
13327
13495
  });
@@ -13331,7 +13499,7 @@ async function getEpochVaultPageAddress(iterationId, pageIndex) {
13331
13499
  programAddress: SATRUSH_PROGRAM_ADDRESS,
13332
13500
  seeds: [
13333
13501
  "epoch_vault_page",
13334
- getU32Encoder33().encode(iterationId),
13502
+ getU32Encoder34().encode(iterationId),
13335
13503
  getU16Encoder22().encode(pageIndex)
13336
13504
  ]
13337
13505
  });
@@ -13345,7 +13513,7 @@ async function getOneBtcVaultAddress() {
13345
13513
  async function getOneBtcVaultIterationAddress(iterationId) {
13346
13514
  return await getProgramDerivedAddress35({
13347
13515
  programAddress: SATRUSH_PROGRAM_ADDRESS,
13348
- seeds: ["one_btc_vault_iteration", getU32Encoder33().encode(iterationId)]
13516
+ seeds: ["one_btc_vault_iteration", getU32Encoder34().encode(iterationId)]
13349
13517
  });
13350
13518
  }
13351
13519
  async function getTreasuryAddress() {
@@ -13512,6 +13680,8 @@ var HASHRATE_DECIMALS = 2;
13512
13680
  var HASHRATE_PER_TICKET = 100n;
13513
13681
  var LOYALTY_WEIGHT = 1n;
13514
13682
  var SKILL_WEIGHT = 1n;
13683
+ var STRIKE_BOOST_ROUNDS = 240;
13684
+ var STRIKE_BOOST_HASHRATE_MULTIPLIER = 2n;
13515
13685
  function getHashrateUiAmount(hashrate) {
13516
13686
  assertU64(hashrate, "hashrate");
13517
13687
  const whole = hashrate / HASHRATE_PER_TICKET;
@@ -13527,9 +13697,10 @@ var ZERO_REWARD = {
13527
13697
  skillPoints: 0n,
13528
13698
  total: 0n
13529
13699
  };
13530
- function hashrateReward(stake, streak, covered, totalTiles, usdUnit) {
13700
+ function hashrateReward(stake, streak, covered, totalTiles, usdUnit, hashrateMultiplier = 1n) {
13531
13701
  assertU64(stake, "stake");
13532
13702
  assertU64(usdUnit, "usdUnit");
13703
+ assertU64(hashrateMultiplier, "hashrateMultiplier");
13533
13704
  if (stake === 0n || covered === 0) {
13534
13705
  return ZERO_REWARD;
13535
13706
  }
@@ -13537,9 +13708,9 @@ function hashrateReward(stake, streak, covered, totalTiles, usdUnit) {
13537
13708
  const denom = coveredBig * usdUnit;
13538
13709
  const skillNum = stake * (SKILL_WEIGHT * BigInt(totalTiles));
13539
13710
  const loyaltyNum = stake * (LOYALTY_WEIGHT * BigInt(streak) * coveredBig);
13540
- const total = (loyaltyNum + skillNum) / denom;
13711
+ const total = (loyaltyNum + skillNum) / denom * hashrateMultiplier;
13541
13712
  assertU64(total, "hashrate reward total");
13542
- const skillPoints = skillNum / denom;
13713
+ const skillPoints = skillNum / denom * hashrateMultiplier;
13543
13714
  const loyaltyPoints = total - skillPoints;
13544
13715
  return { loyaltyPoints, skillPoints, total };
13545
13716
  }
@@ -13681,8 +13852,10 @@ export {
13681
13852
  SATRUSH_ERROR__INVALID_AUTOMATION_STRATEGY_MASK,
13682
13853
  SATRUSH_ERROR__INVALID_CLAIM_AMOUNT,
13683
13854
  SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT,
13855
+ SATRUSH_ERROR__INVALID_DEPLOY_FEES,
13684
13856
  SATRUSH_ERROR__INVALID_ENTROPY,
13685
13857
  SATRUSH_ERROR__INVALID_EPOCH_ITERATION_DURATION,
13858
+ SATRUSH_ERROR__INVALID_MINT_DATA,
13686
13859
  SATRUSH_ERROR__INVALID_ROUND_DURATION,
13687
13860
  SATRUSH_ERROR__INVALID_ROUND_ID,
13688
13861
  SATRUSH_ERROR__INVALID_SELECTION_MASK,
@@ -13718,6 +13891,8 @@ export {
13718
13891
  SETTLE_DEPLOY_PUBLIC_DISCRIMINATOR,
13719
13892
  SHARE_OFFSET,
13720
13893
  SKILL_WEIGHT,
13894
+ STRIKE_BOOST_HASHRATE_MULTIPLIER,
13895
+ STRIKE_BOOST_ROUNDS,
13721
13896
  SWAP_EPOCH_STAKE_DISCRIMINATOR,
13722
13897
  SWAP_ONE_BTC_STAKE_DISCRIMINATOR,
13723
13898
  SWAP_ROUND_STAKE_DISCRIMINATOR,
@@ -13731,6 +13906,7 @@ export {
13731
13906
  TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR,
13732
13907
  UPDATE_BOARD_ROUND_DURATION_DISCRIMINATOR,
13733
13908
  UPDATE_DEPLOYMENT_SETTLE_GRACE_DURATION_DISCRIMINATOR,
13909
+ UPDATE_DEPLOY_FEES_DISCRIMINATOR,
13734
13910
  UPDATE_EPOCH_VAULT_ITERATION_DURATION_DISCRIMINATOR,
13735
13911
  UPDATE_MIN_DEPLOY_USD_AMOUNT_DISCRIMINATOR,
13736
13912
  UPDATE_STRIKE_TRIGGER_MODULUS_DISCRIMINATOR,
@@ -13909,6 +14085,7 @@ export {
13909
14085
  getCloseOneBtcIterationInstructionDataEncoder,
13910
14086
  getCloseOneBtcTicketDiscriminatorBytes,
13911
14087
  getCloseOneBtcTicketInstruction,
14088
+ getCloseOneBtcTicketInstructionAsync,
13912
14089
  getCloseOneBtcTicketInstructionDataCodec,
13913
14090
  getCloseOneBtcTicketInstructionDataDecoder,
13914
14091
  getCloseOneBtcTicketInstructionDataEncoder,
@@ -14174,6 +14351,12 @@ export {
14174
14351
  getUpdateBoardRoundDurationInstructionDataCodec,
14175
14352
  getUpdateBoardRoundDurationInstructionDataDecoder,
14176
14353
  getUpdateBoardRoundDurationInstructionDataEncoder,
14354
+ getUpdateDeployFeesDiscriminatorBytes,
14355
+ getUpdateDeployFeesInstruction,
14356
+ getUpdateDeployFeesInstructionAsync,
14357
+ getUpdateDeployFeesInstructionDataCodec,
14358
+ getUpdateDeployFeesInstructionDataDecoder,
14359
+ getUpdateDeployFeesInstructionDataEncoder,
14177
14360
  getUpdateDeploymentSettleGraceDurationDiscriminatorBytes,
14178
14361
  getUpdateDeploymentSettleGraceDurationInstruction,
14179
14362
  getUpdateDeploymentSettleGraceDurationInstructionAsync,
@@ -14253,6 +14436,7 @@ export {
14253
14436
  parseTriggerEpochDrawInstruction,
14254
14437
  parseTriggerOneBtcDrawInstruction,
14255
14438
  parseUpdateBoardRoundDurationInstruction,
14439
+ parseUpdateDeployFeesInstruction,
14256
14440
  parseUpdateDeploymentSettleGraceDurationInstruction,
14257
14441
  parseUpdateEpochVaultIterationDurationInstruction,
14258
14442
  parseUpdateMinDeployUsdAmountInstruction,