@bench.games/opportunity-markets 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -38,9 +38,11 @@ __export(index_exports, {
38
38
  ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR: () => ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR,
39
39
  CLAIM_CREATOR_FEES_DISCRIMINATOR: () => CLAIM_CREATOR_FEES_DISCRIMINATOR,
40
40
  CLAIM_FEES_DISCRIMINATOR: () => CLAIM_FEES_DISCRIMINATOR,
41
+ CLAIM_REWARDS_DISCRIMINATOR: () => CLAIM_REWARDS_DISCRIMINATOR,
41
42
  CLOSE_OPTION_ACCOUNT_DISCRIMINATOR: () => CLOSE_OPTION_ACCOUNT_DISCRIMINATOR,
42
43
  CLOSE_STAKE_ACCOUNT_DISCRIMINATOR: () => CLOSE_STAKE_ACCOUNT_DISCRIMINATOR,
43
44
  CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR: () => CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR,
45
+ CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR: () => CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR,
44
46
  CREATE_MARKET_DISCRIMINATOR: () => CREATE_MARKET_DISCRIMINATOR,
45
47
  END_REVEAL_PERIOD_DISCRIMINATOR: () => END_REVEAL_PERIOD_DISCRIMINATOR,
46
48
  FINALIZE_REVEAL_STAKE_DISCRIMINATOR: () => FINALIZE_REVEAL_STAKE_DISCRIMINATOR,
@@ -68,11 +70,10 @@ __export(index_exports, {
68
70
  OPPORTUNITY_MARKET_ERROR__LOCKED: () => OPPORTUNITY_MARKET_ERROR__LOCKED,
69
71
  OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN: () => OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN,
70
72
  OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN: () => OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN,
71
- OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED: () => OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED,
72
73
  OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED: () => OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED,
73
- OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED: () => OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED,
74
74
  OPPORTUNITY_MARKET_ERROR__NOT_REVEALED: () => OPPORTUNITY_MARKET_ERROR__NOT_REVEALED,
75
75
  OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM: () => OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM,
76
+ OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION: () => OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION,
76
77
  OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM: () => OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM,
77
78
  OPPORTUNITY_MARKET_ERROR__NO_STAKE: () => OPPORTUNITY_MARKET_ERROR__NO_STAKE,
78
79
  OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED: () => OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED,
@@ -95,12 +96,10 @@ __export(index_exports, {
95
96
  OpportunityMarketAccount: () => OpportunityMarketAccount,
96
97
  OpportunityMarketInstruction: () => OpportunityMarketInstruction,
97
98
  Output: () => Output,
98
- PAUSE_STAKING_DISCRIMINATOR: () => PAUSE_STAKING_DISCRIMINATOR,
99
99
  PLATFORM_CONFIG_DISCRIMINATOR: () => PLATFORM_CONFIG_DISCRIMINATOR,
100
100
  PLATFORM_CONFIG_SEED: () => PLATFORM_CONFIG_SEED,
101
101
  Parameter: () => Parameter,
102
102
  RESOLVE_MARKET_DISCRIMINATOR: () => RESOLVE_MARKET_DISCRIMINATOR,
103
- RESUME_STAKING_DISCRIMINATOR: () => RESUME_STAKING_DISCRIMINATOR,
104
103
  REVEAL_STAKE_CALLBACK_DISCRIMINATOR: () => REVEAL_STAKE_CALLBACK_DISCRIMINATOR,
105
104
  REVEAL_STAKE_COMP_DEF_DISCRIMINATOR: () => REVEAL_STAKE_COMP_DEF_DISCRIMINATOR,
106
105
  REVEAL_STAKE_DISCRIMINATOR: () => REVEAL_STAKE_DISCRIMINATOR,
@@ -118,14 +117,17 @@ __export(index_exports, {
118
117
  WITHDRAW_REWARD_DISCRIMINATOR: () => WITHDRAW_REWARD_DISCRIMINATOR,
119
118
  addMarketOption: () => addMarketOption,
120
119
  addReward: () => addReward,
121
- awaitBatchComputationFinalization: () => awaitBatchComputationFinalization,
122
120
  awaitComputationFinalization: () => awaitComputationFinalization,
121
+ awaitRevealStakeFinalization: () => awaitRevealStakeFinalization,
122
+ awaitStakeFinalization: () => awaitStakeFinalization,
123
123
  circuitSource: () => circuitSource,
124
124
  claimCreatorFees: () => claimCreatorFees,
125
125
  claimFees: () => claimFees,
126
+ claimRewards: () => claimRewards,
126
127
  closeOptionAccount: () => closeOptionAccount,
127
128
  closeStakeAccount: () => closeStakeAccount,
128
129
  closeStuckStakeAccount: () => closeStuckStakeAccount,
130
+ closeUnrevealedStakeAccount: () => closeUnrevealedStakeAccount,
129
131
  createCipher: () => createCipher,
130
132
  createMarket: () => createMarket,
131
133
  createPlatformConfig: () => createPlatformConfig,
@@ -214,6 +216,12 @@ __export(index_exports, {
214
216
  getClaimFeesInstructionDataCodec: () => getClaimFeesInstructionDataCodec,
215
217
  getClaimFeesInstructionDataDecoder: () => getClaimFeesInstructionDataDecoder,
216
218
  getClaimFeesInstructionDataEncoder: () => getClaimFeesInstructionDataEncoder,
219
+ getClaimRewardsDiscriminatorBytes: () => getClaimRewardsDiscriminatorBytes,
220
+ getClaimRewardsInstruction: () => getClaimRewardsInstruction,
221
+ getClaimRewardsInstructionAsync: () => getClaimRewardsInstructionAsync,
222
+ getClaimRewardsInstructionDataCodec: () => getClaimRewardsInstructionDataCodec,
223
+ getClaimRewardsInstructionDataDecoder: () => getClaimRewardsInstructionDataDecoder,
224
+ getClaimRewardsInstructionDataEncoder: () => getClaimRewardsInstructionDataEncoder,
217
225
  getClockAccountCodec: () => getClockAccountCodec,
218
226
  getClockAccountDecoder: () => getClockAccountDecoder,
219
227
  getClockAccountEncoder: () => getClockAccountEncoder,
@@ -235,6 +243,12 @@ __export(index_exports, {
235
243
  getCloseStuckStakeAccountInstructionDataCodec: () => getCloseStuckStakeAccountInstructionDataCodec,
236
244
  getCloseStuckStakeAccountInstructionDataDecoder: () => getCloseStuckStakeAccountInstructionDataDecoder,
237
245
  getCloseStuckStakeAccountInstructionDataEncoder: () => getCloseStuckStakeAccountInstructionDataEncoder,
246
+ getCloseUnrevealedStakeAccountDiscriminatorBytes: () => getCloseUnrevealedStakeAccountDiscriminatorBytes,
247
+ getCloseUnrevealedStakeAccountInstruction: () => getCloseUnrevealedStakeAccountInstruction,
248
+ getCloseUnrevealedStakeAccountInstructionAsync: () => getCloseUnrevealedStakeAccountInstructionAsync,
249
+ getCloseUnrevealedStakeAccountInstructionDataCodec: () => getCloseUnrevealedStakeAccountInstructionDataCodec,
250
+ getCloseUnrevealedStakeAccountInstructionDataDecoder: () => getCloseUnrevealedStakeAccountInstructionDataDecoder,
251
+ getCloseUnrevealedStakeAccountInstructionDataEncoder: () => getCloseUnrevealedStakeAccountInstructionDataEncoder,
238
252
  getClusterCodec: () => getClusterCodec,
239
253
  getClusterDecoder: () => getClusterDecoder,
240
254
  getClusterEncoder: () => getClusterEncoder,
@@ -370,11 +384,6 @@ __export(index_exports, {
370
384
  getParameterCodec: () => getParameterCodec,
371
385
  getParameterDecoder: () => getParameterDecoder,
372
386
  getParameterEncoder: () => getParameterEncoder,
373
- getPauseStakingDiscriminatorBytes: () => getPauseStakingDiscriminatorBytes,
374
- getPauseStakingInstruction: () => getPauseStakingInstruction,
375
- getPauseStakingInstructionDataCodec: () => getPauseStakingInstructionDataCodec,
376
- getPauseStakingInstructionDataDecoder: () => getPauseStakingInstructionDataDecoder,
377
- getPauseStakingInstructionDataEncoder: () => getPauseStakingInstructionDataEncoder,
378
387
  getPlatformConfigAddress: () => getPlatformConfigAddress,
379
388
  getPlatformConfigCodec: () => getPlatformConfigCodec,
380
389
  getPlatformConfigDecoder: () => getPlatformConfigDecoder,
@@ -385,11 +394,6 @@ __export(index_exports, {
385
394
  getResolveMarketInstructionDataCodec: () => getResolveMarketInstructionDataCodec,
386
395
  getResolveMarketInstructionDataDecoder: () => getResolveMarketInstructionDataDecoder,
387
396
  getResolveMarketInstructionDataEncoder: () => getResolveMarketInstructionDataEncoder,
388
- getResumeStakingDiscriminatorBytes: () => getResumeStakingDiscriminatorBytes,
389
- getResumeStakingInstruction: () => getResumeStakingInstruction,
390
- getResumeStakingInstructionDataCodec: () => getResumeStakingInstructionDataCodec,
391
- getResumeStakingInstructionDataDecoder: () => getResumeStakingInstructionDataDecoder,
392
- getResumeStakingInstructionDataEncoder: () => getResumeStakingInstructionDataEncoder,
393
397
  getRevealPeriodEndedEventCodec: () => getRevealPeriodEndedEventCodec,
394
398
  getRevealPeriodEndedEventDecoder: () => getRevealPeriodEndedEventDecoder,
395
399
  getRevealPeriodEndedEventEncoder: () => getRevealPeriodEndedEventEncoder,
@@ -421,6 +425,9 @@ __export(index_exports, {
421
425
  getRewardWithdrawnEventCodec: () => getRewardWithdrawnEventCodec,
422
426
  getRewardWithdrawnEventDecoder: () => getRewardWithdrawnEventDecoder,
423
427
  getRewardWithdrawnEventEncoder: () => getRewardWithdrawnEventEncoder,
428
+ getRewardsClaimedEventCodec: () => getRewardsClaimedEventCodec,
429
+ getRewardsClaimedEventDecoder: () => getRewardsClaimedEventDecoder,
430
+ getRewardsClaimedEventEncoder: () => getRewardsClaimedEventEncoder,
424
431
  getSetFeeClaimAuthorityDiscriminatorBytes: () => getSetFeeClaimAuthorityDiscriminatorBytes,
425
432
  getSetFeeClaimAuthorityInstruction: () => getSetFeeClaimAuthorityInstruction,
426
433
  getSetFeeClaimAuthorityInstructionDataCodec: () => getSetFeeClaimAuthorityInstructionDataCodec,
@@ -476,12 +483,6 @@ __export(index_exports, {
476
483
  getStakedEventCodec: () => getStakedEventCodec,
477
484
  getStakedEventDecoder: () => getStakedEventDecoder,
478
485
  getStakedEventEncoder: () => getStakedEventEncoder,
479
- getStakingPausedEventCodec: () => getStakingPausedEventCodec,
480
- getStakingPausedEventDecoder: () => getStakingPausedEventDecoder,
481
- getStakingPausedEventEncoder: () => getStakingPausedEventEncoder,
482
- getStakingResumedEventCodec: () => getStakingResumedEventCodec,
483
- getStakingResumedEventDecoder: () => getStakingResumedEventDecoder,
484
- getStakingResumedEventEncoder: () => getStakingResumedEventEncoder,
485
486
  getStuckStakeClosedEventCodec: () => getStuckStakeClosedEventCodec,
486
487
  getStuckStakeClosedEventDecoder: () => getStuckStakeClosedEventDecoder,
487
488
  getStuckStakeClosedEventEncoder: () => getStuckStakeClosedEventEncoder,
@@ -529,9 +530,11 @@ __export(index_exports, {
529
530
  parseAddRewardInstruction: () => parseAddRewardInstruction,
530
531
  parseClaimCreatorFeesInstruction: () => parseClaimCreatorFeesInstruction,
531
532
  parseClaimFeesInstruction: () => parseClaimFeesInstruction,
533
+ parseClaimRewardsInstruction: () => parseClaimRewardsInstruction,
532
534
  parseCloseOptionAccountInstruction: () => parseCloseOptionAccountInstruction,
533
535
  parseCloseStakeAccountInstruction: () => parseCloseStakeAccountInstruction,
534
536
  parseCloseStuckStakeAccountInstruction: () => parseCloseStuckStakeAccountInstruction,
537
+ parseCloseUnrevealedStakeAccountInstruction: () => parseCloseUnrevealedStakeAccountInstruction,
535
538
  parseCreateMarketInstruction: () => parseCreateMarketInstruction,
536
539
  parseEndRevealPeriodInstruction: () => parseEndRevealPeriodInstruction,
537
540
  parseFinalizeRevealStakeInstruction: () => parseFinalizeRevealStakeInstruction,
@@ -539,9 +542,7 @@ __export(index_exports, {
539
542
  parseInitPlatformConfigInstruction: () => parseInitPlatformConfigInstruction,
540
543
  parseInitStakeAccountInstruction: () => parseInitStakeAccountInstruction,
541
544
  parseOpenMarketInstruction: () => parseOpenMarketInstruction,
542
- parsePauseStakingInstruction: () => parsePauseStakingInstruction,
543
545
  parseResolveMarketInstruction: () => parseResolveMarketInstruction,
544
- parseResumeStakingInstruction: () => parseResumeStakingInstruction,
545
546
  parseRevealStakeCallbackInstruction: () => parseRevealStakeCallbackInstruction,
546
547
  parseRevealStakeCompDefInstruction: () => parseRevealStakeCompDefInstruction,
547
548
  parseRevealStakeInstruction: () => parseRevealStakeInstruction,
@@ -554,11 +555,9 @@ __export(index_exports, {
554
555
  parseUnstakeInstruction: () => parseUnstakeInstruction,
555
556
  parseUpdatePlatformConfigInstruction: () => parseUpdatePlatformConfigInstruction,
556
557
  parseWithdrawRewardInstruction: () => parseWithdrawRewardInstruction,
557
- pauseStaking: () => pauseStaking,
558
558
  randomComputationOffset: () => randomComputationOffset,
559
559
  randomStateNonce: () => randomStateNonce,
560
560
  resolveMarket: () => resolveMarket,
561
- resumeStaking: () => resumeStaking,
562
561
  revealStake: () => revealStake,
563
562
  setFeeClaimAuthority: () => setFeeClaimAuthority,
564
563
  setUpdateAuthority: () => setUpdateAuthority,
@@ -712,7 +711,7 @@ async function fetchAllMaybeArciumSignerAccount(rpc, addresses, config) {
712
711
  }
713
712
 
714
713
  // src/generated/accounts/opportunityMarket.ts
715
- var import_kit52 = require("@solana/kit");
714
+ var import_kit51 = require("@solana/kit");
716
715
 
717
716
  // src/generated/types/activation.ts
718
717
  var import_kit3 = require("@solana/kit");
@@ -1184,13 +1183,11 @@ function getMarketCreatedEventEncoder() {
1184
1183
  ["earlinessMultiplier", (0, import_kit20.getU16Encoder)()],
1185
1184
  ["marketAuthority", (0, import_kit20.getAddressEncoder)()],
1186
1185
  ["authorizedReaderPubkey", (0, import_kit20.getArrayEncoder)((0, import_kit20.getU8Encoder)(), { size: 32 })],
1187
- ["allowUnstakingEarly", (0, import_kit20.getBooleanEncoder)()],
1188
1186
  ["minStakeAmount", (0, import_kit20.getU64Encoder)()],
1189
1187
  ["feeRates", getFeeRatesEncoder()],
1190
1188
  ["creatorFeeClaimer", (0, import_kit20.getAddressEncoder)()],
1191
1189
  ["marketResolutionDeadlineSeconds", (0, import_kit20.getU64Encoder)()],
1192
- ["minRevealPeriodSeconds", (0, import_kit20.getU64Encoder)()],
1193
- ["maxRevealPeriodSeconds", (0, import_kit20.getU64Encoder)()],
1190
+ ["revealPeriodSeconds", (0, import_kit20.getU64Encoder)()],
1194
1191
  ["timestamp", (0, import_kit20.getI64Encoder)()]
1195
1192
  ]);
1196
1193
  }
@@ -1205,13 +1202,11 @@ function getMarketCreatedEventDecoder() {
1205
1202
  ["earlinessMultiplier", (0, import_kit20.getU16Decoder)()],
1206
1203
  ["marketAuthority", (0, import_kit20.getAddressDecoder)()],
1207
1204
  ["authorizedReaderPubkey", (0, import_kit20.getArrayDecoder)((0, import_kit20.getU8Decoder)(), { size: 32 })],
1208
- ["allowUnstakingEarly", (0, import_kit20.getBooleanDecoder)()],
1209
1205
  ["minStakeAmount", (0, import_kit20.getU64Decoder)()],
1210
1206
  ["feeRates", getFeeRatesDecoder()],
1211
1207
  ["creatorFeeClaimer", (0, import_kit20.getAddressDecoder)()],
1212
1208
  ["marketResolutionDeadlineSeconds", (0, import_kit20.getU64Decoder)()],
1213
- ["minRevealPeriodSeconds", (0, import_kit20.getU64Decoder)()],
1214
- ["maxRevealPeriodSeconds", (0, import_kit20.getU64Decoder)()],
1209
+ ["revealPeriodSeconds", (0, import_kit20.getU64Decoder)()],
1215
1210
  ["timestamp", (0, import_kit20.getI64Decoder)()]
1216
1211
  ]);
1217
1212
  }
@@ -1649,7 +1644,6 @@ function getRewardAddedEventEncoder() {
1649
1644
  ["sponsor", (0, import_kit36.getAddressEncoder)()],
1650
1645
  ["amount", (0, import_kit36.getU64Encoder)()],
1651
1646
  ["totalRewardAmount", (0, import_kit36.getU64Encoder)()],
1652
- ["locked", (0, import_kit36.getBooleanEncoder)()],
1653
1647
  ["timestamp", (0, import_kit36.getI64Encoder)()]
1654
1648
  ]);
1655
1649
  }
@@ -1659,7 +1653,6 @@ function getRewardAddedEventDecoder() {
1659
1653
  ["sponsor", (0, import_kit36.getAddressDecoder)()],
1660
1654
  ["amount", (0, import_kit36.getU64Decoder)()],
1661
1655
  ["totalRewardAmount", (0, import_kit36.getU64Decoder)()],
1662
- ["locked", (0, import_kit36.getBooleanDecoder)()],
1663
1656
  ["timestamp", (0, import_kit36.getI64Decoder)()]
1664
1657
  ]);
1665
1658
  }
@@ -1670,163 +1663,196 @@ function getRewardAddedEventCodec() {
1670
1663
  );
1671
1664
  }
1672
1665
 
1673
- // src/generated/types/rewardWithdrawnEvent.ts
1666
+ // src/generated/types/rewardsClaimedEvent.ts
1674
1667
  var import_kit37 = require("@solana/kit");
1675
- function getRewardWithdrawnEventEncoder() {
1668
+ function getRewardsClaimedEventEncoder() {
1676
1669
  return (0, import_kit37.getStructEncoder)([
1670
+ ["owner", (0, import_kit37.getAddressEncoder)()],
1677
1671
  ["market", (0, import_kit37.getAddressEncoder)()],
1678
- ["sponsor", (0, import_kit37.getAddressEncoder)()],
1672
+ ["stakeAccount", (0, import_kit37.getAddressEncoder)()],
1673
+ ["stakeAccountId", (0, import_kit37.getU32Encoder)()],
1674
+ ["optionId", (0, import_kit37.getU64Encoder)()],
1679
1675
  ["rewardAmount", (0, import_kit37.getU64Encoder)()],
1680
- ["refundTokenAccount", (0, import_kit37.getAddressEncoder)()],
1676
+ ["score", (0, import_kit37.getU64Encoder)()],
1681
1677
  ["timestamp", (0, import_kit37.getI64Encoder)()]
1682
1678
  ]);
1683
1679
  }
1684
- function getRewardWithdrawnEventDecoder() {
1680
+ function getRewardsClaimedEventDecoder() {
1685
1681
  return (0, import_kit37.getStructDecoder)([
1682
+ ["owner", (0, import_kit37.getAddressDecoder)()],
1686
1683
  ["market", (0, import_kit37.getAddressDecoder)()],
1687
- ["sponsor", (0, import_kit37.getAddressDecoder)()],
1684
+ ["stakeAccount", (0, import_kit37.getAddressDecoder)()],
1685
+ ["stakeAccountId", (0, import_kit37.getU32Decoder)()],
1686
+ ["optionId", (0, import_kit37.getU64Decoder)()],
1688
1687
  ["rewardAmount", (0, import_kit37.getU64Decoder)()],
1689
- ["refundTokenAccount", (0, import_kit37.getAddressDecoder)()],
1688
+ ["score", (0, import_kit37.getU64Decoder)()],
1690
1689
  ["timestamp", (0, import_kit37.getI64Decoder)()]
1691
1690
  ]);
1692
1691
  }
1693
- function getRewardWithdrawnEventCodec() {
1692
+ function getRewardsClaimedEventCodec() {
1694
1693
  return (0, import_kit37.combineCodec)(
1695
- getRewardWithdrawnEventEncoder(),
1696
- getRewardWithdrawnEventDecoder()
1694
+ getRewardsClaimedEventEncoder(),
1695
+ getRewardsClaimedEventDecoder()
1697
1696
  );
1698
1697
  }
1699
1698
 
1700
- // src/generated/types/stakeAccountClosedEvent.ts
1699
+ // src/generated/types/rewardWithdrawnEvent.ts
1701
1700
  var import_kit38 = require("@solana/kit");
1702
- function getStakeAccountClosedEventEncoder() {
1701
+ function getRewardWithdrawnEventEncoder() {
1703
1702
  return (0, import_kit38.getStructEncoder)([
1704
- ["owner", (0, import_kit38.getAddressEncoder)()],
1705
1703
  ["market", (0, import_kit38.getAddressEncoder)()],
1706
- ["stakeAccount", (0, import_kit38.getAddressEncoder)()],
1707
- ["stakeAccountId", (0, import_kit38.getU32Encoder)()],
1708
- ["optionId", (0, import_kit38.getU64Encoder)()],
1704
+ ["sponsor", (0, import_kit38.getAddressEncoder)()],
1709
1705
  ["rewardAmount", (0, import_kit38.getU64Encoder)()],
1710
- ["stakedAtTimestamp", (0, import_kit38.getU64Encoder)()],
1711
- ["stakeEndTimestamp", (0, import_kit38.getU64Encoder)()],
1712
- ["stakeAmount", (0, import_kit38.getU64Encoder)()],
1713
- ["score", (0, import_kit38.getU64Encoder)()],
1706
+ ["refundTokenAccount", (0, import_kit38.getAddressEncoder)()],
1714
1707
  ["timestamp", (0, import_kit38.getI64Encoder)()]
1715
1708
  ]);
1716
1709
  }
1717
- function getStakeAccountClosedEventDecoder() {
1710
+ function getRewardWithdrawnEventDecoder() {
1718
1711
  return (0, import_kit38.getStructDecoder)([
1719
- ["owner", (0, import_kit38.getAddressDecoder)()],
1720
1712
  ["market", (0, import_kit38.getAddressDecoder)()],
1721
- ["stakeAccount", (0, import_kit38.getAddressDecoder)()],
1722
- ["stakeAccountId", (0, import_kit38.getU32Decoder)()],
1723
- ["optionId", (0, import_kit38.getU64Decoder)()],
1713
+ ["sponsor", (0, import_kit38.getAddressDecoder)()],
1724
1714
  ["rewardAmount", (0, import_kit38.getU64Decoder)()],
1725
- ["stakedAtTimestamp", (0, import_kit38.getU64Decoder)()],
1726
- ["stakeEndTimestamp", (0, import_kit38.getU64Decoder)()],
1727
- ["stakeAmount", (0, import_kit38.getU64Decoder)()],
1728
- ["score", (0, import_kit38.getU64Decoder)()],
1715
+ ["refundTokenAccount", (0, import_kit38.getAddressDecoder)()],
1729
1716
  ["timestamp", (0, import_kit38.getI64Decoder)()]
1730
1717
  ]);
1731
1718
  }
1732
- function getStakeAccountClosedEventCodec() {
1719
+ function getRewardWithdrawnEventCodec() {
1733
1720
  return (0, import_kit38.combineCodec)(
1734
- getStakeAccountClosedEventEncoder(),
1735
- getStakeAccountClosedEventDecoder()
1721
+ getRewardWithdrawnEventEncoder(),
1722
+ getRewardWithdrawnEventDecoder()
1736
1723
  );
1737
1724
  }
1738
1725
 
1739
- // src/generated/types/stakeAccountInitializedEvent.ts
1726
+ // src/generated/types/stakeAccountClosedEvent.ts
1740
1727
  var import_kit39 = require("@solana/kit");
1741
- function getStakeAccountInitializedEventEncoder() {
1728
+ function getStakeAccountClosedEventEncoder() {
1742
1729
  return (0, import_kit39.getStructEncoder)([
1743
- ["stakeAccount", (0, import_kit39.getAddressEncoder)()],
1744
1730
  ["owner", (0, import_kit39.getAddressEncoder)()],
1745
1731
  ["market", (0, import_kit39.getAddressEncoder)()],
1746
- ["accountId", (0, import_kit39.getU32Encoder)()],
1732
+ ["stakeAccount", (0, import_kit39.getAddressEncoder)()],
1733
+ ["stakeAccountId", (0, import_kit39.getU32Encoder)()],
1734
+ ["optionId", (0, import_kit39.getOptionEncoder)((0, import_kit39.getU64Encoder)())],
1735
+ ["stakeAmount", (0, import_kit39.getU64Encoder)()],
1736
+ ["feeRefund", (0, import_kit39.getU64Encoder)()],
1737
+ ["stakedAtTimestamp", (0, import_kit39.getU64Encoder)()],
1738
+ ["stakeEndTimestamp", (0, import_kit39.getU64Encoder)()],
1739
+ ["score", (0, import_kit39.getU64Encoder)()],
1747
1740
  ["timestamp", (0, import_kit39.getI64Encoder)()]
1748
1741
  ]);
1749
1742
  }
1750
- function getStakeAccountInitializedEventDecoder() {
1743
+ function getStakeAccountClosedEventDecoder() {
1751
1744
  return (0, import_kit39.getStructDecoder)([
1752
- ["stakeAccount", (0, import_kit39.getAddressDecoder)()],
1753
1745
  ["owner", (0, import_kit39.getAddressDecoder)()],
1754
1746
  ["market", (0, import_kit39.getAddressDecoder)()],
1755
- ["accountId", (0, import_kit39.getU32Decoder)()],
1747
+ ["stakeAccount", (0, import_kit39.getAddressDecoder)()],
1748
+ ["stakeAccountId", (0, import_kit39.getU32Decoder)()],
1749
+ ["optionId", (0, import_kit39.getOptionDecoder)((0, import_kit39.getU64Decoder)())],
1750
+ ["stakeAmount", (0, import_kit39.getU64Decoder)()],
1751
+ ["feeRefund", (0, import_kit39.getU64Decoder)()],
1752
+ ["stakedAtTimestamp", (0, import_kit39.getU64Decoder)()],
1753
+ ["stakeEndTimestamp", (0, import_kit39.getU64Decoder)()],
1754
+ ["score", (0, import_kit39.getU64Decoder)()],
1756
1755
  ["timestamp", (0, import_kit39.getI64Decoder)()]
1757
1756
  ]);
1758
1757
  }
1759
- function getStakeAccountInitializedEventCodec() {
1758
+ function getStakeAccountClosedEventCodec() {
1760
1759
  return (0, import_kit39.combineCodec)(
1760
+ getStakeAccountClosedEventEncoder(),
1761
+ getStakeAccountClosedEventDecoder()
1762
+ );
1763
+ }
1764
+
1765
+ // src/generated/types/stakeAccountInitializedEvent.ts
1766
+ var import_kit40 = require("@solana/kit");
1767
+ function getStakeAccountInitializedEventEncoder() {
1768
+ return (0, import_kit40.getStructEncoder)([
1769
+ ["stakeAccount", (0, import_kit40.getAddressEncoder)()],
1770
+ ["owner", (0, import_kit40.getAddressEncoder)()],
1771
+ ["market", (0, import_kit40.getAddressEncoder)()],
1772
+ ["accountId", (0, import_kit40.getU32Encoder)()],
1773
+ ["timestamp", (0, import_kit40.getI64Encoder)()]
1774
+ ]);
1775
+ }
1776
+ function getStakeAccountInitializedEventDecoder() {
1777
+ return (0, import_kit40.getStructDecoder)([
1778
+ ["stakeAccount", (0, import_kit40.getAddressDecoder)()],
1779
+ ["owner", (0, import_kit40.getAddressDecoder)()],
1780
+ ["market", (0, import_kit40.getAddressDecoder)()],
1781
+ ["accountId", (0, import_kit40.getU32Decoder)()],
1782
+ ["timestamp", (0, import_kit40.getI64Decoder)()]
1783
+ ]);
1784
+ }
1785
+ function getStakeAccountInitializedEventCodec() {
1786
+ return (0, import_kit40.combineCodec)(
1761
1787
  getStakeAccountInitializedEventEncoder(),
1762
1788
  getStakeAccountInitializedEventDecoder()
1763
1789
  );
1764
1790
  }
1765
1791
 
1766
1792
  // src/generated/types/stakedEvent.ts
1767
- var import_kit40 = require("@solana/kit");
1793
+ var import_kit41 = require("@solana/kit");
1768
1794
  function getStakedEventEncoder() {
1769
- return (0, import_kit40.getStructEncoder)([
1770
- ["user", (0, import_kit40.getAddressEncoder)()],
1771
- ["market", (0, import_kit40.getAddressEncoder)()],
1772
- ["stakeAccount", (0, import_kit40.getAddressEncoder)()],
1773
- ["stakeAccountId", (0, import_kit40.getU32Encoder)()],
1774
- ["stakeEncryptedOption", (0, import_kit40.getArrayEncoder)((0, import_kit40.getU8Encoder)(), { size: 32 })],
1775
- ["stakeStateNonce", (0, import_kit40.getU128Encoder)()],
1795
+ return (0, import_kit41.getStructEncoder)([
1796
+ ["user", (0, import_kit41.getAddressEncoder)()],
1797
+ ["market", (0, import_kit41.getAddressEncoder)()],
1798
+ ["stakeAccount", (0, import_kit41.getAddressEncoder)()],
1799
+ ["stakeAccountId", (0, import_kit41.getU32Encoder)()],
1800
+ ["stakeEncryptedOption", (0, import_kit41.getArrayEncoder)((0, import_kit41.getU8Encoder)(), { size: 32 })],
1801
+ ["stakeStateNonce", (0, import_kit41.getU128Encoder)()],
1776
1802
  [
1777
1803
  "stakeEncryptedOptionDisclosure",
1778
- (0, import_kit40.getArrayEncoder)((0, import_kit40.getU8Encoder)(), { size: 32 })
1804
+ (0, import_kit41.getArrayEncoder)((0, import_kit41.getU8Encoder)(), { size: 32 })
1779
1805
  ],
1780
- ["stakeStateDisclosureNonce", (0, import_kit40.getU128Encoder)()],
1781
- ["amount", (0, import_kit40.getU64Encoder)()],
1782
- ["timestamp", (0, import_kit40.getI64Encoder)()]
1806
+ ["stakeStateDisclosureNonce", (0, import_kit41.getU128Encoder)()],
1807
+ ["amount", (0, import_kit41.getU64Encoder)()],
1808
+ ["timestamp", (0, import_kit41.getI64Encoder)()]
1783
1809
  ]);
1784
1810
  }
1785
1811
  function getStakedEventDecoder() {
1786
- return (0, import_kit40.getStructDecoder)([
1787
- ["user", (0, import_kit40.getAddressDecoder)()],
1788
- ["market", (0, import_kit40.getAddressDecoder)()],
1789
- ["stakeAccount", (0, import_kit40.getAddressDecoder)()],
1790
- ["stakeAccountId", (0, import_kit40.getU32Decoder)()],
1791
- ["stakeEncryptedOption", (0, import_kit40.getArrayDecoder)((0, import_kit40.getU8Decoder)(), { size: 32 })],
1792
- ["stakeStateNonce", (0, import_kit40.getU128Decoder)()],
1812
+ return (0, import_kit41.getStructDecoder)([
1813
+ ["user", (0, import_kit41.getAddressDecoder)()],
1814
+ ["market", (0, import_kit41.getAddressDecoder)()],
1815
+ ["stakeAccount", (0, import_kit41.getAddressDecoder)()],
1816
+ ["stakeAccountId", (0, import_kit41.getU32Decoder)()],
1817
+ ["stakeEncryptedOption", (0, import_kit41.getArrayDecoder)((0, import_kit41.getU8Decoder)(), { size: 32 })],
1818
+ ["stakeStateNonce", (0, import_kit41.getU128Decoder)()],
1793
1819
  [
1794
1820
  "stakeEncryptedOptionDisclosure",
1795
- (0, import_kit40.getArrayDecoder)((0, import_kit40.getU8Decoder)(), { size: 32 })
1821
+ (0, import_kit41.getArrayDecoder)((0, import_kit41.getU8Decoder)(), { size: 32 })
1796
1822
  ],
1797
- ["stakeStateDisclosureNonce", (0, import_kit40.getU128Decoder)()],
1798
- ["amount", (0, import_kit40.getU64Decoder)()],
1799
- ["timestamp", (0, import_kit40.getI64Decoder)()]
1823
+ ["stakeStateDisclosureNonce", (0, import_kit41.getU128Decoder)()],
1824
+ ["amount", (0, import_kit41.getU64Decoder)()],
1825
+ ["timestamp", (0, import_kit41.getI64Decoder)()]
1800
1826
  ]);
1801
1827
  }
1802
1828
  function getStakedEventCodec() {
1803
- return (0, import_kit40.combineCodec)(getStakedEventEncoder(), getStakedEventDecoder());
1829
+ return (0, import_kit41.combineCodec)(getStakedEventEncoder(), getStakedEventDecoder());
1804
1830
  }
1805
1831
 
1806
1832
  // src/generated/types/stakeOutput.ts
1807
- var import_kit41 = require("@solana/kit");
1833
+ var import_kit42 = require("@solana/kit");
1808
1834
  function getStakeOutputEncoder() {
1809
- return (0, import_kit41.getStructEncoder)([["field0", getStakeOutputStruct0Encoder()]]);
1835
+ return (0, import_kit42.getStructEncoder)([["field0", getStakeOutputStruct0Encoder()]]);
1810
1836
  }
1811
1837
  function getStakeOutputDecoder() {
1812
- return (0, import_kit41.getStructDecoder)([["field0", getStakeOutputStruct0Decoder()]]);
1838
+ return (0, import_kit42.getStructDecoder)([["field0", getStakeOutputStruct0Decoder()]]);
1813
1839
  }
1814
1840
  function getStakeOutputCodec() {
1815
- return (0, import_kit41.combineCodec)(getStakeOutputEncoder(), getStakeOutputDecoder());
1841
+ return (0, import_kit42.combineCodec)(getStakeOutputEncoder(), getStakeOutputDecoder());
1816
1842
  }
1817
1843
 
1818
1844
  // src/generated/types/stakeOutputStruct0.ts
1819
- var import_kit42 = require("@solana/kit");
1845
+ var import_kit43 = require("@solana/kit");
1820
1846
  function getStakeOutputStruct0Encoder() {
1821
- return (0, import_kit42.getStructEncoder)([
1847
+ return (0, import_kit43.getStructEncoder)([
1822
1848
  [
1823
1849
  "field0",
1824
- (0, import_kit42.getStructEncoder)([
1825
- ["encryptionKey", (0, import_kit42.getArrayEncoder)((0, import_kit42.getU8Encoder)(), { size: 32 })],
1826
- ["nonce", (0, import_kit42.getU128Encoder)()],
1850
+ (0, import_kit43.getStructEncoder)([
1851
+ ["encryptionKey", (0, import_kit43.getArrayEncoder)((0, import_kit43.getU8Encoder)(), { size: 32 })],
1852
+ ["nonce", (0, import_kit43.getU128Encoder)()],
1827
1853
  [
1828
1854
  "ciphertexts",
1829
- (0, import_kit42.getArrayEncoder)((0, import_kit42.getArrayEncoder)((0, import_kit42.getU8Encoder)(), { size: 32 }), {
1855
+ (0, import_kit43.getArrayEncoder)((0, import_kit43.getArrayEncoder)((0, import_kit43.getU8Encoder)(), { size: 32 }), {
1830
1856
  size: 1
1831
1857
  })
1832
1858
  ]
@@ -1834,12 +1860,12 @@ function getStakeOutputStruct0Encoder() {
1834
1860
  ],
1835
1861
  [
1836
1862
  "field1",
1837
- (0, import_kit42.getStructEncoder)([
1838
- ["encryptionKey", (0, import_kit42.getArrayEncoder)((0, import_kit42.getU8Encoder)(), { size: 32 })],
1839
- ["nonce", (0, import_kit42.getU128Encoder)()],
1863
+ (0, import_kit43.getStructEncoder)([
1864
+ ["encryptionKey", (0, import_kit43.getArrayEncoder)((0, import_kit43.getU8Encoder)(), { size: 32 })],
1865
+ ["nonce", (0, import_kit43.getU128Encoder)()],
1840
1866
  [
1841
1867
  "ciphertexts",
1842
- (0, import_kit42.getArrayEncoder)((0, import_kit42.getArrayEncoder)((0, import_kit42.getU8Encoder)(), { size: 32 }), {
1868
+ (0, import_kit43.getArrayEncoder)((0, import_kit43.getArrayEncoder)((0, import_kit43.getU8Encoder)(), { size: 32 }), {
1843
1869
  size: 1
1844
1870
  })
1845
1871
  ]
@@ -1848,15 +1874,15 @@ function getStakeOutputStruct0Encoder() {
1848
1874
  ]);
1849
1875
  }
1850
1876
  function getStakeOutputStruct0Decoder() {
1851
- return (0, import_kit42.getStructDecoder)([
1877
+ return (0, import_kit43.getStructDecoder)([
1852
1878
  [
1853
1879
  "field0",
1854
- (0, import_kit42.getStructDecoder)([
1855
- ["encryptionKey", (0, import_kit42.getArrayDecoder)((0, import_kit42.getU8Decoder)(), { size: 32 })],
1856
- ["nonce", (0, import_kit42.getU128Decoder)()],
1880
+ (0, import_kit43.getStructDecoder)([
1881
+ ["encryptionKey", (0, import_kit43.getArrayDecoder)((0, import_kit43.getU8Decoder)(), { size: 32 })],
1882
+ ["nonce", (0, import_kit43.getU128Decoder)()],
1857
1883
  [
1858
1884
  "ciphertexts",
1859
- (0, import_kit42.getArrayDecoder)((0, import_kit42.getArrayDecoder)((0, import_kit42.getU8Decoder)(), { size: 32 }), {
1885
+ (0, import_kit43.getArrayDecoder)((0, import_kit43.getArrayDecoder)((0, import_kit43.getU8Decoder)(), { size: 32 }), {
1860
1886
  size: 1
1861
1887
  })
1862
1888
  ]
@@ -1864,12 +1890,12 @@ function getStakeOutputStruct0Decoder() {
1864
1890
  ],
1865
1891
  [
1866
1892
  "field1",
1867
- (0, import_kit42.getStructDecoder)([
1868
- ["encryptionKey", (0, import_kit42.getArrayDecoder)((0, import_kit42.getU8Decoder)(), { size: 32 })],
1869
- ["nonce", (0, import_kit42.getU128Decoder)()],
1893
+ (0, import_kit43.getStructDecoder)([
1894
+ ["encryptionKey", (0, import_kit43.getArrayDecoder)((0, import_kit43.getU8Decoder)(), { size: 32 })],
1895
+ ["nonce", (0, import_kit43.getU128Decoder)()],
1870
1896
  [
1871
1897
  "ciphertexts",
1872
- (0, import_kit42.getArrayDecoder)((0, import_kit42.getArrayDecoder)((0, import_kit42.getU8Decoder)(), { size: 32 }), {
1898
+ (0, import_kit43.getArrayDecoder)((0, import_kit43.getArrayDecoder)((0, import_kit43.getU8Decoder)(), { size: 32 }), {
1873
1899
  size: 1
1874
1900
  })
1875
1901
  ]
@@ -1878,231 +1904,189 @@ function getStakeOutputStruct0Decoder() {
1878
1904
  ]);
1879
1905
  }
1880
1906
  function getStakeOutputStruct0Codec() {
1881
- return (0, import_kit42.combineCodec)(
1907
+ return (0, import_kit43.combineCodec)(
1882
1908
  getStakeOutputStruct0Encoder(),
1883
1909
  getStakeOutputStruct0Decoder()
1884
1910
  );
1885
1911
  }
1886
1912
 
1887
1913
  // src/generated/types/stakeRevealedEvent.ts
1888
- var import_kit43 = require("@solana/kit");
1889
- function getStakeRevealedEventEncoder() {
1890
- return (0, import_kit43.getStructEncoder)([
1891
- ["user", (0, import_kit43.getAddressEncoder)()],
1892
- ["market", (0, import_kit43.getAddressEncoder)()],
1893
- ["stakeAccount", (0, import_kit43.getAddressEncoder)()],
1894
- ["stakeAccountId", (0, import_kit43.getU32Encoder)()],
1895
- ["stakeAmount", (0, import_kit43.getU64Encoder)()],
1896
- ["selectedOption", (0, import_kit43.getU64Encoder)()],
1897
- ["timestamp", (0, import_kit43.getI64Encoder)()]
1898
- ]);
1899
- }
1900
- function getStakeRevealedEventDecoder() {
1901
- return (0, import_kit43.getStructDecoder)([
1902
- ["user", (0, import_kit43.getAddressDecoder)()],
1903
- ["market", (0, import_kit43.getAddressDecoder)()],
1904
- ["stakeAccount", (0, import_kit43.getAddressDecoder)()],
1905
- ["stakeAccountId", (0, import_kit43.getU32Decoder)()],
1906
- ["stakeAmount", (0, import_kit43.getU64Decoder)()],
1907
- ["selectedOption", (0, import_kit43.getU64Decoder)()],
1908
- ["timestamp", (0, import_kit43.getI64Decoder)()]
1909
- ]);
1910
- }
1911
- function getStakeRevealedEventCodec() {
1912
- return (0, import_kit43.combineCodec)(
1913
- getStakeRevealedEventEncoder(),
1914
- getStakeRevealedEventDecoder()
1915
- );
1916
- }
1917
-
1918
- // src/generated/types/stakingPausedEvent.ts
1919
1914
  var import_kit44 = require("@solana/kit");
1920
- function getStakingPausedEventEncoder() {
1915
+ function getStakeRevealedEventEncoder() {
1921
1916
  return (0, import_kit44.getStructEncoder)([
1917
+ ["user", (0, import_kit44.getAddressEncoder)()],
1922
1918
  ["market", (0, import_kit44.getAddressEncoder)()],
1919
+ ["stakeAccount", (0, import_kit44.getAddressEncoder)()],
1920
+ ["stakeAccountId", (0, import_kit44.getU32Encoder)()],
1921
+ ["stakeAmount", (0, import_kit44.getU64Encoder)()],
1922
+ ["selectedOption", (0, import_kit44.getU64Encoder)()],
1923
1923
  ["timestamp", (0, import_kit44.getI64Encoder)()]
1924
1924
  ]);
1925
1925
  }
1926
- function getStakingPausedEventDecoder() {
1926
+ function getStakeRevealedEventDecoder() {
1927
1927
  return (0, import_kit44.getStructDecoder)([
1928
+ ["user", (0, import_kit44.getAddressDecoder)()],
1928
1929
  ["market", (0, import_kit44.getAddressDecoder)()],
1930
+ ["stakeAccount", (0, import_kit44.getAddressDecoder)()],
1931
+ ["stakeAccountId", (0, import_kit44.getU32Decoder)()],
1932
+ ["stakeAmount", (0, import_kit44.getU64Decoder)()],
1933
+ ["selectedOption", (0, import_kit44.getU64Decoder)()],
1929
1934
  ["timestamp", (0, import_kit44.getI64Decoder)()]
1930
1935
  ]);
1931
1936
  }
1932
- function getStakingPausedEventCodec() {
1937
+ function getStakeRevealedEventCodec() {
1933
1938
  return (0, import_kit44.combineCodec)(
1934
- getStakingPausedEventEncoder(),
1935
- getStakingPausedEventDecoder()
1939
+ getStakeRevealedEventEncoder(),
1940
+ getStakeRevealedEventDecoder()
1936
1941
  );
1937
1942
  }
1938
1943
 
1939
- // src/generated/types/stakingResumedEvent.ts
1944
+ // src/generated/types/stuckStakeClosedEvent.ts
1940
1945
  var import_kit45 = require("@solana/kit");
1941
- function getStakingResumedEventEncoder() {
1946
+ function getStuckStakeClosedEventEncoder() {
1942
1947
  return (0, import_kit45.getStructEncoder)([
1948
+ ["owner", (0, import_kit45.getAddressEncoder)()],
1943
1949
  ["market", (0, import_kit45.getAddressEncoder)()],
1950
+ ["stakeAccount", (0, import_kit45.getAddressEncoder)()],
1951
+ ["stakeAccountId", (0, import_kit45.getU32Encoder)()],
1952
+ ["refundedAmount", (0, import_kit45.getU64Encoder)()],
1953
+ ["refundedPlatformFee", (0, import_kit45.getU64Encoder)()],
1954
+ ["refundedRewardPoolFee", (0, import_kit45.getU64Encoder)()],
1955
+ ["refundedCreatorFee", (0, import_kit45.getU64Encoder)()],
1944
1956
  ["timestamp", (0, import_kit45.getI64Encoder)()]
1945
1957
  ]);
1946
1958
  }
1947
- function getStakingResumedEventDecoder() {
1959
+ function getStuckStakeClosedEventDecoder() {
1948
1960
  return (0, import_kit45.getStructDecoder)([
1961
+ ["owner", (0, import_kit45.getAddressDecoder)()],
1949
1962
  ["market", (0, import_kit45.getAddressDecoder)()],
1963
+ ["stakeAccount", (0, import_kit45.getAddressDecoder)()],
1964
+ ["stakeAccountId", (0, import_kit45.getU32Decoder)()],
1965
+ ["refundedAmount", (0, import_kit45.getU64Decoder)()],
1966
+ ["refundedPlatformFee", (0, import_kit45.getU64Decoder)()],
1967
+ ["refundedRewardPoolFee", (0, import_kit45.getU64Decoder)()],
1968
+ ["refundedCreatorFee", (0, import_kit45.getU64Decoder)()],
1950
1969
  ["timestamp", (0, import_kit45.getI64Decoder)()]
1951
1970
  ]);
1952
1971
  }
1953
- function getStakingResumedEventCodec() {
1954
- return (0, import_kit45.combineCodec)(
1955
- getStakingResumedEventEncoder(),
1956
- getStakingResumedEventDecoder()
1957
- );
1958
- }
1959
-
1960
- // src/generated/types/stuckStakeClosedEvent.ts
1961
- var import_kit46 = require("@solana/kit");
1962
- function getStuckStakeClosedEventEncoder() {
1963
- return (0, import_kit46.getStructEncoder)([
1964
- ["owner", (0, import_kit46.getAddressEncoder)()],
1965
- ["market", (0, import_kit46.getAddressEncoder)()],
1966
- ["stakeAccount", (0, import_kit46.getAddressEncoder)()],
1967
- ["stakeAccountId", (0, import_kit46.getU32Encoder)()],
1968
- ["refundedAmount", (0, import_kit46.getU64Encoder)()],
1969
- ["refundedPlatformFee", (0, import_kit46.getU64Encoder)()],
1970
- ["refundedRewardPoolFee", (0, import_kit46.getU64Encoder)()],
1971
- ["refundedCreatorFee", (0, import_kit46.getU64Encoder)()],
1972
- ["timestamp", (0, import_kit46.getI64Encoder)()]
1973
- ]);
1974
- }
1975
- function getStuckStakeClosedEventDecoder() {
1976
- return (0, import_kit46.getStructDecoder)([
1977
- ["owner", (0, import_kit46.getAddressDecoder)()],
1978
- ["market", (0, import_kit46.getAddressDecoder)()],
1979
- ["stakeAccount", (0, import_kit46.getAddressDecoder)()],
1980
- ["stakeAccountId", (0, import_kit46.getU32Decoder)()],
1981
- ["refundedAmount", (0, import_kit46.getU64Decoder)()],
1982
- ["refundedPlatformFee", (0, import_kit46.getU64Decoder)()],
1983
- ["refundedRewardPoolFee", (0, import_kit46.getU64Decoder)()],
1984
- ["refundedCreatorFee", (0, import_kit46.getU64Decoder)()],
1985
- ["timestamp", (0, import_kit46.getI64Decoder)()]
1986
- ]);
1987
- }
1988
1972
  function getStuckStakeClosedEventCodec() {
1989
- return (0, import_kit46.combineCodec)(
1973
+ return (0, import_kit45.combineCodec)(
1990
1974
  getStuckStakeClosedEventEncoder(),
1991
1975
  getStuckStakeClosedEventDecoder()
1992
1976
  );
1993
1977
  }
1994
1978
 
1995
1979
  // src/generated/types/timestamp.ts
1996
- var import_kit47 = require("@solana/kit");
1980
+ var import_kit46 = require("@solana/kit");
1997
1981
  function getTimestampEncoder() {
1998
- return (0, import_kit47.getStructEncoder)([["timestamp", (0, import_kit47.getU64Encoder)()]]);
1982
+ return (0, import_kit46.getStructEncoder)([["timestamp", (0, import_kit46.getU64Encoder)()]]);
1999
1983
  }
2000
1984
  function getTimestampDecoder() {
2001
- return (0, import_kit47.getStructDecoder)([["timestamp", (0, import_kit47.getU64Decoder)()]]);
1985
+ return (0, import_kit46.getStructDecoder)([["timestamp", (0, import_kit46.getU64Decoder)()]]);
2002
1986
  }
2003
1987
  function getTimestampCodec() {
2004
- return (0, import_kit47.combineCodec)(getTimestampEncoder(), getTimestampDecoder());
1988
+ return (0, import_kit46.combineCodec)(getTimestampEncoder(), getTimestampDecoder());
2005
1989
  }
2006
1990
 
2007
1991
  // src/generated/types/unstakedEvent.ts
2008
- var import_kit48 = require("@solana/kit");
1992
+ var import_kit47 = require("@solana/kit");
2009
1993
  function getUnstakedEventEncoder() {
2010
- return (0, import_kit48.getStructEncoder)([
2011
- ["owner", (0, import_kit48.getAddressEncoder)()],
2012
- ["market", (0, import_kit48.getAddressEncoder)()],
2013
- ["stakeAccount", (0, import_kit48.getAddressEncoder)()],
2014
- ["stakeAccountId", (0, import_kit48.getU32Encoder)()],
2015
- ["amount", (0, import_kit48.getU64Encoder)()],
2016
- ["timestamp", (0, import_kit48.getI64Encoder)()]
1994
+ return (0, import_kit47.getStructEncoder)([
1995
+ ["owner", (0, import_kit47.getAddressEncoder)()],
1996
+ ["market", (0, import_kit47.getAddressEncoder)()],
1997
+ ["stakeAccount", (0, import_kit47.getAddressEncoder)()],
1998
+ ["stakeAccountId", (0, import_kit47.getU32Encoder)()],
1999
+ ["amount", (0, import_kit47.getU64Encoder)()],
2000
+ ["timestamp", (0, import_kit47.getI64Encoder)()]
2017
2001
  ]);
2018
2002
  }
2019
2003
  function getUnstakedEventDecoder() {
2020
- return (0, import_kit48.getStructDecoder)([
2021
- ["owner", (0, import_kit48.getAddressDecoder)()],
2022
- ["market", (0, import_kit48.getAddressDecoder)()],
2023
- ["stakeAccount", (0, import_kit48.getAddressDecoder)()],
2024
- ["stakeAccountId", (0, import_kit48.getU32Decoder)()],
2025
- ["amount", (0, import_kit48.getU64Decoder)()],
2026
- ["timestamp", (0, import_kit48.getI64Decoder)()]
2004
+ return (0, import_kit47.getStructDecoder)([
2005
+ ["owner", (0, import_kit47.getAddressDecoder)()],
2006
+ ["market", (0, import_kit47.getAddressDecoder)()],
2007
+ ["stakeAccount", (0, import_kit47.getAddressDecoder)()],
2008
+ ["stakeAccountId", (0, import_kit47.getU32Decoder)()],
2009
+ ["amount", (0, import_kit47.getU64Decoder)()],
2010
+ ["timestamp", (0, import_kit47.getI64Decoder)()]
2027
2011
  ]);
2028
2012
  }
2029
2013
  function getUnstakedEventCodec() {
2030
- return (0, import_kit48.combineCodec)(getUnstakedEventEncoder(), getUnstakedEventDecoder());
2014
+ return (0, import_kit47.combineCodec)(getUnstakedEventEncoder(), getUnstakedEventDecoder());
2031
2015
  }
2032
2016
 
2033
2017
  // src/generated/types/updateAuthorityChangedEvent.ts
2034
- var import_kit49 = require("@solana/kit");
2018
+ var import_kit48 = require("@solana/kit");
2035
2019
  function getUpdateAuthorityChangedEventEncoder() {
2036
- return (0, import_kit49.getStructEncoder)([
2037
- ["platformConfig", (0, import_kit49.getAddressEncoder)()],
2038
- ["oldValue", (0, import_kit49.getAddressEncoder)()],
2039
- ["newValue", (0, import_kit49.getAddressEncoder)()],
2040
- ["timestamp", (0, import_kit49.getI64Encoder)()]
2020
+ return (0, import_kit48.getStructEncoder)([
2021
+ ["platformConfig", (0, import_kit48.getAddressEncoder)()],
2022
+ ["oldValue", (0, import_kit48.getAddressEncoder)()],
2023
+ ["newValue", (0, import_kit48.getAddressEncoder)()],
2024
+ ["timestamp", (0, import_kit48.getI64Encoder)()]
2041
2025
  ]);
2042
2026
  }
2043
2027
  function getUpdateAuthorityChangedEventDecoder() {
2044
- return (0, import_kit49.getStructDecoder)([
2045
- ["platformConfig", (0, import_kit49.getAddressDecoder)()],
2046
- ["oldValue", (0, import_kit49.getAddressDecoder)()],
2047
- ["newValue", (0, import_kit49.getAddressDecoder)()],
2048
- ["timestamp", (0, import_kit49.getI64Decoder)()]
2028
+ return (0, import_kit48.getStructDecoder)([
2029
+ ["platformConfig", (0, import_kit48.getAddressDecoder)()],
2030
+ ["oldValue", (0, import_kit48.getAddressDecoder)()],
2031
+ ["newValue", (0, import_kit48.getAddressDecoder)()],
2032
+ ["timestamp", (0, import_kit48.getI64Decoder)()]
2049
2033
  ]);
2050
2034
  }
2051
2035
  function getUpdateAuthorityChangedEventCodec() {
2052
- return (0, import_kit49.combineCodec)(
2036
+ return (0, import_kit48.combineCodec)(
2053
2037
  getUpdateAuthorityChangedEventEncoder(),
2054
2038
  getUpdateAuthorityChangedEventDecoder()
2055
2039
  );
2056
2040
  }
2057
2041
 
2058
2042
  // src/generated/types/utilityPubkeys.ts
2059
- var import_kit50 = require("@solana/kit");
2043
+ var import_kit49 = require("@solana/kit");
2060
2044
  function getUtilityPubkeysEncoder() {
2061
- return (0, import_kit50.getStructEncoder)([
2062
- ["x25519Pubkey", (0, import_kit50.getArrayEncoder)((0, import_kit50.getU8Encoder)(), { size: 32 })],
2063
- ["ed25519VerifyingKey", (0, import_kit50.getArrayEncoder)((0, import_kit50.getU8Encoder)(), { size: 32 })],
2064
- ["elgamalPubkey", (0, import_kit50.getArrayEncoder)((0, import_kit50.getU8Encoder)(), { size: 32 })],
2065
- ["pubkeyValidityProof", (0, import_kit50.getArrayEncoder)((0, import_kit50.getU8Encoder)(), { size: 64 })]
2045
+ return (0, import_kit49.getStructEncoder)([
2046
+ ["x25519Pubkey", (0, import_kit49.getArrayEncoder)((0, import_kit49.getU8Encoder)(), { size: 32 })],
2047
+ ["ed25519VerifyingKey", (0, import_kit49.getArrayEncoder)((0, import_kit49.getU8Encoder)(), { size: 32 })],
2048
+ ["elgamalPubkey", (0, import_kit49.getArrayEncoder)((0, import_kit49.getU8Encoder)(), { size: 32 })],
2049
+ ["pubkeyValidityProof", (0, import_kit49.getArrayEncoder)((0, import_kit49.getU8Encoder)(), { size: 64 })]
2066
2050
  ]);
2067
2051
  }
2068
2052
  function getUtilityPubkeysDecoder() {
2069
- return (0, import_kit50.getStructDecoder)([
2070
- ["x25519Pubkey", (0, import_kit50.getArrayDecoder)((0, import_kit50.getU8Decoder)(), { size: 32 })],
2071
- ["ed25519VerifyingKey", (0, import_kit50.getArrayDecoder)((0, import_kit50.getU8Decoder)(), { size: 32 })],
2072
- ["elgamalPubkey", (0, import_kit50.getArrayDecoder)((0, import_kit50.getU8Decoder)(), { size: 32 })],
2073
- ["pubkeyValidityProof", (0, import_kit50.getArrayDecoder)((0, import_kit50.getU8Decoder)(), { size: 64 })]
2053
+ return (0, import_kit49.getStructDecoder)([
2054
+ ["x25519Pubkey", (0, import_kit49.getArrayDecoder)((0, import_kit49.getU8Decoder)(), { size: 32 })],
2055
+ ["ed25519VerifyingKey", (0, import_kit49.getArrayDecoder)((0, import_kit49.getU8Decoder)(), { size: 32 })],
2056
+ ["elgamalPubkey", (0, import_kit49.getArrayDecoder)((0, import_kit49.getU8Decoder)(), { size: 32 })],
2057
+ ["pubkeyValidityProof", (0, import_kit49.getArrayDecoder)((0, import_kit49.getU8Decoder)(), { size: 64 })]
2074
2058
  ]);
2075
2059
  }
2076
2060
  function getUtilityPubkeysCodec() {
2077
- return (0, import_kit50.combineCodec)(getUtilityPubkeysEncoder(), getUtilityPubkeysDecoder());
2061
+ return (0, import_kit49.combineCodec)(getUtilityPubkeysEncoder(), getUtilityPubkeysDecoder());
2078
2062
  }
2079
2063
 
2080
2064
  // src/generated/types/winningOptionSetEvent.ts
2081
- var import_kit51 = require("@solana/kit");
2065
+ var import_kit50 = require("@solana/kit");
2082
2066
  function getWinningOptionSetEventEncoder() {
2083
- return (0, import_kit51.getStructEncoder)([
2084
- ["market", (0, import_kit51.getAddressEncoder)()],
2085
- ["marketAuthority", (0, import_kit51.getAddressEncoder)()],
2086
- ["option", (0, import_kit51.getAddressEncoder)()],
2087
- ["optionId", (0, import_kit51.getU64Encoder)()],
2088
- ["rewardBp", (0, import_kit51.getU16Encoder)()],
2089
- ["winningOptionAllocation", (0, import_kit51.getU16Encoder)()],
2090
- ["timestamp", (0, import_kit51.getI64Encoder)()]
2067
+ return (0, import_kit50.getStructEncoder)([
2068
+ ["market", (0, import_kit50.getAddressEncoder)()],
2069
+ ["marketAuthority", (0, import_kit50.getAddressEncoder)()],
2070
+ ["option", (0, import_kit50.getAddressEncoder)()],
2071
+ ["optionId", (0, import_kit50.getU64Encoder)()],
2072
+ ["rewardBp", (0, import_kit50.getU16Encoder)()],
2073
+ ["winningOptionAllocation", (0, import_kit50.getU16Encoder)()],
2074
+ ["timestamp", (0, import_kit50.getI64Encoder)()]
2091
2075
  ]);
2092
2076
  }
2093
2077
  function getWinningOptionSetEventDecoder() {
2094
- return (0, import_kit51.getStructDecoder)([
2095
- ["market", (0, import_kit51.getAddressDecoder)()],
2096
- ["marketAuthority", (0, import_kit51.getAddressDecoder)()],
2097
- ["option", (0, import_kit51.getAddressDecoder)()],
2098
- ["optionId", (0, import_kit51.getU64Decoder)()],
2099
- ["rewardBp", (0, import_kit51.getU16Decoder)()],
2100
- ["winningOptionAllocation", (0, import_kit51.getU16Decoder)()],
2101
- ["timestamp", (0, import_kit51.getI64Decoder)()]
2078
+ return (0, import_kit50.getStructDecoder)([
2079
+ ["market", (0, import_kit50.getAddressDecoder)()],
2080
+ ["marketAuthority", (0, import_kit50.getAddressDecoder)()],
2081
+ ["option", (0, import_kit50.getAddressDecoder)()],
2082
+ ["optionId", (0, import_kit50.getU64Decoder)()],
2083
+ ["rewardBp", (0, import_kit50.getU16Decoder)()],
2084
+ ["winningOptionAllocation", (0, import_kit50.getU16Decoder)()],
2085
+ ["timestamp", (0, import_kit50.getI64Decoder)()]
2102
2086
  ]);
2103
2087
  }
2104
2088
  function getWinningOptionSetEventCodec() {
2105
- return (0, import_kit51.combineCodec)(
2089
+ return (0, import_kit50.combineCodec)(
2106
2090
  getWinningOptionSetEventEncoder(),
2107
2091
  getWinningOptionSetEventDecoder()
2108
2092
  );
@@ -2120,94 +2104,88 @@ var OPPORTUNITY_MARKET_DISCRIMINATOR = new Uint8Array([
2120
2104
  224
2121
2105
  ]);
2122
2106
  function getOpportunityMarketDiscriminatorBytes() {
2123
- return (0, import_kit52.fixEncoderSize)((0, import_kit52.getBytesEncoder)(), 8).encode(
2107
+ return (0, import_kit51.fixEncoderSize)((0, import_kit51.getBytesEncoder)(), 8).encode(
2124
2108
  OPPORTUNITY_MARKET_DISCRIMINATOR
2125
2109
  );
2126
2110
  }
2127
2111
  function getOpportunityMarketEncoder() {
2128
- return (0, import_kit52.transformEncoder)(
2129
- (0, import_kit52.getStructEncoder)([
2130
- ["discriminator", (0, import_kit52.fixEncoderSize)((0, import_kit52.getBytesEncoder)(), 8)],
2131
- ["bump", (0, import_kit52.getU8Encoder)()],
2132
- ["creator", (0, import_kit52.getAddressEncoder)()],
2133
- ["index", (0, import_kit52.getU64Encoder)()],
2134
- ["totalOptions", (0, import_kit52.getU64Encoder)()],
2135
- ["platform", (0, import_kit52.getAddressEncoder)()],
2136
- ["stakeEndTimestamp", (0, import_kit52.getOptionEncoder)((0, import_kit52.getU64Encoder)())],
2137
- ["resolvedAtTimestamp", (0, import_kit52.getOptionEncoder)((0, import_kit52.getU64Encoder)())],
2138
- ["winningOptionAllocation", (0, import_kit52.getU16Encoder)()],
2139
- ["rewardAmount", (0, import_kit52.getU64Encoder)()],
2140
- ["marketAuthority", (0, import_kit52.getAddressEncoder)()],
2141
- ["revealPeriodAuthority", (0, import_kit52.getAddressEncoder)()],
2142
- ["mint", (0, import_kit52.getAddressEncoder)()],
2143
- ["earlinessCutoffSeconds", (0, import_kit52.getU64Encoder)()],
2144
- ["earlinessMultiplier", (0, import_kit52.getU16Encoder)()],
2145
- ["allowUnstakingEarly", (0, import_kit52.getBooleanEncoder)()],
2146
- ["authorizedReaderPubkey", (0, import_kit52.getArrayEncoder)((0, import_kit52.getU8Encoder)(), { size: 32 })],
2147
- ["stakingPaused", (0, import_kit52.getBooleanEncoder)()],
2112
+ return (0, import_kit51.transformEncoder)(
2113
+ (0, import_kit51.getStructEncoder)([
2114
+ ["discriminator", (0, import_kit51.fixEncoderSize)((0, import_kit51.getBytesEncoder)(), 8)],
2115
+ ["bump", (0, import_kit51.getU8Encoder)()],
2116
+ ["creator", (0, import_kit51.getAddressEncoder)()],
2117
+ ["index", (0, import_kit51.getU64Encoder)()],
2118
+ ["totalOptions", (0, import_kit51.getU64Encoder)()],
2119
+ ["platform", (0, import_kit51.getAddressEncoder)()],
2120
+ ["stakeEndTimestamp", (0, import_kit51.getOptionEncoder)((0, import_kit51.getU64Encoder)())],
2121
+ ["resolvedAtTimestamp", (0, import_kit51.getOptionEncoder)((0, import_kit51.getU64Encoder)())],
2122
+ ["winningOptionAllocation", (0, import_kit51.getU16Encoder)()],
2123
+ ["winningOptionActiveBp", (0, import_kit51.getU16Encoder)()],
2124
+ ["rewardAmount", (0, import_kit51.getU64Encoder)()],
2125
+ ["marketAuthority", (0, import_kit51.getAddressEncoder)()],
2126
+ ["mint", (0, import_kit51.getAddressEncoder)()],
2127
+ ["earlinessCutoffSeconds", (0, import_kit51.getU64Encoder)()],
2128
+ ["earlinessMultiplier", (0, import_kit51.getU16Encoder)()],
2129
+ ["authorizedReaderPubkey", (0, import_kit51.getArrayEncoder)((0, import_kit51.getU8Encoder)(), { size: 32 })],
2148
2130
  ["feeRates", getFeeRatesEncoder()],
2149
- ["collectedPlatformFees", (0, import_kit52.getU64Encoder)()],
2150
- ["collectedCreatorFees", (0, import_kit52.getU64Encoder)()],
2151
- ["creatorFeeClaimer", (0, import_kit52.getAddressEncoder)()],
2152
- ["marketResolutionDeadlineSeconds", (0, import_kit52.getU64Encoder)()],
2153
- ["minRevealPeriodSeconds", (0, import_kit52.getU64Encoder)()],
2154
- ["maxRevealPeriodSeconds", (0, import_kit52.getU64Encoder)()],
2155
- ["revealEnded", (0, import_kit52.getBooleanEncoder)()],
2156
- ["minStakeAmount", (0, import_kit52.getU64Encoder)()]
2131
+ ["collectedPlatformFees", (0, import_kit51.getU64Encoder)()],
2132
+ ["collectedCreatorFees", (0, import_kit51.getU64Encoder)()],
2133
+ ["creatorFeeClaimer", (0, import_kit51.getAddressEncoder)()],
2134
+ ["marketResolutionDeadlineSeconds", (0, import_kit51.getU64Encoder)()],
2135
+ ["revealPeriodSeconds", (0, import_kit51.getU64Encoder)()],
2136
+ ["revealEnded", (0, import_kit51.getBooleanEncoder)()],
2137
+ ["minStakeAmount", (0, import_kit51.getU64Encoder)()]
2157
2138
  ]),
2158
2139
  (value) => ({ ...value, discriminator: OPPORTUNITY_MARKET_DISCRIMINATOR })
2159
2140
  );
2160
2141
  }
2161
2142
  function getOpportunityMarketDecoder() {
2162
- return (0, import_kit52.getStructDecoder)([
2163
- ["discriminator", (0, import_kit52.fixDecoderSize)((0, import_kit52.getBytesDecoder)(), 8)],
2164
- ["bump", (0, import_kit52.getU8Decoder)()],
2165
- ["creator", (0, import_kit52.getAddressDecoder)()],
2166
- ["index", (0, import_kit52.getU64Decoder)()],
2167
- ["totalOptions", (0, import_kit52.getU64Decoder)()],
2168
- ["platform", (0, import_kit52.getAddressDecoder)()],
2169
- ["stakeEndTimestamp", (0, import_kit52.getOptionDecoder)((0, import_kit52.getU64Decoder)())],
2170
- ["resolvedAtTimestamp", (0, import_kit52.getOptionDecoder)((0, import_kit52.getU64Decoder)())],
2171
- ["winningOptionAllocation", (0, import_kit52.getU16Decoder)()],
2172
- ["rewardAmount", (0, import_kit52.getU64Decoder)()],
2173
- ["marketAuthority", (0, import_kit52.getAddressDecoder)()],
2174
- ["revealPeriodAuthority", (0, import_kit52.getAddressDecoder)()],
2175
- ["mint", (0, import_kit52.getAddressDecoder)()],
2176
- ["earlinessCutoffSeconds", (0, import_kit52.getU64Decoder)()],
2177
- ["earlinessMultiplier", (0, import_kit52.getU16Decoder)()],
2178
- ["allowUnstakingEarly", (0, import_kit52.getBooleanDecoder)()],
2179
- ["authorizedReaderPubkey", (0, import_kit52.getArrayDecoder)((0, import_kit52.getU8Decoder)(), { size: 32 })],
2180
- ["stakingPaused", (0, import_kit52.getBooleanDecoder)()],
2143
+ return (0, import_kit51.getStructDecoder)([
2144
+ ["discriminator", (0, import_kit51.fixDecoderSize)((0, import_kit51.getBytesDecoder)(), 8)],
2145
+ ["bump", (0, import_kit51.getU8Decoder)()],
2146
+ ["creator", (0, import_kit51.getAddressDecoder)()],
2147
+ ["index", (0, import_kit51.getU64Decoder)()],
2148
+ ["totalOptions", (0, import_kit51.getU64Decoder)()],
2149
+ ["platform", (0, import_kit51.getAddressDecoder)()],
2150
+ ["stakeEndTimestamp", (0, import_kit51.getOptionDecoder)((0, import_kit51.getU64Decoder)())],
2151
+ ["resolvedAtTimestamp", (0, import_kit51.getOptionDecoder)((0, import_kit51.getU64Decoder)())],
2152
+ ["winningOptionAllocation", (0, import_kit51.getU16Decoder)()],
2153
+ ["winningOptionActiveBp", (0, import_kit51.getU16Decoder)()],
2154
+ ["rewardAmount", (0, import_kit51.getU64Decoder)()],
2155
+ ["marketAuthority", (0, import_kit51.getAddressDecoder)()],
2156
+ ["mint", (0, import_kit51.getAddressDecoder)()],
2157
+ ["earlinessCutoffSeconds", (0, import_kit51.getU64Decoder)()],
2158
+ ["earlinessMultiplier", (0, import_kit51.getU16Decoder)()],
2159
+ ["authorizedReaderPubkey", (0, import_kit51.getArrayDecoder)((0, import_kit51.getU8Decoder)(), { size: 32 })],
2181
2160
  ["feeRates", getFeeRatesDecoder()],
2182
- ["collectedPlatformFees", (0, import_kit52.getU64Decoder)()],
2183
- ["collectedCreatorFees", (0, import_kit52.getU64Decoder)()],
2184
- ["creatorFeeClaimer", (0, import_kit52.getAddressDecoder)()],
2185
- ["marketResolutionDeadlineSeconds", (0, import_kit52.getU64Decoder)()],
2186
- ["minRevealPeriodSeconds", (0, import_kit52.getU64Decoder)()],
2187
- ["maxRevealPeriodSeconds", (0, import_kit52.getU64Decoder)()],
2188
- ["revealEnded", (0, import_kit52.getBooleanDecoder)()],
2189
- ["minStakeAmount", (0, import_kit52.getU64Decoder)()]
2161
+ ["collectedPlatformFees", (0, import_kit51.getU64Decoder)()],
2162
+ ["collectedCreatorFees", (0, import_kit51.getU64Decoder)()],
2163
+ ["creatorFeeClaimer", (0, import_kit51.getAddressDecoder)()],
2164
+ ["marketResolutionDeadlineSeconds", (0, import_kit51.getU64Decoder)()],
2165
+ ["revealPeriodSeconds", (0, import_kit51.getU64Decoder)()],
2166
+ ["revealEnded", (0, import_kit51.getBooleanDecoder)()],
2167
+ ["minStakeAmount", (0, import_kit51.getU64Decoder)()]
2190
2168
  ]);
2191
2169
  }
2192
2170
  function getOpportunityMarketCodec() {
2193
- return (0, import_kit52.combineCodec)(
2171
+ return (0, import_kit51.combineCodec)(
2194
2172
  getOpportunityMarketEncoder(),
2195
2173
  getOpportunityMarketDecoder()
2196
2174
  );
2197
2175
  }
2198
2176
  function decodeOpportunityMarket(encodedAccount) {
2199
- return (0, import_kit52.decodeAccount)(
2177
+ return (0, import_kit51.decodeAccount)(
2200
2178
  encodedAccount,
2201
2179
  getOpportunityMarketDecoder()
2202
2180
  );
2203
2181
  }
2204
2182
  async function fetchOpportunityMarket(rpc, address3, config) {
2205
2183
  const maybeAccount = await fetchMaybeOpportunityMarket(rpc, address3, config);
2206
- (0, import_kit52.assertAccountExists)(maybeAccount);
2184
+ (0, import_kit51.assertAccountExists)(maybeAccount);
2207
2185
  return maybeAccount;
2208
2186
  }
2209
2187
  async function fetchMaybeOpportunityMarket(rpc, address3, config) {
2210
- const maybeAccount = await (0, import_kit52.fetchEncodedAccount)(rpc, address3, config);
2188
+ const maybeAccount = await (0, import_kit51.fetchEncodedAccount)(rpc, address3, config);
2211
2189
  return decodeOpportunityMarket(maybeAccount);
2212
2190
  }
2213
2191
  async function fetchAllOpportunityMarket(rpc, addresses, config) {
@@ -2216,18 +2194,18 @@ async function fetchAllOpportunityMarket(rpc, addresses, config) {
2216
2194
  addresses,
2217
2195
  config
2218
2196
  );
2219
- (0, import_kit52.assertAccountsExist)(maybeAccounts);
2197
+ (0, import_kit51.assertAccountsExist)(maybeAccounts);
2220
2198
  return maybeAccounts;
2221
2199
  }
2222
2200
  async function fetchAllMaybeOpportunityMarket(rpc, addresses, config) {
2223
- const maybeAccounts = await (0, import_kit52.fetchEncodedAccounts)(rpc, addresses, config);
2201
+ const maybeAccounts = await (0, import_kit51.fetchEncodedAccounts)(rpc, addresses, config);
2224
2202
  return maybeAccounts.map(
2225
2203
  (maybeAccount) => decodeOpportunityMarket(maybeAccount)
2226
2204
  );
2227
2205
  }
2228
2206
 
2229
2207
  // src/generated/accounts/opportunityMarketOption.ts
2230
- var import_kit53 = require("@solana/kit");
2208
+ var import_kit52 = require("@solana/kit");
2231
2209
  var OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR = new Uint8Array([
2232
2210
  220,
2233
2211
  236,
@@ -2239,21 +2217,22 @@ var OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR = new Uint8Array([
2239
2217
  64
2240
2218
  ]);
2241
2219
  function getOpportunityMarketOptionDiscriminatorBytes() {
2242
- return (0, import_kit53.fixEncoderSize)((0, import_kit53.getBytesEncoder)(), 8).encode(
2220
+ return (0, import_kit52.fixEncoderSize)((0, import_kit52.getBytesEncoder)(), 8).encode(
2243
2221
  OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR
2244
2222
  );
2245
2223
  }
2246
2224
  function getOpportunityMarketOptionEncoder() {
2247
- return (0, import_kit53.transformEncoder)(
2248
- (0, import_kit53.getStructEncoder)([
2249
- ["discriminator", (0, import_kit53.fixEncoderSize)((0, import_kit53.getBytesEncoder)(), 8)],
2250
- ["bump", (0, import_kit53.getU8Encoder)()],
2251
- ["id", (0, import_kit53.getU64Encoder)()],
2252
- ["creator", (0, import_kit53.getAddressEncoder)()],
2253
- ["createdAt", (0, import_kit53.getU64Encoder)()],
2254
- ["totalStaked", (0, import_kit53.getU64Encoder)()],
2255
- ["totalScore", (0, import_kit53.getU128Encoder)()],
2256
- ["rewardBp", (0, import_kit53.getOptionEncoder)((0, import_kit53.getU16Encoder)())]
2225
+ return (0, import_kit52.transformEncoder)(
2226
+ (0, import_kit52.getStructEncoder)([
2227
+ ["discriminator", (0, import_kit52.fixEncoderSize)((0, import_kit52.getBytesEncoder)(), 8)],
2228
+ ["bump", (0, import_kit52.getU8Encoder)()],
2229
+ ["id", (0, import_kit52.getU64Encoder)()],
2230
+ ["creator", (0, import_kit52.getAddressEncoder)()],
2231
+ ["createdAt", (0, import_kit52.getU64Encoder)()],
2232
+ ["unclaimedStake", (0, import_kit52.getU64Encoder)()],
2233
+ ["totalScore", (0, import_kit52.getU128Encoder)()],
2234
+ ["rewardBp", (0, import_kit52.getU16Encoder)()],
2235
+ ["includedInActiveBp", (0, import_kit52.getBooleanEncoder)()]
2257
2236
  ]),
2258
2237
  (value) => ({
2259
2238
  ...value,
@@ -2262,25 +2241,26 @@ function getOpportunityMarketOptionEncoder() {
2262
2241
  );
2263
2242
  }
2264
2243
  function getOpportunityMarketOptionDecoder() {
2265
- return (0, import_kit53.getStructDecoder)([
2266
- ["discriminator", (0, import_kit53.fixDecoderSize)((0, import_kit53.getBytesDecoder)(), 8)],
2267
- ["bump", (0, import_kit53.getU8Decoder)()],
2268
- ["id", (0, import_kit53.getU64Decoder)()],
2269
- ["creator", (0, import_kit53.getAddressDecoder)()],
2270
- ["createdAt", (0, import_kit53.getU64Decoder)()],
2271
- ["totalStaked", (0, import_kit53.getU64Decoder)()],
2272
- ["totalScore", (0, import_kit53.getU128Decoder)()],
2273
- ["rewardBp", (0, import_kit53.getOptionDecoder)((0, import_kit53.getU16Decoder)())]
2244
+ return (0, import_kit52.getStructDecoder)([
2245
+ ["discriminator", (0, import_kit52.fixDecoderSize)((0, import_kit52.getBytesDecoder)(), 8)],
2246
+ ["bump", (0, import_kit52.getU8Decoder)()],
2247
+ ["id", (0, import_kit52.getU64Decoder)()],
2248
+ ["creator", (0, import_kit52.getAddressDecoder)()],
2249
+ ["createdAt", (0, import_kit52.getU64Decoder)()],
2250
+ ["unclaimedStake", (0, import_kit52.getU64Decoder)()],
2251
+ ["totalScore", (0, import_kit52.getU128Decoder)()],
2252
+ ["rewardBp", (0, import_kit52.getU16Decoder)()],
2253
+ ["includedInActiveBp", (0, import_kit52.getBooleanDecoder)()]
2274
2254
  ]);
2275
2255
  }
2276
2256
  function getOpportunityMarketOptionCodec() {
2277
- return (0, import_kit53.combineCodec)(
2257
+ return (0, import_kit52.combineCodec)(
2278
2258
  getOpportunityMarketOptionEncoder(),
2279
2259
  getOpportunityMarketOptionDecoder()
2280
2260
  );
2281
2261
  }
2282
2262
  function decodeOpportunityMarketOption(encodedAccount) {
2283
- return (0, import_kit53.decodeAccount)(
2263
+ return (0, import_kit52.decodeAccount)(
2284
2264
  encodedAccount,
2285
2265
  getOpportunityMarketOptionDecoder()
2286
2266
  );
@@ -2291,11 +2271,11 @@ async function fetchOpportunityMarketOption(rpc, address3, config) {
2291
2271
  address3,
2292
2272
  config
2293
2273
  );
2294
- (0, import_kit53.assertAccountExists)(maybeAccount);
2274
+ (0, import_kit52.assertAccountExists)(maybeAccount);
2295
2275
  return maybeAccount;
2296
2276
  }
2297
2277
  async function fetchMaybeOpportunityMarketOption(rpc, address3, config) {
2298
- const maybeAccount = await (0, import_kit53.fetchEncodedAccount)(rpc, address3, config);
2278
+ const maybeAccount = await (0, import_kit52.fetchEncodedAccount)(rpc, address3, config);
2299
2279
  return decodeOpportunityMarketOption(maybeAccount);
2300
2280
  }
2301
2281
  async function fetchAllOpportunityMarketOption(rpc, addresses, config) {
@@ -2304,18 +2284,18 @@ async function fetchAllOpportunityMarketOption(rpc, addresses, config) {
2304
2284
  addresses,
2305
2285
  config
2306
2286
  );
2307
- (0, import_kit53.assertAccountsExist)(maybeAccounts);
2287
+ (0, import_kit52.assertAccountsExist)(maybeAccounts);
2308
2288
  return maybeAccounts;
2309
2289
  }
2310
2290
  async function fetchAllMaybeOpportunityMarketOption(rpc, addresses, config) {
2311
- const maybeAccounts = await (0, import_kit53.fetchEncodedAccounts)(rpc, addresses, config);
2291
+ const maybeAccounts = await (0, import_kit52.fetchEncodedAccounts)(rpc, addresses, config);
2312
2292
  return maybeAccounts.map(
2313
2293
  (maybeAccount) => decodeOpportunityMarketOption(maybeAccount)
2314
2294
  );
2315
2295
  }
2316
2296
 
2317
2297
  // src/generated/accounts/opportunityMarketSponsor.ts
2318
- var import_kit54 = require("@solana/kit");
2298
+ var import_kit53 = require("@solana/kit");
2319
2299
  var OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR = new Uint8Array([
2320
2300
  207,
2321
2301
  139,
@@ -2327,19 +2307,18 @@ var OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR = new Uint8Array([
2327
2307
  192
2328
2308
  ]);
2329
2309
  function getOpportunityMarketSponsorDiscriminatorBytes() {
2330
- return (0, import_kit54.fixEncoderSize)((0, import_kit54.getBytesEncoder)(), 8).encode(
2310
+ return (0, import_kit53.fixEncoderSize)((0, import_kit53.getBytesEncoder)(), 8).encode(
2331
2311
  OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR
2332
2312
  );
2333
2313
  }
2334
2314
  function getOpportunityMarketSponsorEncoder() {
2335
- return (0, import_kit54.transformEncoder)(
2336
- (0, import_kit54.getStructEncoder)([
2337
- ["discriminator", (0, import_kit54.fixEncoderSize)((0, import_kit54.getBytesEncoder)(), 8)],
2338
- ["bump", (0, import_kit54.getU8Encoder)()],
2339
- ["sponsor", (0, import_kit54.getAddressEncoder)()],
2340
- ["market", (0, import_kit54.getAddressEncoder)()],
2341
- ["rewardDeposited", (0, import_kit54.getU64Encoder)()],
2342
- ["rewardLocked", (0, import_kit54.getBooleanEncoder)()]
2315
+ return (0, import_kit53.transformEncoder)(
2316
+ (0, import_kit53.getStructEncoder)([
2317
+ ["discriminator", (0, import_kit53.fixEncoderSize)((0, import_kit53.getBytesEncoder)(), 8)],
2318
+ ["bump", (0, import_kit53.getU8Encoder)()],
2319
+ ["sponsor", (0, import_kit53.getAddressEncoder)()],
2320
+ ["market", (0, import_kit53.getAddressEncoder)()],
2321
+ ["rewardDeposited", (0, import_kit53.getU64Encoder)()]
2343
2322
  ]),
2344
2323
  (value) => ({
2345
2324
  ...value,
@@ -2348,23 +2327,22 @@ function getOpportunityMarketSponsorEncoder() {
2348
2327
  );
2349
2328
  }
2350
2329
  function getOpportunityMarketSponsorDecoder() {
2351
- return (0, import_kit54.getStructDecoder)([
2352
- ["discriminator", (0, import_kit54.fixDecoderSize)((0, import_kit54.getBytesDecoder)(), 8)],
2353
- ["bump", (0, import_kit54.getU8Decoder)()],
2354
- ["sponsor", (0, import_kit54.getAddressDecoder)()],
2355
- ["market", (0, import_kit54.getAddressDecoder)()],
2356
- ["rewardDeposited", (0, import_kit54.getU64Decoder)()],
2357
- ["rewardLocked", (0, import_kit54.getBooleanDecoder)()]
2330
+ return (0, import_kit53.getStructDecoder)([
2331
+ ["discriminator", (0, import_kit53.fixDecoderSize)((0, import_kit53.getBytesDecoder)(), 8)],
2332
+ ["bump", (0, import_kit53.getU8Decoder)()],
2333
+ ["sponsor", (0, import_kit53.getAddressDecoder)()],
2334
+ ["market", (0, import_kit53.getAddressDecoder)()],
2335
+ ["rewardDeposited", (0, import_kit53.getU64Decoder)()]
2358
2336
  ]);
2359
2337
  }
2360
2338
  function getOpportunityMarketSponsorCodec() {
2361
- return (0, import_kit54.combineCodec)(
2339
+ return (0, import_kit53.combineCodec)(
2362
2340
  getOpportunityMarketSponsorEncoder(),
2363
2341
  getOpportunityMarketSponsorDecoder()
2364
2342
  );
2365
2343
  }
2366
2344
  function decodeOpportunityMarketSponsor(encodedAccount) {
2367
- return (0, import_kit54.decodeAccount)(
2345
+ return (0, import_kit53.decodeAccount)(
2368
2346
  encodedAccount,
2369
2347
  getOpportunityMarketSponsorDecoder()
2370
2348
  );
@@ -2375,11 +2353,11 @@ async function fetchOpportunityMarketSponsor(rpc, address3, config) {
2375
2353
  address3,
2376
2354
  config
2377
2355
  );
2378
- (0, import_kit54.assertAccountExists)(maybeAccount);
2356
+ (0, import_kit53.assertAccountExists)(maybeAccount);
2379
2357
  return maybeAccount;
2380
2358
  }
2381
2359
  async function fetchMaybeOpportunityMarketSponsor(rpc, address3, config) {
2382
- const maybeAccount = await (0, import_kit54.fetchEncodedAccount)(rpc, address3, config);
2360
+ const maybeAccount = await (0, import_kit53.fetchEncodedAccount)(rpc, address3, config);
2383
2361
  return decodeOpportunityMarketSponsor(maybeAccount);
2384
2362
  }
2385
2363
  async function fetchAllOpportunityMarketSponsor(rpc, addresses, config) {
@@ -2388,18 +2366,18 @@ async function fetchAllOpportunityMarketSponsor(rpc, addresses, config) {
2388
2366
  addresses,
2389
2367
  config
2390
2368
  );
2391
- (0, import_kit54.assertAccountsExist)(maybeAccounts);
2369
+ (0, import_kit53.assertAccountsExist)(maybeAccounts);
2392
2370
  return maybeAccounts;
2393
2371
  }
2394
2372
  async function fetchAllMaybeOpportunityMarketSponsor(rpc, addresses, config) {
2395
- const maybeAccounts = await (0, import_kit54.fetchEncodedAccounts)(rpc, addresses, config);
2373
+ const maybeAccounts = await (0, import_kit53.fetchEncodedAccounts)(rpc, addresses, config);
2396
2374
  return maybeAccounts.map(
2397
2375
  (maybeAccount) => decodeOpportunityMarketSponsor(maybeAccount)
2398
2376
  );
2399
2377
  }
2400
2378
 
2401
2379
  // src/generated/accounts/platformConfig.ts
2402
- var import_kit55 = require("@solana/kit");
2380
+ var import_kit54 = require("@solana/kit");
2403
2381
  var PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
2404
2382
  160,
2405
2383
  78,
@@ -2411,57 +2389,57 @@ var PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
2411
2389
  160
2412
2390
  ]);
2413
2391
  function getPlatformConfigDiscriminatorBytes() {
2414
- return (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2392
+ return (0, import_kit54.fixEncoderSize)((0, import_kit54.getBytesEncoder)(), 8).encode(
2415
2393
  PLATFORM_CONFIG_DISCRIMINATOR
2416
2394
  );
2417
2395
  }
2418
2396
  function getPlatformConfigEncoder() {
2419
- return (0, import_kit55.transformEncoder)(
2420
- (0, import_kit55.getStructEncoder)([
2421
- ["discriminator", (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8)],
2422
- ["bump", (0, import_kit55.getU8Encoder)()],
2423
- ["name", (0, import_kit55.addEncoderSizePrefix)((0, import_kit55.getUtf8Encoder)(), (0, import_kit55.getU32Encoder)())],
2424
- ["updateAuthority", (0, import_kit55.getAddressEncoder)()],
2425
- ["feeClaimAuthority", (0, import_kit55.getAddressEncoder)()],
2397
+ return (0, import_kit54.transformEncoder)(
2398
+ (0, import_kit54.getStructEncoder)([
2399
+ ["discriminator", (0, import_kit54.fixEncoderSize)((0, import_kit54.getBytesEncoder)(), 8)],
2400
+ ["bump", (0, import_kit54.getU8Encoder)()],
2401
+ ["name", (0, import_kit54.addEncoderSizePrefix)((0, import_kit54.getUtf8Encoder)(), (0, import_kit54.getU32Encoder)())],
2402
+ ["updateAuthority", (0, import_kit54.getAddressEncoder)()],
2403
+ ["feeClaimAuthority", (0, import_kit54.getAddressEncoder)()],
2426
2404
  ["feeRates", getFeeRatesEncoder()],
2427
- ["marketResolutionDeadlineSeconds", (0, import_kit55.getU64Encoder)()],
2428
- ["minTimeToStakeSeconds", (0, import_kit55.getU64Encoder)()],
2429
- ["minRevealPeriodSeconds", (0, import_kit55.getU64Encoder)()],
2430
- ["maxRevealPeriodSeconds", (0, import_kit55.getU64Encoder)()]
2405
+ ["marketResolutionDeadlineSeconds", (0, import_kit54.getU64Encoder)()],
2406
+ ["minTimeToStakeSeconds", (0, import_kit54.getU64Encoder)()],
2407
+ ["revealAuthority", (0, import_kit54.getAddressEncoder)()],
2408
+ ["revealPeriodSeconds", (0, import_kit54.getU64Encoder)()]
2431
2409
  ]),
2432
2410
  (value) => ({ ...value, discriminator: PLATFORM_CONFIG_DISCRIMINATOR })
2433
2411
  );
2434
2412
  }
2435
2413
  function getPlatformConfigDecoder() {
2436
- return (0, import_kit55.getStructDecoder)([
2437
- ["discriminator", (0, import_kit55.fixDecoderSize)((0, import_kit55.getBytesDecoder)(), 8)],
2438
- ["bump", (0, import_kit55.getU8Decoder)()],
2439
- ["name", (0, import_kit55.addDecoderSizePrefix)((0, import_kit55.getUtf8Decoder)(), (0, import_kit55.getU32Decoder)())],
2440
- ["updateAuthority", (0, import_kit55.getAddressDecoder)()],
2441
- ["feeClaimAuthority", (0, import_kit55.getAddressDecoder)()],
2414
+ return (0, import_kit54.getStructDecoder)([
2415
+ ["discriminator", (0, import_kit54.fixDecoderSize)((0, import_kit54.getBytesDecoder)(), 8)],
2416
+ ["bump", (0, import_kit54.getU8Decoder)()],
2417
+ ["name", (0, import_kit54.addDecoderSizePrefix)((0, import_kit54.getUtf8Decoder)(), (0, import_kit54.getU32Decoder)())],
2418
+ ["updateAuthority", (0, import_kit54.getAddressDecoder)()],
2419
+ ["feeClaimAuthority", (0, import_kit54.getAddressDecoder)()],
2442
2420
  ["feeRates", getFeeRatesDecoder()],
2443
- ["marketResolutionDeadlineSeconds", (0, import_kit55.getU64Decoder)()],
2444
- ["minTimeToStakeSeconds", (0, import_kit55.getU64Decoder)()],
2445
- ["minRevealPeriodSeconds", (0, import_kit55.getU64Decoder)()],
2446
- ["maxRevealPeriodSeconds", (0, import_kit55.getU64Decoder)()]
2421
+ ["marketResolutionDeadlineSeconds", (0, import_kit54.getU64Decoder)()],
2422
+ ["minTimeToStakeSeconds", (0, import_kit54.getU64Decoder)()],
2423
+ ["revealAuthority", (0, import_kit54.getAddressDecoder)()],
2424
+ ["revealPeriodSeconds", (0, import_kit54.getU64Decoder)()]
2447
2425
  ]);
2448
2426
  }
2449
2427
  function getPlatformConfigCodec() {
2450
- return (0, import_kit55.combineCodec)(getPlatformConfigEncoder(), getPlatformConfigDecoder());
2428
+ return (0, import_kit54.combineCodec)(getPlatformConfigEncoder(), getPlatformConfigDecoder());
2451
2429
  }
2452
2430
  function decodePlatformConfig(encodedAccount) {
2453
- return (0, import_kit55.decodeAccount)(
2431
+ return (0, import_kit54.decodeAccount)(
2454
2432
  encodedAccount,
2455
2433
  getPlatformConfigDecoder()
2456
2434
  );
2457
2435
  }
2458
2436
  async function fetchPlatformConfig(rpc, address3, config) {
2459
2437
  const maybeAccount = await fetchMaybePlatformConfig(rpc, address3, config);
2460
- (0, import_kit55.assertAccountExists)(maybeAccount);
2438
+ (0, import_kit54.assertAccountExists)(maybeAccount);
2461
2439
  return maybeAccount;
2462
2440
  }
2463
2441
  async function fetchMaybePlatformConfig(rpc, address3, config) {
2464
- const maybeAccount = await (0, import_kit55.fetchEncodedAccount)(rpc, address3, config);
2442
+ const maybeAccount = await (0, import_kit54.fetchEncodedAccount)(rpc, address3, config);
2465
2443
  return decodePlatformConfig(maybeAccount);
2466
2444
  }
2467
2445
  async function fetchAllPlatformConfig(rpc, addresses, config) {
@@ -2470,18 +2448,18 @@ async function fetchAllPlatformConfig(rpc, addresses, config) {
2470
2448
  addresses,
2471
2449
  config
2472
2450
  );
2473
- (0, import_kit55.assertAccountsExist)(maybeAccounts);
2451
+ (0, import_kit54.assertAccountsExist)(maybeAccounts);
2474
2452
  return maybeAccounts;
2475
2453
  }
2476
2454
  async function fetchAllMaybePlatformConfig(rpc, addresses, config) {
2477
- const maybeAccounts = await (0, import_kit55.fetchEncodedAccounts)(rpc, addresses, config);
2455
+ const maybeAccounts = await (0, import_kit54.fetchEncodedAccounts)(rpc, addresses, config);
2478
2456
  return maybeAccounts.map(
2479
2457
  (maybeAccount) => decodePlatformConfig(maybeAccount)
2480
2458
  );
2481
2459
  }
2482
2460
 
2483
2461
  // src/generated/accounts/stakeAccount.ts
2484
- var import_kit56 = require("@solana/kit");
2462
+ var import_kit55 = require("@solana/kit");
2485
2463
  var STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
2486
2464
  80,
2487
2465
  158,
@@ -2493,99 +2471,101 @@ var STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
2493
2471
  255
2494
2472
  ]);
2495
2473
  function getStakeAccountDiscriminatorBytes() {
2496
- return (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2474
+ return (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2497
2475
  STAKE_ACCOUNT_DISCRIMINATOR
2498
2476
  );
2499
2477
  }
2500
2478
  function getStakeAccountEncoder() {
2501
- return (0, import_kit56.transformEncoder)(
2502
- (0, import_kit56.getStructEncoder)([
2503
- ["discriminator", (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8)],
2504
- ["encryptedOption", (0, import_kit56.getArrayEncoder)((0, import_kit56.getU8Encoder)(), { size: 32 })],
2505
- ["stateNonce", (0, import_kit56.getU128Encoder)()],
2506
- ["bump", (0, import_kit56.getU8Encoder)()],
2507
- ["owner", (0, import_kit56.getAddressEncoder)()],
2508
- ["market", (0, import_kit56.getAddressEncoder)()],
2509
- ["userPubkey", (0, import_kit56.getArrayEncoder)((0, import_kit56.getU8Encoder)(), { size: 32 })],
2479
+ return (0, import_kit55.transformEncoder)(
2480
+ (0, import_kit55.getStructEncoder)([
2481
+ ["discriminator", (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8)],
2482
+ ["encryptedOption", (0, import_kit55.getArrayEncoder)((0, import_kit55.getU8Encoder)(), { size: 32 })],
2483
+ ["stateNonce", (0, import_kit55.getU128Encoder)()],
2484
+ ["bump", (0, import_kit55.getU8Encoder)()],
2485
+ ["owner", (0, import_kit55.getAddressEncoder)()],
2486
+ ["market", (0, import_kit55.getAddressEncoder)()],
2487
+ ["userPubkey", (0, import_kit55.getArrayEncoder)((0, import_kit55.getU8Encoder)(), { size: 32 })],
2510
2488
  [
2511
2489
  "encryptedOptionDisclosure",
2512
- (0, import_kit56.getArrayEncoder)((0, import_kit56.getU8Encoder)(), { size: 32 })
2490
+ (0, import_kit55.getArrayEncoder)((0, import_kit55.getU8Encoder)(), { size: 32 })
2513
2491
  ],
2514
- ["stateNonceDisclosure", (0, import_kit56.getU128Encoder)()],
2515
- ["stakedAtTimestamp", (0, import_kit56.getOptionEncoder)((0, import_kit56.getU64Encoder)())],
2516
- ["unstakedAtTimestamp", (0, import_kit56.getOptionEncoder)((0, import_kit56.getU64Encoder)())],
2517
- ["amount", (0, import_kit56.getU64Encoder)()],
2492
+ ["stateNonceDisclosure", (0, import_kit55.getU128Encoder)()],
2493
+ ["stakedAtTimestamp", (0, import_kit55.getOptionEncoder)((0, import_kit55.getU64Encoder)())],
2494
+ ["unstakedAtTimestamp", (0, import_kit55.getOptionEncoder)((0, import_kit55.getU64Encoder)())],
2495
+ ["amount", (0, import_kit55.getU64Encoder)()],
2518
2496
  ["collectedFees", getCollectedFeesEncoder()],
2519
- ["revealedOption", (0, import_kit56.getOptionEncoder)((0, import_kit56.getU64Encoder)())],
2520
- ["score", (0, import_kit56.getOptionEncoder)((0, import_kit56.getU64Encoder)())],
2521
- ["unstaked", (0, import_kit56.getBooleanEncoder)()],
2522
- ["id", (0, import_kit56.getU32Encoder)()],
2523
- ["pendingStakeComputation", (0, import_kit56.getOptionEncoder)((0, import_kit56.getAddressEncoder)())],
2524
- ["pendingReveal", (0, import_kit56.getBooleanEncoder)()]
2497
+ ["revealedOption", (0, import_kit55.getOptionEncoder)((0, import_kit55.getU64Encoder)())],
2498
+ ["score", (0, import_kit55.getOptionEncoder)((0, import_kit55.getU64Encoder)())],
2499
+ ["unstaked", (0, import_kit55.getBooleanEncoder)()],
2500
+ ["rewardsClaimed", (0, import_kit55.getBooleanEncoder)()],
2501
+ ["id", (0, import_kit55.getU32Encoder)()],
2502
+ ["pendingStakeComputation", (0, import_kit55.getOptionEncoder)((0, import_kit55.getAddressEncoder)())],
2503
+ ["pendingReveal", (0, import_kit55.getBooleanEncoder)()]
2525
2504
  ]),
2526
2505
  (value) => ({ ...value, discriminator: STAKE_ACCOUNT_DISCRIMINATOR })
2527
2506
  );
2528
2507
  }
2529
2508
  function getStakeAccountDecoder() {
2530
- return (0, import_kit56.getStructDecoder)([
2531
- ["discriminator", (0, import_kit56.fixDecoderSize)((0, import_kit56.getBytesDecoder)(), 8)],
2532
- ["encryptedOption", (0, import_kit56.getArrayDecoder)((0, import_kit56.getU8Decoder)(), { size: 32 })],
2533
- ["stateNonce", (0, import_kit56.getU128Decoder)()],
2534
- ["bump", (0, import_kit56.getU8Decoder)()],
2535
- ["owner", (0, import_kit56.getAddressDecoder)()],
2536
- ["market", (0, import_kit56.getAddressDecoder)()],
2537
- ["userPubkey", (0, import_kit56.getArrayDecoder)((0, import_kit56.getU8Decoder)(), { size: 32 })],
2538
- [
2539
- "encryptedOptionDisclosure",
2540
- (0, import_kit56.getArrayDecoder)((0, import_kit56.getU8Decoder)(), { size: 32 })
2509
+ return (0, import_kit55.getStructDecoder)([
2510
+ ["discriminator", (0, import_kit55.fixDecoderSize)((0, import_kit55.getBytesDecoder)(), 8)],
2511
+ ["encryptedOption", (0, import_kit55.getArrayDecoder)((0, import_kit55.getU8Decoder)(), { size: 32 })],
2512
+ ["stateNonce", (0, import_kit55.getU128Decoder)()],
2513
+ ["bump", (0, import_kit55.getU8Decoder)()],
2514
+ ["owner", (0, import_kit55.getAddressDecoder)()],
2515
+ ["market", (0, import_kit55.getAddressDecoder)()],
2516
+ ["userPubkey", (0, import_kit55.getArrayDecoder)((0, import_kit55.getU8Decoder)(), { size: 32 })],
2517
+ [
2518
+ "encryptedOptionDisclosure",
2519
+ (0, import_kit55.getArrayDecoder)((0, import_kit55.getU8Decoder)(), { size: 32 })
2541
2520
  ],
2542
- ["stateNonceDisclosure", (0, import_kit56.getU128Decoder)()],
2543
- ["stakedAtTimestamp", (0, import_kit56.getOptionDecoder)((0, import_kit56.getU64Decoder)())],
2544
- ["unstakedAtTimestamp", (0, import_kit56.getOptionDecoder)((0, import_kit56.getU64Decoder)())],
2545
- ["amount", (0, import_kit56.getU64Decoder)()],
2521
+ ["stateNonceDisclosure", (0, import_kit55.getU128Decoder)()],
2522
+ ["stakedAtTimestamp", (0, import_kit55.getOptionDecoder)((0, import_kit55.getU64Decoder)())],
2523
+ ["unstakedAtTimestamp", (0, import_kit55.getOptionDecoder)((0, import_kit55.getU64Decoder)())],
2524
+ ["amount", (0, import_kit55.getU64Decoder)()],
2546
2525
  ["collectedFees", getCollectedFeesDecoder()],
2547
- ["revealedOption", (0, import_kit56.getOptionDecoder)((0, import_kit56.getU64Decoder)())],
2548
- ["score", (0, import_kit56.getOptionDecoder)((0, import_kit56.getU64Decoder)())],
2549
- ["unstaked", (0, import_kit56.getBooleanDecoder)()],
2550
- ["id", (0, import_kit56.getU32Decoder)()],
2551
- ["pendingStakeComputation", (0, import_kit56.getOptionDecoder)((0, import_kit56.getAddressDecoder)())],
2552
- ["pendingReveal", (0, import_kit56.getBooleanDecoder)()]
2526
+ ["revealedOption", (0, import_kit55.getOptionDecoder)((0, import_kit55.getU64Decoder)())],
2527
+ ["score", (0, import_kit55.getOptionDecoder)((0, import_kit55.getU64Decoder)())],
2528
+ ["unstaked", (0, import_kit55.getBooleanDecoder)()],
2529
+ ["rewardsClaimed", (0, import_kit55.getBooleanDecoder)()],
2530
+ ["id", (0, import_kit55.getU32Decoder)()],
2531
+ ["pendingStakeComputation", (0, import_kit55.getOptionDecoder)((0, import_kit55.getAddressDecoder)())],
2532
+ ["pendingReveal", (0, import_kit55.getBooleanDecoder)()]
2553
2533
  ]);
2554
2534
  }
2555
2535
  function getStakeAccountCodec() {
2556
- return (0, import_kit56.combineCodec)(getStakeAccountEncoder(), getStakeAccountDecoder());
2536
+ return (0, import_kit55.combineCodec)(getStakeAccountEncoder(), getStakeAccountDecoder());
2557
2537
  }
2558
2538
  function decodeStakeAccount(encodedAccount) {
2559
- return (0, import_kit56.decodeAccount)(
2539
+ return (0, import_kit55.decodeAccount)(
2560
2540
  encodedAccount,
2561
2541
  getStakeAccountDecoder()
2562
2542
  );
2563
2543
  }
2564
2544
  async function fetchStakeAccount(rpc, address3, config) {
2565
2545
  const maybeAccount = await fetchMaybeStakeAccount(rpc, address3, config);
2566
- (0, import_kit56.assertAccountExists)(maybeAccount);
2546
+ (0, import_kit55.assertAccountExists)(maybeAccount);
2567
2547
  return maybeAccount;
2568
2548
  }
2569
2549
  async function fetchMaybeStakeAccount(rpc, address3, config) {
2570
- const maybeAccount = await (0, import_kit56.fetchEncodedAccount)(rpc, address3, config);
2550
+ const maybeAccount = await (0, import_kit55.fetchEncodedAccount)(rpc, address3, config);
2571
2551
  return decodeStakeAccount(maybeAccount);
2572
2552
  }
2573
2553
  async function fetchAllStakeAccount(rpc, addresses, config) {
2574
2554
  const maybeAccounts = await fetchAllMaybeStakeAccount(rpc, addresses, config);
2575
- (0, import_kit56.assertAccountsExist)(maybeAccounts);
2555
+ (0, import_kit55.assertAccountsExist)(maybeAccounts);
2576
2556
  return maybeAccounts;
2577
2557
  }
2578
2558
  async function fetchAllMaybeStakeAccount(rpc, addresses, config) {
2579
- const maybeAccounts = await (0, import_kit56.fetchEncodedAccounts)(rpc, addresses, config);
2559
+ const maybeAccounts = await (0, import_kit55.fetchEncodedAccounts)(rpc, addresses, config);
2580
2560
  return maybeAccounts.map((maybeAccount) => decodeStakeAccount(maybeAccount));
2581
2561
  }
2582
2562
 
2583
2563
  // src/generated/errors/opportunityMarket.ts
2584
- var import_kit58 = require("@solana/kit");
2564
+ var import_kit57 = require("@solana/kit");
2585
2565
 
2586
2566
  // src/generated/programs/opportunityMarket.ts
2587
- var import_kit57 = require("@solana/kit");
2588
- var OPPORTUNITY_MARKET_PROGRAM_ADDRESS = "B3NCHsGBkdZrPYPJY2rjg4UwmyRotMmFWhxa5hMHwLeg";
2567
+ var import_kit56 = require("@solana/kit");
2568
+ var OPPORTUNITY_MARKET_PROGRAM_ADDRESS = "bncqApu6NkUibDwnbfXR5oRPCLiYjwHgVuCdHRTD6rp";
2589
2569
  var OpportunityMarketAccount = /* @__PURE__ */ ((OpportunityMarketAccount2) => {
2590
2570
  OpportunityMarketAccount2[OpportunityMarketAccount2["AllowedMint"] = 0] = "AllowedMint";
2591
2571
  OpportunityMarketAccount2[OpportunityMarketAccount2["ArciumSignerAccount"] = 1] = "ArciumSignerAccount";
@@ -2598,63 +2578,63 @@ var OpportunityMarketAccount = /* @__PURE__ */ ((OpportunityMarketAccount2) => {
2598
2578
  })(OpportunityMarketAccount || {});
2599
2579
  function identifyOpportunityMarketAccount(account) {
2600
2580
  const data = "data" in account ? account.data : account;
2601
- if ((0, import_kit57.containsBytes)(
2581
+ if ((0, import_kit56.containsBytes)(
2602
2582
  data,
2603
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2583
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2604
2584
  new Uint8Array([173, 229, 179, 46, 121, 164, 247, 6])
2605
2585
  ),
2606
2586
  0
2607
2587
  )) {
2608
2588
  return 0 /* AllowedMint */;
2609
2589
  }
2610
- if ((0, import_kit57.containsBytes)(
2590
+ if ((0, import_kit56.containsBytes)(
2611
2591
  data,
2612
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2592
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2613
2593
  new Uint8Array([214, 157, 122, 114, 117, 44, 214, 74])
2614
2594
  ),
2615
2595
  0
2616
2596
  )) {
2617
2597
  return 1 /* ArciumSignerAccount */;
2618
2598
  }
2619
- if ((0, import_kit57.containsBytes)(
2599
+ if ((0, import_kit56.containsBytes)(
2620
2600
  data,
2621
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2601
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2622
2602
  new Uint8Array([207, 103, 169, 160, 157, 215, 97, 224])
2623
2603
  ),
2624
2604
  0
2625
2605
  )) {
2626
2606
  return 2 /* OpportunityMarket */;
2627
2607
  }
2628
- if ((0, import_kit57.containsBytes)(
2608
+ if ((0, import_kit56.containsBytes)(
2629
2609
  data,
2630
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2610
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2631
2611
  new Uint8Array([220, 236, 171, 213, 170, 117, 10, 64])
2632
2612
  ),
2633
2613
  0
2634
2614
  )) {
2635
2615
  return 3 /* OpportunityMarketOption */;
2636
2616
  }
2637
- if ((0, import_kit57.containsBytes)(
2617
+ if ((0, import_kit56.containsBytes)(
2638
2618
  data,
2639
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2619
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2640
2620
  new Uint8Array([207, 139, 192, 91, 37, 190, 2, 192])
2641
2621
  ),
2642
2622
  0
2643
2623
  )) {
2644
2624
  return 4 /* OpportunityMarketSponsor */;
2645
2625
  }
2646
- if ((0, import_kit57.containsBytes)(
2626
+ if ((0, import_kit56.containsBytes)(
2647
2627
  data,
2648
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2628
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2649
2629
  new Uint8Array([160, 78, 128, 0, 248, 83, 230, 160])
2650
2630
  ),
2651
2631
  0
2652
2632
  )) {
2653
2633
  return 5 /* PlatformConfig */;
2654
2634
  }
2655
- if ((0, import_kit57.containsBytes)(
2635
+ if ((0, import_kit56.containsBytes)(
2656
2636
  data,
2657
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2637
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2658
2638
  new Uint8Array([80, 158, 67, 124, 50, 189, 192, 255])
2659
2639
  ),
2660
2640
  0
@@ -2670,19 +2650,19 @@ var OpportunityMarketInstruction = /* @__PURE__ */ ((OpportunityMarketInstructio
2670
2650
  OpportunityMarketInstruction2[OpportunityMarketInstruction2["AddReward"] = 1] = "AddReward";
2671
2651
  OpportunityMarketInstruction2[OpportunityMarketInstruction2["ClaimCreatorFees"] = 2] = "ClaimCreatorFees";
2672
2652
  OpportunityMarketInstruction2[OpportunityMarketInstruction2["ClaimFees"] = 3] = "ClaimFees";
2673
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["CloseOptionAccount"] = 4] = "CloseOptionAccount";
2674
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["CloseStakeAccount"] = 5] = "CloseStakeAccount";
2675
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["CloseStuckStakeAccount"] = 6] = "CloseStuckStakeAccount";
2676
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["CreateMarket"] = 7] = "CreateMarket";
2677
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["EndRevealPeriod"] = 8] = "EndRevealPeriod";
2678
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["FinalizeRevealStake"] = 9] = "FinalizeRevealStake";
2679
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["InitAllowedMint"] = 10] = "InitAllowedMint";
2680
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["InitPlatformConfig"] = 11] = "InitPlatformConfig";
2681
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["InitStakeAccount"] = 12] = "InitStakeAccount";
2682
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["OpenMarket"] = 13] = "OpenMarket";
2683
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["PauseStaking"] = 14] = "PauseStaking";
2684
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["ResolveMarket"] = 15] = "ResolveMarket";
2685
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["ResumeStaking"] = 16] = "ResumeStaking";
2653
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["ClaimRewards"] = 4] = "ClaimRewards";
2654
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["CloseOptionAccount"] = 5] = "CloseOptionAccount";
2655
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["CloseStakeAccount"] = 6] = "CloseStakeAccount";
2656
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["CloseStuckStakeAccount"] = 7] = "CloseStuckStakeAccount";
2657
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["CloseUnrevealedStakeAccount"] = 8] = "CloseUnrevealedStakeAccount";
2658
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["CreateMarket"] = 9] = "CreateMarket";
2659
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["EndRevealPeriod"] = 10] = "EndRevealPeriod";
2660
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["FinalizeRevealStake"] = 11] = "FinalizeRevealStake";
2661
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["InitAllowedMint"] = 12] = "InitAllowedMint";
2662
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["InitPlatformConfig"] = 13] = "InitPlatformConfig";
2663
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["InitStakeAccount"] = 14] = "InitStakeAccount";
2664
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["OpenMarket"] = 15] = "OpenMarket";
2665
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["ResolveMarket"] = 16] = "ResolveMarket";
2686
2666
  OpportunityMarketInstruction2[OpportunityMarketInstruction2["RevealStake"] = 17] = "RevealStake";
2687
2667
  OpportunityMarketInstruction2[OpportunityMarketInstruction2["RevealStakeCallback"] = 18] = "RevealStakeCallback";
2688
2668
  OpportunityMarketInstruction2[OpportunityMarketInstruction2["RevealStakeCompDef"] = 19] = "RevealStakeCompDef";
@@ -2699,261 +2679,261 @@ var OpportunityMarketInstruction = /* @__PURE__ */ ((OpportunityMarketInstructio
2699
2679
  })(OpportunityMarketInstruction || {});
2700
2680
  function identifyOpportunityMarketInstruction(instruction) {
2701
2681
  const data = "data" in instruction ? instruction.data : instruction;
2702
- if ((0, import_kit57.containsBytes)(
2682
+ if ((0, import_kit56.containsBytes)(
2703
2683
  data,
2704
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2684
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2705
2685
  new Uint8Array([76, 189, 93, 144, 50, 229, 250, 116])
2706
2686
  ),
2707
2687
  0
2708
2688
  )) {
2709
2689
  return 0 /* AddMarketOption */;
2710
2690
  }
2711
- if ((0, import_kit57.containsBytes)(
2691
+ if ((0, import_kit56.containsBytes)(
2712
2692
  data,
2713
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2693
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2714
2694
  new Uint8Array([4, 114, 188, 164, 149, 249, 198, 237])
2715
2695
  ),
2716
2696
  0
2717
2697
  )) {
2718
2698
  return 1 /* AddReward */;
2719
2699
  }
2720
- if ((0, import_kit57.containsBytes)(
2700
+ if ((0, import_kit56.containsBytes)(
2721
2701
  data,
2722
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2702
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2723
2703
  new Uint8Array([0, 23, 125, 234, 156, 118, 134, 89])
2724
2704
  ),
2725
2705
  0
2726
2706
  )) {
2727
2707
  return 2 /* ClaimCreatorFees */;
2728
2708
  }
2729
- if ((0, import_kit57.containsBytes)(
2709
+ if ((0, import_kit56.containsBytes)(
2730
2710
  data,
2731
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2711
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2732
2712
  new Uint8Array([82, 251, 233, 156, 12, 52, 184, 202])
2733
2713
  ),
2734
2714
  0
2735
2715
  )) {
2736
2716
  return 3 /* ClaimFees */;
2737
2717
  }
2738
- if ((0, import_kit57.containsBytes)(
2718
+ if ((0, import_kit56.containsBytes)(
2719
+ data,
2720
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2721
+ new Uint8Array([4, 144, 132, 71, 116, 23, 151, 80])
2722
+ ),
2723
+ 0
2724
+ )) {
2725
+ return 4 /* ClaimRewards */;
2726
+ }
2727
+ if ((0, import_kit56.containsBytes)(
2739
2728
  data,
2740
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2729
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2741
2730
  new Uint8Array([46, 121, 107, 240, 123, 190, 229, 1])
2742
2731
  ),
2743
2732
  0
2744
2733
  )) {
2745
- return 4 /* CloseOptionAccount */;
2734
+ return 5 /* CloseOptionAccount */;
2746
2735
  }
2747
- if ((0, import_kit57.containsBytes)(
2736
+ if ((0, import_kit56.containsBytes)(
2748
2737
  data,
2749
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2738
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2750
2739
  new Uint8Array([246, 236, 59, 167, 115, 135, 122, 12])
2751
2740
  ),
2752
2741
  0
2753
2742
  )) {
2754
- return 5 /* CloseStakeAccount */;
2743
+ return 6 /* CloseStakeAccount */;
2755
2744
  }
2756
- if ((0, import_kit57.containsBytes)(
2745
+ if ((0, import_kit56.containsBytes)(
2757
2746
  data,
2758
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2747
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2759
2748
  new Uint8Array([41, 239, 108, 203, 185, 230, 165, 181])
2760
2749
  ),
2761
2750
  0
2762
2751
  )) {
2763
- return 6 /* CloseStuckStakeAccount */;
2752
+ return 7 /* CloseStuckStakeAccount */;
2753
+ }
2754
+ if ((0, import_kit56.containsBytes)(
2755
+ data,
2756
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2757
+ new Uint8Array([171, 229, 236, 216, 122, 118, 188, 103])
2758
+ ),
2759
+ 0
2760
+ )) {
2761
+ return 8 /* CloseUnrevealedStakeAccount */;
2764
2762
  }
2765
- if ((0, import_kit57.containsBytes)(
2763
+ if ((0, import_kit56.containsBytes)(
2766
2764
  data,
2767
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2765
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2768
2766
  new Uint8Array([103, 226, 97, 235, 200, 188, 251, 254])
2769
2767
  ),
2770
2768
  0
2771
2769
  )) {
2772
- return 7 /* CreateMarket */;
2770
+ return 9 /* CreateMarket */;
2773
2771
  }
2774
- if ((0, import_kit57.containsBytes)(
2772
+ if ((0, import_kit56.containsBytes)(
2775
2773
  data,
2776
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2774
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2777
2775
  new Uint8Array([144, 81, 42, 65, 127, 60, 134, 92])
2778
2776
  ),
2779
2777
  0
2780
2778
  )) {
2781
- return 8 /* EndRevealPeriod */;
2779
+ return 10 /* EndRevealPeriod */;
2782
2780
  }
2783
- if ((0, import_kit57.containsBytes)(
2781
+ if ((0, import_kit56.containsBytes)(
2784
2782
  data,
2785
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2783
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2786
2784
  new Uint8Array([92, 201, 94, 219, 117, 53, 255, 230])
2787
2785
  ),
2788
2786
  0
2789
2787
  )) {
2790
- return 9 /* FinalizeRevealStake */;
2788
+ return 11 /* FinalizeRevealStake */;
2791
2789
  }
2792
- if ((0, import_kit57.containsBytes)(
2790
+ if ((0, import_kit56.containsBytes)(
2793
2791
  data,
2794
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2792
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2795
2793
  new Uint8Array([215, 70, 3, 5, 42, 229, 151, 10])
2796
2794
  ),
2797
2795
  0
2798
2796
  )) {
2799
- return 10 /* InitAllowedMint */;
2797
+ return 12 /* InitAllowedMint */;
2800
2798
  }
2801
- if ((0, import_kit57.containsBytes)(
2799
+ if ((0, import_kit56.containsBytes)(
2802
2800
  data,
2803
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2801
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2804
2802
  new Uint8Array([101, 52, 47, 49, 156, 16, 32, 118])
2805
2803
  ),
2806
2804
  0
2807
2805
  )) {
2808
- return 11 /* InitPlatformConfig */;
2806
+ return 13 /* InitPlatformConfig */;
2809
2807
  }
2810
- if ((0, import_kit57.containsBytes)(
2808
+ if ((0, import_kit56.containsBytes)(
2811
2809
  data,
2812
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2810
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2813
2811
  new Uint8Array([132, 171, 255, 149, 163, 37, 220, 45])
2814
2812
  ),
2815
2813
  0
2816
2814
  )) {
2817
- return 12 /* InitStakeAccount */;
2815
+ return 14 /* InitStakeAccount */;
2818
2816
  }
2819
- if ((0, import_kit57.containsBytes)(
2817
+ if ((0, import_kit56.containsBytes)(
2820
2818
  data,
2821
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2819
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2822
2820
  new Uint8Array([116, 19, 123, 75, 217, 244, 69, 44])
2823
2821
  ),
2824
2822
  0
2825
2823
  )) {
2826
- return 13 /* OpenMarket */;
2824
+ return 15 /* OpenMarket */;
2827
2825
  }
2828
- if ((0, import_kit57.containsBytes)(
2826
+ if ((0, import_kit56.containsBytes)(
2829
2827
  data,
2830
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2831
- new Uint8Array([245, 191, 35, 58, 88, 250, 229, 60])
2832
- ),
2833
- 0
2834
- )) {
2835
- return 14 /* PauseStaking */;
2836
- }
2837
- if ((0, import_kit57.containsBytes)(
2838
- data,
2839
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2828
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2840
2829
  new Uint8Array([155, 23, 80, 173, 46, 74, 23, 239])
2841
2830
  ),
2842
2831
  0
2843
2832
  )) {
2844
- return 15 /* ResolveMarket */;
2845
- }
2846
- if ((0, import_kit57.containsBytes)(
2847
- data,
2848
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2849
- new Uint8Array([31, 200, 175, 23, 211, 22, 63, 155])
2850
- ),
2851
- 0
2852
- )) {
2853
- return 16 /* ResumeStaking */;
2833
+ return 16 /* ResolveMarket */;
2854
2834
  }
2855
- if ((0, import_kit57.containsBytes)(
2835
+ if ((0, import_kit56.containsBytes)(
2856
2836
  data,
2857
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2837
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2858
2838
  new Uint8Array([107, 229, 210, 77, 126, 255, 243, 188])
2859
2839
  ),
2860
2840
  0
2861
2841
  )) {
2862
2842
  return 17 /* RevealStake */;
2863
2843
  }
2864
- if ((0, import_kit57.containsBytes)(
2844
+ if ((0, import_kit56.containsBytes)(
2865
2845
  data,
2866
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2846
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2867
2847
  new Uint8Array([79, 19, 120, 162, 232, 39, 206, 116])
2868
2848
  ),
2869
2849
  0
2870
2850
  )) {
2871
2851
  return 18 /* RevealStakeCallback */;
2872
2852
  }
2873
- if ((0, import_kit57.containsBytes)(
2853
+ if ((0, import_kit56.containsBytes)(
2874
2854
  data,
2875
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2855
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2876
2856
  new Uint8Array([197, 20, 216, 132, 43, 99, 64, 0])
2877
2857
  ),
2878
2858
  0
2879
2859
  )) {
2880
2860
  return 19 /* RevealStakeCompDef */;
2881
2861
  }
2882
- if ((0, import_kit57.containsBytes)(
2862
+ if ((0, import_kit56.containsBytes)(
2883
2863
  data,
2884
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2864
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2885
2865
  new Uint8Array([75, 250, 161, 197, 43, 196, 161, 3])
2886
2866
  ),
2887
2867
  0
2888
2868
  )) {
2889
2869
  return 20 /* SetFeeClaimAuthority */;
2890
2870
  }
2891
- if ((0, import_kit57.containsBytes)(
2871
+ if ((0, import_kit56.containsBytes)(
2892
2872
  data,
2893
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2873
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2894
2874
  new Uint8Array([166, 198, 186, 255, 217, 170, 103, 155])
2895
2875
  ),
2896
2876
  0
2897
2877
  )) {
2898
2878
  return 21 /* SetUpdateAuthority */;
2899
2879
  }
2900
- if ((0, import_kit57.containsBytes)(
2880
+ if ((0, import_kit56.containsBytes)(
2901
2881
  data,
2902
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2882
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2903
2883
  new Uint8Array([156, 73, 113, 33, 170, 115, 163, 206])
2904
2884
  ),
2905
2885
  0
2906
2886
  )) {
2907
2887
  return 22 /* SetWinningOption */;
2908
2888
  }
2909
- if ((0, import_kit57.containsBytes)(
2889
+ if ((0, import_kit56.containsBytes)(
2910
2890
  data,
2911
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2891
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2912
2892
  new Uint8Array([206, 176, 202, 18, 200, 209, 179, 108])
2913
2893
  ),
2914
2894
  0
2915
2895
  )) {
2916
2896
  return 23 /* Stake */;
2917
2897
  }
2918
- if ((0, import_kit57.containsBytes)(
2898
+ if ((0, import_kit56.containsBytes)(
2919
2899
  data,
2920
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2900
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2921
2901
  new Uint8Array([40, 220, 36, 47, 6, 116, 132, 89])
2922
2902
  ),
2923
2903
  0
2924
2904
  )) {
2925
2905
  return 24 /* StakeCallback */;
2926
2906
  }
2927
- if ((0, import_kit57.containsBytes)(
2907
+ if ((0, import_kit56.containsBytes)(
2928
2908
  data,
2929
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2909
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2930
2910
  new Uint8Array([156, 5, 60, 126, 142, 149, 1, 130])
2931
2911
  ),
2932
2912
  0
2933
2913
  )) {
2934
2914
  return 25 /* StakeCompDef */;
2935
2915
  }
2936
- if ((0, import_kit57.containsBytes)(
2916
+ if ((0, import_kit56.containsBytes)(
2937
2917
  data,
2938
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2918
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2939
2919
  new Uint8Array([90, 95, 107, 42, 205, 124, 50, 225])
2940
2920
  ),
2941
2921
  0
2942
2922
  )) {
2943
2923
  return 26 /* Unstake */;
2944
2924
  }
2945
- if ((0, import_kit57.containsBytes)(
2925
+ if ((0, import_kit56.containsBytes)(
2946
2926
  data,
2947
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2927
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2948
2928
  new Uint8Array([195, 60, 76, 129, 146, 45, 67, 143])
2949
2929
  ),
2950
2930
  0
2951
2931
  )) {
2952
2932
  return 27 /* UpdatePlatformConfig */;
2953
2933
  }
2954
- if ((0, import_kit57.containsBytes)(
2934
+ if ((0, import_kit56.containsBytes)(
2955
2935
  data,
2956
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2936
+ (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2957
2937
  new Uint8Array([191, 187, 176, 137, 9, 25, 187, 244])
2958
2938
  ),
2959
2939
  0
@@ -2992,16 +2972,15 @@ var OPPORTUNITY_MARKET_ERROR__LOCKED = 6022;
2992
2972
  var OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE = 6023;
2993
2973
  var OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM = 6024;
2994
2974
  var OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK = 6025;
2995
- var OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED = 6026;
2996
- var OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED = 6027;
2997
- var OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM = 6028;
2998
- var OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED = 6029;
2999
- var OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES = 6030;
3000
- var OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED = 6031;
3001
- var OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH = 6032;
3002
- var OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER = 6033;
3003
- var OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6034;
3004
- var OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED = 6035;
2975
+ var OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM = 6026;
2976
+ var OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED = 6027;
2977
+ var OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES = 6028;
2978
+ var OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED = 6029;
2979
+ var OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH = 6030;
2980
+ var OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER = 6031;
2981
+ var OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION = 6032;
2982
+ var OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6033;
2983
+ var OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED = 6034;
3005
2984
  var opportunityMarketErrorMessages;
3006
2985
  if (process.env.NODE_ENV !== "production") {
3007
2986
  opportunityMarketErrorMessages = {
@@ -3022,10 +3001,9 @@ if (process.env.NODE_ENV !== "production") {
3022
3001
  [OPPORTUNITY_MARKET_ERROR__LOCKED]: `Account is locked`,
3023
3002
  [OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN]: `Market is already open`,
3024
3003
  [OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN]: `Market is not open`,
3025
- [OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED]: `Market is not paused`,
3026
3004
  [OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED]: `Market not yet resolved`,
3027
- [OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED]: `Market staking is currently paused`,
3028
3005
  [OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM]: `No fees to claim`,
3006
+ [OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION]: `No winning option has a finalized stake`,
3029
3007
  [OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM]: `No reward to claim`,
3030
3008
  [OPPORTUNITY_MARKET_ERROR__NO_STAKE]: `Stake account has no recorded stake`,
3031
3009
  [OPPORTUNITY_MARKET_ERROR__NOT_REVEALED]: `Stake not yet revealed`,
@@ -3050,7 +3028,7 @@ function getOpportunityMarketErrorMessage(code) {
3050
3028
  return "Error message not available in production bundles.";
3051
3029
  }
3052
3030
  function isOpportunityMarketError(error, transactionMessage, code) {
3053
- return (0, import_kit58.isProgramError)(
3031
+ return (0, import_kit57.isProgramError)(
3054
3032
  error,
3055
3033
  transactionMessage,
3056
3034
  OPPORTUNITY_MARKET_PROGRAM_ADDRESS,
@@ -3059,10 +3037,10 @@ function isOpportunityMarketError(error, transactionMessage, code) {
3059
3037
  }
3060
3038
 
3061
3039
  // src/generated/instructions/addMarketOption.ts
3062
- var import_kit60 = require("@solana/kit");
3040
+ var import_kit59 = require("@solana/kit");
3063
3041
 
3064
3042
  // src/generated/shared/index.ts
3065
- var import_kit59 = require("@solana/kit");
3043
+ var import_kit58 = require("@solana/kit");
3066
3044
  function expectSome(value) {
3067
3045
  if (value === null || value === void 0) {
3068
3046
  throw new Error("Expected a value but received null or undefined.");
@@ -3087,19 +3065,19 @@ function getAccountMetaFactory(programAddress, optionalAccountStrategy) {
3087
3065
  if (optionalAccountStrategy === "omitted") return;
3088
3066
  return Object.freeze({
3089
3067
  address: programAddress,
3090
- role: import_kit59.AccountRole.READONLY
3068
+ role: import_kit58.AccountRole.READONLY
3091
3069
  });
3092
3070
  }
3093
- const writableRole = account.isWritable ? import_kit59.AccountRole.WRITABLE : import_kit59.AccountRole.READONLY;
3071
+ const writableRole = account.isWritable ? import_kit58.AccountRole.WRITABLE : import_kit58.AccountRole.READONLY;
3094
3072
  return Object.freeze({
3095
3073
  address: expectAddress(account.value),
3096
- role: isTransactionSigner(account.value) ? (0, import_kit59.upgradeRoleToSigner)(writableRole) : writableRole,
3074
+ role: isTransactionSigner(account.value) ? (0, import_kit58.upgradeRoleToSigner)(writableRole) : writableRole,
3097
3075
  ...isTransactionSigner(account.value) ? { signer: account.value } : {}
3098
3076
  });
3099
3077
  };
3100
3078
  }
3101
3079
  function isTransactionSigner(value) {
3102
- return !!value && typeof value === "object" && "address" in value && (0, import_kit59.isTransactionSigner)(value);
3080
+ return !!value && typeof value === "object" && "address" in value && (0, import_kit58.isTransactionSigner)(value);
3103
3081
  }
3104
3082
 
3105
3083
  // src/generated/instructions/addMarketOption.ts
@@ -3114,27 +3092,27 @@ var ADD_MARKET_OPTION_DISCRIMINATOR = new Uint8Array([
3114
3092
  116
3115
3093
  ]);
3116
3094
  function getAddMarketOptionDiscriminatorBytes() {
3117
- return (0, import_kit60.fixEncoderSize)((0, import_kit60.getBytesEncoder)(), 8).encode(
3095
+ return (0, import_kit59.fixEncoderSize)((0, import_kit59.getBytesEncoder)(), 8).encode(
3118
3096
  ADD_MARKET_OPTION_DISCRIMINATOR
3119
3097
  );
3120
3098
  }
3121
3099
  function getAddMarketOptionInstructionDataEncoder() {
3122
- return (0, import_kit60.transformEncoder)(
3123
- (0, import_kit60.getStructEncoder)([
3124
- ["discriminator", (0, import_kit60.fixEncoderSize)((0, import_kit60.getBytesEncoder)(), 8)],
3125
- ["optionId", (0, import_kit60.getU64Encoder)()]
3100
+ return (0, import_kit59.transformEncoder)(
3101
+ (0, import_kit59.getStructEncoder)([
3102
+ ["discriminator", (0, import_kit59.fixEncoderSize)((0, import_kit59.getBytesEncoder)(), 8)],
3103
+ ["optionId", (0, import_kit59.getU64Encoder)()]
3126
3104
  ]),
3127
3105
  (value) => ({ ...value, discriminator: ADD_MARKET_OPTION_DISCRIMINATOR })
3128
3106
  );
3129
3107
  }
3130
3108
  function getAddMarketOptionInstructionDataDecoder() {
3131
- return (0, import_kit60.getStructDecoder)([
3132
- ["discriminator", (0, import_kit60.fixDecoderSize)((0, import_kit60.getBytesDecoder)(), 8)],
3133
- ["optionId", (0, import_kit60.getU64Decoder)()]
3109
+ return (0, import_kit59.getStructDecoder)([
3110
+ ["discriminator", (0, import_kit59.fixDecoderSize)((0, import_kit59.getBytesDecoder)(), 8)],
3111
+ ["optionId", (0, import_kit59.getU64Decoder)()]
3134
3112
  ]);
3135
3113
  }
3136
3114
  function getAddMarketOptionInstructionDataCodec() {
3137
- return (0, import_kit60.combineCodec)(
3115
+ return (0, import_kit59.combineCodec)(
3138
3116
  getAddMarketOptionInstructionDataEncoder(),
3139
3117
  getAddMarketOptionInstructionDataDecoder()
3140
3118
  );
@@ -3150,14 +3128,14 @@ async function getAddMarketOptionInstructionAsync(input, config) {
3150
3128
  const accounts = originalAccounts;
3151
3129
  const args = { ...input };
3152
3130
  if (!accounts.option.value) {
3153
- accounts.option.value = await (0, import_kit60.getProgramDerivedAddress)({
3131
+ accounts.option.value = await (0, import_kit59.getProgramDerivedAddress)({
3154
3132
  programAddress,
3155
3133
  seeds: [
3156
- (0, import_kit60.getBytesEncoder)().encode(
3134
+ (0, import_kit59.getBytesEncoder)().encode(
3157
3135
  new Uint8Array([111, 112, 116, 105, 111, 110])
3158
3136
  ),
3159
- (0, import_kit60.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3160
- (0, import_kit60.getU64Encoder)().encode(expectSome(args.optionId))
3137
+ (0, import_kit59.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3138
+ (0, import_kit59.getU64Encoder)().encode(expectSome(args.optionId))
3161
3139
  ]
3162
3140
  });
3163
3141
  }
@@ -3228,7 +3206,7 @@ function parseAddMarketOptionInstruction(instruction) {
3228
3206
  }
3229
3207
 
3230
3208
  // src/generated/instructions/addReward.ts
3231
- var import_kit61 = require("@solana/kit");
3209
+ var import_kit60 = require("@solana/kit");
3232
3210
  var ADD_REWARD_DISCRIMINATOR = new Uint8Array([
3233
3211
  4,
3234
3212
  114,
@@ -3240,27 +3218,25 @@ var ADD_REWARD_DISCRIMINATOR = new Uint8Array([
3240
3218
  237
3241
3219
  ]);
3242
3220
  function getAddRewardDiscriminatorBytes() {
3243
- return (0, import_kit61.fixEncoderSize)((0, import_kit61.getBytesEncoder)(), 8).encode(ADD_REWARD_DISCRIMINATOR);
3221
+ return (0, import_kit60.fixEncoderSize)((0, import_kit60.getBytesEncoder)(), 8).encode(ADD_REWARD_DISCRIMINATOR);
3244
3222
  }
3245
3223
  function getAddRewardInstructionDataEncoder() {
3246
- return (0, import_kit61.transformEncoder)(
3247
- (0, import_kit61.getStructEncoder)([
3248
- ["discriminator", (0, import_kit61.fixEncoderSize)((0, import_kit61.getBytesEncoder)(), 8)],
3249
- ["amount", (0, import_kit61.getU64Encoder)()],
3250
- ["lock", (0, import_kit61.getBooleanEncoder)()]
3224
+ return (0, import_kit60.transformEncoder)(
3225
+ (0, import_kit60.getStructEncoder)([
3226
+ ["discriminator", (0, import_kit60.fixEncoderSize)((0, import_kit60.getBytesEncoder)(), 8)],
3227
+ ["amount", (0, import_kit60.getU64Encoder)()]
3251
3228
  ]),
3252
3229
  (value) => ({ ...value, discriminator: ADD_REWARD_DISCRIMINATOR })
3253
3230
  );
3254
3231
  }
3255
3232
  function getAddRewardInstructionDataDecoder() {
3256
- return (0, import_kit61.getStructDecoder)([
3257
- ["discriminator", (0, import_kit61.fixDecoderSize)((0, import_kit61.getBytesDecoder)(), 8)],
3258
- ["amount", (0, import_kit61.getU64Decoder)()],
3259
- ["lock", (0, import_kit61.getBooleanDecoder)()]
3233
+ return (0, import_kit60.getStructDecoder)([
3234
+ ["discriminator", (0, import_kit60.fixDecoderSize)((0, import_kit60.getBytesDecoder)(), 8)],
3235
+ ["amount", (0, import_kit60.getU64Decoder)()]
3260
3236
  ]);
3261
3237
  }
3262
3238
  function getAddRewardInstructionDataCodec() {
3263
- return (0, import_kit61.combineCodec)(
3239
+ return (0, import_kit60.combineCodec)(
3264
3240
  getAddRewardInstructionDataEncoder(),
3265
3241
  getAddRewardInstructionDataDecoder()
3266
3242
  );
@@ -3283,24 +3259,24 @@ async function getAddRewardInstructionAsync(input, config) {
3283
3259
  const accounts = originalAccounts;
3284
3260
  const args = { ...input };
3285
3261
  if (!accounts.sponsorAccount.value) {
3286
- accounts.sponsorAccount.value = await (0, import_kit61.getProgramDerivedAddress)({
3262
+ accounts.sponsorAccount.value = await (0, import_kit60.getProgramDerivedAddress)({
3287
3263
  programAddress,
3288
3264
  seeds: [
3289
- (0, import_kit61.getBytesEncoder)().encode(
3265
+ (0, import_kit60.getBytesEncoder)().encode(
3290
3266
  new Uint8Array([115, 112, 111, 110, 115, 111, 114])
3291
3267
  ),
3292
- (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.sponsor.value)),
3293
- (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.market.value))
3268
+ (0, import_kit60.getAddressEncoder)().encode(expectAddress(accounts.sponsor.value)),
3269
+ (0, import_kit60.getAddressEncoder)().encode(expectAddress(accounts.market.value))
3294
3270
  ]
3295
3271
  });
3296
3272
  }
3297
3273
  if (!accounts.marketTokenAta.value) {
3298
- accounts.marketTokenAta.value = await (0, import_kit61.getProgramDerivedAddress)({
3274
+ accounts.marketTokenAta.value = await (0, import_kit60.getProgramDerivedAddress)({
3299
3275
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
3300
3276
  seeds: [
3301
- (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3302
- (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3303
- (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3277
+ (0, import_kit60.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3278
+ (0, import_kit60.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3279
+ (0, import_kit60.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3304
3280
  ]
3305
3281
  });
3306
3282
  }
@@ -3390,7 +3366,7 @@ function parseAddRewardInstruction(instruction) {
3390
3366
  }
3391
3367
 
3392
3368
  // src/generated/instructions/claimCreatorFees.ts
3393
- var import_kit62 = require("@solana/kit");
3369
+ var import_kit61 = require("@solana/kit");
3394
3370
  var CLAIM_CREATOR_FEES_DISCRIMINATOR = new Uint8Array([
3395
3371
  0,
3396
3372
  23,
@@ -3402,23 +3378,23 @@ var CLAIM_CREATOR_FEES_DISCRIMINATOR = new Uint8Array([
3402
3378
  89
3403
3379
  ]);
3404
3380
  function getClaimCreatorFeesDiscriminatorBytes() {
3405
- return (0, import_kit62.fixEncoderSize)((0, import_kit62.getBytesEncoder)(), 8).encode(
3381
+ return (0, import_kit61.fixEncoderSize)((0, import_kit61.getBytesEncoder)(), 8).encode(
3406
3382
  CLAIM_CREATOR_FEES_DISCRIMINATOR
3407
3383
  );
3408
3384
  }
3409
3385
  function getClaimCreatorFeesInstructionDataEncoder() {
3410
- return (0, import_kit62.transformEncoder)(
3411
- (0, import_kit62.getStructEncoder)([["discriminator", (0, import_kit62.fixEncoderSize)((0, import_kit62.getBytesEncoder)(), 8)]]),
3386
+ return (0, import_kit61.transformEncoder)(
3387
+ (0, import_kit61.getStructEncoder)([["discriminator", (0, import_kit61.fixEncoderSize)((0, import_kit61.getBytesEncoder)(), 8)]]),
3412
3388
  (value) => ({ ...value, discriminator: CLAIM_CREATOR_FEES_DISCRIMINATOR })
3413
3389
  );
3414
3390
  }
3415
3391
  function getClaimCreatorFeesInstructionDataDecoder() {
3416
- return (0, import_kit62.getStructDecoder)([
3417
- ["discriminator", (0, import_kit62.fixDecoderSize)((0, import_kit62.getBytesDecoder)(), 8)]
3392
+ return (0, import_kit61.getStructDecoder)([
3393
+ ["discriminator", (0, import_kit61.fixDecoderSize)((0, import_kit61.getBytesDecoder)(), 8)]
3418
3394
  ]);
3419
3395
  }
3420
3396
  function getClaimCreatorFeesInstructionDataCodec() {
3421
- return (0, import_kit62.combineCodec)(
3397
+ return (0, import_kit61.combineCodec)(
3422
3398
  getClaimCreatorFeesInstructionDataEncoder(),
3423
3399
  getClaimCreatorFeesInstructionDataDecoder()
3424
3400
  );
@@ -3438,12 +3414,12 @@ async function getClaimCreatorFeesInstructionAsync(input, config) {
3438
3414
  };
3439
3415
  const accounts = originalAccounts;
3440
3416
  if (!accounts.marketTokenAta.value) {
3441
- accounts.marketTokenAta.value = await (0, import_kit62.getProgramDerivedAddress)({
3417
+ accounts.marketTokenAta.value = await (0, import_kit61.getProgramDerivedAddress)({
3442
3418
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
3443
3419
  seeds: [
3444
- (0, import_kit62.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3445
- (0, import_kit62.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3446
- (0, import_kit62.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3420
+ (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3421
+ (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3422
+ (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3447
3423
  ]
3448
3424
  });
3449
3425
  }
@@ -3514,7 +3490,7 @@ function parseClaimCreatorFeesInstruction(instruction) {
3514
3490
  }
3515
3491
 
3516
3492
  // src/generated/instructions/claimFees.ts
3517
- var import_kit63 = require("@solana/kit");
3493
+ var import_kit62 = require("@solana/kit");
3518
3494
  var CLAIM_FEES_DISCRIMINATOR = new Uint8Array([
3519
3495
  82,
3520
3496
  251,
@@ -3526,21 +3502,21 @@ var CLAIM_FEES_DISCRIMINATOR = new Uint8Array([
3526
3502
  202
3527
3503
  ]);
3528
3504
  function getClaimFeesDiscriminatorBytes() {
3529
- return (0, import_kit63.fixEncoderSize)((0, import_kit63.getBytesEncoder)(), 8).encode(CLAIM_FEES_DISCRIMINATOR);
3505
+ return (0, import_kit62.fixEncoderSize)((0, import_kit62.getBytesEncoder)(), 8).encode(CLAIM_FEES_DISCRIMINATOR);
3530
3506
  }
3531
3507
  function getClaimFeesInstructionDataEncoder() {
3532
- return (0, import_kit63.transformEncoder)(
3533
- (0, import_kit63.getStructEncoder)([["discriminator", (0, import_kit63.fixEncoderSize)((0, import_kit63.getBytesEncoder)(), 8)]]),
3508
+ return (0, import_kit62.transformEncoder)(
3509
+ (0, import_kit62.getStructEncoder)([["discriminator", (0, import_kit62.fixEncoderSize)((0, import_kit62.getBytesEncoder)(), 8)]]),
3534
3510
  (value) => ({ ...value, discriminator: CLAIM_FEES_DISCRIMINATOR })
3535
3511
  );
3536
3512
  }
3537
3513
  function getClaimFeesInstructionDataDecoder() {
3538
- return (0, import_kit63.getStructDecoder)([
3539
- ["discriminator", (0, import_kit63.fixDecoderSize)((0, import_kit63.getBytesDecoder)(), 8)]
3514
+ return (0, import_kit62.getStructDecoder)([
3515
+ ["discriminator", (0, import_kit62.fixDecoderSize)((0, import_kit62.getBytesDecoder)(), 8)]
3540
3516
  ]);
3541
3517
  }
3542
3518
  function getClaimFeesInstructionDataCodec() {
3543
- return (0, import_kit63.combineCodec)(
3519
+ return (0, import_kit62.combineCodec)(
3544
3520
  getClaimFeesInstructionDataEncoder(),
3545
3521
  getClaimFeesInstructionDataDecoder()
3546
3522
  );
@@ -3561,12 +3537,12 @@ async function getClaimFeesInstructionAsync(input, config) {
3561
3537
  };
3562
3538
  const accounts = originalAccounts;
3563
3539
  if (!accounts.marketTokenAta.value) {
3564
- accounts.marketTokenAta.value = await (0, import_kit63.getProgramDerivedAddress)({
3540
+ accounts.marketTokenAta.value = await (0, import_kit62.getProgramDerivedAddress)({
3565
3541
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
3566
3542
  seeds: [
3567
- (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3568
- (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3569
- (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3543
+ (0, import_kit62.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3544
+ (0, import_kit62.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3545
+ (0, import_kit62.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3570
3546
  ]
3571
3547
  });
3572
3548
  }
@@ -3640,6 +3616,140 @@ function parseClaimFeesInstruction(instruction) {
3640
3616
  };
3641
3617
  }
3642
3618
 
3619
+ // src/generated/instructions/claimRewards.ts
3620
+ var import_kit63 = require("@solana/kit");
3621
+ var CLAIM_REWARDS_DISCRIMINATOR = new Uint8Array([
3622
+ 4,
3623
+ 144,
3624
+ 132,
3625
+ 71,
3626
+ 116,
3627
+ 23,
3628
+ 151,
3629
+ 80
3630
+ ]);
3631
+ function getClaimRewardsDiscriminatorBytes() {
3632
+ return (0, import_kit63.fixEncoderSize)((0, import_kit63.getBytesEncoder)(), 8).encode(
3633
+ CLAIM_REWARDS_DISCRIMINATOR
3634
+ );
3635
+ }
3636
+ function getClaimRewardsInstructionDataEncoder() {
3637
+ return (0, import_kit63.transformEncoder)(
3638
+ (0, import_kit63.getStructEncoder)([["discriminator", (0, import_kit63.fixEncoderSize)((0, import_kit63.getBytesEncoder)(), 8)]]),
3639
+ (value) => ({ ...value, discriminator: CLAIM_REWARDS_DISCRIMINATOR })
3640
+ );
3641
+ }
3642
+ function getClaimRewardsInstructionDataDecoder() {
3643
+ return (0, import_kit63.getStructDecoder)([
3644
+ ["discriminator", (0, import_kit63.fixDecoderSize)((0, import_kit63.getBytesDecoder)(), 8)]
3645
+ ]);
3646
+ }
3647
+ function getClaimRewardsInstructionDataCodec() {
3648
+ return (0, import_kit63.combineCodec)(
3649
+ getClaimRewardsInstructionDataEncoder(),
3650
+ getClaimRewardsInstructionDataDecoder()
3651
+ );
3652
+ }
3653
+ async function getClaimRewardsInstructionAsync(input, config) {
3654
+ const programAddress = config?.programAddress ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
3655
+ const originalAccounts = {
3656
+ owner: { value: input.owner ?? null, isWritable: true },
3657
+ market: { value: input.market ?? null, isWritable: true },
3658
+ stakeAccount: { value: input.stakeAccount ?? null, isWritable: true },
3659
+ option: { value: input.option ?? null, isWritable: true },
3660
+ tokenMint: { value: input.tokenMint ?? null, isWritable: false },
3661
+ marketTokenAta: { value: input.marketTokenAta ?? null, isWritable: true },
3662
+ ownerTokenAccount: {
3663
+ value: input.ownerTokenAccount ?? null,
3664
+ isWritable: true
3665
+ },
3666
+ tokenProgram: { value: input.tokenProgram ?? null, isWritable: false }
3667
+ };
3668
+ const accounts = originalAccounts;
3669
+ if (!accounts.marketTokenAta.value) {
3670
+ accounts.marketTokenAta.value = await (0, import_kit63.getProgramDerivedAddress)({
3671
+ programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
3672
+ seeds: [
3673
+ (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3674
+ (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3675
+ (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3676
+ ]
3677
+ });
3678
+ }
3679
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
3680
+ return Object.freeze({
3681
+ accounts: [
3682
+ getAccountMeta(accounts.owner),
3683
+ getAccountMeta(accounts.market),
3684
+ getAccountMeta(accounts.stakeAccount),
3685
+ getAccountMeta(accounts.option),
3686
+ getAccountMeta(accounts.tokenMint),
3687
+ getAccountMeta(accounts.marketTokenAta),
3688
+ getAccountMeta(accounts.ownerTokenAccount),
3689
+ getAccountMeta(accounts.tokenProgram)
3690
+ ],
3691
+ data: getClaimRewardsInstructionDataEncoder().encode({}),
3692
+ programAddress
3693
+ });
3694
+ }
3695
+ function getClaimRewardsInstruction(input, config) {
3696
+ const programAddress = config?.programAddress ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
3697
+ const originalAccounts = {
3698
+ owner: { value: input.owner ?? null, isWritable: true },
3699
+ market: { value: input.market ?? null, isWritable: true },
3700
+ stakeAccount: { value: input.stakeAccount ?? null, isWritable: true },
3701
+ option: { value: input.option ?? null, isWritable: true },
3702
+ tokenMint: { value: input.tokenMint ?? null, isWritable: false },
3703
+ marketTokenAta: { value: input.marketTokenAta ?? null, isWritable: true },
3704
+ ownerTokenAccount: {
3705
+ value: input.ownerTokenAccount ?? null,
3706
+ isWritable: true
3707
+ },
3708
+ tokenProgram: { value: input.tokenProgram ?? null, isWritable: false }
3709
+ };
3710
+ const accounts = originalAccounts;
3711
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
3712
+ return Object.freeze({
3713
+ accounts: [
3714
+ getAccountMeta(accounts.owner),
3715
+ getAccountMeta(accounts.market),
3716
+ getAccountMeta(accounts.stakeAccount),
3717
+ getAccountMeta(accounts.option),
3718
+ getAccountMeta(accounts.tokenMint),
3719
+ getAccountMeta(accounts.marketTokenAta),
3720
+ getAccountMeta(accounts.ownerTokenAccount),
3721
+ getAccountMeta(accounts.tokenProgram)
3722
+ ],
3723
+ data: getClaimRewardsInstructionDataEncoder().encode({}),
3724
+ programAddress
3725
+ });
3726
+ }
3727
+ function parseClaimRewardsInstruction(instruction) {
3728
+ if (instruction.accounts.length < 8) {
3729
+ throw new Error("Not enough accounts");
3730
+ }
3731
+ let accountIndex = 0;
3732
+ const getNextAccount = () => {
3733
+ const accountMeta = instruction.accounts[accountIndex];
3734
+ accountIndex += 1;
3735
+ return accountMeta;
3736
+ };
3737
+ return {
3738
+ programAddress: instruction.programAddress,
3739
+ accounts: {
3740
+ owner: getNextAccount(),
3741
+ market: getNextAccount(),
3742
+ stakeAccount: getNextAccount(),
3743
+ option: getNextAccount(),
3744
+ tokenMint: getNextAccount(),
3745
+ marketTokenAta: getNextAccount(),
3746
+ ownerTokenAccount: getNextAccount(),
3747
+ tokenProgram: getNextAccount()
3748
+ },
3749
+ data: getClaimRewardsInstructionDataDecoder().decode(instruction.data)
3750
+ };
3751
+ }
3752
+
3643
3753
  // src/generated/instructions/closeOptionAccount.ts
3644
3754
  var import_kit64 = require("@solana/kit");
3645
3755
  var CLOSE_OPTION_ACCOUNT_DISCRIMINATOR = new Uint8Array([
@@ -3792,19 +3902,13 @@ function getCloseStakeAccountDiscriminatorBytes() {
3792
3902
  }
3793
3903
  function getCloseStakeAccountInstructionDataEncoder() {
3794
3904
  return (0, import_kit65.transformEncoder)(
3795
- (0, import_kit65.getStructEncoder)([
3796
- ["discriminator", (0, import_kit65.fixEncoderSize)((0, import_kit65.getBytesEncoder)(), 8)],
3797
- ["optionId", (0, import_kit65.getU64Encoder)()],
3798
- ["stakeAccountId", (0, import_kit65.getU32Encoder)()]
3799
- ]),
3905
+ (0, import_kit65.getStructEncoder)([["discriminator", (0, import_kit65.fixEncoderSize)((0, import_kit65.getBytesEncoder)(), 8)]]),
3800
3906
  (value) => ({ ...value, discriminator: CLOSE_STAKE_ACCOUNT_DISCRIMINATOR })
3801
3907
  );
3802
3908
  }
3803
3909
  function getCloseStakeAccountInstructionDataDecoder() {
3804
3910
  return (0, import_kit65.getStructDecoder)([
3805
- ["discriminator", (0, import_kit65.fixDecoderSize)((0, import_kit65.getBytesDecoder)(), 8)],
3806
- ["optionId", (0, import_kit65.getU64Decoder)()],
3807
- ["stakeAccountId", (0, import_kit65.getU32Decoder)()]
3911
+ ["discriminator", (0, import_kit65.fixDecoderSize)((0, import_kit65.getBytesDecoder)(), 8)]
3808
3912
  ]);
3809
3913
  }
3810
3914
  function getCloseStakeAccountInstructionDataCodec() {
@@ -3830,46 +3934,6 @@ async function getCloseStakeAccountInstructionAsync(input, config) {
3830
3934
  systemProgram: { value: input.systemProgram ?? null, isWritable: false }
3831
3935
  };
3832
3936
  const accounts = originalAccounts;
3833
- const args = { ...input };
3834
- if (!accounts.stakeAccount.value) {
3835
- accounts.stakeAccount.value = await (0, import_kit65.getProgramDerivedAddress)({
3836
- programAddress,
3837
- seeds: [
3838
- (0, import_kit65.getBytesEncoder)().encode(
3839
- new Uint8Array([
3840
- 115,
3841
- 116,
3842
- 97,
3843
- 107,
3844
- 101,
3845
- 95,
3846
- 97,
3847
- 99,
3848
- 99,
3849
- 111,
3850
- 117,
3851
- 110,
3852
- 116
3853
- ])
3854
- ),
3855
- (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
3856
- (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3857
- (0, import_kit65.getU32Encoder)().encode(expectSome(args.stakeAccountId))
3858
- ]
3859
- });
3860
- }
3861
- if (!accounts.option.value) {
3862
- accounts.option.value = await (0, import_kit65.getProgramDerivedAddress)({
3863
- programAddress,
3864
- seeds: [
3865
- (0, import_kit65.getBytesEncoder)().encode(
3866
- new Uint8Array([111, 112, 116, 105, 111, 110])
3867
- ),
3868
- (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3869
- (0, import_kit65.getU64Encoder)().encode(expectSome(args.optionId))
3870
- ]
3871
- });
3872
- }
3873
3937
  if (!accounts.marketTokenAta.value) {
3874
3938
  accounts.marketTokenAta.value = await (0, import_kit65.getProgramDerivedAddress)({
3875
3939
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
@@ -3896,9 +3960,7 @@ async function getCloseStakeAccountInstructionAsync(input, config) {
3896
3960
  getAccountMeta(accounts.tokenProgram),
3897
3961
  getAccountMeta(accounts.systemProgram)
3898
3962
  ],
3899
- data: getCloseStakeAccountInstructionDataEncoder().encode(
3900
- args
3901
- ),
3963
+ data: getCloseStakeAccountInstructionDataEncoder().encode({}),
3902
3964
  programAddress
3903
3965
  });
3904
3966
  }
@@ -3919,7 +3981,6 @@ function getCloseStakeAccountInstruction(input, config) {
3919
3981
  systemProgram: { value: input.systemProgram ?? null, isWritable: false }
3920
3982
  };
3921
3983
  const accounts = originalAccounts;
3922
- const args = { ...input };
3923
3984
  if (!accounts.systemProgram.value) {
3924
3985
  accounts.systemProgram.value = "11111111111111111111111111111111";
3925
3986
  }
@@ -3936,9 +3997,7 @@ function getCloseStakeAccountInstruction(input, config) {
3936
3997
  getAccountMeta(accounts.tokenProgram),
3937
3998
  getAccountMeta(accounts.systemProgram)
3938
3999
  ],
3939
- data: getCloseStakeAccountInstructionDataEncoder().encode(
3940
- args
3941
- ),
4000
+ data: getCloseStakeAccountInstructionDataEncoder().encode({}),
3942
4001
  programAddress
3943
4002
  });
3944
4003
  }
@@ -4151,8 +4210,153 @@ function parseCloseStuckStakeAccountInstruction(instruction) {
4151
4210
  };
4152
4211
  }
4153
4212
 
4154
- // src/generated/instructions/createMarket.ts
4213
+ // src/generated/instructions/closeUnrevealedStakeAccount.ts
4155
4214
  var import_kit67 = require("@solana/kit");
4215
+ var CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
4216
+ 171,
4217
+ 229,
4218
+ 236,
4219
+ 216,
4220
+ 122,
4221
+ 118,
4222
+ 188,
4223
+ 103
4224
+ ]);
4225
+ function getCloseUnrevealedStakeAccountDiscriminatorBytes() {
4226
+ return (0, import_kit67.fixEncoderSize)((0, import_kit67.getBytesEncoder)(), 8).encode(
4227
+ CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR
4228
+ );
4229
+ }
4230
+ function getCloseUnrevealedStakeAccountInstructionDataEncoder() {
4231
+ return (0, import_kit67.transformEncoder)(
4232
+ (0, import_kit67.getStructEncoder)([["discriminator", (0, import_kit67.fixEncoderSize)((0, import_kit67.getBytesEncoder)(), 8)]]),
4233
+ (value) => ({
4234
+ ...value,
4235
+ discriminator: CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR
4236
+ })
4237
+ );
4238
+ }
4239
+ function getCloseUnrevealedStakeAccountInstructionDataDecoder() {
4240
+ return (0, import_kit67.getStructDecoder)([
4241
+ ["discriminator", (0, import_kit67.fixDecoderSize)((0, import_kit67.getBytesDecoder)(), 8)]
4242
+ ]);
4243
+ }
4244
+ function getCloseUnrevealedStakeAccountInstructionDataCodec() {
4245
+ return (0, import_kit67.combineCodec)(
4246
+ getCloseUnrevealedStakeAccountInstructionDataEncoder(),
4247
+ getCloseUnrevealedStakeAccountInstructionDataDecoder()
4248
+ );
4249
+ }
4250
+ async function getCloseUnrevealedStakeAccountInstructionAsync(input, config) {
4251
+ const programAddress = config?.programAddress ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
4252
+ const originalAccounts = {
4253
+ owner: { value: input.owner ?? null, isWritable: true },
4254
+ market: { value: input.market ?? null, isWritable: true },
4255
+ stakeAccount: { value: input.stakeAccount ?? null, isWritable: true },
4256
+ tokenMint: { value: input.tokenMint ?? null, isWritable: false },
4257
+ marketTokenAta: { value: input.marketTokenAta ?? null, isWritable: true },
4258
+ ownerTokenAccount: {
4259
+ value: input.ownerTokenAccount ?? null,
4260
+ isWritable: true
4261
+ },
4262
+ tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
4263
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
4264
+ };
4265
+ const accounts = originalAccounts;
4266
+ if (!accounts.marketTokenAta.value) {
4267
+ accounts.marketTokenAta.value = await (0, import_kit67.getProgramDerivedAddress)({
4268
+ programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
4269
+ seeds: [
4270
+ (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4271
+ (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
4272
+ (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4273
+ ]
4274
+ });
4275
+ }
4276
+ if (!accounts.systemProgram.value) {
4277
+ accounts.systemProgram.value = "11111111111111111111111111111111";
4278
+ }
4279
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
4280
+ return Object.freeze({
4281
+ accounts: [
4282
+ getAccountMeta(accounts.owner),
4283
+ getAccountMeta(accounts.market),
4284
+ getAccountMeta(accounts.stakeAccount),
4285
+ getAccountMeta(accounts.tokenMint),
4286
+ getAccountMeta(accounts.marketTokenAta),
4287
+ getAccountMeta(accounts.ownerTokenAccount),
4288
+ getAccountMeta(accounts.tokenProgram),
4289
+ getAccountMeta(accounts.systemProgram)
4290
+ ],
4291
+ data: getCloseUnrevealedStakeAccountInstructionDataEncoder().encode({}),
4292
+ programAddress
4293
+ });
4294
+ }
4295
+ function getCloseUnrevealedStakeAccountInstruction(input, config) {
4296
+ const programAddress = config?.programAddress ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
4297
+ const originalAccounts = {
4298
+ owner: { value: input.owner ?? null, isWritable: true },
4299
+ market: { value: input.market ?? null, isWritable: true },
4300
+ stakeAccount: { value: input.stakeAccount ?? null, isWritable: true },
4301
+ tokenMint: { value: input.tokenMint ?? null, isWritable: false },
4302
+ marketTokenAta: { value: input.marketTokenAta ?? null, isWritable: true },
4303
+ ownerTokenAccount: {
4304
+ value: input.ownerTokenAccount ?? null,
4305
+ isWritable: true
4306
+ },
4307
+ tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
4308
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
4309
+ };
4310
+ const accounts = originalAccounts;
4311
+ if (!accounts.systemProgram.value) {
4312
+ accounts.systemProgram.value = "11111111111111111111111111111111";
4313
+ }
4314
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
4315
+ return Object.freeze({
4316
+ accounts: [
4317
+ getAccountMeta(accounts.owner),
4318
+ getAccountMeta(accounts.market),
4319
+ getAccountMeta(accounts.stakeAccount),
4320
+ getAccountMeta(accounts.tokenMint),
4321
+ getAccountMeta(accounts.marketTokenAta),
4322
+ getAccountMeta(accounts.ownerTokenAccount),
4323
+ getAccountMeta(accounts.tokenProgram),
4324
+ getAccountMeta(accounts.systemProgram)
4325
+ ],
4326
+ data: getCloseUnrevealedStakeAccountInstructionDataEncoder().encode({}),
4327
+ programAddress
4328
+ });
4329
+ }
4330
+ function parseCloseUnrevealedStakeAccountInstruction(instruction) {
4331
+ if (instruction.accounts.length < 8) {
4332
+ throw new Error("Not enough accounts");
4333
+ }
4334
+ let accountIndex = 0;
4335
+ const getNextAccount = () => {
4336
+ const accountMeta = instruction.accounts[accountIndex];
4337
+ accountIndex += 1;
4338
+ return accountMeta;
4339
+ };
4340
+ return {
4341
+ programAddress: instruction.programAddress,
4342
+ accounts: {
4343
+ owner: getNextAccount(),
4344
+ market: getNextAccount(),
4345
+ stakeAccount: getNextAccount(),
4346
+ tokenMint: getNextAccount(),
4347
+ marketTokenAta: getNextAccount(),
4348
+ ownerTokenAccount: getNextAccount(),
4349
+ tokenProgram: getNextAccount(),
4350
+ systemProgram: getNextAccount()
4351
+ },
4352
+ data: getCloseUnrevealedStakeAccountInstructionDataDecoder().decode(
4353
+ instruction.data
4354
+ )
4355
+ };
4356
+ }
4357
+
4358
+ // src/generated/instructions/createMarket.ts
4359
+ var import_kit68 = require("@solana/kit");
4156
4360
  var CREATE_MARKET_DISCRIMINATOR = new Uint8Array([
4157
4361
  103,
4158
4362
  226,
@@ -4164,43 +4368,39 @@ var CREATE_MARKET_DISCRIMINATOR = new Uint8Array([
4164
4368
  254
4165
4369
  ]);
4166
4370
  function getCreateMarketDiscriminatorBytes() {
4167
- return (0, import_kit67.fixEncoderSize)((0, import_kit67.getBytesEncoder)(), 8).encode(
4371
+ return (0, import_kit68.fixEncoderSize)((0, import_kit68.getBytesEncoder)(), 8).encode(
4168
4372
  CREATE_MARKET_DISCRIMINATOR
4169
4373
  );
4170
4374
  }
4171
4375
  function getCreateMarketInstructionDataEncoder() {
4172
- return (0, import_kit67.transformEncoder)(
4173
- (0, import_kit67.getStructEncoder)([
4174
- ["discriminator", (0, import_kit67.fixEncoderSize)((0, import_kit67.getBytesEncoder)(), 8)],
4175
- ["marketIndex", (0, import_kit67.getU64Encoder)()],
4176
- ["marketAuthority", (0, import_kit67.getAddressEncoder)()],
4177
- ["allowUnstakingEarly", (0, import_kit67.getBooleanEncoder)()],
4178
- ["authorizedReaderPubkey", (0, import_kit67.getArrayEncoder)((0, import_kit67.getU8Encoder)(), { size: 32 })],
4179
- ["revealPeriodAuthority", (0, import_kit67.getAddressEncoder)()],
4180
- ["earlinessCutoffSeconds", (0, import_kit67.getU64Encoder)()],
4181
- ["earlinessMultiplier", (0, import_kit67.getU16Encoder)()],
4182
- ["minStakeAmount", (0, import_kit67.getU64Encoder)()],
4183
- ["creatorFeeClaimer", (0, import_kit67.getAddressEncoder)()]
4376
+ return (0, import_kit68.transformEncoder)(
4377
+ (0, import_kit68.getStructEncoder)([
4378
+ ["discriminator", (0, import_kit68.fixEncoderSize)((0, import_kit68.getBytesEncoder)(), 8)],
4379
+ ["marketIndex", (0, import_kit68.getU64Encoder)()],
4380
+ ["marketAuthority", (0, import_kit68.getAddressEncoder)()],
4381
+ ["authorizedReaderPubkey", (0, import_kit68.getArrayEncoder)((0, import_kit68.getU8Encoder)(), { size: 32 })],
4382
+ ["earlinessCutoffSeconds", (0, import_kit68.getU64Encoder)()],
4383
+ ["earlinessMultiplier", (0, import_kit68.getU16Encoder)()],
4384
+ ["minStakeAmount", (0, import_kit68.getU64Encoder)()],
4385
+ ["creatorFeeClaimer", (0, import_kit68.getAddressEncoder)()]
4184
4386
  ]),
4185
4387
  (value) => ({ ...value, discriminator: CREATE_MARKET_DISCRIMINATOR })
4186
4388
  );
4187
4389
  }
4188
4390
  function getCreateMarketInstructionDataDecoder() {
4189
- return (0, import_kit67.getStructDecoder)([
4190
- ["discriminator", (0, import_kit67.fixDecoderSize)((0, import_kit67.getBytesDecoder)(), 8)],
4191
- ["marketIndex", (0, import_kit67.getU64Decoder)()],
4192
- ["marketAuthority", (0, import_kit67.getAddressDecoder)()],
4193
- ["allowUnstakingEarly", (0, import_kit67.getBooleanDecoder)()],
4194
- ["authorizedReaderPubkey", (0, import_kit67.getArrayDecoder)((0, import_kit67.getU8Decoder)(), { size: 32 })],
4195
- ["revealPeriodAuthority", (0, import_kit67.getAddressDecoder)()],
4196
- ["earlinessCutoffSeconds", (0, import_kit67.getU64Decoder)()],
4197
- ["earlinessMultiplier", (0, import_kit67.getU16Decoder)()],
4198
- ["minStakeAmount", (0, import_kit67.getU64Decoder)()],
4199
- ["creatorFeeClaimer", (0, import_kit67.getAddressDecoder)()]
4391
+ return (0, import_kit68.getStructDecoder)([
4392
+ ["discriminator", (0, import_kit68.fixDecoderSize)((0, import_kit68.getBytesDecoder)(), 8)],
4393
+ ["marketIndex", (0, import_kit68.getU64Decoder)()],
4394
+ ["marketAuthority", (0, import_kit68.getAddressDecoder)()],
4395
+ ["authorizedReaderPubkey", (0, import_kit68.getArrayDecoder)((0, import_kit68.getU8Decoder)(), { size: 32 })],
4396
+ ["earlinessCutoffSeconds", (0, import_kit68.getU64Decoder)()],
4397
+ ["earlinessMultiplier", (0, import_kit68.getU16Decoder)()],
4398
+ ["minStakeAmount", (0, import_kit68.getU64Decoder)()],
4399
+ ["creatorFeeClaimer", (0, import_kit68.getAddressDecoder)()]
4200
4400
  ]);
4201
4401
  }
4202
4402
  function getCreateMarketInstructionDataCodec() {
4203
- return (0, import_kit67.combineCodec)(
4403
+ return (0, import_kit68.combineCodec)(
4204
4404
  getCreateMarketInstructionDataEncoder(),
4205
4405
  getCreateMarketInstructionDataDecoder()
4206
4406
  );
@@ -4224,10 +4424,10 @@ async function getCreateMarketInstructionAsync(input, config) {
4224
4424
  const accounts = originalAccounts;
4225
4425
  const args = { ...input };
4226
4426
  if (!accounts.market.value) {
4227
- accounts.market.value = await (0, import_kit67.getProgramDerivedAddress)({
4427
+ accounts.market.value = await (0, import_kit68.getProgramDerivedAddress)({
4228
4428
  programAddress,
4229
4429
  seeds: [
4230
- (0, import_kit67.getBytesEncoder)().encode(
4430
+ (0, import_kit68.getBytesEncoder)().encode(
4231
4431
  new Uint8Array([
4232
4432
  111,
4233
4433
  112,
@@ -4249,29 +4449,29 @@ async function getCreateMarketInstructionAsync(input, config) {
4249
4449
  116
4250
4450
  ])
4251
4451
  ),
4252
- (0, import_kit67.getAddressEncoder)().encode(
4452
+ (0, import_kit68.getAddressEncoder)().encode(
4253
4453
  expectAddress(accounts.platformConfig.value)
4254
4454
  ),
4255
- (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.creator.value)),
4256
- (0, import_kit67.getU64Encoder)().encode(expectSome(args.marketIndex))
4455
+ (0, import_kit68.getAddressEncoder)().encode(expectAddress(accounts.creator.value)),
4456
+ (0, import_kit68.getU64Encoder)().encode(expectSome(args.marketIndex))
4257
4457
  ]
4258
4458
  });
4259
4459
  }
4260
4460
  if (!accounts.marketTokenAta.value) {
4261
- accounts.marketTokenAta.value = await (0, import_kit67.getProgramDerivedAddress)({
4461
+ accounts.marketTokenAta.value = await (0, import_kit68.getProgramDerivedAddress)({
4262
4462
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
4263
4463
  seeds: [
4264
- (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4265
- (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
4266
- (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4464
+ (0, import_kit68.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4465
+ (0, import_kit68.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
4466
+ (0, import_kit68.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4267
4467
  ]
4268
4468
  });
4269
4469
  }
4270
4470
  if (!accounts.allowedMint.value) {
4271
- accounts.allowedMint.value = await (0, import_kit67.getProgramDerivedAddress)({
4471
+ accounts.allowedMint.value = await (0, import_kit68.getProgramDerivedAddress)({
4272
4472
  programAddress,
4273
4473
  seeds: [
4274
- (0, import_kit67.getBytesEncoder)().encode(
4474
+ (0, import_kit68.getBytesEncoder)().encode(
4275
4475
  new Uint8Array([
4276
4476
  97,
4277
4477
  108,
@@ -4287,10 +4487,10 @@ async function getCreateMarketInstructionAsync(input, config) {
4287
4487
  116
4288
4488
  ])
4289
4489
  ),
4290
- (0, import_kit67.getAddressEncoder)().encode(
4490
+ (0, import_kit68.getAddressEncoder)().encode(
4291
4491
  expectAddress(accounts.platformConfig.value)
4292
4492
  ),
4293
- (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4493
+ (0, import_kit68.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4294
4494
  ]
4295
4495
  });
4296
4496
  }
@@ -4390,7 +4590,7 @@ function parseCreateMarketInstruction(instruction) {
4390
4590
  }
4391
4591
 
4392
4592
  // src/generated/instructions/endRevealPeriod.ts
4393
- var import_kit68 = require("@solana/kit");
4593
+ var import_kit69 = require("@solana/kit");
4394
4594
  var END_REVEAL_PERIOD_DISCRIMINATOR = new Uint8Array([
4395
4595
  144,
4396
4596
  81,
@@ -4402,23 +4602,23 @@ var END_REVEAL_PERIOD_DISCRIMINATOR = new Uint8Array([
4402
4602
  92
4403
4603
  ]);
4404
4604
  function getEndRevealPeriodDiscriminatorBytes() {
4405
- return (0, import_kit68.fixEncoderSize)((0, import_kit68.getBytesEncoder)(), 8).encode(
4605
+ return (0, import_kit69.fixEncoderSize)((0, import_kit69.getBytesEncoder)(), 8).encode(
4406
4606
  END_REVEAL_PERIOD_DISCRIMINATOR
4407
4607
  );
4408
4608
  }
4409
4609
  function getEndRevealPeriodInstructionDataEncoder() {
4410
- return (0, import_kit68.transformEncoder)(
4411
- (0, import_kit68.getStructEncoder)([["discriminator", (0, import_kit68.fixEncoderSize)((0, import_kit68.getBytesEncoder)(), 8)]]),
4610
+ return (0, import_kit69.transformEncoder)(
4611
+ (0, import_kit69.getStructEncoder)([["discriminator", (0, import_kit69.fixEncoderSize)((0, import_kit69.getBytesEncoder)(), 8)]]),
4412
4612
  (value) => ({ ...value, discriminator: END_REVEAL_PERIOD_DISCRIMINATOR })
4413
4613
  );
4414
4614
  }
4415
4615
  function getEndRevealPeriodInstructionDataDecoder() {
4416
- return (0, import_kit68.getStructDecoder)([
4417
- ["discriminator", (0, import_kit68.fixDecoderSize)((0, import_kit68.getBytesDecoder)(), 8)]
4616
+ return (0, import_kit69.getStructDecoder)([
4617
+ ["discriminator", (0, import_kit69.fixDecoderSize)((0, import_kit69.getBytesDecoder)(), 8)]
4418
4618
  ]);
4419
4619
  }
4420
4620
  function getEndRevealPeriodInstructionDataCodec() {
4421
- return (0, import_kit68.combineCodec)(
4621
+ return (0, import_kit69.combineCodec)(
4422
4622
  getEndRevealPeriodInstructionDataEncoder(),
4423
4623
  getEndRevealPeriodInstructionDataDecoder()
4424
4624
  );
@@ -4427,21 +4627,23 @@ function getEndRevealPeriodInstruction(input, config) {
4427
4627
  const programAddress = config?.programAddress ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
4428
4628
  const originalAccounts = {
4429
4629
  signer: { value: input.signer ?? null, isWritable: false },
4430
- market: { value: input.market ?? null, isWritable: true }
4630
+ market: { value: input.market ?? null, isWritable: true },
4631
+ platformConfig: { value: input.platformConfig ?? null, isWritable: false }
4431
4632
  };
4432
4633
  const accounts = originalAccounts;
4433
4634
  const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
4434
4635
  return Object.freeze({
4435
4636
  accounts: [
4436
4637
  getAccountMeta(accounts.signer),
4437
- getAccountMeta(accounts.market)
4638
+ getAccountMeta(accounts.market),
4639
+ getAccountMeta(accounts.platformConfig)
4438
4640
  ],
4439
4641
  data: getEndRevealPeriodInstructionDataEncoder().encode({}),
4440
4642
  programAddress
4441
4643
  });
4442
4644
  }
4443
4645
  function parseEndRevealPeriodInstruction(instruction) {
4444
- if (instruction.accounts.length < 2) {
4646
+ if (instruction.accounts.length < 3) {
4445
4647
  throw new Error("Not enough accounts");
4446
4648
  }
4447
4649
  let accountIndex = 0;
@@ -4452,13 +4654,17 @@ function parseEndRevealPeriodInstruction(instruction) {
4452
4654
  };
4453
4655
  return {
4454
4656
  programAddress: instruction.programAddress,
4455
- accounts: { signer: getNextAccount(), market: getNextAccount() },
4657
+ accounts: {
4658
+ signer: getNextAccount(),
4659
+ market: getNextAccount(),
4660
+ platformConfig: getNextAccount()
4661
+ },
4456
4662
  data: getEndRevealPeriodInstructionDataDecoder().decode(instruction.data)
4457
4663
  };
4458
4664
  }
4459
4665
 
4460
4666
  // src/generated/instructions/finalizeRevealStake.ts
4461
- var import_kit69 = require("@solana/kit");
4667
+ var import_kit70 = require("@solana/kit");
4462
4668
  var FINALIZE_REVEAL_STAKE_DISCRIMINATOR = new Uint8Array([
4463
4669
  92,
4464
4670
  201,
@@ -4470,16 +4676,16 @@ var FINALIZE_REVEAL_STAKE_DISCRIMINATOR = new Uint8Array([
4470
4676
  230
4471
4677
  ]);
4472
4678
  function getFinalizeRevealStakeDiscriminatorBytes() {
4473
- return (0, import_kit69.fixEncoderSize)((0, import_kit69.getBytesEncoder)(), 8).encode(
4679
+ return (0, import_kit70.fixEncoderSize)((0, import_kit70.getBytesEncoder)(), 8).encode(
4474
4680
  FINALIZE_REVEAL_STAKE_DISCRIMINATOR
4475
4681
  );
4476
4682
  }
4477
4683
  function getFinalizeRevealStakeInstructionDataEncoder() {
4478
- return (0, import_kit69.transformEncoder)(
4479
- (0, import_kit69.getStructEncoder)([
4480
- ["discriminator", (0, import_kit69.fixEncoderSize)((0, import_kit69.getBytesEncoder)(), 8)],
4481
- ["optionId", (0, import_kit69.getU64Encoder)()],
4482
- ["stakeAccountId", (0, import_kit69.getU32Encoder)()]
4684
+ return (0, import_kit70.transformEncoder)(
4685
+ (0, import_kit70.getStructEncoder)([
4686
+ ["discriminator", (0, import_kit70.fixEncoderSize)((0, import_kit70.getBytesEncoder)(), 8)],
4687
+ ["optionId", (0, import_kit70.getU64Encoder)()],
4688
+ ["stakeAccountId", (0, import_kit70.getU32Encoder)()]
4483
4689
  ]),
4484
4690
  (value) => ({
4485
4691
  ...value,
@@ -4488,14 +4694,14 @@ function getFinalizeRevealStakeInstructionDataEncoder() {
4488
4694
  );
4489
4695
  }
4490
4696
  function getFinalizeRevealStakeInstructionDataDecoder() {
4491
- return (0, import_kit69.getStructDecoder)([
4492
- ["discriminator", (0, import_kit69.fixDecoderSize)((0, import_kit69.getBytesDecoder)(), 8)],
4493
- ["optionId", (0, import_kit69.getU64Decoder)()],
4494
- ["stakeAccountId", (0, import_kit69.getU32Decoder)()]
4697
+ return (0, import_kit70.getStructDecoder)([
4698
+ ["discriminator", (0, import_kit70.fixDecoderSize)((0, import_kit70.getBytesDecoder)(), 8)],
4699
+ ["optionId", (0, import_kit70.getU64Decoder)()],
4700
+ ["stakeAccountId", (0, import_kit70.getU32Decoder)()]
4495
4701
  ]);
4496
4702
  }
4497
4703
  function getFinalizeRevealStakeInstructionDataCodec() {
4498
- return (0, import_kit69.combineCodec)(
4704
+ return (0, import_kit70.combineCodec)(
4499
4705
  getFinalizeRevealStakeInstructionDataEncoder(),
4500
4706
  getFinalizeRevealStakeInstructionDataDecoder()
4501
4707
  );
@@ -4513,10 +4719,10 @@ async function getFinalizeRevealStakeInstructionAsync(input, config) {
4513
4719
  const accounts = originalAccounts;
4514
4720
  const args = { ...input };
4515
4721
  if (!accounts.stakeAccount.value) {
4516
- accounts.stakeAccount.value = await (0, import_kit69.getProgramDerivedAddress)({
4722
+ accounts.stakeAccount.value = await (0, import_kit70.getProgramDerivedAddress)({
4517
4723
  programAddress,
4518
4724
  seeds: [
4519
- (0, import_kit69.getBytesEncoder)().encode(
4725
+ (0, import_kit70.getBytesEncoder)().encode(
4520
4726
  new Uint8Array([
4521
4727
  115,
4522
4728
  116,
@@ -4533,21 +4739,21 @@ async function getFinalizeRevealStakeInstructionAsync(input, config) {
4533
4739
  116
4534
4740
  ])
4535
4741
  ),
4536
- (0, import_kit69.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
4537
- (0, import_kit69.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4538
- (0, import_kit69.getU32Encoder)().encode(expectSome(args.stakeAccountId))
4742
+ (0, import_kit70.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
4743
+ (0, import_kit70.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4744
+ (0, import_kit70.getU32Encoder)().encode(expectSome(args.stakeAccountId))
4539
4745
  ]
4540
4746
  });
4541
4747
  }
4542
4748
  if (!accounts.option.value) {
4543
- accounts.option.value = await (0, import_kit69.getProgramDerivedAddress)({
4749
+ accounts.option.value = await (0, import_kit70.getProgramDerivedAddress)({
4544
4750
  programAddress,
4545
4751
  seeds: [
4546
- (0, import_kit69.getBytesEncoder)().encode(
4752
+ (0, import_kit70.getBytesEncoder)().encode(
4547
4753
  new Uint8Array([111, 112, 116, 105, 111, 110])
4548
4754
  ),
4549
- (0, import_kit69.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4550
- (0, import_kit69.getU64Encoder)().encode(expectSome(args.optionId))
4755
+ (0, import_kit70.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4756
+ (0, import_kit70.getU64Encoder)().encode(expectSome(args.optionId))
4551
4757
  ]
4552
4758
  });
4553
4759
  }
@@ -4628,7 +4834,7 @@ function parseFinalizeRevealStakeInstruction(instruction) {
4628
4834
  }
4629
4835
 
4630
4836
  // src/generated/instructions/initAllowedMint.ts
4631
- var import_kit70 = require("@solana/kit");
4837
+ var import_kit71 = require("@solana/kit");
4632
4838
  var INIT_ALLOWED_MINT_DISCRIMINATOR = new Uint8Array([
4633
4839
  215,
4634
4840
  70,
@@ -4640,23 +4846,23 @@ var INIT_ALLOWED_MINT_DISCRIMINATOR = new Uint8Array([
4640
4846
  10
4641
4847
  ]);
4642
4848
  function getInitAllowedMintDiscriminatorBytes() {
4643
- return (0, import_kit70.fixEncoderSize)((0, import_kit70.getBytesEncoder)(), 8).encode(
4849
+ return (0, import_kit71.fixEncoderSize)((0, import_kit71.getBytesEncoder)(), 8).encode(
4644
4850
  INIT_ALLOWED_MINT_DISCRIMINATOR
4645
4851
  );
4646
4852
  }
4647
4853
  function getInitAllowedMintInstructionDataEncoder() {
4648
- return (0, import_kit70.transformEncoder)(
4649
- (0, import_kit70.getStructEncoder)([["discriminator", (0, import_kit70.fixEncoderSize)((0, import_kit70.getBytesEncoder)(), 8)]]),
4854
+ return (0, import_kit71.transformEncoder)(
4855
+ (0, import_kit71.getStructEncoder)([["discriminator", (0, import_kit71.fixEncoderSize)((0, import_kit71.getBytesEncoder)(), 8)]]),
4650
4856
  (value) => ({ ...value, discriminator: INIT_ALLOWED_MINT_DISCRIMINATOR })
4651
4857
  );
4652
4858
  }
4653
4859
  function getInitAllowedMintInstructionDataDecoder() {
4654
- return (0, import_kit70.getStructDecoder)([
4655
- ["discriminator", (0, import_kit70.fixDecoderSize)((0, import_kit70.getBytesDecoder)(), 8)]
4860
+ return (0, import_kit71.getStructDecoder)([
4861
+ ["discriminator", (0, import_kit71.fixDecoderSize)((0, import_kit71.getBytesDecoder)(), 8)]
4656
4862
  ]);
4657
4863
  }
4658
4864
  function getInitAllowedMintInstructionDataCodec() {
4659
- return (0, import_kit70.combineCodec)(
4865
+ return (0, import_kit71.combineCodec)(
4660
4866
  getInitAllowedMintInstructionDataEncoder(),
4661
4867
  getInitAllowedMintInstructionDataDecoder()
4662
4868
  );
@@ -4672,10 +4878,10 @@ async function getInitAllowedMintInstructionAsync(input, config) {
4672
4878
  };
4673
4879
  const accounts = originalAccounts;
4674
4880
  if (!accounts.allowedMint.value) {
4675
- accounts.allowedMint.value = await (0, import_kit70.getProgramDerivedAddress)({
4881
+ accounts.allowedMint.value = await (0, import_kit71.getProgramDerivedAddress)({
4676
4882
  programAddress,
4677
4883
  seeds: [
4678
- (0, import_kit70.getBytesEncoder)().encode(
4884
+ (0, import_kit71.getBytesEncoder)().encode(
4679
4885
  new Uint8Array([
4680
4886
  97,
4681
4887
  108,
@@ -4691,10 +4897,10 @@ async function getInitAllowedMintInstructionAsync(input, config) {
4691
4897
  116
4692
4898
  ])
4693
4899
  ),
4694
- (0, import_kit70.getAddressEncoder)().encode(
4900
+ (0, import_kit71.getAddressEncoder)().encode(
4695
4901
  expectAddress(accounts.platformConfig.value)
4696
4902
  ),
4697
- (0, import_kit70.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4903
+ (0, import_kit71.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4698
4904
  ]
4699
4905
  });
4700
4906
  }
@@ -4764,7 +4970,7 @@ function parseInitAllowedMintInstruction(instruction) {
4764
4970
  }
4765
4971
 
4766
4972
  // src/generated/instructions/initPlatformConfig.ts
4767
- var import_kit71 = require("@solana/kit");
4973
+ var import_kit72 = require("@solana/kit");
4768
4974
  var INIT_PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
4769
4975
  101,
4770
4976
  52,
@@ -4776,43 +4982,43 @@ var INIT_PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
4776
4982
  118
4777
4983
  ]);
4778
4984
  function getInitPlatformConfigDiscriminatorBytes() {
4779
- return (0, import_kit71.fixEncoderSize)((0, import_kit71.getBytesEncoder)(), 8).encode(
4985
+ return (0, import_kit72.fixEncoderSize)((0, import_kit72.getBytesEncoder)(), 8).encode(
4780
4986
  INIT_PLATFORM_CONFIG_DISCRIMINATOR
4781
4987
  );
4782
4988
  }
4783
4989
  function getInitPlatformConfigInstructionDataEncoder() {
4784
- return (0, import_kit71.transformEncoder)(
4785
- (0, import_kit71.getStructEncoder)([
4786
- ["discriminator", (0, import_kit71.fixEncoderSize)((0, import_kit71.getBytesEncoder)(), 8)],
4787
- ["name", (0, import_kit71.addEncoderSizePrefix)((0, import_kit71.getUtf8Encoder)(), (0, import_kit71.getU32Encoder)())],
4788
- ["platformFeeBp", (0, import_kit71.getU16Encoder)()],
4789
- ["rewardPoolFeeBp", (0, import_kit71.getU16Encoder)()],
4790
- ["creatorFeeBp", (0, import_kit71.getU16Encoder)()],
4791
- ["feeClaimAuthority", (0, import_kit71.getAddressEncoder)()],
4792
- ["minTimeToStakeSeconds", (0, import_kit71.getU64Encoder)()],
4793
- ["minRevealPeriodSeconds", (0, import_kit71.getU64Encoder)()],
4794
- ["maxRevealPeriodSeconds", (0, import_kit71.getU64Encoder)()],
4795
- ["marketResolutionDeadlineSeconds", (0, import_kit71.getU64Encoder)()]
4990
+ return (0, import_kit72.transformEncoder)(
4991
+ (0, import_kit72.getStructEncoder)([
4992
+ ["discriminator", (0, import_kit72.fixEncoderSize)((0, import_kit72.getBytesEncoder)(), 8)],
4993
+ ["name", (0, import_kit72.addEncoderSizePrefix)((0, import_kit72.getUtf8Encoder)(), (0, import_kit72.getU32Encoder)())],
4994
+ ["platformFeeBp", (0, import_kit72.getU16Encoder)()],
4995
+ ["rewardPoolFeeBp", (0, import_kit72.getU16Encoder)()],
4996
+ ["creatorFeeBp", (0, import_kit72.getU16Encoder)()],
4997
+ ["feeClaimAuthority", (0, import_kit72.getAddressEncoder)()],
4998
+ ["revealAuthority", (0, import_kit72.getAddressEncoder)()],
4999
+ ["minTimeToStakeSeconds", (0, import_kit72.getU64Encoder)()],
5000
+ ["revealPeriodSeconds", (0, import_kit72.getU64Encoder)()],
5001
+ ["marketResolutionDeadlineSeconds", (0, import_kit72.getU64Encoder)()]
4796
5002
  ]),
4797
5003
  (value) => ({ ...value, discriminator: INIT_PLATFORM_CONFIG_DISCRIMINATOR })
4798
5004
  );
4799
5005
  }
4800
5006
  function getInitPlatformConfigInstructionDataDecoder() {
4801
- return (0, import_kit71.getStructDecoder)([
4802
- ["discriminator", (0, import_kit71.fixDecoderSize)((0, import_kit71.getBytesDecoder)(), 8)],
4803
- ["name", (0, import_kit71.addDecoderSizePrefix)((0, import_kit71.getUtf8Decoder)(), (0, import_kit71.getU32Decoder)())],
4804
- ["platformFeeBp", (0, import_kit71.getU16Decoder)()],
4805
- ["rewardPoolFeeBp", (0, import_kit71.getU16Decoder)()],
4806
- ["creatorFeeBp", (0, import_kit71.getU16Decoder)()],
4807
- ["feeClaimAuthority", (0, import_kit71.getAddressDecoder)()],
4808
- ["minTimeToStakeSeconds", (0, import_kit71.getU64Decoder)()],
4809
- ["minRevealPeriodSeconds", (0, import_kit71.getU64Decoder)()],
4810
- ["maxRevealPeriodSeconds", (0, import_kit71.getU64Decoder)()],
4811
- ["marketResolutionDeadlineSeconds", (0, import_kit71.getU64Decoder)()]
5007
+ return (0, import_kit72.getStructDecoder)([
5008
+ ["discriminator", (0, import_kit72.fixDecoderSize)((0, import_kit72.getBytesDecoder)(), 8)],
5009
+ ["name", (0, import_kit72.addDecoderSizePrefix)((0, import_kit72.getUtf8Decoder)(), (0, import_kit72.getU32Decoder)())],
5010
+ ["platformFeeBp", (0, import_kit72.getU16Decoder)()],
5011
+ ["rewardPoolFeeBp", (0, import_kit72.getU16Decoder)()],
5012
+ ["creatorFeeBp", (0, import_kit72.getU16Decoder)()],
5013
+ ["feeClaimAuthority", (0, import_kit72.getAddressDecoder)()],
5014
+ ["revealAuthority", (0, import_kit72.getAddressDecoder)()],
5015
+ ["minTimeToStakeSeconds", (0, import_kit72.getU64Decoder)()],
5016
+ ["revealPeriodSeconds", (0, import_kit72.getU64Decoder)()],
5017
+ ["marketResolutionDeadlineSeconds", (0, import_kit72.getU64Decoder)()]
4812
5018
  ]);
4813
5019
  }
4814
5020
  function getInitPlatformConfigInstructionDataCodec() {
4815
- return (0, import_kit71.combineCodec)(
5021
+ return (0, import_kit72.combineCodec)(
4816
5022
  getInitPlatformConfigInstructionDataEncoder(),
4817
5023
  getInitPlatformConfigInstructionDataDecoder()
4818
5024
  );
@@ -4827,10 +5033,10 @@ async function getInitPlatformConfigInstructionAsync(input, config) {
4827
5033
  const accounts = originalAccounts;
4828
5034
  const args = { ...input };
4829
5035
  if (!accounts.platformConfig.value) {
4830
- accounts.platformConfig.value = await (0, import_kit71.getProgramDerivedAddress)({
5036
+ accounts.platformConfig.value = await (0, import_kit72.getProgramDerivedAddress)({
4831
5037
  programAddress,
4832
5038
  seeds: [
4833
- (0, import_kit71.getBytesEncoder)().encode(
5039
+ (0, import_kit72.getBytesEncoder)().encode(
4834
5040
  new Uint8Array([
4835
5041
  112,
4836
5042
  108,
@@ -4849,8 +5055,8 @@ async function getInitPlatformConfigInstructionAsync(input, config) {
4849
5055
  103
4850
5056
  ])
4851
5057
  ),
4852
- (0, import_kit71.getAddressEncoder)().encode(expectAddress(accounts.payer.value)),
4853
- (0, import_kit71.getUtf8Encoder)().encode(expectSome(args.name))
5058
+ (0, import_kit72.getAddressEncoder)().encode(expectAddress(accounts.payer.value)),
5059
+ (0, import_kit72.getUtf8Encoder)().encode(expectSome(args.name))
4854
5060
  ]
4855
5061
  });
4856
5062
  }
@@ -4919,7 +5125,7 @@ function parseInitPlatformConfigInstruction(instruction) {
4919
5125
  }
4920
5126
 
4921
5127
  // src/generated/instructions/initStakeAccount.ts
4922
- var import_kit72 = require("@solana/kit");
5128
+ var import_kit73 = require("@solana/kit");
4923
5129
  var INIT_STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
4924
5130
  132,
4925
5131
  171,
@@ -4931,27 +5137,27 @@ var INIT_STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
4931
5137
  45
4932
5138
  ]);
4933
5139
  function getInitStakeAccountDiscriminatorBytes() {
4934
- return (0, import_kit72.fixEncoderSize)((0, import_kit72.getBytesEncoder)(), 8).encode(
5140
+ return (0, import_kit73.fixEncoderSize)((0, import_kit73.getBytesEncoder)(), 8).encode(
4935
5141
  INIT_STAKE_ACCOUNT_DISCRIMINATOR
4936
5142
  );
4937
5143
  }
4938
5144
  function getInitStakeAccountInstructionDataEncoder() {
4939
- return (0, import_kit72.transformEncoder)(
4940
- (0, import_kit72.getStructEncoder)([
4941
- ["discriminator", (0, import_kit72.fixEncoderSize)((0, import_kit72.getBytesEncoder)(), 8)],
4942
- ["stakeAccountId", (0, import_kit72.getU32Encoder)()]
5145
+ return (0, import_kit73.transformEncoder)(
5146
+ (0, import_kit73.getStructEncoder)([
5147
+ ["discriminator", (0, import_kit73.fixEncoderSize)((0, import_kit73.getBytesEncoder)(), 8)],
5148
+ ["stakeAccountId", (0, import_kit73.getU32Encoder)()]
4943
5149
  ]),
4944
5150
  (value) => ({ ...value, discriminator: INIT_STAKE_ACCOUNT_DISCRIMINATOR })
4945
5151
  );
4946
5152
  }
4947
5153
  function getInitStakeAccountInstructionDataDecoder() {
4948
- return (0, import_kit72.getStructDecoder)([
4949
- ["discriminator", (0, import_kit72.fixDecoderSize)((0, import_kit72.getBytesDecoder)(), 8)],
4950
- ["stakeAccountId", (0, import_kit72.getU32Decoder)()]
5154
+ return (0, import_kit73.getStructDecoder)([
5155
+ ["discriminator", (0, import_kit73.fixDecoderSize)((0, import_kit73.getBytesDecoder)(), 8)],
5156
+ ["stakeAccountId", (0, import_kit73.getU32Decoder)()]
4951
5157
  ]);
4952
5158
  }
4953
5159
  function getInitStakeAccountInstructionDataCodec() {
4954
- return (0, import_kit72.combineCodec)(
5160
+ return (0, import_kit73.combineCodec)(
4955
5161
  getInitStakeAccountInstructionDataEncoder(),
4956
5162
  getInitStakeAccountInstructionDataDecoder()
4957
5163
  );
@@ -4968,10 +5174,10 @@ async function getInitStakeAccountInstructionAsync(input, config) {
4968
5174
  const accounts = originalAccounts;
4969
5175
  const args = { ...input };
4970
5176
  if (!accounts.stakeAccount.value) {
4971
- accounts.stakeAccount.value = await (0, import_kit72.getProgramDerivedAddress)({
5177
+ accounts.stakeAccount.value = await (0, import_kit73.getProgramDerivedAddress)({
4972
5178
  programAddress,
4973
5179
  seeds: [
4974
- (0, import_kit72.getBytesEncoder)().encode(
5180
+ (0, import_kit73.getBytesEncoder)().encode(
4975
5181
  new Uint8Array([
4976
5182
  115,
4977
5183
  116,
@@ -4988,9 +5194,9 @@ async function getInitStakeAccountInstructionAsync(input, config) {
4988
5194
  116
4989
5195
  ])
4990
5196
  ),
4991
- (0, import_kit72.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
4992
- (0, import_kit72.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4993
- (0, import_kit72.getU32Encoder)().encode(expectSome(args.stakeAccountId))
5197
+ (0, import_kit73.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
5198
+ (0, import_kit73.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
5199
+ (0, import_kit73.getU32Encoder)().encode(expectSome(args.stakeAccountId))
4994
5200
  ]
4995
5201
  });
4996
5202
  }
@@ -5065,7 +5271,7 @@ function parseInitStakeAccountInstruction(instruction) {
5065
5271
  }
5066
5272
 
5067
5273
  // src/generated/instructions/openMarket.ts
5068
- var import_kit73 = require("@solana/kit");
5274
+ var import_kit74 = require("@solana/kit");
5069
5275
  var OPEN_MARKET_DISCRIMINATOR = new Uint8Array([
5070
5276
  116,
5071
5277
  19,
@@ -5077,25 +5283,25 @@ var OPEN_MARKET_DISCRIMINATOR = new Uint8Array([
5077
5283
  44
5078
5284
  ]);
5079
5285
  function getOpenMarketDiscriminatorBytes() {
5080
- return (0, import_kit73.fixEncoderSize)((0, import_kit73.getBytesEncoder)(), 8).encode(OPEN_MARKET_DISCRIMINATOR);
5286
+ return (0, import_kit74.fixEncoderSize)((0, import_kit74.getBytesEncoder)(), 8).encode(OPEN_MARKET_DISCRIMINATOR);
5081
5287
  }
5082
5288
  function getOpenMarketInstructionDataEncoder() {
5083
- return (0, import_kit73.transformEncoder)(
5084
- (0, import_kit73.getStructEncoder)([
5085
- ["discriminator", (0, import_kit73.fixEncoderSize)((0, import_kit73.getBytesEncoder)(), 8)],
5086
- ["timeToStake", (0, import_kit73.getU64Encoder)()]
5289
+ return (0, import_kit74.transformEncoder)(
5290
+ (0, import_kit74.getStructEncoder)([
5291
+ ["discriminator", (0, import_kit74.fixEncoderSize)((0, import_kit74.getBytesEncoder)(), 8)],
5292
+ ["timeToStake", (0, import_kit74.getU64Encoder)()]
5087
5293
  ]),
5088
5294
  (value) => ({ ...value, discriminator: OPEN_MARKET_DISCRIMINATOR })
5089
5295
  );
5090
5296
  }
5091
5297
  function getOpenMarketInstructionDataDecoder() {
5092
- return (0, import_kit73.getStructDecoder)([
5093
- ["discriminator", (0, import_kit73.fixDecoderSize)((0, import_kit73.getBytesDecoder)(), 8)],
5094
- ["timeToStake", (0, import_kit73.getU64Decoder)()]
5298
+ return (0, import_kit74.getStructDecoder)([
5299
+ ["discriminator", (0, import_kit74.fixDecoderSize)((0, import_kit74.getBytesDecoder)(), 8)],
5300
+ ["timeToStake", (0, import_kit74.getU64Decoder)()]
5095
5301
  ]);
5096
5302
  }
5097
5303
  function getOpenMarketInstructionDataCodec() {
5098
- return (0, import_kit73.combineCodec)(
5304
+ return (0, import_kit74.combineCodec)(
5099
5305
  getOpenMarketInstructionDataEncoder(),
5100
5306
  getOpenMarketInstructionDataDecoder()
5101
5307
  );
@@ -5146,183 +5352,41 @@ function parseOpenMarketInstruction(instruction) {
5146
5352
  };
5147
5353
  }
5148
5354
 
5149
- // src/generated/instructions/pauseStaking.ts
5150
- var import_kit74 = require("@solana/kit");
5151
- var PAUSE_STAKING_DISCRIMINATOR = new Uint8Array([
5152
- 245,
5153
- 191,
5154
- 35,
5155
- 58,
5156
- 88,
5157
- 250,
5158
- 229,
5159
- 60
5160
- ]);
5161
- function getPauseStakingDiscriminatorBytes() {
5162
- return (0, import_kit74.fixEncoderSize)((0, import_kit74.getBytesEncoder)(), 8).encode(
5163
- PAUSE_STAKING_DISCRIMINATOR
5164
- );
5165
- }
5166
- function getPauseStakingInstructionDataEncoder() {
5167
- return (0, import_kit74.transformEncoder)(
5168
- (0, import_kit74.getStructEncoder)([["discriminator", (0, import_kit74.fixEncoderSize)((0, import_kit74.getBytesEncoder)(), 8)]]),
5169
- (value) => ({ ...value, discriminator: PAUSE_STAKING_DISCRIMINATOR })
5170
- );
5171
- }
5172
- function getPauseStakingInstructionDataDecoder() {
5173
- return (0, import_kit74.getStructDecoder)([
5174
- ["discriminator", (0, import_kit74.fixDecoderSize)((0, import_kit74.getBytesDecoder)(), 8)]
5175
- ]);
5176
- }
5177
- function getPauseStakingInstructionDataCodec() {
5178
- return (0, import_kit74.combineCodec)(
5179
- getPauseStakingInstructionDataEncoder(),
5180
- getPauseStakingInstructionDataDecoder()
5181
- );
5182
- }
5183
- function getPauseStakingInstruction(input, config) {
5184
- const programAddress = config?.programAddress ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
5185
- const originalAccounts = {
5186
- marketAuthority: {
5187
- value: input.marketAuthority ?? null,
5188
- isWritable: false
5189
- },
5190
- market: { value: input.market ?? null, isWritable: true }
5191
- };
5192
- const accounts = originalAccounts;
5193
- const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
5194
- return Object.freeze({
5195
- accounts: [
5196
- getAccountMeta(accounts.marketAuthority),
5197
- getAccountMeta(accounts.market)
5198
- ],
5199
- data: getPauseStakingInstructionDataEncoder().encode({}),
5200
- programAddress
5201
- });
5202
- }
5203
- function parsePauseStakingInstruction(instruction) {
5204
- if (instruction.accounts.length < 2) {
5205
- throw new Error("Not enough accounts");
5206
- }
5207
- let accountIndex = 0;
5208
- const getNextAccount = () => {
5209
- const accountMeta = instruction.accounts[accountIndex];
5210
- accountIndex += 1;
5211
- return accountMeta;
5212
- };
5213
- return {
5214
- programAddress: instruction.programAddress,
5215
- accounts: { marketAuthority: getNextAccount(), market: getNextAccount() },
5216
- data: getPauseStakingInstructionDataDecoder().decode(instruction.data)
5217
- };
5218
- }
5219
-
5220
5355
  // src/generated/instructions/resolveMarket.ts
5221
5356
  var import_kit75 = require("@solana/kit");
5222
5357
  var RESOLVE_MARKET_DISCRIMINATOR = new Uint8Array([
5223
- 155,
5224
- 23,
5225
- 80,
5226
- 173,
5227
- 46,
5228
- 74,
5229
- 23,
5230
- 239
5231
- ]);
5232
- function getResolveMarketDiscriminatorBytes() {
5233
- return (0, import_kit75.fixEncoderSize)((0, import_kit75.getBytesEncoder)(), 8).encode(
5234
- RESOLVE_MARKET_DISCRIMINATOR
5235
- );
5236
- }
5237
- function getResolveMarketInstructionDataEncoder() {
5238
- return (0, import_kit75.transformEncoder)(
5239
- (0, import_kit75.getStructEncoder)([["discriminator", (0, import_kit75.fixEncoderSize)((0, import_kit75.getBytesEncoder)(), 8)]]),
5240
- (value) => ({ ...value, discriminator: RESOLVE_MARKET_DISCRIMINATOR })
5241
- );
5242
- }
5243
- function getResolveMarketInstructionDataDecoder() {
5244
- return (0, import_kit75.getStructDecoder)([
5245
- ["discriminator", (0, import_kit75.fixDecoderSize)((0, import_kit75.getBytesDecoder)(), 8)]
5246
- ]);
5247
- }
5248
- function getResolveMarketInstructionDataCodec() {
5249
- return (0, import_kit75.combineCodec)(
5250
- getResolveMarketInstructionDataEncoder(),
5251
- getResolveMarketInstructionDataDecoder()
5252
- );
5253
- }
5254
- function getResolveMarketInstruction(input, config) {
5255
- const programAddress = config?.programAddress ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
5256
- const originalAccounts = {
5257
- marketAuthority: {
5258
- value: input.marketAuthority ?? null,
5259
- isWritable: false
5260
- },
5261
- market: { value: input.market ?? null, isWritable: true }
5262
- };
5263
- const accounts = originalAccounts;
5264
- const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
5265
- return Object.freeze({
5266
- accounts: [
5267
- getAccountMeta(accounts.marketAuthority),
5268
- getAccountMeta(accounts.market)
5269
- ],
5270
- data: getResolveMarketInstructionDataEncoder().encode({}),
5271
- programAddress
5272
- });
5273
- }
5274
- function parseResolveMarketInstruction(instruction) {
5275
- if (instruction.accounts.length < 2) {
5276
- throw new Error("Not enough accounts");
5277
- }
5278
- let accountIndex = 0;
5279
- const getNextAccount = () => {
5280
- const accountMeta = instruction.accounts[accountIndex];
5281
- accountIndex += 1;
5282
- return accountMeta;
5283
- };
5284
- return {
5285
- programAddress: instruction.programAddress,
5286
- accounts: { marketAuthority: getNextAccount(), market: getNextAccount() },
5287
- data: getResolveMarketInstructionDataDecoder().decode(instruction.data)
5288
- };
5289
- }
5290
-
5291
- // src/generated/instructions/resumeStaking.ts
5292
- var import_kit76 = require("@solana/kit");
5293
- var RESUME_STAKING_DISCRIMINATOR = new Uint8Array([
5294
- 31,
5295
- 200,
5296
- 175,
5358
+ 155,
5297
5359
  23,
5298
- 211,
5299
- 22,
5300
- 63,
5301
- 155
5360
+ 80,
5361
+ 173,
5362
+ 46,
5363
+ 74,
5364
+ 23,
5365
+ 239
5302
5366
  ]);
5303
- function getResumeStakingDiscriminatorBytes() {
5304
- return (0, import_kit76.fixEncoderSize)((0, import_kit76.getBytesEncoder)(), 8).encode(
5305
- RESUME_STAKING_DISCRIMINATOR
5367
+ function getResolveMarketDiscriminatorBytes() {
5368
+ return (0, import_kit75.fixEncoderSize)((0, import_kit75.getBytesEncoder)(), 8).encode(
5369
+ RESOLVE_MARKET_DISCRIMINATOR
5306
5370
  );
5307
5371
  }
5308
- function getResumeStakingInstructionDataEncoder() {
5309
- return (0, import_kit76.transformEncoder)(
5310
- (0, import_kit76.getStructEncoder)([["discriminator", (0, import_kit76.fixEncoderSize)((0, import_kit76.getBytesEncoder)(), 8)]]),
5311
- (value) => ({ ...value, discriminator: RESUME_STAKING_DISCRIMINATOR })
5372
+ function getResolveMarketInstructionDataEncoder() {
5373
+ return (0, import_kit75.transformEncoder)(
5374
+ (0, import_kit75.getStructEncoder)([["discriminator", (0, import_kit75.fixEncoderSize)((0, import_kit75.getBytesEncoder)(), 8)]]),
5375
+ (value) => ({ ...value, discriminator: RESOLVE_MARKET_DISCRIMINATOR })
5312
5376
  );
5313
5377
  }
5314
- function getResumeStakingInstructionDataDecoder() {
5315
- return (0, import_kit76.getStructDecoder)([
5316
- ["discriminator", (0, import_kit76.fixDecoderSize)((0, import_kit76.getBytesDecoder)(), 8)]
5378
+ function getResolveMarketInstructionDataDecoder() {
5379
+ return (0, import_kit75.getStructDecoder)([
5380
+ ["discriminator", (0, import_kit75.fixDecoderSize)((0, import_kit75.getBytesDecoder)(), 8)]
5317
5381
  ]);
5318
5382
  }
5319
- function getResumeStakingInstructionDataCodec() {
5320
- return (0, import_kit76.combineCodec)(
5321
- getResumeStakingInstructionDataEncoder(),
5322
- getResumeStakingInstructionDataDecoder()
5383
+ function getResolveMarketInstructionDataCodec() {
5384
+ return (0, import_kit75.combineCodec)(
5385
+ getResolveMarketInstructionDataEncoder(),
5386
+ getResolveMarketInstructionDataDecoder()
5323
5387
  );
5324
5388
  }
5325
- function getResumeStakingInstruction(input, config) {
5389
+ function getResolveMarketInstruction(input, config) {
5326
5390
  const programAddress = config?.programAddress ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
5327
5391
  const originalAccounts = {
5328
5392
  marketAuthority: {
@@ -5338,11 +5402,11 @@ function getResumeStakingInstruction(input, config) {
5338
5402
  getAccountMeta(accounts.marketAuthority),
5339
5403
  getAccountMeta(accounts.market)
5340
5404
  ],
5341
- data: getResumeStakingInstructionDataEncoder().encode({}),
5405
+ data: getResolveMarketInstructionDataEncoder().encode({}),
5342
5406
  programAddress
5343
5407
  });
5344
5408
  }
5345
- function parseResumeStakingInstruction(instruction) {
5409
+ function parseResolveMarketInstruction(instruction) {
5346
5410
  if (instruction.accounts.length < 2) {
5347
5411
  throw new Error("Not enough accounts");
5348
5412
  }
@@ -5355,12 +5419,12 @@ function parseResumeStakingInstruction(instruction) {
5355
5419
  return {
5356
5420
  programAddress: instruction.programAddress,
5357
5421
  accounts: { marketAuthority: getNextAccount(), market: getNextAccount() },
5358
- data: getResumeStakingInstructionDataDecoder().decode(instruction.data)
5422
+ data: getResolveMarketInstructionDataDecoder().decode(instruction.data)
5359
5423
  };
5360
5424
  }
5361
5425
 
5362
5426
  // src/generated/instructions/revealStake.ts
5363
- var import_kit77 = require("@solana/kit");
5427
+ var import_kit76 = require("@solana/kit");
5364
5428
  var REVEAL_STAKE_DISCRIMINATOR = new Uint8Array([
5365
5429
  107,
5366
5430
  229,
@@ -5372,29 +5436,29 @@ var REVEAL_STAKE_DISCRIMINATOR = new Uint8Array([
5372
5436
  188
5373
5437
  ]);
5374
5438
  function getRevealStakeDiscriminatorBytes() {
5375
- return (0, import_kit77.fixEncoderSize)((0, import_kit77.getBytesEncoder)(), 8).encode(
5439
+ return (0, import_kit76.fixEncoderSize)((0, import_kit76.getBytesEncoder)(), 8).encode(
5376
5440
  REVEAL_STAKE_DISCRIMINATOR
5377
5441
  );
5378
5442
  }
5379
5443
  function getRevealStakeInstructionDataEncoder() {
5380
- return (0, import_kit77.transformEncoder)(
5381
- (0, import_kit77.getStructEncoder)([
5382
- ["discriminator", (0, import_kit77.fixEncoderSize)((0, import_kit77.getBytesEncoder)(), 8)],
5383
- ["computationOffset", (0, import_kit77.getU64Encoder)()],
5384
- ["stakeAccountId", (0, import_kit77.getU32Encoder)()]
5444
+ return (0, import_kit76.transformEncoder)(
5445
+ (0, import_kit76.getStructEncoder)([
5446
+ ["discriminator", (0, import_kit76.fixEncoderSize)((0, import_kit76.getBytesEncoder)(), 8)],
5447
+ ["computationOffset", (0, import_kit76.getU64Encoder)()],
5448
+ ["stakeAccountId", (0, import_kit76.getU32Encoder)()]
5385
5449
  ]),
5386
5450
  (value) => ({ ...value, discriminator: REVEAL_STAKE_DISCRIMINATOR })
5387
5451
  );
5388
5452
  }
5389
5453
  function getRevealStakeInstructionDataDecoder() {
5390
- return (0, import_kit77.getStructDecoder)([
5391
- ["discriminator", (0, import_kit77.fixDecoderSize)((0, import_kit77.getBytesDecoder)(), 8)],
5392
- ["computationOffset", (0, import_kit77.getU64Decoder)()],
5393
- ["stakeAccountId", (0, import_kit77.getU32Decoder)()]
5454
+ return (0, import_kit76.getStructDecoder)([
5455
+ ["discriminator", (0, import_kit76.fixDecoderSize)((0, import_kit76.getBytesDecoder)(), 8)],
5456
+ ["computationOffset", (0, import_kit76.getU64Decoder)()],
5457
+ ["stakeAccountId", (0, import_kit76.getU32Decoder)()]
5394
5458
  ]);
5395
5459
  }
5396
5460
  function getRevealStakeInstructionDataCodec() {
5397
- return (0, import_kit77.combineCodec)(
5461
+ return (0, import_kit76.combineCodec)(
5398
5462
  getRevealStakeInstructionDataEncoder(),
5399
5463
  getRevealStakeInstructionDataDecoder()
5400
5464
  );
@@ -5424,10 +5488,10 @@ async function getRevealStakeInstructionAsync(input, config) {
5424
5488
  const accounts = originalAccounts;
5425
5489
  const args = { ...input };
5426
5490
  if (!accounts.stakeAccount.value) {
5427
- accounts.stakeAccount.value = await (0, import_kit77.getProgramDerivedAddress)({
5491
+ accounts.stakeAccount.value = await (0, import_kit76.getProgramDerivedAddress)({
5428
5492
  programAddress,
5429
5493
  seeds: [
5430
- (0, import_kit77.getBytesEncoder)().encode(
5494
+ (0, import_kit76.getBytesEncoder)().encode(
5431
5495
  new Uint8Array([
5432
5496
  115,
5433
5497
  116,
@@ -5444,17 +5508,17 @@ async function getRevealStakeInstructionAsync(input, config) {
5444
5508
  116
5445
5509
  ])
5446
5510
  ),
5447
- (0, import_kit77.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
5448
- (0, import_kit77.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
5449
- (0, import_kit77.getU32Encoder)().encode(expectSome(args.stakeAccountId))
5511
+ (0, import_kit76.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
5512
+ (0, import_kit76.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
5513
+ (0, import_kit76.getU32Encoder)().encode(expectSome(args.stakeAccountId))
5450
5514
  ]
5451
5515
  });
5452
5516
  }
5453
5517
  if (!accounts.signPdaAccount.value) {
5454
- accounts.signPdaAccount.value = await (0, import_kit77.getProgramDerivedAddress)({
5518
+ accounts.signPdaAccount.value = await (0, import_kit76.getProgramDerivedAddress)({
5455
5519
  programAddress,
5456
5520
  seeds: [
5457
- (0, import_kit77.getBytesEncoder)().encode(
5521
+ (0, import_kit76.getBytesEncoder)().encode(
5458
5522
  new Uint8Array([
5459
5523
  65,
5460
5524
  114,
@@ -5612,7 +5676,7 @@ function parseRevealStakeInstruction(instruction) {
5612
5676
  }
5613
5677
 
5614
5678
  // src/generated/instructions/revealStakeCallback.ts
5615
- var import_kit78 = require("@solana/kit");
5679
+ var import_kit77 = require("@solana/kit");
5616
5680
  var REVEAL_STAKE_CALLBACK_DISCRIMINATOR = new Uint8Array([
5617
5681
  79,
5618
5682
  19,
@@ -5624,34 +5688,34 @@ var REVEAL_STAKE_CALLBACK_DISCRIMINATOR = new Uint8Array([
5624
5688
  116
5625
5689
  ]);
5626
5690
  function getRevealStakeCallbackDiscriminatorBytes() {
5627
- return (0, import_kit78.fixEncoderSize)((0, import_kit78.getBytesEncoder)(), 8).encode(
5691
+ return (0, import_kit77.fixEncoderSize)((0, import_kit77.getBytesEncoder)(), 8).encode(
5628
5692
  REVEAL_STAKE_CALLBACK_DISCRIMINATOR
5629
5693
  );
5630
5694
  }
5631
5695
  function getRevealStakeCallbackInstructionDataEncoder() {
5632
- return (0, import_kit78.transformEncoder)(
5633
- (0, import_kit78.getStructEncoder)([
5634
- ["discriminator", (0, import_kit78.fixEncoderSize)((0, import_kit78.getBytesEncoder)(), 8)],
5696
+ return (0, import_kit77.transformEncoder)(
5697
+ (0, import_kit77.getStructEncoder)([
5698
+ ["discriminator", (0, import_kit77.fixEncoderSize)((0, import_kit77.getBytesEncoder)(), 8)],
5635
5699
  [
5636
5700
  "output",
5637
- (0, import_kit78.getDiscriminatedUnionEncoder)([
5701
+ (0, import_kit77.getDiscriminatedUnionEncoder)([
5638
5702
  [
5639
5703
  "Success",
5640
- (0, import_kit78.getStructEncoder)([
5704
+ (0, import_kit77.getStructEncoder)([
5641
5705
  [
5642
5706
  "fields",
5643
- (0, import_kit78.getTupleEncoder)([
5707
+ (0, import_kit77.getTupleEncoder)([
5644
5708
  getRevealStakeOutputEncoder(),
5645
- (0, import_kit78.getArrayEncoder)((0, import_kit78.getU8Encoder)(), { size: 64 })
5709
+ (0, import_kit77.getArrayEncoder)((0, import_kit77.getU8Encoder)(), { size: 64 })
5646
5710
  ])
5647
5711
  ]
5648
5712
  ])
5649
5713
  ],
5650
- ["Failure", (0, import_kit78.getUnitEncoder)()],
5714
+ ["Failure", (0, import_kit77.getUnitEncoder)()],
5651
5715
  [
5652
5716
  "MarkerForIdlBuildDoNotUseThis",
5653
- (0, import_kit78.getStructEncoder)([
5654
- ["fields", (0, import_kit78.getTupleEncoder)([getRevealStakeOutputEncoder()])]
5717
+ (0, import_kit77.getStructEncoder)([
5718
+ ["fields", (0, import_kit77.getTupleEncoder)([getRevealStakeOutputEncoder()])]
5655
5719
  ])
5656
5720
  ]
5657
5721
  ])
@@ -5664,28 +5728,28 @@ function getRevealStakeCallbackInstructionDataEncoder() {
5664
5728
  );
5665
5729
  }
5666
5730
  function getRevealStakeCallbackInstructionDataDecoder() {
5667
- return (0, import_kit78.getStructDecoder)([
5668
- ["discriminator", (0, import_kit78.fixDecoderSize)((0, import_kit78.getBytesDecoder)(), 8)],
5731
+ return (0, import_kit77.getStructDecoder)([
5732
+ ["discriminator", (0, import_kit77.fixDecoderSize)((0, import_kit77.getBytesDecoder)(), 8)],
5669
5733
  [
5670
5734
  "output",
5671
- (0, import_kit78.getDiscriminatedUnionDecoder)([
5735
+ (0, import_kit77.getDiscriminatedUnionDecoder)([
5672
5736
  [
5673
5737
  "Success",
5674
- (0, import_kit78.getStructDecoder)([
5738
+ (0, import_kit77.getStructDecoder)([
5675
5739
  [
5676
5740
  "fields",
5677
- (0, import_kit78.getTupleDecoder)([
5741
+ (0, import_kit77.getTupleDecoder)([
5678
5742
  getRevealStakeOutputDecoder(),
5679
- (0, import_kit78.getArrayDecoder)((0, import_kit78.getU8Decoder)(), { size: 64 })
5743
+ (0, import_kit77.getArrayDecoder)((0, import_kit77.getU8Decoder)(), { size: 64 })
5680
5744
  ])
5681
5745
  ]
5682
5746
  ])
5683
5747
  ],
5684
- ["Failure", (0, import_kit78.getUnitDecoder)()],
5748
+ ["Failure", (0, import_kit77.getUnitDecoder)()],
5685
5749
  [
5686
5750
  "MarkerForIdlBuildDoNotUseThis",
5687
- (0, import_kit78.getStructDecoder)([
5688
- ["fields", (0, import_kit78.getTupleDecoder)([getRevealStakeOutputDecoder()])]
5751
+ (0, import_kit77.getStructDecoder)([
5752
+ ["fields", (0, import_kit77.getTupleDecoder)([getRevealStakeOutputDecoder()])]
5689
5753
  ])
5690
5754
  ]
5691
5755
  ])
@@ -5693,7 +5757,7 @@ function getRevealStakeCallbackInstructionDataDecoder() {
5693
5757
  ]);
5694
5758
  }
5695
5759
  function getRevealStakeCallbackInstructionDataCodec() {
5696
- return (0, import_kit78.combineCodec)(
5760
+ return (0, import_kit77.combineCodec)(
5697
5761
  getRevealStakeCallbackInstructionDataEncoder(),
5698
5762
  getRevealStakeCallbackInstructionDataDecoder()
5699
5763
  );
@@ -5768,7 +5832,7 @@ function parseRevealStakeCallbackInstruction(instruction) {
5768
5832
  }
5769
5833
 
5770
5834
  // src/generated/instructions/revealStakeCompDef.ts
5771
- var import_kit79 = require("@solana/kit");
5835
+ var import_kit78 = require("@solana/kit");
5772
5836
  var REVEAL_STAKE_COMP_DEF_DISCRIMINATOR = new Uint8Array([
5773
5837
  197,
5774
5838
  20,
@@ -5780,13 +5844,13 @@ var REVEAL_STAKE_COMP_DEF_DISCRIMINATOR = new Uint8Array([
5780
5844
  0
5781
5845
  ]);
5782
5846
  function getRevealStakeCompDefDiscriminatorBytes() {
5783
- return (0, import_kit79.fixEncoderSize)((0, import_kit79.getBytesEncoder)(), 8).encode(
5847
+ return (0, import_kit78.fixEncoderSize)((0, import_kit78.getBytesEncoder)(), 8).encode(
5784
5848
  REVEAL_STAKE_COMP_DEF_DISCRIMINATOR
5785
5849
  );
5786
5850
  }
5787
5851
  function getRevealStakeCompDefInstructionDataEncoder() {
5788
- return (0, import_kit79.transformEncoder)(
5789
- (0, import_kit79.getStructEncoder)([["discriminator", (0, import_kit79.fixEncoderSize)((0, import_kit79.getBytesEncoder)(), 8)]]),
5852
+ return (0, import_kit78.transformEncoder)(
5853
+ (0, import_kit78.getStructEncoder)([["discriminator", (0, import_kit78.fixEncoderSize)((0, import_kit78.getBytesEncoder)(), 8)]]),
5790
5854
  (value) => ({
5791
5855
  ...value,
5792
5856
  discriminator: REVEAL_STAKE_COMP_DEF_DISCRIMINATOR
@@ -5794,12 +5858,12 @@ function getRevealStakeCompDefInstructionDataEncoder() {
5794
5858
  );
5795
5859
  }
5796
5860
  function getRevealStakeCompDefInstructionDataDecoder() {
5797
- return (0, import_kit79.getStructDecoder)([
5798
- ["discriminator", (0, import_kit79.fixDecoderSize)((0, import_kit79.getBytesDecoder)(), 8)]
5861
+ return (0, import_kit78.getStructDecoder)([
5862
+ ["discriminator", (0, import_kit78.fixDecoderSize)((0, import_kit78.getBytesDecoder)(), 8)]
5799
5863
  ]);
5800
5864
  }
5801
5865
  function getRevealStakeCompDefInstructionDataCodec() {
5802
- return (0, import_kit79.combineCodec)(
5866
+ return (0, import_kit78.combineCodec)(
5803
5867
  getRevealStakeCompDefInstructionDataEncoder(),
5804
5868
  getRevealStakeCompDefInstructionDataDecoder()
5805
5869
  );
@@ -5871,7 +5935,7 @@ function parseRevealStakeCompDefInstruction(instruction) {
5871
5935
  }
5872
5936
 
5873
5937
  // src/generated/instructions/setFeeClaimAuthority.ts
5874
- var import_kit80 = require("@solana/kit");
5938
+ var import_kit79 = require("@solana/kit");
5875
5939
  var SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR = new Uint8Array([
5876
5940
  75,
5877
5941
  250,
@@ -5883,13 +5947,13 @@ var SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR = new Uint8Array([
5883
5947
  3
5884
5948
  ]);
5885
5949
  function getSetFeeClaimAuthorityDiscriminatorBytes() {
5886
- return (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8).encode(
5950
+ return (0, import_kit79.fixEncoderSize)((0, import_kit79.getBytesEncoder)(), 8).encode(
5887
5951
  SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR
5888
5952
  );
5889
5953
  }
5890
5954
  function getSetFeeClaimAuthorityInstructionDataEncoder() {
5891
- return (0, import_kit80.transformEncoder)(
5892
- (0, import_kit80.getStructEncoder)([["discriminator", (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8)]]),
5955
+ return (0, import_kit79.transformEncoder)(
5956
+ (0, import_kit79.getStructEncoder)([["discriminator", (0, import_kit79.fixEncoderSize)((0, import_kit79.getBytesEncoder)(), 8)]]),
5893
5957
  (value) => ({
5894
5958
  ...value,
5895
5959
  discriminator: SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR
@@ -5897,12 +5961,12 @@ function getSetFeeClaimAuthorityInstructionDataEncoder() {
5897
5961
  );
5898
5962
  }
5899
5963
  function getSetFeeClaimAuthorityInstructionDataDecoder() {
5900
- return (0, import_kit80.getStructDecoder)([
5901
- ["discriminator", (0, import_kit80.fixDecoderSize)((0, import_kit80.getBytesDecoder)(), 8)]
5964
+ return (0, import_kit79.getStructDecoder)([
5965
+ ["discriminator", (0, import_kit79.fixDecoderSize)((0, import_kit79.getBytesDecoder)(), 8)]
5902
5966
  ]);
5903
5967
  }
5904
5968
  function getSetFeeClaimAuthorityInstructionDataCodec() {
5905
- return (0, import_kit80.combineCodec)(
5969
+ return (0, import_kit79.combineCodec)(
5906
5970
  getSetFeeClaimAuthorityInstructionDataEncoder(),
5907
5971
  getSetFeeClaimAuthorityInstructionDataDecoder()
5908
5972
  );
@@ -5956,7 +6020,7 @@ function parseSetFeeClaimAuthorityInstruction(instruction) {
5956
6020
  }
5957
6021
 
5958
6022
  // src/generated/instructions/setUpdateAuthority.ts
5959
- var import_kit81 = require("@solana/kit");
6023
+ var import_kit80 = require("@solana/kit");
5960
6024
  var SET_UPDATE_AUTHORITY_DISCRIMINATOR = new Uint8Array([
5961
6025
  166,
5962
6026
  198,
@@ -5968,23 +6032,23 @@ var SET_UPDATE_AUTHORITY_DISCRIMINATOR = new Uint8Array([
5968
6032
  155
5969
6033
  ]);
5970
6034
  function getSetUpdateAuthorityDiscriminatorBytes() {
5971
- return (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8).encode(
6035
+ return (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8).encode(
5972
6036
  SET_UPDATE_AUTHORITY_DISCRIMINATOR
5973
6037
  );
5974
6038
  }
5975
6039
  function getSetUpdateAuthorityInstructionDataEncoder() {
5976
- return (0, import_kit81.transformEncoder)(
5977
- (0, import_kit81.getStructEncoder)([["discriminator", (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8)]]),
6040
+ return (0, import_kit80.transformEncoder)(
6041
+ (0, import_kit80.getStructEncoder)([["discriminator", (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8)]]),
5978
6042
  (value) => ({ ...value, discriminator: SET_UPDATE_AUTHORITY_DISCRIMINATOR })
5979
6043
  );
5980
6044
  }
5981
6045
  function getSetUpdateAuthorityInstructionDataDecoder() {
5982
- return (0, import_kit81.getStructDecoder)([
5983
- ["discriminator", (0, import_kit81.fixDecoderSize)((0, import_kit81.getBytesDecoder)(), 8)]
6046
+ return (0, import_kit80.getStructDecoder)([
6047
+ ["discriminator", (0, import_kit80.fixDecoderSize)((0, import_kit80.getBytesDecoder)(), 8)]
5984
6048
  ]);
5985
6049
  }
5986
6050
  function getSetUpdateAuthorityInstructionDataCodec() {
5987
- return (0, import_kit81.combineCodec)(
6051
+ return (0, import_kit80.combineCodec)(
5988
6052
  getSetUpdateAuthorityInstructionDataEncoder(),
5989
6053
  getSetUpdateAuthorityInstructionDataDecoder()
5990
6054
  );
@@ -6035,7 +6099,7 @@ function parseSetUpdateAuthorityInstruction(instruction) {
6035
6099
  }
6036
6100
 
6037
6101
  // src/generated/instructions/setWinningOption.ts
6038
- var import_kit82 = require("@solana/kit");
6102
+ var import_kit81 = require("@solana/kit");
6039
6103
  var SET_WINNING_OPTION_DISCRIMINATOR = new Uint8Array([
6040
6104
  156,
6041
6105
  73,
@@ -6047,29 +6111,29 @@ var SET_WINNING_OPTION_DISCRIMINATOR = new Uint8Array([
6047
6111
  206
6048
6112
  ]);
6049
6113
  function getSetWinningOptionDiscriminatorBytes() {
6050
- return (0, import_kit82.fixEncoderSize)((0, import_kit82.getBytesEncoder)(), 8).encode(
6114
+ return (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8).encode(
6051
6115
  SET_WINNING_OPTION_DISCRIMINATOR
6052
6116
  );
6053
6117
  }
6054
6118
  function getSetWinningOptionInstructionDataEncoder() {
6055
- return (0, import_kit82.transformEncoder)(
6056
- (0, import_kit82.getStructEncoder)([
6057
- ["discriminator", (0, import_kit82.fixEncoderSize)((0, import_kit82.getBytesEncoder)(), 8)],
6058
- ["optionId", (0, import_kit82.getU64Encoder)()],
6059
- ["rewardBp", (0, import_kit82.getU16Encoder)()]
6119
+ return (0, import_kit81.transformEncoder)(
6120
+ (0, import_kit81.getStructEncoder)([
6121
+ ["discriminator", (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8)],
6122
+ ["optionId", (0, import_kit81.getU64Encoder)()],
6123
+ ["rewardBp", (0, import_kit81.getU16Encoder)()]
6060
6124
  ]),
6061
6125
  (value) => ({ ...value, discriminator: SET_WINNING_OPTION_DISCRIMINATOR })
6062
6126
  );
6063
6127
  }
6064
6128
  function getSetWinningOptionInstructionDataDecoder() {
6065
- return (0, import_kit82.getStructDecoder)([
6066
- ["discriminator", (0, import_kit82.fixDecoderSize)((0, import_kit82.getBytesDecoder)(), 8)],
6067
- ["optionId", (0, import_kit82.getU64Decoder)()],
6068
- ["rewardBp", (0, import_kit82.getU16Decoder)()]
6129
+ return (0, import_kit81.getStructDecoder)([
6130
+ ["discriminator", (0, import_kit81.fixDecoderSize)((0, import_kit81.getBytesDecoder)(), 8)],
6131
+ ["optionId", (0, import_kit81.getU64Decoder)()],
6132
+ ["rewardBp", (0, import_kit81.getU16Decoder)()]
6069
6133
  ]);
6070
6134
  }
6071
6135
  function getSetWinningOptionInstructionDataCodec() {
6072
- return (0, import_kit82.combineCodec)(
6136
+ return (0, import_kit81.combineCodec)(
6073
6137
  getSetWinningOptionInstructionDataEncoder(),
6074
6138
  getSetWinningOptionInstructionDataDecoder()
6075
6139
  );
@@ -6087,14 +6151,14 @@ async function getSetWinningOptionInstructionAsync(input, config) {
6087
6151
  const accounts = originalAccounts;
6088
6152
  const args = { ...input };
6089
6153
  if (!accounts.option.value) {
6090
- accounts.option.value = await (0, import_kit82.getProgramDerivedAddress)({
6154
+ accounts.option.value = await (0, import_kit81.getProgramDerivedAddress)({
6091
6155
  programAddress,
6092
6156
  seeds: [
6093
- (0, import_kit82.getBytesEncoder)().encode(
6157
+ (0, import_kit81.getBytesEncoder)().encode(
6094
6158
  new Uint8Array([111, 112, 116, 105, 111, 110])
6095
6159
  ),
6096
- (0, import_kit82.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6097
- (0, import_kit82.getU64Encoder)().encode(expectSome(args.optionId))
6160
+ (0, import_kit81.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6161
+ (0, import_kit81.getU64Encoder)().encode(expectSome(args.optionId))
6098
6162
  ]
6099
6163
  });
6100
6164
  }
@@ -6158,7 +6222,7 @@ function parseSetWinningOptionInstruction(instruction) {
6158
6222
  }
6159
6223
 
6160
6224
  // src/generated/instructions/stake.ts
6161
- var import_kit83 = require("@solana/kit");
6225
+ var import_kit82 = require("@solana/kit");
6162
6226
  var STAKE_DISCRIMINATOR = new Uint8Array([
6163
6227
  206,
6164
6228
  176,
@@ -6170,42 +6234,42 @@ var STAKE_DISCRIMINATOR = new Uint8Array([
6170
6234
  108
6171
6235
  ]);
6172
6236
  function getStakeDiscriminatorBytes() {
6173
- return (0, import_kit83.fixEncoderSize)((0, import_kit83.getBytesEncoder)(), 8).encode(STAKE_DISCRIMINATOR);
6237
+ return (0, import_kit82.fixEncoderSize)((0, import_kit82.getBytesEncoder)(), 8).encode(STAKE_DISCRIMINATOR);
6174
6238
  }
6175
6239
  function getStakeInstructionDataEncoder() {
6176
- return (0, import_kit83.transformEncoder)(
6177
- (0, import_kit83.getStructEncoder)([
6178
- ["discriminator", (0, import_kit83.fixEncoderSize)((0, import_kit83.getBytesEncoder)(), 8)],
6179
- ["computationOffset", (0, import_kit83.getU64Encoder)()],
6180
- ["stakeAccountId", (0, import_kit83.getU32Encoder)()],
6181
- ["amount", (0, import_kit83.getU64Encoder)()],
6240
+ return (0, import_kit82.transformEncoder)(
6241
+ (0, import_kit82.getStructEncoder)([
6242
+ ["discriminator", (0, import_kit82.fixEncoderSize)((0, import_kit82.getBytesEncoder)(), 8)],
6243
+ ["computationOffset", (0, import_kit82.getU64Encoder)()],
6244
+ ["stakeAccountId", (0, import_kit82.getU32Encoder)()],
6245
+ ["amount", (0, import_kit82.getU64Encoder)()],
6182
6246
  [
6183
6247
  "selectedOptionCiphertext",
6184
- (0, import_kit83.getArrayEncoder)((0, import_kit83.getU8Encoder)(), { size: 32 })
6248
+ (0, import_kit82.getArrayEncoder)((0, import_kit82.getU8Encoder)(), { size: 32 })
6185
6249
  ],
6186
- ["inputNonce", (0, import_kit83.getU128Encoder)()],
6187
- ["authorizedReaderNonce", (0, import_kit83.getU128Encoder)()],
6188
- ["userPubkey", (0, import_kit83.getArrayEncoder)((0, import_kit83.getU8Encoder)(), { size: 32 })],
6189
- ["stateNonce", (0, import_kit83.getU128Encoder)()]
6250
+ ["inputNonce", (0, import_kit82.getU128Encoder)()],
6251
+ ["authorizedReaderNonce", (0, import_kit82.getU128Encoder)()],
6252
+ ["userPubkey", (0, import_kit82.getArrayEncoder)((0, import_kit82.getU8Encoder)(), { size: 32 })],
6253
+ ["stateNonce", (0, import_kit82.getU128Encoder)()]
6190
6254
  ]),
6191
6255
  (value) => ({ ...value, discriminator: STAKE_DISCRIMINATOR })
6192
6256
  );
6193
6257
  }
6194
6258
  function getStakeInstructionDataDecoder() {
6195
- return (0, import_kit83.getStructDecoder)([
6196
- ["discriminator", (0, import_kit83.fixDecoderSize)((0, import_kit83.getBytesDecoder)(), 8)],
6197
- ["computationOffset", (0, import_kit83.getU64Decoder)()],
6198
- ["stakeAccountId", (0, import_kit83.getU32Decoder)()],
6199
- ["amount", (0, import_kit83.getU64Decoder)()],
6200
- ["selectedOptionCiphertext", (0, import_kit83.getArrayDecoder)((0, import_kit83.getU8Decoder)(), { size: 32 })],
6201
- ["inputNonce", (0, import_kit83.getU128Decoder)()],
6202
- ["authorizedReaderNonce", (0, import_kit83.getU128Decoder)()],
6203
- ["userPubkey", (0, import_kit83.getArrayDecoder)((0, import_kit83.getU8Decoder)(), { size: 32 })],
6204
- ["stateNonce", (0, import_kit83.getU128Decoder)()]
6259
+ return (0, import_kit82.getStructDecoder)([
6260
+ ["discriminator", (0, import_kit82.fixDecoderSize)((0, import_kit82.getBytesDecoder)(), 8)],
6261
+ ["computationOffset", (0, import_kit82.getU64Decoder)()],
6262
+ ["stakeAccountId", (0, import_kit82.getU32Decoder)()],
6263
+ ["amount", (0, import_kit82.getU64Decoder)()],
6264
+ ["selectedOptionCiphertext", (0, import_kit82.getArrayDecoder)((0, import_kit82.getU8Decoder)(), { size: 32 })],
6265
+ ["inputNonce", (0, import_kit82.getU128Decoder)()],
6266
+ ["authorizedReaderNonce", (0, import_kit82.getU128Decoder)()],
6267
+ ["userPubkey", (0, import_kit82.getArrayDecoder)((0, import_kit82.getU8Decoder)(), { size: 32 })],
6268
+ ["stateNonce", (0, import_kit82.getU128Decoder)()]
6205
6269
  ]);
6206
6270
  }
6207
6271
  function getStakeInstructionDataCodec() {
6208
- return (0, import_kit83.combineCodec)(
6272
+ return (0, import_kit82.combineCodec)(
6209
6273
  getStakeInstructionDataEncoder(),
6210
6274
  getStakeInstructionDataDecoder()
6211
6275
  );
@@ -6242,20 +6306,20 @@ async function getStakeInstructionAsync(input, config) {
6242
6306
  const accounts = originalAccounts;
6243
6307
  const args = { ...input };
6244
6308
  if (!accounts.marketTokenAta.value) {
6245
- accounts.marketTokenAta.value = await (0, import_kit83.getProgramDerivedAddress)({
6309
+ accounts.marketTokenAta.value = await (0, import_kit82.getProgramDerivedAddress)({
6246
6310
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
6247
6311
  seeds: [
6248
- (0, import_kit83.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6249
- (0, import_kit83.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
6250
- (0, import_kit83.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
6312
+ (0, import_kit82.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6313
+ (0, import_kit82.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
6314
+ (0, import_kit82.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
6251
6315
  ]
6252
6316
  });
6253
6317
  }
6254
6318
  if (!accounts.signPdaAccount.value) {
6255
- accounts.signPdaAccount.value = await (0, import_kit83.getProgramDerivedAddress)({
6319
+ accounts.signPdaAccount.value = await (0, import_kit82.getProgramDerivedAddress)({
6256
6320
  programAddress,
6257
6321
  seeds: [
6258
- (0, import_kit83.getBytesEncoder)().encode(
6322
+ (0, import_kit82.getBytesEncoder)().encode(
6259
6323
  new Uint8Array([
6260
6324
  65,
6261
6325
  114,
@@ -6432,7 +6496,7 @@ function parseStakeInstruction(instruction) {
6432
6496
  }
6433
6497
 
6434
6498
  // src/generated/instructions/stakeCallback.ts
6435
- var import_kit84 = require("@solana/kit");
6499
+ var import_kit83 = require("@solana/kit");
6436
6500
  var STAKE_CALLBACK_DISCRIMINATOR = new Uint8Array([
6437
6501
  40,
6438
6502
  220,
@@ -6444,34 +6508,34 @@ var STAKE_CALLBACK_DISCRIMINATOR = new Uint8Array([
6444
6508
  89
6445
6509
  ]);
6446
6510
  function getStakeCallbackDiscriminatorBytes() {
6447
- return (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8).encode(
6511
+ return (0, import_kit83.fixEncoderSize)((0, import_kit83.getBytesEncoder)(), 8).encode(
6448
6512
  STAKE_CALLBACK_DISCRIMINATOR
6449
6513
  );
6450
6514
  }
6451
6515
  function getStakeCallbackInstructionDataEncoder() {
6452
- return (0, import_kit84.transformEncoder)(
6453
- (0, import_kit84.getStructEncoder)([
6454
- ["discriminator", (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8)],
6516
+ return (0, import_kit83.transformEncoder)(
6517
+ (0, import_kit83.getStructEncoder)([
6518
+ ["discriminator", (0, import_kit83.fixEncoderSize)((0, import_kit83.getBytesEncoder)(), 8)],
6455
6519
  [
6456
6520
  "output",
6457
- (0, import_kit84.getDiscriminatedUnionEncoder)([
6521
+ (0, import_kit83.getDiscriminatedUnionEncoder)([
6458
6522
  [
6459
6523
  "Success",
6460
- (0, import_kit84.getStructEncoder)([
6524
+ (0, import_kit83.getStructEncoder)([
6461
6525
  [
6462
6526
  "fields",
6463
- (0, import_kit84.getTupleEncoder)([
6527
+ (0, import_kit83.getTupleEncoder)([
6464
6528
  getStakeOutputEncoder(),
6465
- (0, import_kit84.getArrayEncoder)((0, import_kit84.getU8Encoder)(), { size: 64 })
6529
+ (0, import_kit83.getArrayEncoder)((0, import_kit83.getU8Encoder)(), { size: 64 })
6466
6530
  ])
6467
6531
  ]
6468
6532
  ])
6469
6533
  ],
6470
- ["Failure", (0, import_kit84.getUnitEncoder)()],
6534
+ ["Failure", (0, import_kit83.getUnitEncoder)()],
6471
6535
  [
6472
6536
  "MarkerForIdlBuildDoNotUseThis",
6473
- (0, import_kit84.getStructEncoder)([
6474
- ["fields", (0, import_kit84.getTupleEncoder)([getStakeOutputEncoder()])]
6537
+ (0, import_kit83.getStructEncoder)([
6538
+ ["fields", (0, import_kit83.getTupleEncoder)([getStakeOutputEncoder()])]
6475
6539
  ])
6476
6540
  ]
6477
6541
  ])
@@ -6481,28 +6545,28 @@ function getStakeCallbackInstructionDataEncoder() {
6481
6545
  );
6482
6546
  }
6483
6547
  function getStakeCallbackInstructionDataDecoder() {
6484
- return (0, import_kit84.getStructDecoder)([
6485
- ["discriminator", (0, import_kit84.fixDecoderSize)((0, import_kit84.getBytesDecoder)(), 8)],
6548
+ return (0, import_kit83.getStructDecoder)([
6549
+ ["discriminator", (0, import_kit83.fixDecoderSize)((0, import_kit83.getBytesDecoder)(), 8)],
6486
6550
  [
6487
6551
  "output",
6488
- (0, import_kit84.getDiscriminatedUnionDecoder)([
6552
+ (0, import_kit83.getDiscriminatedUnionDecoder)([
6489
6553
  [
6490
6554
  "Success",
6491
- (0, import_kit84.getStructDecoder)([
6555
+ (0, import_kit83.getStructDecoder)([
6492
6556
  [
6493
6557
  "fields",
6494
- (0, import_kit84.getTupleDecoder)([
6558
+ (0, import_kit83.getTupleDecoder)([
6495
6559
  getStakeOutputDecoder(),
6496
- (0, import_kit84.getArrayDecoder)((0, import_kit84.getU8Decoder)(), { size: 64 })
6560
+ (0, import_kit83.getArrayDecoder)((0, import_kit83.getU8Decoder)(), { size: 64 })
6497
6561
  ])
6498
6562
  ]
6499
6563
  ])
6500
6564
  ],
6501
- ["Failure", (0, import_kit84.getUnitDecoder)()],
6565
+ ["Failure", (0, import_kit83.getUnitDecoder)()],
6502
6566
  [
6503
6567
  "MarkerForIdlBuildDoNotUseThis",
6504
- (0, import_kit84.getStructDecoder)([
6505
- ["fields", (0, import_kit84.getTupleDecoder)([getStakeOutputDecoder()])]
6568
+ (0, import_kit83.getStructDecoder)([
6569
+ ["fields", (0, import_kit83.getTupleDecoder)([getStakeOutputDecoder()])]
6506
6570
  ])
6507
6571
  ]
6508
6572
  ])
@@ -6510,7 +6574,7 @@ function getStakeCallbackInstructionDataDecoder() {
6510
6574
  ]);
6511
6575
  }
6512
6576
  function getStakeCallbackInstructionDataCodec() {
6513
- return (0, import_kit84.combineCodec)(
6577
+ return (0, import_kit83.combineCodec)(
6514
6578
  getStakeCallbackInstructionDataEncoder(),
6515
6579
  getStakeCallbackInstructionDataDecoder()
6516
6580
  );
@@ -6586,7 +6650,7 @@ function parseStakeCallbackInstruction(instruction) {
6586
6650
  }
6587
6651
 
6588
6652
  // src/generated/instructions/stakeCompDef.ts
6589
- var import_kit85 = require("@solana/kit");
6653
+ var import_kit84 = require("@solana/kit");
6590
6654
  var STAKE_COMP_DEF_DISCRIMINATOR = new Uint8Array([
6591
6655
  156,
6592
6656
  5,
@@ -6598,23 +6662,23 @@ var STAKE_COMP_DEF_DISCRIMINATOR = new Uint8Array([
6598
6662
  130
6599
6663
  ]);
6600
6664
  function getStakeCompDefDiscriminatorBytes() {
6601
- return (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
6665
+ return (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8).encode(
6602
6666
  STAKE_COMP_DEF_DISCRIMINATOR
6603
6667
  );
6604
6668
  }
6605
6669
  function getStakeCompDefInstructionDataEncoder() {
6606
- return (0, import_kit85.transformEncoder)(
6607
- (0, import_kit85.getStructEncoder)([["discriminator", (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8)]]),
6670
+ return (0, import_kit84.transformEncoder)(
6671
+ (0, import_kit84.getStructEncoder)([["discriminator", (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8)]]),
6608
6672
  (value) => ({ ...value, discriminator: STAKE_COMP_DEF_DISCRIMINATOR })
6609
6673
  );
6610
6674
  }
6611
6675
  function getStakeCompDefInstructionDataDecoder() {
6612
- return (0, import_kit85.getStructDecoder)([
6613
- ["discriminator", (0, import_kit85.fixDecoderSize)((0, import_kit85.getBytesDecoder)(), 8)]
6676
+ return (0, import_kit84.getStructDecoder)([
6677
+ ["discriminator", (0, import_kit84.fixDecoderSize)((0, import_kit84.getBytesDecoder)(), 8)]
6614
6678
  ]);
6615
6679
  }
6616
6680
  function getStakeCompDefInstructionDataCodec() {
6617
- return (0, import_kit85.combineCodec)(
6681
+ return (0, import_kit84.combineCodec)(
6618
6682
  getStakeCompDefInstructionDataEncoder(),
6619
6683
  getStakeCompDefInstructionDataDecoder()
6620
6684
  );
@@ -6684,7 +6748,7 @@ function parseStakeCompDefInstruction(instruction) {
6684
6748
  }
6685
6749
 
6686
6750
  // src/generated/instructions/unstake.ts
6687
- var import_kit86 = require("@solana/kit");
6751
+ var import_kit85 = require("@solana/kit");
6688
6752
  var UNSTAKE_DISCRIMINATOR = new Uint8Array([
6689
6753
  90,
6690
6754
  95,
@@ -6696,25 +6760,25 @@ var UNSTAKE_DISCRIMINATOR = new Uint8Array([
6696
6760
  225
6697
6761
  ]);
6698
6762
  function getUnstakeDiscriminatorBytes() {
6699
- return (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(UNSTAKE_DISCRIMINATOR);
6763
+ return (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(UNSTAKE_DISCRIMINATOR);
6700
6764
  }
6701
6765
  function getUnstakeInstructionDataEncoder() {
6702
- return (0, import_kit86.transformEncoder)(
6703
- (0, import_kit86.getStructEncoder)([
6704
- ["discriminator", (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8)],
6705
- ["stakeAccountId", (0, import_kit86.getU32Encoder)()]
6766
+ return (0, import_kit85.transformEncoder)(
6767
+ (0, import_kit85.getStructEncoder)([
6768
+ ["discriminator", (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8)],
6769
+ ["stakeAccountId", (0, import_kit85.getU32Encoder)()]
6706
6770
  ]),
6707
6771
  (value) => ({ ...value, discriminator: UNSTAKE_DISCRIMINATOR })
6708
6772
  );
6709
6773
  }
6710
6774
  function getUnstakeInstructionDataDecoder() {
6711
- return (0, import_kit86.getStructDecoder)([
6712
- ["discriminator", (0, import_kit86.fixDecoderSize)((0, import_kit86.getBytesDecoder)(), 8)],
6713
- ["stakeAccountId", (0, import_kit86.getU32Decoder)()]
6775
+ return (0, import_kit85.getStructDecoder)([
6776
+ ["discriminator", (0, import_kit85.fixDecoderSize)((0, import_kit85.getBytesDecoder)(), 8)],
6777
+ ["stakeAccountId", (0, import_kit85.getU32Decoder)()]
6714
6778
  ]);
6715
6779
  }
6716
6780
  function getUnstakeInstructionDataCodec() {
6717
- return (0, import_kit86.combineCodec)(
6781
+ return (0, import_kit85.combineCodec)(
6718
6782
  getUnstakeInstructionDataEncoder(),
6719
6783
  getUnstakeInstructionDataDecoder()
6720
6784
  );
@@ -6738,10 +6802,10 @@ async function getUnstakeInstructionAsync(input, config) {
6738
6802
  const accounts = originalAccounts;
6739
6803
  const args = { ...input };
6740
6804
  if (!accounts.stakeAccount.value) {
6741
- accounts.stakeAccount.value = await (0, import_kit86.getProgramDerivedAddress)({
6805
+ accounts.stakeAccount.value = await (0, import_kit85.getProgramDerivedAddress)({
6742
6806
  programAddress,
6743
6807
  seeds: [
6744
- (0, import_kit86.getBytesEncoder)().encode(
6808
+ (0, import_kit85.getBytesEncoder)().encode(
6745
6809
  new Uint8Array([
6746
6810
  115,
6747
6811
  116,
@@ -6758,19 +6822,19 @@ async function getUnstakeInstructionAsync(input, config) {
6758
6822
  116
6759
6823
  ])
6760
6824
  ),
6761
- (0, import_kit86.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
6762
- (0, import_kit86.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6763
- (0, import_kit86.getU32Encoder)().encode(expectSome(args.stakeAccountId))
6825
+ (0, import_kit85.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
6826
+ (0, import_kit85.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6827
+ (0, import_kit85.getU32Encoder)().encode(expectSome(args.stakeAccountId))
6764
6828
  ]
6765
6829
  });
6766
6830
  }
6767
6831
  if (!accounts.marketTokenAta.value) {
6768
- accounts.marketTokenAta.value = await (0, import_kit86.getProgramDerivedAddress)({
6832
+ accounts.marketTokenAta.value = await (0, import_kit85.getProgramDerivedAddress)({
6769
6833
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
6770
6834
  seeds: [
6771
- (0, import_kit86.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6772
- (0, import_kit86.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
6773
- (0, import_kit86.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
6835
+ (0, import_kit85.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6836
+ (0, import_kit85.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
6837
+ (0, import_kit85.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
6774
6838
  ]
6775
6839
  });
6776
6840
  }
@@ -6864,7 +6928,7 @@ function parseUnstakeInstruction(instruction) {
6864
6928
  }
6865
6929
 
6866
6930
  // src/generated/instructions/updatePlatformConfig.ts
6867
- var import_kit87 = require("@solana/kit");
6931
+ var import_kit86 = require("@solana/kit");
6868
6932
  var UPDATE_PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
6869
6933
  195,
6870
6934
  60,
@@ -6876,21 +6940,21 @@ var UPDATE_PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
6876
6940
  143
6877
6941
  ]);
6878
6942
  function getUpdatePlatformConfigDiscriminatorBytes() {
6879
- return (0, import_kit87.fixEncoderSize)((0, import_kit87.getBytesEncoder)(), 8).encode(
6943
+ return (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(
6880
6944
  UPDATE_PLATFORM_CONFIG_DISCRIMINATOR
6881
6945
  );
6882
6946
  }
6883
6947
  function getUpdatePlatformConfigInstructionDataEncoder() {
6884
- return (0, import_kit87.transformEncoder)(
6885
- (0, import_kit87.getStructEncoder)([
6886
- ["discriminator", (0, import_kit87.fixEncoderSize)((0, import_kit87.getBytesEncoder)(), 8)],
6887
- ["platformFeeBp", (0, import_kit87.getU16Encoder)()],
6888
- ["rewardPoolFeeBp", (0, import_kit87.getU16Encoder)()],
6889
- ["creatorFeeBp", (0, import_kit87.getU16Encoder)()],
6890
- ["minTimeToStakeSeconds", (0, import_kit87.getU64Encoder)()],
6891
- ["minRevealPeriodSeconds", (0, import_kit87.getU64Encoder)()],
6892
- ["maxRevealPeriodSeconds", (0, import_kit87.getU64Encoder)()],
6893
- ["marketResolutionDeadlineSeconds", (0, import_kit87.getU64Encoder)()]
6948
+ return (0, import_kit86.transformEncoder)(
6949
+ (0, import_kit86.getStructEncoder)([
6950
+ ["discriminator", (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8)],
6951
+ ["platformFeeBp", (0, import_kit86.getU16Encoder)()],
6952
+ ["rewardPoolFeeBp", (0, import_kit86.getU16Encoder)()],
6953
+ ["creatorFeeBp", (0, import_kit86.getU16Encoder)()],
6954
+ ["revealAuthority", (0, import_kit86.getAddressEncoder)()],
6955
+ ["minTimeToStakeSeconds", (0, import_kit86.getU64Encoder)()],
6956
+ ["revealPeriodSeconds", (0, import_kit86.getU64Encoder)()],
6957
+ ["marketResolutionDeadlineSeconds", (0, import_kit86.getU64Encoder)()]
6894
6958
  ]),
6895
6959
  (value) => ({
6896
6960
  ...value,
@@ -6899,19 +6963,19 @@ function getUpdatePlatformConfigInstructionDataEncoder() {
6899
6963
  );
6900
6964
  }
6901
6965
  function getUpdatePlatformConfigInstructionDataDecoder() {
6902
- return (0, import_kit87.getStructDecoder)([
6903
- ["discriminator", (0, import_kit87.fixDecoderSize)((0, import_kit87.getBytesDecoder)(), 8)],
6904
- ["platformFeeBp", (0, import_kit87.getU16Decoder)()],
6905
- ["rewardPoolFeeBp", (0, import_kit87.getU16Decoder)()],
6906
- ["creatorFeeBp", (0, import_kit87.getU16Decoder)()],
6907
- ["minTimeToStakeSeconds", (0, import_kit87.getU64Decoder)()],
6908
- ["minRevealPeriodSeconds", (0, import_kit87.getU64Decoder)()],
6909
- ["maxRevealPeriodSeconds", (0, import_kit87.getU64Decoder)()],
6910
- ["marketResolutionDeadlineSeconds", (0, import_kit87.getU64Decoder)()]
6966
+ return (0, import_kit86.getStructDecoder)([
6967
+ ["discriminator", (0, import_kit86.fixDecoderSize)((0, import_kit86.getBytesDecoder)(), 8)],
6968
+ ["platformFeeBp", (0, import_kit86.getU16Decoder)()],
6969
+ ["rewardPoolFeeBp", (0, import_kit86.getU16Decoder)()],
6970
+ ["creatorFeeBp", (0, import_kit86.getU16Decoder)()],
6971
+ ["revealAuthority", (0, import_kit86.getAddressDecoder)()],
6972
+ ["minTimeToStakeSeconds", (0, import_kit86.getU64Decoder)()],
6973
+ ["revealPeriodSeconds", (0, import_kit86.getU64Decoder)()],
6974
+ ["marketResolutionDeadlineSeconds", (0, import_kit86.getU64Decoder)()]
6911
6975
  ]);
6912
6976
  }
6913
6977
  function getUpdatePlatformConfigInstructionDataCodec() {
6914
- return (0, import_kit87.combineCodec)(
6978
+ return (0, import_kit86.combineCodec)(
6915
6979
  getUpdatePlatformConfigInstructionDataEncoder(),
6916
6980
  getUpdatePlatformConfigInstructionDataDecoder()
6917
6981
  );
@@ -6962,7 +7026,7 @@ function parseUpdatePlatformConfigInstruction(instruction) {
6962
7026
  }
6963
7027
 
6964
7028
  // src/generated/instructions/withdrawReward.ts
6965
- var import_kit88 = require("@solana/kit");
7029
+ var import_kit87 = require("@solana/kit");
6966
7030
  var WITHDRAW_REWARD_DISCRIMINATOR = new Uint8Array([
6967
7031
  191,
6968
7032
  187,
@@ -6974,23 +7038,23 @@ var WITHDRAW_REWARD_DISCRIMINATOR = new Uint8Array([
6974
7038
  244
6975
7039
  ]);
6976
7040
  function getWithdrawRewardDiscriminatorBytes() {
6977
- return (0, import_kit88.fixEncoderSize)((0, import_kit88.getBytesEncoder)(), 8).encode(
7041
+ return (0, import_kit87.fixEncoderSize)((0, import_kit87.getBytesEncoder)(), 8).encode(
6978
7042
  WITHDRAW_REWARD_DISCRIMINATOR
6979
7043
  );
6980
7044
  }
6981
7045
  function getWithdrawRewardInstructionDataEncoder() {
6982
- return (0, import_kit88.transformEncoder)(
6983
- (0, import_kit88.getStructEncoder)([["discriminator", (0, import_kit88.fixEncoderSize)((0, import_kit88.getBytesEncoder)(), 8)]]),
7046
+ return (0, import_kit87.transformEncoder)(
7047
+ (0, import_kit87.getStructEncoder)([["discriminator", (0, import_kit87.fixEncoderSize)((0, import_kit87.getBytesEncoder)(), 8)]]),
6984
7048
  (value) => ({ ...value, discriminator: WITHDRAW_REWARD_DISCRIMINATOR })
6985
7049
  );
6986
7050
  }
6987
7051
  function getWithdrawRewardInstructionDataDecoder() {
6988
- return (0, import_kit88.getStructDecoder)([
6989
- ["discriminator", (0, import_kit88.fixDecoderSize)((0, import_kit88.getBytesDecoder)(), 8)]
7052
+ return (0, import_kit87.getStructDecoder)([
7053
+ ["discriminator", (0, import_kit87.fixDecoderSize)((0, import_kit87.getBytesDecoder)(), 8)]
6990
7054
  ]);
6991
7055
  }
6992
7056
  function getWithdrawRewardInstructionDataCodec() {
6993
- return (0, import_kit88.combineCodec)(
7057
+ return (0, import_kit87.combineCodec)(
6994
7058
  getWithdrawRewardInstructionDataEncoder(),
6995
7059
  getWithdrawRewardInstructionDataDecoder()
6996
7060
  );
@@ -7011,24 +7075,24 @@ async function getWithdrawRewardInstructionAsync(input, config) {
7011
7075
  };
7012
7076
  const accounts = originalAccounts;
7013
7077
  if (!accounts.sponsorAccount.value) {
7014
- accounts.sponsorAccount.value = await (0, import_kit88.getProgramDerivedAddress)({
7078
+ accounts.sponsorAccount.value = await (0, import_kit87.getProgramDerivedAddress)({
7015
7079
  programAddress,
7016
7080
  seeds: [
7017
- (0, import_kit88.getBytesEncoder)().encode(
7081
+ (0, import_kit87.getBytesEncoder)().encode(
7018
7082
  new Uint8Array([115, 112, 111, 110, 115, 111, 114])
7019
7083
  ),
7020
- (0, import_kit88.getAddressEncoder)().encode(expectAddress(accounts.sponsor.value)),
7021
- (0, import_kit88.getAddressEncoder)().encode(expectAddress(accounts.market.value))
7084
+ (0, import_kit87.getAddressEncoder)().encode(expectAddress(accounts.sponsor.value)),
7085
+ (0, import_kit87.getAddressEncoder)().encode(expectAddress(accounts.market.value))
7022
7086
  ]
7023
7087
  });
7024
7088
  }
7025
7089
  if (!accounts.marketTokenAta.value) {
7026
- accounts.marketTokenAta.value = await (0, import_kit88.getProgramDerivedAddress)({
7090
+ accounts.marketTokenAta.value = await (0, import_kit87.getProgramDerivedAddress)({
7027
7091
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
7028
7092
  seeds: [
7029
- (0, import_kit88.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
7030
- (0, import_kit88.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
7031
- (0, import_kit88.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
7093
+ (0, import_kit87.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
7094
+ (0, import_kit87.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
7095
+ (0, import_kit87.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
7032
7096
  ]
7033
7097
  });
7034
7098
  }
@@ -7134,7 +7198,7 @@ async function createMarket(input) {
7134
7198
  }
7135
7199
 
7136
7200
  // src/instructions/initCompDef.ts
7137
- var import_kit89 = require("@solana/kit");
7201
+ var import_kit88 = require("@solana/kit");
7138
7202
  var import_client = require("@arcium-hq/client");
7139
7203
  var import_web3 = require("@solana/web3.js");
7140
7204
  var import_bn = require("bn.js");
@@ -7143,13 +7207,13 @@ var ALL_COMP_DEF_CIRCUITS = [
7143
7207
  "reveal_stake"
7144
7208
  ];
7145
7209
  function toAddress(pubkey) {
7146
- return (0, import_kit89.address)(pubkey.toBase58());
7210
+ return (0, import_kit88.address)(pubkey.toBase58());
7147
7211
  }
7148
7212
  async function getMxeAccount(rpc, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7149
7213
  const programIdLegacy = new import_web3.PublicKey(programId);
7150
7214
  const mxeAddress = toAddress((0, import_client.getMXEAccAddress)(programIdLegacy));
7151
- const encoded = await (0, import_kit89.fetchEncodedAccount)(rpc, mxeAddress);
7152
- (0, import_kit89.assertAccountExists)(encoded);
7215
+ const encoded = await (0, import_kit88.fetchEncodedAccount)(rpc, mxeAddress);
7216
+ (0, import_kit88.assertAccountExists)(encoded);
7153
7217
  const data = getMXEAccountDecoder().decode(encoded.data.slice(8));
7154
7218
  return { address: mxeAddress, data };
7155
7219
  }
@@ -7189,12 +7253,12 @@ async function getInitCompDefInstruction(rpc, payer, circuitName, config = {}) {
7189
7253
  }
7190
7254
 
7191
7255
  // src/arcium/computeAccounts.ts
7192
- var import_kit90 = require("@solana/kit");
7256
+ var import_kit89 = require("@solana/kit");
7193
7257
  var import_client2 = require("@arcium-hq/client");
7194
7258
  var import_web32 = require("@solana/web3.js");
7195
7259
  var import_bn2 = __toESM(require("bn.js"), 1);
7196
7260
  function toAddress2(pubkey) {
7197
- return (0, import_kit90.address)(pubkey.toBase58());
7261
+ return (0, import_kit89.address)(pubkey.toBase58());
7198
7262
  }
7199
7263
  function getComputeAccounts(ixName, config) {
7200
7264
  const programId = config.programId ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
@@ -7225,6 +7289,44 @@ function getComputeAccounts(ixName, config) {
7225
7289
  };
7226
7290
  }
7227
7291
 
7292
+ // src/arcium/awaitFinalizeComputation.ts
7293
+ var TIMEOUT_SLOTS = 180;
7294
+ var DEFAULT_POLL_INTERVAL = 1e3;
7295
+ var DEFAULT_SIGNATURE_LIMIT = 100;
7296
+ var awaitComputationFinalization = async (rpc, computationAccount, invocationSignature, options) => {
7297
+ const commitment = options?.commitment ?? "confirmed";
7298
+ const pollInterval = options?.pollInterval ?? DEFAULT_POLL_INTERVAL;
7299
+ const limit = options?.transactionCountLimit ?? DEFAULT_SIGNATURE_LIMIT;
7300
+ const invocationTx = await rpc.getTransaction(invocationSignature, {
7301
+ commitment,
7302
+ encoding: "json",
7303
+ maxSupportedTransactionVersion: 0
7304
+ }).send();
7305
+ if (!invocationTx) {
7306
+ throw new Error(`Invocation transaction ${invocationSignature} not found`);
7307
+ }
7308
+ const deadlineSlot = invocationTx.slot + BigInt(TIMEOUT_SLOTS);
7309
+ for (; ; ) {
7310
+ const signatures = await rpc.getSignaturesForAddress(computationAccount, {
7311
+ limit,
7312
+ commitment
7313
+ }).send();
7314
+ for (const sigInfo of signatures) {
7315
+ if (sigInfo.signature === invocationSignature) continue;
7316
+ if (sigInfo.err === null) {
7317
+ return sigInfo.signature;
7318
+ }
7319
+ }
7320
+ const currentSlot = await rpc.getSlot({ commitment }).send();
7321
+ if (currentSlot > deadlineSlot) {
7322
+ throw new Error(
7323
+ `Computation ${computationAccount} not finalized within ${TIMEOUT_SLOTS} slots of invocation ${invocationSignature}`
7324
+ );
7325
+ }
7326
+ await new Promise((resolve) => setTimeout(resolve, pollInterval));
7327
+ }
7328
+ };
7329
+
7228
7330
  // src/instructions/stake.ts
7229
7331
  async function stake(input, config) {
7230
7332
  const {
@@ -7265,6 +7367,10 @@ async function stake(input, config) {
7265
7367
  programAddress ? { programAddress } : void 0
7266
7368
  );
7267
7369
  }
7370
+ async function awaitStakeFinalization(rpc, txSignature, config, options) {
7371
+ const { computationAccount } = getComputeAccounts("stake", config);
7372
+ return awaitComputationFinalization(rpc, computationAccount, txSignature, options);
7373
+ }
7268
7374
 
7269
7375
  // src/instructions/revealStake.ts
7270
7376
  async function revealStake(input, config) {
@@ -7280,6 +7386,10 @@ async function revealStake(input, config) {
7280
7386
  programAddress ? { programAddress } : void 0
7281
7387
  );
7282
7388
  }
7389
+ async function awaitRevealStakeFinalization(rpc, txSignature, config, options) {
7390
+ const { computationAccount } = getComputeAccounts("reveal_stake", config);
7391
+ return awaitComputationFinalization(rpc, computationAccount, txSignature, options);
7392
+ }
7283
7393
 
7284
7394
  // src/instructions/addMarketOption.ts
7285
7395
  async function addMarketOption(input) {
@@ -7299,24 +7409,6 @@ function openMarket(input) {
7299
7409
  );
7300
7410
  }
7301
7411
 
7302
- // src/instructions/pauseStaking.ts
7303
- function pauseStaking(input) {
7304
- const { programAddress, ...params } = input;
7305
- return getPauseStakingInstruction(
7306
- params,
7307
- programAddress ? { programAddress } : void 0
7308
- );
7309
- }
7310
-
7311
- // src/instructions/resumeStaking.ts
7312
- function resumeStaking(input) {
7313
- const { programAddress, ...params } = input;
7314
- return getResumeStakingInstruction(
7315
- params,
7316
- programAddress ? { programAddress } : void 0
7317
- );
7318
- }
7319
-
7320
7412
  // src/instructions/setWinningOption.ts
7321
7413
  async function setWinningOption(input) {
7322
7414
  const { programAddress, ...params } = input;
@@ -7371,6 +7463,15 @@ async function initAllowedMint(input) {
7371
7463
  );
7372
7464
  }
7373
7465
 
7466
+ // src/instructions/claimRewards.ts
7467
+ async function claimRewards(input) {
7468
+ const { programAddress, ...params } = input;
7469
+ return getClaimRewardsInstructionAsync(
7470
+ params,
7471
+ programAddress ? { programAddress } : void 0
7472
+ );
7473
+ }
7474
+
7374
7475
  // src/instructions/closeStakeAccount.ts
7375
7476
  async function closeStakeAccount(input) {
7376
7477
  const { programAddress, ...params } = input;
@@ -7380,6 +7481,15 @@ async function closeStakeAccount(input) {
7380
7481
  );
7381
7482
  }
7382
7483
 
7484
+ // src/instructions/closeUnrevealedStakeAccount.ts
7485
+ async function closeUnrevealedStakeAccount(input) {
7486
+ const { programAddress, ...params } = input;
7487
+ return getCloseUnrevealedStakeAccountInstructionAsync(
7488
+ params,
7489
+ programAddress ? { programAddress } : void 0
7490
+ );
7491
+ }
7492
+
7383
7493
  // src/instructions/closeStuckStakeAccount.ts
7384
7494
  async function closeStuckStakeAccount(input) {
7385
7495
  const { programAddress, ...params } = input;
@@ -7417,15 +7527,15 @@ async function finalizeRevealStake(input) {
7417
7527
  }
7418
7528
 
7419
7529
  // src/accounts/platformConfig.ts
7420
- var import_kit91 = require("@solana/kit");
7530
+ var import_kit90 = require("@solana/kit");
7421
7531
  var PLATFORM_CONFIG_SEED = "platform_config";
7422
7532
  async function getPlatformConfigAddress(authority, name, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7423
- return (0, import_kit91.getProgramDerivedAddress)({
7533
+ return (0, import_kit90.getProgramDerivedAddress)({
7424
7534
  programAddress: programId,
7425
7535
  seeds: [
7426
7536
  PLATFORM_CONFIG_SEED,
7427
- (0, import_kit91.getAddressEncoder)().encode(authority),
7428
- (0, import_kit91.getUtf8Encoder)().encode(name)
7537
+ (0, import_kit90.getAddressEncoder)().encode(authority),
7538
+ (0, import_kit90.getUtf8Encoder)().encode(name)
7429
7539
  ]
7430
7540
  });
7431
7541
  }
@@ -7440,9 +7550,9 @@ async function createPlatformConfig(rpc, params) {
7440
7550
  rewardPoolFeeBp,
7441
7551
  creatorFeeBp,
7442
7552
  feeClaimAuthority,
7553
+ revealAuthority,
7443
7554
  minTimeToStakeSeconds,
7444
- minRevealPeriodSeconds,
7445
- maxRevealPeriodSeconds,
7555
+ revealPeriodSeconds,
7446
7556
  marketResolutionDeadlineSeconds
7447
7557
  } = params;
7448
7558
  const [platformConfigAddress] = await getPlatformConfigAddress(
@@ -7464,9 +7574,9 @@ async function createPlatformConfig(rpc, params) {
7464
7574
  rewardPoolFeeBp,
7465
7575
  creatorFeeBp,
7466
7576
  feeClaimAuthority,
7577
+ revealAuthority,
7467
7578
  minTimeToStakeSeconds,
7468
- minRevealPeriodSeconds,
7469
- maxRevealPeriodSeconds,
7579
+ revealPeriodSeconds,
7470
7580
  marketResolutionDeadlineSeconds
7471
7581
  },
7472
7582
  programAddress ? { programAddress } : void 0
@@ -7482,9 +7592,9 @@ async function updatePlatformConfig(rpc, params) {
7482
7592
  platformFeeBp,
7483
7593
  rewardPoolFeeBp,
7484
7594
  creatorFeeBp,
7595
+ revealAuthority,
7485
7596
  minTimeToStakeSeconds,
7486
- minRevealPeriodSeconds,
7487
- maxRevealPeriodSeconds,
7597
+ revealPeriodSeconds,
7488
7598
  marketResolutionDeadlineSeconds
7489
7599
  } = params;
7490
7600
  const [platformConfigAddress] = await getPlatformConfigAddress(
@@ -7505,9 +7615,9 @@ async function updatePlatformConfig(rpc, params) {
7505
7615
  platformFeeBp,
7506
7616
  rewardPoolFeeBp,
7507
7617
  creatorFeeBp,
7618
+ revealAuthority,
7508
7619
  minTimeToStakeSeconds,
7509
- minRevealPeriodSeconds,
7510
- maxRevealPeriodSeconds,
7620
+ revealPeriodSeconds,
7511
7621
  marketResolutionDeadlineSeconds
7512
7622
  },
7513
7623
  programAddress ? { programAddress } : void 0
@@ -7560,51 +7670,51 @@ function setFeeClaimAuthority(input) {
7560
7670
  }
7561
7671
 
7562
7672
  // src/accounts/allowedMint.ts
7563
- var import_kit92 = require("@solana/kit");
7673
+ var import_kit91 = require("@solana/kit");
7564
7674
  var ALLOWED_MINT_SEED = "allowed_mint";
7565
7675
  async function getAllowedMintAddress(platformConfig, mint, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7566
- const enc = (0, import_kit92.getAddressEncoder)();
7567
- return (0, import_kit92.getProgramDerivedAddress)({
7676
+ const enc = (0, import_kit91.getAddressEncoder)();
7677
+ return (0, import_kit91.getProgramDerivedAddress)({
7568
7678
  programAddress: programId,
7569
7679
  seeds: [ALLOWED_MINT_SEED, enc.encode(platformConfig), enc.encode(mint)]
7570
7680
  });
7571
7681
  }
7572
7682
 
7573
7683
  // src/accounts/opportunityMarket.ts
7574
- var import_kit93 = require("@solana/kit");
7684
+ var import_kit92 = require("@solana/kit");
7575
7685
  var OPPORTUNITY_MARKET_SEED = "opportunity_market";
7576
7686
  async function getOpportunityMarketAddress(platformConfig, creator, marketIndex, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7577
- return (0, import_kit93.getProgramDerivedAddress)({
7687
+ return (0, import_kit92.getProgramDerivedAddress)({
7578
7688
  programAddress: programId,
7579
7689
  seeds: [
7580
7690
  OPPORTUNITY_MARKET_SEED,
7581
- (0, import_kit93.getAddressEncoder)().encode(platformConfig),
7582
- (0, import_kit93.getAddressEncoder)().encode(creator),
7583
- (0, import_kit93.getU64Encoder)().encode(BigInt(marketIndex))
7691
+ (0, import_kit92.getAddressEncoder)().encode(platformConfig),
7692
+ (0, import_kit92.getAddressEncoder)().encode(creator),
7693
+ (0, import_kit92.getU64Encoder)().encode(BigInt(marketIndex))
7584
7694
  ]
7585
7695
  });
7586
7696
  }
7587
7697
 
7588
7698
  // src/accounts/opportunityMarketOption.ts
7589
- var import_kit94 = require("@solana/kit");
7699
+ var import_kit93 = require("@solana/kit");
7590
7700
  var OPPORTUNITY_MARKET_OPTION_SEED = "option";
7591
7701
  async function getOpportunityMarketOptionAddress(market, optionId, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7592
- return (0, import_kit94.getProgramDerivedAddress)({
7702
+ return (0, import_kit93.getProgramDerivedAddress)({
7593
7703
  programAddress: programId,
7594
7704
  seeds: [
7595
7705
  OPPORTUNITY_MARKET_OPTION_SEED,
7596
- (0, import_kit94.getAddressEncoder)().encode(market),
7597
- (0, import_kit94.getU64Encoder)().encode(optionId)
7706
+ (0, import_kit93.getAddressEncoder)().encode(market),
7707
+ (0, import_kit93.getU64Encoder)().encode(optionId)
7598
7708
  ]
7599
7709
  });
7600
7710
  }
7601
7711
 
7602
7712
  // src/accounts/opportunityMarketSponsor.ts
7603
- var import_kit95 = require("@solana/kit");
7713
+ var import_kit94 = require("@solana/kit");
7604
7714
  var SPONSOR_SEED = "sponsor";
7605
7715
  async function getOpportunityMarketSponsorAddress(sponsor, market, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7606
- const addressEncoder = (0, import_kit95.getAddressEncoder)();
7607
- return (0, import_kit95.getProgramDerivedAddress)({
7716
+ const addressEncoder = (0, import_kit94.getAddressEncoder)();
7717
+ return (0, import_kit94.getProgramDerivedAddress)({
7608
7718
  programAddress: programId,
7609
7719
  seeds: [
7610
7720
  SPONSOR_SEED,
@@ -7615,13 +7725,13 @@ async function getOpportunityMarketSponsorAddress(sponsor, market, programId = O
7615
7725
  }
7616
7726
 
7617
7727
  // src/accounts/stakeAccount.ts
7618
- var import_kit96 = require("@solana/kit");
7728
+ var import_kit95 = require("@solana/kit");
7619
7729
  var STAKE_ACCOUNT_SEED = "stake_account";
7620
7730
  async function getStakeAccountAddress(owner, market, stakeAccountId, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7621
- const addressEncoder = (0, import_kit96.getAddressEncoder)();
7731
+ const addressEncoder = (0, import_kit95.getAddressEncoder)();
7622
7732
  const idBytes = new Uint8Array(4);
7623
7733
  new DataView(idBytes.buffer).setUint32(0, stakeAccountId, true);
7624
- return (0, import_kit96.getProgramDerivedAddress)({
7734
+ return (0, import_kit95.getProgramDerivedAddress)({
7625
7735
  programAddress: programId,
7626
7736
  seeds: [
7627
7737
  STAKE_ACCOUNT_SEED,
@@ -7632,115 +7742,6 @@ async function getStakeAccountAddress(owner, market, stakeAccountId, programId =
7632
7742
  });
7633
7743
  }
7634
7744
 
7635
- // src/arcium/awaitFinalizeComputation.ts
7636
- var import_kit97 = require("@solana/kit");
7637
-
7638
- // src/arcium/constants.ts
7639
- var ARCIUM_PROGRAM_ID = "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ";
7640
-
7641
- // src/arcium/awaitFinalizeComputation.ts
7642
- var FINALIZE_COMPUTATION_EVENT_DISCRIMINATOR = new Uint8Array([27, 75, 117, 221, 191, 213, 253, 249]);
7643
- function serializeLE(val, lengthInBytes) {
7644
- const result = new Uint8Array(lengthInBytes);
7645
- let tempVal = val;
7646
- for (let i = 0; i < lengthInBytes; i++) {
7647
- result[i] = Number(tempVal & BigInt(255));
7648
- tempVal >>= BigInt(8);
7649
- }
7650
- return result;
7651
- }
7652
- function bytesEqual(a, b) {
7653
- if (a.length !== b.length) return false;
7654
- for (let i = 0; i < a.length; i++) {
7655
- if (a[i] !== b[i]) return false;
7656
- }
7657
- return true;
7658
- }
7659
- var awaitBatchComputationFinalization = async (rpc, computationOffsets, options) => {
7660
- if (computationOffsets.length === 0) {
7661
- return /* @__PURE__ */ new Map();
7662
- }
7663
- const mxeProgramId = options?.mxeProgramId ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
7664
- const commitment = options?.commitment ?? "confirmed";
7665
- const mxeProgramIdBytes = (0, import_kit97.getAddressEncoder)().encode(mxeProgramId);
7666
- const transactionCountLimit = options?.transactionCountLimit ?? 100;
7667
- const pollInterval = options?.pollInterval ?? 1e3;
7668
- const maxAttempts = options?.maxAttempts ?? 120;
7669
- const offsetBytesMap = /* @__PURE__ */ new Map();
7670
- for (const offset of computationOffsets) {
7671
- offsetBytesMap.set(offset, serializeLE(offset, 8));
7672
- }
7673
- const foundResults = /* @__PURE__ */ new Map();
7674
- const remainingOffsets = new Set(computationOffsets);
7675
- for (let attempt = 0; attempt < maxAttempts; attempt++) {
7676
- try {
7677
- const signatures = await rpc.getSignaturesForAddress(
7678
- ARCIUM_PROGRAM_ID,
7679
- { limit: transactionCountLimit }
7680
- ).send();
7681
- for (const sigInfo of signatures) {
7682
- const tx = await rpc.getTransaction(sigInfo.signature, {
7683
- commitment,
7684
- encoding: "json",
7685
- maxSupportedTransactionVersion: 0
7686
- }).send();
7687
- if (!tx) continue;
7688
- const logs = tx.meta?.logMessages || [];
7689
- for (const log of logs) {
7690
- if (log.includes("Program data:")) {
7691
- const base64Data = log.split("Program data: ")[1];
7692
- if (!base64Data) continue;
7693
- try {
7694
- const eventData = Uint8Array.from(atob(base64Data), (c) => c.charCodeAt(0));
7695
- if (eventData.length >= 48 && bytesEqual(eventData.subarray(0, 8), FINALIZE_COMPUTATION_EVENT_DISCRIMINATOR)) {
7696
- const eventOffsetBytes = eventData.subarray(8, 16);
7697
- const eventMxeProgramId = eventData.subarray(16, 48);
7698
- if (!bytesEqual(eventMxeProgramId, mxeProgramIdBytes)) continue;
7699
- for (const offset of remainingOffsets) {
7700
- const expectedBytes = offsetBytesMap.get(offset);
7701
- if (bytesEqual(eventOffsetBytes, expectedBytes)) {
7702
- const txError = tx.meta?.err;
7703
- let errorMessage;
7704
- if (txError) {
7705
- const errorLog = logs.find((l) => l.includes("Error") || l.includes("failed"));
7706
- errorMessage = errorLog || JSON.stringify(txError);
7707
- }
7708
- foundResults.set(offset, {
7709
- signature: sigInfo.signature,
7710
- error: errorMessage
7711
- });
7712
- remainingOffsets.delete(offset);
7713
- break;
7714
- }
7715
- }
7716
- }
7717
- } catch {
7718
- continue;
7719
- }
7720
- }
7721
- }
7722
- if (remainingOffsets.size === 0) {
7723
- return foundResults;
7724
- }
7725
- }
7726
- if (remainingOffsets.size === 0) {
7727
- return foundResults;
7728
- }
7729
- await new Promise((resolve) => setTimeout(resolve, pollInterval));
7730
- } catch (error) {
7731
- await new Promise((resolve) => setTimeout(resolve, pollInterval));
7732
- }
7733
- }
7734
- const missingOffsets = Array.from(remainingOffsets).join(", ");
7735
- throw new Error(
7736
- `Computation finalization timed out after ${maxAttempts} attempts. Missing offsets: ${missingOffsets}`
7737
- );
7738
- };
7739
- var awaitComputationFinalization = async (rpc, computationOffset, options) => {
7740
- const results = await awaitBatchComputationFinalization(rpc, [computationOffset], options);
7741
- return results.get(computationOffset);
7742
- };
7743
-
7744
7745
  // src/x25519/keypair.ts
7745
7746
  var import_client3 = require("@arcium-hq/client");
7746
7747
  var import_bn3 = require("bn.js");
@@ -7775,9 +7776,11 @@ function nonceToBytes(nonce) {
7775
7776
  ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR,
7776
7777
  CLAIM_CREATOR_FEES_DISCRIMINATOR,
7777
7778
  CLAIM_FEES_DISCRIMINATOR,
7779
+ CLAIM_REWARDS_DISCRIMINATOR,
7778
7780
  CLOSE_OPTION_ACCOUNT_DISCRIMINATOR,
7779
7781
  CLOSE_STAKE_ACCOUNT_DISCRIMINATOR,
7780
7782
  CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR,
7783
+ CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR,
7781
7784
  CREATE_MARKET_DISCRIMINATOR,
7782
7785
  END_REVEAL_PERIOD_DISCRIMINATOR,
7783
7786
  FINALIZE_REVEAL_STAKE_DISCRIMINATOR,
@@ -7805,11 +7808,10 @@ function nonceToBytes(nonce) {
7805
7808
  OPPORTUNITY_MARKET_ERROR__LOCKED,
7806
7809
  OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN,
7807
7810
  OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN,
7808
- OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED,
7809
7811
  OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED,
7810
- OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED,
7811
7812
  OPPORTUNITY_MARKET_ERROR__NOT_REVEALED,
7812
7813
  OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM,
7814
+ OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION,
7813
7815
  OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM,
7814
7816
  OPPORTUNITY_MARKET_ERROR__NO_STAKE,
7815
7817
  OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED,
@@ -7832,12 +7834,10 @@ function nonceToBytes(nonce) {
7832
7834
  OpportunityMarketAccount,
7833
7835
  OpportunityMarketInstruction,
7834
7836
  Output,
7835
- PAUSE_STAKING_DISCRIMINATOR,
7836
7837
  PLATFORM_CONFIG_DISCRIMINATOR,
7837
7838
  PLATFORM_CONFIG_SEED,
7838
7839
  Parameter,
7839
7840
  RESOLVE_MARKET_DISCRIMINATOR,
7840
- RESUME_STAKING_DISCRIMINATOR,
7841
7841
  REVEAL_STAKE_CALLBACK_DISCRIMINATOR,
7842
7842
  REVEAL_STAKE_COMP_DEF_DISCRIMINATOR,
7843
7843
  REVEAL_STAKE_DISCRIMINATOR,
@@ -7855,14 +7855,17 @@ function nonceToBytes(nonce) {
7855
7855
  WITHDRAW_REWARD_DISCRIMINATOR,
7856
7856
  addMarketOption,
7857
7857
  addReward,
7858
- awaitBatchComputationFinalization,
7859
7858
  awaitComputationFinalization,
7859
+ awaitRevealStakeFinalization,
7860
+ awaitStakeFinalization,
7860
7861
  circuitSource,
7861
7862
  claimCreatorFees,
7862
7863
  claimFees,
7864
+ claimRewards,
7863
7865
  closeOptionAccount,
7864
7866
  closeStakeAccount,
7865
7867
  closeStuckStakeAccount,
7868
+ closeUnrevealedStakeAccount,
7866
7869
  createCipher,
7867
7870
  createMarket,
7868
7871
  createPlatformConfig,
@@ -7951,6 +7954,12 @@ function nonceToBytes(nonce) {
7951
7954
  getClaimFeesInstructionDataCodec,
7952
7955
  getClaimFeesInstructionDataDecoder,
7953
7956
  getClaimFeesInstructionDataEncoder,
7957
+ getClaimRewardsDiscriminatorBytes,
7958
+ getClaimRewardsInstruction,
7959
+ getClaimRewardsInstructionAsync,
7960
+ getClaimRewardsInstructionDataCodec,
7961
+ getClaimRewardsInstructionDataDecoder,
7962
+ getClaimRewardsInstructionDataEncoder,
7954
7963
  getClockAccountCodec,
7955
7964
  getClockAccountDecoder,
7956
7965
  getClockAccountEncoder,
@@ -7972,6 +7981,12 @@ function nonceToBytes(nonce) {
7972
7981
  getCloseStuckStakeAccountInstructionDataCodec,
7973
7982
  getCloseStuckStakeAccountInstructionDataDecoder,
7974
7983
  getCloseStuckStakeAccountInstructionDataEncoder,
7984
+ getCloseUnrevealedStakeAccountDiscriminatorBytes,
7985
+ getCloseUnrevealedStakeAccountInstruction,
7986
+ getCloseUnrevealedStakeAccountInstructionAsync,
7987
+ getCloseUnrevealedStakeAccountInstructionDataCodec,
7988
+ getCloseUnrevealedStakeAccountInstructionDataDecoder,
7989
+ getCloseUnrevealedStakeAccountInstructionDataEncoder,
7975
7990
  getClusterCodec,
7976
7991
  getClusterDecoder,
7977
7992
  getClusterEncoder,
@@ -8107,11 +8122,6 @@ function nonceToBytes(nonce) {
8107
8122
  getParameterCodec,
8108
8123
  getParameterDecoder,
8109
8124
  getParameterEncoder,
8110
- getPauseStakingDiscriminatorBytes,
8111
- getPauseStakingInstruction,
8112
- getPauseStakingInstructionDataCodec,
8113
- getPauseStakingInstructionDataDecoder,
8114
- getPauseStakingInstructionDataEncoder,
8115
8125
  getPlatformConfigAddress,
8116
8126
  getPlatformConfigCodec,
8117
8127
  getPlatformConfigDecoder,
@@ -8122,11 +8132,6 @@ function nonceToBytes(nonce) {
8122
8132
  getResolveMarketInstructionDataCodec,
8123
8133
  getResolveMarketInstructionDataDecoder,
8124
8134
  getResolveMarketInstructionDataEncoder,
8125
- getResumeStakingDiscriminatorBytes,
8126
- getResumeStakingInstruction,
8127
- getResumeStakingInstructionDataCodec,
8128
- getResumeStakingInstructionDataDecoder,
8129
- getResumeStakingInstructionDataEncoder,
8130
8135
  getRevealPeriodEndedEventCodec,
8131
8136
  getRevealPeriodEndedEventDecoder,
8132
8137
  getRevealPeriodEndedEventEncoder,
@@ -8158,6 +8163,9 @@ function nonceToBytes(nonce) {
8158
8163
  getRewardWithdrawnEventCodec,
8159
8164
  getRewardWithdrawnEventDecoder,
8160
8165
  getRewardWithdrawnEventEncoder,
8166
+ getRewardsClaimedEventCodec,
8167
+ getRewardsClaimedEventDecoder,
8168
+ getRewardsClaimedEventEncoder,
8161
8169
  getSetFeeClaimAuthorityDiscriminatorBytes,
8162
8170
  getSetFeeClaimAuthorityInstruction,
8163
8171
  getSetFeeClaimAuthorityInstructionDataCodec,
@@ -8213,12 +8221,6 @@ function nonceToBytes(nonce) {
8213
8221
  getStakedEventCodec,
8214
8222
  getStakedEventDecoder,
8215
8223
  getStakedEventEncoder,
8216
- getStakingPausedEventCodec,
8217
- getStakingPausedEventDecoder,
8218
- getStakingPausedEventEncoder,
8219
- getStakingResumedEventCodec,
8220
- getStakingResumedEventDecoder,
8221
- getStakingResumedEventEncoder,
8222
8224
  getStuckStakeClosedEventCodec,
8223
8225
  getStuckStakeClosedEventDecoder,
8224
8226
  getStuckStakeClosedEventEncoder,
@@ -8266,9 +8268,11 @@ function nonceToBytes(nonce) {
8266
8268
  parseAddRewardInstruction,
8267
8269
  parseClaimCreatorFeesInstruction,
8268
8270
  parseClaimFeesInstruction,
8271
+ parseClaimRewardsInstruction,
8269
8272
  parseCloseOptionAccountInstruction,
8270
8273
  parseCloseStakeAccountInstruction,
8271
8274
  parseCloseStuckStakeAccountInstruction,
8275
+ parseCloseUnrevealedStakeAccountInstruction,
8272
8276
  parseCreateMarketInstruction,
8273
8277
  parseEndRevealPeriodInstruction,
8274
8278
  parseFinalizeRevealStakeInstruction,
@@ -8276,9 +8280,7 @@ function nonceToBytes(nonce) {
8276
8280
  parseInitPlatformConfigInstruction,
8277
8281
  parseInitStakeAccountInstruction,
8278
8282
  parseOpenMarketInstruction,
8279
- parsePauseStakingInstruction,
8280
8283
  parseResolveMarketInstruction,
8281
- parseResumeStakingInstruction,
8282
8284
  parseRevealStakeCallbackInstruction,
8283
8285
  parseRevealStakeCompDefInstruction,
8284
8286
  parseRevealStakeInstruction,
@@ -8291,11 +8293,9 @@ function nonceToBytes(nonce) {
8291
8293
  parseUnstakeInstruction,
8292
8294
  parseUpdatePlatformConfigInstruction,
8293
8295
  parseWithdrawRewardInstruction,
8294
- pauseStaking,
8295
8296
  randomComputationOffset,
8296
8297
  randomStateNonce,
8297
8298
  resolveMarket,
8298
- resumeStaking,
8299
8299
  revealStake,
8300
8300
  setFeeClaimAuthority,
8301
8301
  setUpdateAuthority,