@bench.games/opportunity-markets 0.3.1 → 0.3.2

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
@@ -68,11 +68,10 @@ __export(index_exports, {
68
68
  OPPORTUNITY_MARKET_ERROR__LOCKED: () => OPPORTUNITY_MARKET_ERROR__LOCKED,
69
69
  OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN: () => OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN,
70
70
  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
71
  OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED: () => OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED,
73
- OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED: () => OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED,
74
72
  OPPORTUNITY_MARKET_ERROR__NOT_REVEALED: () => OPPORTUNITY_MARKET_ERROR__NOT_REVEALED,
75
73
  OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM: () => OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM,
74
+ OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION: () => OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION,
76
75
  OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM: () => OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM,
77
76
  OPPORTUNITY_MARKET_ERROR__NO_STAKE: () => OPPORTUNITY_MARKET_ERROR__NO_STAKE,
78
77
  OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED: () => OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED,
@@ -95,12 +94,10 @@ __export(index_exports, {
95
94
  OpportunityMarketAccount: () => OpportunityMarketAccount,
96
95
  OpportunityMarketInstruction: () => OpportunityMarketInstruction,
97
96
  Output: () => Output,
98
- PAUSE_STAKING_DISCRIMINATOR: () => PAUSE_STAKING_DISCRIMINATOR,
99
97
  PLATFORM_CONFIG_DISCRIMINATOR: () => PLATFORM_CONFIG_DISCRIMINATOR,
100
98
  PLATFORM_CONFIG_SEED: () => PLATFORM_CONFIG_SEED,
101
99
  Parameter: () => Parameter,
102
100
  RESOLVE_MARKET_DISCRIMINATOR: () => RESOLVE_MARKET_DISCRIMINATOR,
103
- RESUME_STAKING_DISCRIMINATOR: () => RESUME_STAKING_DISCRIMINATOR,
104
101
  REVEAL_STAKE_CALLBACK_DISCRIMINATOR: () => REVEAL_STAKE_CALLBACK_DISCRIMINATOR,
105
102
  REVEAL_STAKE_COMP_DEF_DISCRIMINATOR: () => REVEAL_STAKE_COMP_DEF_DISCRIMINATOR,
106
103
  REVEAL_STAKE_DISCRIMINATOR: () => REVEAL_STAKE_DISCRIMINATOR,
@@ -118,8 +115,9 @@ __export(index_exports, {
118
115
  WITHDRAW_REWARD_DISCRIMINATOR: () => WITHDRAW_REWARD_DISCRIMINATOR,
119
116
  addMarketOption: () => addMarketOption,
120
117
  addReward: () => addReward,
121
- awaitBatchComputationFinalization: () => awaitBatchComputationFinalization,
122
118
  awaitComputationFinalization: () => awaitComputationFinalization,
119
+ awaitRevealStakeFinalization: () => awaitRevealStakeFinalization,
120
+ awaitStakeFinalization: () => awaitStakeFinalization,
123
121
  circuitSource: () => circuitSource,
124
122
  claimCreatorFees: () => claimCreatorFees,
125
123
  claimFees: () => claimFees,
@@ -370,11 +368,6 @@ __export(index_exports, {
370
368
  getParameterCodec: () => getParameterCodec,
371
369
  getParameterDecoder: () => getParameterDecoder,
372
370
  getParameterEncoder: () => getParameterEncoder,
373
- getPauseStakingDiscriminatorBytes: () => getPauseStakingDiscriminatorBytes,
374
- getPauseStakingInstruction: () => getPauseStakingInstruction,
375
- getPauseStakingInstructionDataCodec: () => getPauseStakingInstructionDataCodec,
376
- getPauseStakingInstructionDataDecoder: () => getPauseStakingInstructionDataDecoder,
377
- getPauseStakingInstructionDataEncoder: () => getPauseStakingInstructionDataEncoder,
378
371
  getPlatformConfigAddress: () => getPlatformConfigAddress,
379
372
  getPlatformConfigCodec: () => getPlatformConfigCodec,
380
373
  getPlatformConfigDecoder: () => getPlatformConfigDecoder,
@@ -385,11 +378,6 @@ __export(index_exports, {
385
378
  getResolveMarketInstructionDataCodec: () => getResolveMarketInstructionDataCodec,
386
379
  getResolveMarketInstructionDataDecoder: () => getResolveMarketInstructionDataDecoder,
387
380
  getResolveMarketInstructionDataEncoder: () => getResolveMarketInstructionDataEncoder,
388
- getResumeStakingDiscriminatorBytes: () => getResumeStakingDiscriminatorBytes,
389
- getResumeStakingInstruction: () => getResumeStakingInstruction,
390
- getResumeStakingInstructionDataCodec: () => getResumeStakingInstructionDataCodec,
391
- getResumeStakingInstructionDataDecoder: () => getResumeStakingInstructionDataDecoder,
392
- getResumeStakingInstructionDataEncoder: () => getResumeStakingInstructionDataEncoder,
393
381
  getRevealPeriodEndedEventCodec: () => getRevealPeriodEndedEventCodec,
394
382
  getRevealPeriodEndedEventDecoder: () => getRevealPeriodEndedEventDecoder,
395
383
  getRevealPeriodEndedEventEncoder: () => getRevealPeriodEndedEventEncoder,
@@ -476,12 +464,6 @@ __export(index_exports, {
476
464
  getStakedEventCodec: () => getStakedEventCodec,
477
465
  getStakedEventDecoder: () => getStakedEventDecoder,
478
466
  getStakedEventEncoder: () => getStakedEventEncoder,
479
- getStakingPausedEventCodec: () => getStakingPausedEventCodec,
480
- getStakingPausedEventDecoder: () => getStakingPausedEventDecoder,
481
- getStakingPausedEventEncoder: () => getStakingPausedEventEncoder,
482
- getStakingResumedEventCodec: () => getStakingResumedEventCodec,
483
- getStakingResumedEventDecoder: () => getStakingResumedEventDecoder,
484
- getStakingResumedEventEncoder: () => getStakingResumedEventEncoder,
485
467
  getStuckStakeClosedEventCodec: () => getStuckStakeClosedEventCodec,
486
468
  getStuckStakeClosedEventDecoder: () => getStuckStakeClosedEventDecoder,
487
469
  getStuckStakeClosedEventEncoder: () => getStuckStakeClosedEventEncoder,
@@ -539,9 +521,7 @@ __export(index_exports, {
539
521
  parseInitPlatformConfigInstruction: () => parseInitPlatformConfigInstruction,
540
522
  parseInitStakeAccountInstruction: () => parseInitStakeAccountInstruction,
541
523
  parseOpenMarketInstruction: () => parseOpenMarketInstruction,
542
- parsePauseStakingInstruction: () => parsePauseStakingInstruction,
543
524
  parseResolveMarketInstruction: () => parseResolveMarketInstruction,
544
- parseResumeStakingInstruction: () => parseResumeStakingInstruction,
545
525
  parseRevealStakeCallbackInstruction: () => parseRevealStakeCallbackInstruction,
546
526
  parseRevealStakeCompDefInstruction: () => parseRevealStakeCompDefInstruction,
547
527
  parseRevealStakeInstruction: () => parseRevealStakeInstruction,
@@ -554,11 +534,9 @@ __export(index_exports, {
554
534
  parseUnstakeInstruction: () => parseUnstakeInstruction,
555
535
  parseUpdatePlatformConfigInstruction: () => parseUpdatePlatformConfigInstruction,
556
536
  parseWithdrawRewardInstruction: () => parseWithdrawRewardInstruction,
557
- pauseStaking: () => pauseStaking,
558
537
  randomComputationOffset: () => randomComputationOffset,
559
538
  randomStateNonce: () => randomStateNonce,
560
539
  resolveMarket: () => resolveMarket,
561
- resumeStaking: () => resumeStaking,
562
540
  revealStake: () => revealStake,
563
541
  setFeeClaimAuthority: () => setFeeClaimAuthority,
564
542
  setUpdateAuthority: () => setUpdateAuthority,
@@ -712,7 +690,7 @@ async function fetchAllMaybeArciumSignerAccount(rpc, addresses, config) {
712
690
  }
713
691
 
714
692
  // src/generated/accounts/opportunityMarket.ts
715
- var import_kit52 = require("@solana/kit");
693
+ var import_kit50 = require("@solana/kit");
716
694
 
717
695
  // src/generated/types/activation.ts
718
696
  var import_kit3 = require("@solana/kit");
@@ -1189,8 +1167,7 @@ function getMarketCreatedEventEncoder() {
1189
1167
  ["feeRates", getFeeRatesEncoder()],
1190
1168
  ["creatorFeeClaimer", (0, import_kit20.getAddressEncoder)()],
1191
1169
  ["marketResolutionDeadlineSeconds", (0, import_kit20.getU64Encoder)()],
1192
- ["minRevealPeriodSeconds", (0, import_kit20.getU64Encoder)()],
1193
- ["maxRevealPeriodSeconds", (0, import_kit20.getU64Encoder)()],
1170
+ ["revealPeriodSeconds", (0, import_kit20.getU64Encoder)()],
1194
1171
  ["timestamp", (0, import_kit20.getI64Encoder)()]
1195
1172
  ]);
1196
1173
  }
@@ -1210,8 +1187,7 @@ function getMarketCreatedEventDecoder() {
1210
1187
  ["feeRates", getFeeRatesDecoder()],
1211
1188
  ["creatorFeeClaimer", (0, import_kit20.getAddressDecoder)()],
1212
1189
  ["marketResolutionDeadlineSeconds", (0, import_kit20.getU64Decoder)()],
1213
- ["minRevealPeriodSeconds", (0, import_kit20.getU64Decoder)()],
1214
- ["maxRevealPeriodSeconds", (0, import_kit20.getU64Decoder)()],
1190
+ ["revealPeriodSeconds", (0, import_kit20.getU64Decoder)()],
1215
1191
  ["timestamp", (0, import_kit20.getI64Decoder)()]
1216
1192
  ]);
1217
1193
  }
@@ -1915,194 +1891,152 @@ function getStakeRevealedEventCodec() {
1915
1891
  );
1916
1892
  }
1917
1893
 
1918
- // src/generated/types/stakingPausedEvent.ts
1894
+ // src/generated/types/stuckStakeClosedEvent.ts
1919
1895
  var import_kit44 = require("@solana/kit");
1920
- function getStakingPausedEventEncoder() {
1896
+ function getStuckStakeClosedEventEncoder() {
1921
1897
  return (0, import_kit44.getStructEncoder)([
1898
+ ["owner", (0, import_kit44.getAddressEncoder)()],
1922
1899
  ["market", (0, import_kit44.getAddressEncoder)()],
1900
+ ["stakeAccount", (0, import_kit44.getAddressEncoder)()],
1901
+ ["stakeAccountId", (0, import_kit44.getU32Encoder)()],
1902
+ ["refundedAmount", (0, import_kit44.getU64Encoder)()],
1903
+ ["refundedPlatformFee", (0, import_kit44.getU64Encoder)()],
1904
+ ["refundedRewardPoolFee", (0, import_kit44.getU64Encoder)()],
1905
+ ["refundedCreatorFee", (0, import_kit44.getU64Encoder)()],
1923
1906
  ["timestamp", (0, import_kit44.getI64Encoder)()]
1924
1907
  ]);
1925
1908
  }
1926
- function getStakingPausedEventDecoder() {
1909
+ function getStuckStakeClosedEventDecoder() {
1927
1910
  return (0, import_kit44.getStructDecoder)([
1911
+ ["owner", (0, import_kit44.getAddressDecoder)()],
1928
1912
  ["market", (0, import_kit44.getAddressDecoder)()],
1913
+ ["stakeAccount", (0, import_kit44.getAddressDecoder)()],
1914
+ ["stakeAccountId", (0, import_kit44.getU32Decoder)()],
1915
+ ["refundedAmount", (0, import_kit44.getU64Decoder)()],
1916
+ ["refundedPlatformFee", (0, import_kit44.getU64Decoder)()],
1917
+ ["refundedRewardPoolFee", (0, import_kit44.getU64Decoder)()],
1918
+ ["refundedCreatorFee", (0, import_kit44.getU64Decoder)()],
1929
1919
  ["timestamp", (0, import_kit44.getI64Decoder)()]
1930
1920
  ]);
1931
1921
  }
1932
- function getStakingPausedEventCodec() {
1922
+ function getStuckStakeClosedEventCodec() {
1933
1923
  return (0, import_kit44.combineCodec)(
1934
- getStakingPausedEventEncoder(),
1935
- getStakingPausedEventDecoder()
1924
+ getStuckStakeClosedEventEncoder(),
1925
+ getStuckStakeClosedEventDecoder()
1936
1926
  );
1937
1927
  }
1938
1928
 
1939
- // src/generated/types/stakingResumedEvent.ts
1929
+ // src/generated/types/timestamp.ts
1940
1930
  var import_kit45 = require("@solana/kit");
1941
- function getStakingResumedEventEncoder() {
1942
- return (0, import_kit45.getStructEncoder)([
1943
- ["market", (0, import_kit45.getAddressEncoder)()],
1944
- ["timestamp", (0, import_kit45.getI64Encoder)()]
1945
- ]);
1931
+ function getTimestampEncoder() {
1932
+ return (0, import_kit45.getStructEncoder)([["timestamp", (0, import_kit45.getU64Encoder)()]]);
1946
1933
  }
1947
- function getStakingResumedEventDecoder() {
1948
- return (0, import_kit45.getStructDecoder)([
1949
- ["market", (0, import_kit45.getAddressDecoder)()],
1950
- ["timestamp", (0, import_kit45.getI64Decoder)()]
1951
- ]);
1934
+ function getTimestampDecoder() {
1935
+ return (0, import_kit45.getStructDecoder)([["timestamp", (0, import_kit45.getU64Decoder)()]]);
1952
1936
  }
1953
- function getStakingResumedEventCodec() {
1954
- return (0, import_kit45.combineCodec)(
1955
- getStakingResumedEventEncoder(),
1956
- getStakingResumedEventDecoder()
1957
- );
1937
+ function getTimestampCodec() {
1938
+ return (0, import_kit45.combineCodec)(getTimestampEncoder(), getTimestampDecoder());
1958
1939
  }
1959
1940
 
1960
- // src/generated/types/stuckStakeClosedEvent.ts
1941
+ // src/generated/types/unstakedEvent.ts
1961
1942
  var import_kit46 = require("@solana/kit");
1962
- function getStuckStakeClosedEventEncoder() {
1943
+ function getUnstakedEventEncoder() {
1963
1944
  return (0, import_kit46.getStructEncoder)([
1964
1945
  ["owner", (0, import_kit46.getAddressEncoder)()],
1965
1946
  ["market", (0, import_kit46.getAddressEncoder)()],
1966
1947
  ["stakeAccount", (0, import_kit46.getAddressEncoder)()],
1967
1948
  ["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)()],
1949
+ ["amount", (0, import_kit46.getU64Encoder)()],
1972
1950
  ["timestamp", (0, import_kit46.getI64Encoder)()]
1973
1951
  ]);
1974
1952
  }
1975
- function getStuckStakeClosedEventDecoder() {
1953
+ function getUnstakedEventDecoder() {
1976
1954
  return (0, import_kit46.getStructDecoder)([
1977
1955
  ["owner", (0, import_kit46.getAddressDecoder)()],
1978
1956
  ["market", (0, import_kit46.getAddressDecoder)()],
1979
1957
  ["stakeAccount", (0, import_kit46.getAddressDecoder)()],
1980
1958
  ["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)()],
1959
+ ["amount", (0, import_kit46.getU64Decoder)()],
1985
1960
  ["timestamp", (0, import_kit46.getI64Decoder)()]
1986
1961
  ]);
1987
1962
  }
1988
- function getStuckStakeClosedEventCodec() {
1989
- return (0, import_kit46.combineCodec)(
1990
- getStuckStakeClosedEventEncoder(),
1991
- getStuckStakeClosedEventDecoder()
1992
- );
1993
- }
1994
-
1995
- // src/generated/types/timestamp.ts
1996
- var import_kit47 = require("@solana/kit");
1997
- function getTimestampEncoder() {
1998
- return (0, import_kit47.getStructEncoder)([["timestamp", (0, import_kit47.getU64Encoder)()]]);
1999
- }
2000
- function getTimestampDecoder() {
2001
- return (0, import_kit47.getStructDecoder)([["timestamp", (0, import_kit47.getU64Decoder)()]]);
2002
- }
2003
- function getTimestampCodec() {
2004
- return (0, import_kit47.combineCodec)(getTimestampEncoder(), getTimestampDecoder());
2005
- }
2006
-
2007
- // src/generated/types/unstakedEvent.ts
2008
- var import_kit48 = require("@solana/kit");
2009
- 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)()]
2017
- ]);
2018
- }
2019
- 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)()]
2027
- ]);
2028
- }
2029
1963
  function getUnstakedEventCodec() {
2030
- return (0, import_kit48.combineCodec)(getUnstakedEventEncoder(), getUnstakedEventDecoder());
1964
+ return (0, import_kit46.combineCodec)(getUnstakedEventEncoder(), getUnstakedEventDecoder());
2031
1965
  }
2032
1966
 
2033
1967
  // src/generated/types/updateAuthorityChangedEvent.ts
2034
- var import_kit49 = require("@solana/kit");
1968
+ var import_kit47 = require("@solana/kit");
2035
1969
  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)()]
1970
+ return (0, import_kit47.getStructEncoder)([
1971
+ ["platformConfig", (0, import_kit47.getAddressEncoder)()],
1972
+ ["oldValue", (0, import_kit47.getAddressEncoder)()],
1973
+ ["newValue", (0, import_kit47.getAddressEncoder)()],
1974
+ ["timestamp", (0, import_kit47.getI64Encoder)()]
2041
1975
  ]);
2042
1976
  }
2043
1977
  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)()]
1978
+ return (0, import_kit47.getStructDecoder)([
1979
+ ["platformConfig", (0, import_kit47.getAddressDecoder)()],
1980
+ ["oldValue", (0, import_kit47.getAddressDecoder)()],
1981
+ ["newValue", (0, import_kit47.getAddressDecoder)()],
1982
+ ["timestamp", (0, import_kit47.getI64Decoder)()]
2049
1983
  ]);
2050
1984
  }
2051
1985
  function getUpdateAuthorityChangedEventCodec() {
2052
- return (0, import_kit49.combineCodec)(
1986
+ return (0, import_kit47.combineCodec)(
2053
1987
  getUpdateAuthorityChangedEventEncoder(),
2054
1988
  getUpdateAuthorityChangedEventDecoder()
2055
1989
  );
2056
1990
  }
2057
1991
 
2058
1992
  // src/generated/types/utilityPubkeys.ts
2059
- var import_kit50 = require("@solana/kit");
1993
+ var import_kit48 = require("@solana/kit");
2060
1994
  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 })]
1995
+ return (0, import_kit48.getStructEncoder)([
1996
+ ["x25519Pubkey", (0, import_kit48.getArrayEncoder)((0, import_kit48.getU8Encoder)(), { size: 32 })],
1997
+ ["ed25519VerifyingKey", (0, import_kit48.getArrayEncoder)((0, import_kit48.getU8Encoder)(), { size: 32 })],
1998
+ ["elgamalPubkey", (0, import_kit48.getArrayEncoder)((0, import_kit48.getU8Encoder)(), { size: 32 })],
1999
+ ["pubkeyValidityProof", (0, import_kit48.getArrayEncoder)((0, import_kit48.getU8Encoder)(), { size: 64 })]
2066
2000
  ]);
2067
2001
  }
2068
2002
  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 })]
2003
+ return (0, import_kit48.getStructDecoder)([
2004
+ ["x25519Pubkey", (0, import_kit48.getArrayDecoder)((0, import_kit48.getU8Decoder)(), { size: 32 })],
2005
+ ["ed25519VerifyingKey", (0, import_kit48.getArrayDecoder)((0, import_kit48.getU8Decoder)(), { size: 32 })],
2006
+ ["elgamalPubkey", (0, import_kit48.getArrayDecoder)((0, import_kit48.getU8Decoder)(), { size: 32 })],
2007
+ ["pubkeyValidityProof", (0, import_kit48.getArrayDecoder)((0, import_kit48.getU8Decoder)(), { size: 64 })]
2074
2008
  ]);
2075
2009
  }
2076
2010
  function getUtilityPubkeysCodec() {
2077
- return (0, import_kit50.combineCodec)(getUtilityPubkeysEncoder(), getUtilityPubkeysDecoder());
2011
+ return (0, import_kit48.combineCodec)(getUtilityPubkeysEncoder(), getUtilityPubkeysDecoder());
2078
2012
  }
2079
2013
 
2080
2014
  // src/generated/types/winningOptionSetEvent.ts
2081
- var import_kit51 = require("@solana/kit");
2015
+ var import_kit49 = require("@solana/kit");
2082
2016
  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)()]
2017
+ return (0, import_kit49.getStructEncoder)([
2018
+ ["market", (0, import_kit49.getAddressEncoder)()],
2019
+ ["marketAuthority", (0, import_kit49.getAddressEncoder)()],
2020
+ ["option", (0, import_kit49.getAddressEncoder)()],
2021
+ ["optionId", (0, import_kit49.getU64Encoder)()],
2022
+ ["rewardBp", (0, import_kit49.getU16Encoder)()],
2023
+ ["winningOptionAllocation", (0, import_kit49.getU16Encoder)()],
2024
+ ["timestamp", (0, import_kit49.getI64Encoder)()]
2091
2025
  ]);
2092
2026
  }
2093
2027
  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)()]
2028
+ return (0, import_kit49.getStructDecoder)([
2029
+ ["market", (0, import_kit49.getAddressDecoder)()],
2030
+ ["marketAuthority", (0, import_kit49.getAddressDecoder)()],
2031
+ ["option", (0, import_kit49.getAddressDecoder)()],
2032
+ ["optionId", (0, import_kit49.getU64Decoder)()],
2033
+ ["rewardBp", (0, import_kit49.getU16Decoder)()],
2034
+ ["winningOptionAllocation", (0, import_kit49.getU16Decoder)()],
2035
+ ["timestamp", (0, import_kit49.getI64Decoder)()]
2102
2036
  ]);
2103
2037
  }
2104
2038
  function getWinningOptionSetEventCodec() {
2105
- return (0, import_kit51.combineCodec)(
2039
+ return (0, import_kit49.combineCodec)(
2106
2040
  getWinningOptionSetEventEncoder(),
2107
2041
  getWinningOptionSetEventDecoder()
2108
2042
  );
@@ -2120,94 +2054,90 @@ var OPPORTUNITY_MARKET_DISCRIMINATOR = new Uint8Array([
2120
2054
  224
2121
2055
  ]);
2122
2056
  function getOpportunityMarketDiscriminatorBytes() {
2123
- return (0, import_kit52.fixEncoderSize)((0, import_kit52.getBytesEncoder)(), 8).encode(
2057
+ return (0, import_kit50.fixEncoderSize)((0, import_kit50.getBytesEncoder)(), 8).encode(
2124
2058
  OPPORTUNITY_MARKET_DISCRIMINATOR
2125
2059
  );
2126
2060
  }
2127
2061
  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)()],
2062
+ return (0, import_kit50.transformEncoder)(
2063
+ (0, import_kit50.getStructEncoder)([
2064
+ ["discriminator", (0, import_kit50.fixEncoderSize)((0, import_kit50.getBytesEncoder)(), 8)],
2065
+ ["bump", (0, import_kit50.getU8Encoder)()],
2066
+ ["creator", (0, import_kit50.getAddressEncoder)()],
2067
+ ["index", (0, import_kit50.getU64Encoder)()],
2068
+ ["totalOptions", (0, import_kit50.getU64Encoder)()],
2069
+ ["platform", (0, import_kit50.getAddressEncoder)()],
2070
+ ["stakeEndTimestamp", (0, import_kit50.getOptionEncoder)((0, import_kit50.getU64Encoder)())],
2071
+ ["resolvedAtTimestamp", (0, import_kit50.getOptionEncoder)((0, import_kit50.getU64Encoder)())],
2072
+ ["winningOptionAllocation", (0, import_kit50.getU16Encoder)()],
2073
+ ["winningOptionActiveBp", (0, import_kit50.getU16Encoder)()],
2074
+ ["rewardAmount", (0, import_kit50.getU64Encoder)()],
2075
+ ["marketAuthority", (0, import_kit50.getAddressEncoder)()],
2076
+ ["mint", (0, import_kit50.getAddressEncoder)()],
2077
+ ["earlinessCutoffSeconds", (0, import_kit50.getU64Encoder)()],
2078
+ ["earlinessMultiplier", (0, import_kit50.getU16Encoder)()],
2079
+ ["allowUnstakingEarly", (0, import_kit50.getBooleanEncoder)()],
2080
+ ["authorizedReaderPubkey", (0, import_kit50.getArrayEncoder)((0, import_kit50.getU8Encoder)(), { size: 32 })],
2148
2081
  ["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)()]
2082
+ ["collectedPlatformFees", (0, import_kit50.getU64Encoder)()],
2083
+ ["collectedCreatorFees", (0, import_kit50.getU64Encoder)()],
2084
+ ["creatorFeeClaimer", (0, import_kit50.getAddressEncoder)()],
2085
+ ["marketResolutionDeadlineSeconds", (0, import_kit50.getU64Encoder)()],
2086
+ ["revealPeriodSeconds", (0, import_kit50.getU64Encoder)()],
2087
+ ["revealEnded", (0, import_kit50.getBooleanEncoder)()],
2088
+ ["minStakeAmount", (0, import_kit50.getU64Encoder)()]
2157
2089
  ]),
2158
2090
  (value) => ({ ...value, discriminator: OPPORTUNITY_MARKET_DISCRIMINATOR })
2159
2091
  );
2160
2092
  }
2161
2093
  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)()],
2094
+ return (0, import_kit50.getStructDecoder)([
2095
+ ["discriminator", (0, import_kit50.fixDecoderSize)((0, import_kit50.getBytesDecoder)(), 8)],
2096
+ ["bump", (0, import_kit50.getU8Decoder)()],
2097
+ ["creator", (0, import_kit50.getAddressDecoder)()],
2098
+ ["index", (0, import_kit50.getU64Decoder)()],
2099
+ ["totalOptions", (0, import_kit50.getU64Decoder)()],
2100
+ ["platform", (0, import_kit50.getAddressDecoder)()],
2101
+ ["stakeEndTimestamp", (0, import_kit50.getOptionDecoder)((0, import_kit50.getU64Decoder)())],
2102
+ ["resolvedAtTimestamp", (0, import_kit50.getOptionDecoder)((0, import_kit50.getU64Decoder)())],
2103
+ ["winningOptionAllocation", (0, import_kit50.getU16Decoder)()],
2104
+ ["winningOptionActiveBp", (0, import_kit50.getU16Decoder)()],
2105
+ ["rewardAmount", (0, import_kit50.getU64Decoder)()],
2106
+ ["marketAuthority", (0, import_kit50.getAddressDecoder)()],
2107
+ ["mint", (0, import_kit50.getAddressDecoder)()],
2108
+ ["earlinessCutoffSeconds", (0, import_kit50.getU64Decoder)()],
2109
+ ["earlinessMultiplier", (0, import_kit50.getU16Decoder)()],
2110
+ ["allowUnstakingEarly", (0, import_kit50.getBooleanDecoder)()],
2111
+ ["authorizedReaderPubkey", (0, import_kit50.getArrayDecoder)((0, import_kit50.getU8Decoder)(), { size: 32 })],
2181
2112
  ["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)()]
2113
+ ["collectedPlatformFees", (0, import_kit50.getU64Decoder)()],
2114
+ ["collectedCreatorFees", (0, import_kit50.getU64Decoder)()],
2115
+ ["creatorFeeClaimer", (0, import_kit50.getAddressDecoder)()],
2116
+ ["marketResolutionDeadlineSeconds", (0, import_kit50.getU64Decoder)()],
2117
+ ["revealPeriodSeconds", (0, import_kit50.getU64Decoder)()],
2118
+ ["revealEnded", (0, import_kit50.getBooleanDecoder)()],
2119
+ ["minStakeAmount", (0, import_kit50.getU64Decoder)()]
2190
2120
  ]);
2191
2121
  }
2192
2122
  function getOpportunityMarketCodec() {
2193
- return (0, import_kit52.combineCodec)(
2123
+ return (0, import_kit50.combineCodec)(
2194
2124
  getOpportunityMarketEncoder(),
2195
2125
  getOpportunityMarketDecoder()
2196
2126
  );
2197
2127
  }
2198
2128
  function decodeOpportunityMarket(encodedAccount) {
2199
- return (0, import_kit52.decodeAccount)(
2129
+ return (0, import_kit50.decodeAccount)(
2200
2130
  encodedAccount,
2201
2131
  getOpportunityMarketDecoder()
2202
2132
  );
2203
2133
  }
2204
2134
  async function fetchOpportunityMarket(rpc, address3, config) {
2205
2135
  const maybeAccount = await fetchMaybeOpportunityMarket(rpc, address3, config);
2206
- (0, import_kit52.assertAccountExists)(maybeAccount);
2136
+ (0, import_kit50.assertAccountExists)(maybeAccount);
2207
2137
  return maybeAccount;
2208
2138
  }
2209
2139
  async function fetchMaybeOpportunityMarket(rpc, address3, config) {
2210
- const maybeAccount = await (0, import_kit52.fetchEncodedAccount)(rpc, address3, config);
2140
+ const maybeAccount = await (0, import_kit50.fetchEncodedAccount)(rpc, address3, config);
2211
2141
  return decodeOpportunityMarket(maybeAccount);
2212
2142
  }
2213
2143
  async function fetchAllOpportunityMarket(rpc, addresses, config) {
@@ -2216,18 +2146,18 @@ async function fetchAllOpportunityMarket(rpc, addresses, config) {
2216
2146
  addresses,
2217
2147
  config
2218
2148
  );
2219
- (0, import_kit52.assertAccountsExist)(maybeAccounts);
2149
+ (0, import_kit50.assertAccountsExist)(maybeAccounts);
2220
2150
  return maybeAccounts;
2221
2151
  }
2222
2152
  async function fetchAllMaybeOpportunityMarket(rpc, addresses, config) {
2223
- const maybeAccounts = await (0, import_kit52.fetchEncodedAccounts)(rpc, addresses, config);
2153
+ const maybeAccounts = await (0, import_kit50.fetchEncodedAccounts)(rpc, addresses, config);
2224
2154
  return maybeAccounts.map(
2225
2155
  (maybeAccount) => decodeOpportunityMarket(maybeAccount)
2226
2156
  );
2227
2157
  }
2228
2158
 
2229
2159
  // src/generated/accounts/opportunityMarketOption.ts
2230
- var import_kit53 = require("@solana/kit");
2160
+ var import_kit51 = require("@solana/kit");
2231
2161
  var OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR = new Uint8Array([
2232
2162
  220,
2233
2163
  236,
@@ -2239,21 +2169,22 @@ var OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR = new Uint8Array([
2239
2169
  64
2240
2170
  ]);
2241
2171
  function getOpportunityMarketOptionDiscriminatorBytes() {
2242
- return (0, import_kit53.fixEncoderSize)((0, import_kit53.getBytesEncoder)(), 8).encode(
2172
+ return (0, import_kit51.fixEncoderSize)((0, import_kit51.getBytesEncoder)(), 8).encode(
2243
2173
  OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR
2244
2174
  );
2245
2175
  }
2246
2176
  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)())]
2177
+ return (0, import_kit51.transformEncoder)(
2178
+ (0, import_kit51.getStructEncoder)([
2179
+ ["discriminator", (0, import_kit51.fixEncoderSize)((0, import_kit51.getBytesEncoder)(), 8)],
2180
+ ["bump", (0, import_kit51.getU8Encoder)()],
2181
+ ["id", (0, import_kit51.getU64Encoder)()],
2182
+ ["creator", (0, import_kit51.getAddressEncoder)()],
2183
+ ["createdAt", (0, import_kit51.getU64Encoder)()],
2184
+ ["totalStaked", (0, import_kit51.getU64Encoder)()],
2185
+ ["totalScore", (0, import_kit51.getU128Encoder)()],
2186
+ ["rewardBp", (0, import_kit51.getU16Encoder)()],
2187
+ ["includedInActiveBp", (0, import_kit51.getBooleanEncoder)()]
2257
2188
  ]),
2258
2189
  (value) => ({
2259
2190
  ...value,
@@ -2262,25 +2193,26 @@ function getOpportunityMarketOptionEncoder() {
2262
2193
  );
2263
2194
  }
2264
2195
  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)())]
2196
+ return (0, import_kit51.getStructDecoder)([
2197
+ ["discriminator", (0, import_kit51.fixDecoderSize)((0, import_kit51.getBytesDecoder)(), 8)],
2198
+ ["bump", (0, import_kit51.getU8Decoder)()],
2199
+ ["id", (0, import_kit51.getU64Decoder)()],
2200
+ ["creator", (0, import_kit51.getAddressDecoder)()],
2201
+ ["createdAt", (0, import_kit51.getU64Decoder)()],
2202
+ ["totalStaked", (0, import_kit51.getU64Decoder)()],
2203
+ ["totalScore", (0, import_kit51.getU128Decoder)()],
2204
+ ["rewardBp", (0, import_kit51.getU16Decoder)()],
2205
+ ["includedInActiveBp", (0, import_kit51.getBooleanDecoder)()]
2274
2206
  ]);
2275
2207
  }
2276
2208
  function getOpportunityMarketOptionCodec() {
2277
- return (0, import_kit53.combineCodec)(
2209
+ return (0, import_kit51.combineCodec)(
2278
2210
  getOpportunityMarketOptionEncoder(),
2279
2211
  getOpportunityMarketOptionDecoder()
2280
2212
  );
2281
2213
  }
2282
2214
  function decodeOpportunityMarketOption(encodedAccount) {
2283
- return (0, import_kit53.decodeAccount)(
2215
+ return (0, import_kit51.decodeAccount)(
2284
2216
  encodedAccount,
2285
2217
  getOpportunityMarketOptionDecoder()
2286
2218
  );
@@ -2291,11 +2223,11 @@ async function fetchOpportunityMarketOption(rpc, address3, config) {
2291
2223
  address3,
2292
2224
  config
2293
2225
  );
2294
- (0, import_kit53.assertAccountExists)(maybeAccount);
2226
+ (0, import_kit51.assertAccountExists)(maybeAccount);
2295
2227
  return maybeAccount;
2296
2228
  }
2297
2229
  async function fetchMaybeOpportunityMarketOption(rpc, address3, config) {
2298
- const maybeAccount = await (0, import_kit53.fetchEncodedAccount)(rpc, address3, config);
2230
+ const maybeAccount = await (0, import_kit51.fetchEncodedAccount)(rpc, address3, config);
2299
2231
  return decodeOpportunityMarketOption(maybeAccount);
2300
2232
  }
2301
2233
  async function fetchAllOpportunityMarketOption(rpc, addresses, config) {
@@ -2304,18 +2236,18 @@ async function fetchAllOpportunityMarketOption(rpc, addresses, config) {
2304
2236
  addresses,
2305
2237
  config
2306
2238
  );
2307
- (0, import_kit53.assertAccountsExist)(maybeAccounts);
2239
+ (0, import_kit51.assertAccountsExist)(maybeAccounts);
2308
2240
  return maybeAccounts;
2309
2241
  }
2310
2242
  async function fetchAllMaybeOpportunityMarketOption(rpc, addresses, config) {
2311
- const maybeAccounts = await (0, import_kit53.fetchEncodedAccounts)(rpc, addresses, config);
2243
+ const maybeAccounts = await (0, import_kit51.fetchEncodedAccounts)(rpc, addresses, config);
2312
2244
  return maybeAccounts.map(
2313
2245
  (maybeAccount) => decodeOpportunityMarketOption(maybeAccount)
2314
2246
  );
2315
2247
  }
2316
2248
 
2317
2249
  // src/generated/accounts/opportunityMarketSponsor.ts
2318
- var import_kit54 = require("@solana/kit");
2250
+ var import_kit52 = require("@solana/kit");
2319
2251
  var OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR = new Uint8Array([
2320
2252
  207,
2321
2253
  139,
@@ -2327,19 +2259,19 @@ var OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR = new Uint8Array([
2327
2259
  192
2328
2260
  ]);
2329
2261
  function getOpportunityMarketSponsorDiscriminatorBytes() {
2330
- return (0, import_kit54.fixEncoderSize)((0, import_kit54.getBytesEncoder)(), 8).encode(
2262
+ return (0, import_kit52.fixEncoderSize)((0, import_kit52.getBytesEncoder)(), 8).encode(
2331
2263
  OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR
2332
2264
  );
2333
2265
  }
2334
2266
  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)()]
2267
+ return (0, import_kit52.transformEncoder)(
2268
+ (0, import_kit52.getStructEncoder)([
2269
+ ["discriminator", (0, import_kit52.fixEncoderSize)((0, import_kit52.getBytesEncoder)(), 8)],
2270
+ ["bump", (0, import_kit52.getU8Encoder)()],
2271
+ ["sponsor", (0, import_kit52.getAddressEncoder)()],
2272
+ ["market", (0, import_kit52.getAddressEncoder)()],
2273
+ ["rewardDeposited", (0, import_kit52.getU64Encoder)()],
2274
+ ["rewardLocked", (0, import_kit52.getBooleanEncoder)()]
2343
2275
  ]),
2344
2276
  (value) => ({
2345
2277
  ...value,
@@ -2348,23 +2280,23 @@ function getOpportunityMarketSponsorEncoder() {
2348
2280
  );
2349
2281
  }
2350
2282
  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)()]
2283
+ return (0, import_kit52.getStructDecoder)([
2284
+ ["discriminator", (0, import_kit52.fixDecoderSize)((0, import_kit52.getBytesDecoder)(), 8)],
2285
+ ["bump", (0, import_kit52.getU8Decoder)()],
2286
+ ["sponsor", (0, import_kit52.getAddressDecoder)()],
2287
+ ["market", (0, import_kit52.getAddressDecoder)()],
2288
+ ["rewardDeposited", (0, import_kit52.getU64Decoder)()],
2289
+ ["rewardLocked", (0, import_kit52.getBooleanDecoder)()]
2358
2290
  ]);
2359
2291
  }
2360
2292
  function getOpportunityMarketSponsorCodec() {
2361
- return (0, import_kit54.combineCodec)(
2293
+ return (0, import_kit52.combineCodec)(
2362
2294
  getOpportunityMarketSponsorEncoder(),
2363
2295
  getOpportunityMarketSponsorDecoder()
2364
2296
  );
2365
2297
  }
2366
2298
  function decodeOpportunityMarketSponsor(encodedAccount) {
2367
- return (0, import_kit54.decodeAccount)(
2299
+ return (0, import_kit52.decodeAccount)(
2368
2300
  encodedAccount,
2369
2301
  getOpportunityMarketSponsorDecoder()
2370
2302
  );
@@ -2375,11 +2307,11 @@ async function fetchOpportunityMarketSponsor(rpc, address3, config) {
2375
2307
  address3,
2376
2308
  config
2377
2309
  );
2378
- (0, import_kit54.assertAccountExists)(maybeAccount);
2310
+ (0, import_kit52.assertAccountExists)(maybeAccount);
2379
2311
  return maybeAccount;
2380
2312
  }
2381
2313
  async function fetchMaybeOpportunityMarketSponsor(rpc, address3, config) {
2382
- const maybeAccount = await (0, import_kit54.fetchEncodedAccount)(rpc, address3, config);
2314
+ const maybeAccount = await (0, import_kit52.fetchEncodedAccount)(rpc, address3, config);
2383
2315
  return decodeOpportunityMarketSponsor(maybeAccount);
2384
2316
  }
2385
2317
  async function fetchAllOpportunityMarketSponsor(rpc, addresses, config) {
@@ -2388,18 +2320,18 @@ async function fetchAllOpportunityMarketSponsor(rpc, addresses, config) {
2388
2320
  addresses,
2389
2321
  config
2390
2322
  );
2391
- (0, import_kit54.assertAccountsExist)(maybeAccounts);
2323
+ (0, import_kit52.assertAccountsExist)(maybeAccounts);
2392
2324
  return maybeAccounts;
2393
2325
  }
2394
2326
  async function fetchAllMaybeOpportunityMarketSponsor(rpc, addresses, config) {
2395
- const maybeAccounts = await (0, import_kit54.fetchEncodedAccounts)(rpc, addresses, config);
2327
+ const maybeAccounts = await (0, import_kit52.fetchEncodedAccounts)(rpc, addresses, config);
2396
2328
  return maybeAccounts.map(
2397
2329
  (maybeAccount) => decodeOpportunityMarketSponsor(maybeAccount)
2398
2330
  );
2399
2331
  }
2400
2332
 
2401
2333
  // src/generated/accounts/platformConfig.ts
2402
- var import_kit55 = require("@solana/kit");
2334
+ var import_kit53 = require("@solana/kit");
2403
2335
  var PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
2404
2336
  160,
2405
2337
  78,
@@ -2411,57 +2343,57 @@ var PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
2411
2343
  160
2412
2344
  ]);
2413
2345
  function getPlatformConfigDiscriminatorBytes() {
2414
- return (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2346
+ return (0, import_kit53.fixEncoderSize)((0, import_kit53.getBytesEncoder)(), 8).encode(
2415
2347
  PLATFORM_CONFIG_DISCRIMINATOR
2416
2348
  );
2417
2349
  }
2418
2350
  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)()],
2351
+ return (0, import_kit53.transformEncoder)(
2352
+ (0, import_kit53.getStructEncoder)([
2353
+ ["discriminator", (0, import_kit53.fixEncoderSize)((0, import_kit53.getBytesEncoder)(), 8)],
2354
+ ["bump", (0, import_kit53.getU8Encoder)()],
2355
+ ["name", (0, import_kit53.addEncoderSizePrefix)((0, import_kit53.getUtf8Encoder)(), (0, import_kit53.getU32Encoder)())],
2356
+ ["updateAuthority", (0, import_kit53.getAddressEncoder)()],
2357
+ ["feeClaimAuthority", (0, import_kit53.getAddressEncoder)()],
2426
2358
  ["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)()]
2359
+ ["marketResolutionDeadlineSeconds", (0, import_kit53.getU64Encoder)()],
2360
+ ["minTimeToStakeSeconds", (0, import_kit53.getU64Encoder)()],
2361
+ ["revealAuthority", (0, import_kit53.getAddressEncoder)()],
2362
+ ["revealPeriodSeconds", (0, import_kit53.getU64Encoder)()]
2431
2363
  ]),
2432
2364
  (value) => ({ ...value, discriminator: PLATFORM_CONFIG_DISCRIMINATOR })
2433
2365
  );
2434
2366
  }
2435
2367
  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)()],
2368
+ return (0, import_kit53.getStructDecoder)([
2369
+ ["discriminator", (0, import_kit53.fixDecoderSize)((0, import_kit53.getBytesDecoder)(), 8)],
2370
+ ["bump", (0, import_kit53.getU8Decoder)()],
2371
+ ["name", (0, import_kit53.addDecoderSizePrefix)((0, import_kit53.getUtf8Decoder)(), (0, import_kit53.getU32Decoder)())],
2372
+ ["updateAuthority", (0, import_kit53.getAddressDecoder)()],
2373
+ ["feeClaimAuthority", (0, import_kit53.getAddressDecoder)()],
2442
2374
  ["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)()]
2375
+ ["marketResolutionDeadlineSeconds", (0, import_kit53.getU64Decoder)()],
2376
+ ["minTimeToStakeSeconds", (0, import_kit53.getU64Decoder)()],
2377
+ ["revealAuthority", (0, import_kit53.getAddressDecoder)()],
2378
+ ["revealPeriodSeconds", (0, import_kit53.getU64Decoder)()]
2447
2379
  ]);
2448
2380
  }
2449
2381
  function getPlatformConfigCodec() {
2450
- return (0, import_kit55.combineCodec)(getPlatformConfigEncoder(), getPlatformConfigDecoder());
2382
+ return (0, import_kit53.combineCodec)(getPlatformConfigEncoder(), getPlatformConfigDecoder());
2451
2383
  }
2452
2384
  function decodePlatformConfig(encodedAccount) {
2453
- return (0, import_kit55.decodeAccount)(
2385
+ return (0, import_kit53.decodeAccount)(
2454
2386
  encodedAccount,
2455
2387
  getPlatformConfigDecoder()
2456
2388
  );
2457
2389
  }
2458
2390
  async function fetchPlatformConfig(rpc, address3, config) {
2459
2391
  const maybeAccount = await fetchMaybePlatformConfig(rpc, address3, config);
2460
- (0, import_kit55.assertAccountExists)(maybeAccount);
2392
+ (0, import_kit53.assertAccountExists)(maybeAccount);
2461
2393
  return maybeAccount;
2462
2394
  }
2463
2395
  async function fetchMaybePlatformConfig(rpc, address3, config) {
2464
- const maybeAccount = await (0, import_kit55.fetchEncodedAccount)(rpc, address3, config);
2396
+ const maybeAccount = await (0, import_kit53.fetchEncodedAccount)(rpc, address3, config);
2465
2397
  return decodePlatformConfig(maybeAccount);
2466
2398
  }
2467
2399
  async function fetchAllPlatformConfig(rpc, addresses, config) {
@@ -2470,18 +2402,18 @@ async function fetchAllPlatformConfig(rpc, addresses, config) {
2470
2402
  addresses,
2471
2403
  config
2472
2404
  );
2473
- (0, import_kit55.assertAccountsExist)(maybeAccounts);
2405
+ (0, import_kit53.assertAccountsExist)(maybeAccounts);
2474
2406
  return maybeAccounts;
2475
2407
  }
2476
2408
  async function fetchAllMaybePlatformConfig(rpc, addresses, config) {
2477
- const maybeAccounts = await (0, import_kit55.fetchEncodedAccounts)(rpc, addresses, config);
2409
+ const maybeAccounts = await (0, import_kit53.fetchEncodedAccounts)(rpc, addresses, config);
2478
2410
  return maybeAccounts.map(
2479
2411
  (maybeAccount) => decodePlatformConfig(maybeAccount)
2480
2412
  );
2481
2413
  }
2482
2414
 
2483
2415
  // src/generated/accounts/stakeAccount.ts
2484
- var import_kit56 = require("@solana/kit");
2416
+ var import_kit54 = require("@solana/kit");
2485
2417
  var STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
2486
2418
  80,
2487
2419
  158,
@@ -2493,98 +2425,98 @@ var STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
2493
2425
  255
2494
2426
  ]);
2495
2427
  function getStakeAccountDiscriminatorBytes() {
2496
- return (0, import_kit56.fixEncoderSize)((0, import_kit56.getBytesEncoder)(), 8).encode(
2428
+ return (0, import_kit54.fixEncoderSize)((0, import_kit54.getBytesEncoder)(), 8).encode(
2497
2429
  STAKE_ACCOUNT_DISCRIMINATOR
2498
2430
  );
2499
2431
  }
2500
2432
  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 })],
2433
+ return (0, import_kit54.transformEncoder)(
2434
+ (0, import_kit54.getStructEncoder)([
2435
+ ["discriminator", (0, import_kit54.fixEncoderSize)((0, import_kit54.getBytesEncoder)(), 8)],
2436
+ ["encryptedOption", (0, import_kit54.getArrayEncoder)((0, import_kit54.getU8Encoder)(), { size: 32 })],
2437
+ ["stateNonce", (0, import_kit54.getU128Encoder)()],
2438
+ ["bump", (0, import_kit54.getU8Encoder)()],
2439
+ ["owner", (0, import_kit54.getAddressEncoder)()],
2440
+ ["market", (0, import_kit54.getAddressEncoder)()],
2441
+ ["userPubkey", (0, import_kit54.getArrayEncoder)((0, import_kit54.getU8Encoder)(), { size: 32 })],
2510
2442
  [
2511
2443
  "encryptedOptionDisclosure",
2512
- (0, import_kit56.getArrayEncoder)((0, import_kit56.getU8Encoder)(), { size: 32 })
2444
+ (0, import_kit54.getArrayEncoder)((0, import_kit54.getU8Encoder)(), { size: 32 })
2513
2445
  ],
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)()],
2446
+ ["stateNonceDisclosure", (0, import_kit54.getU128Encoder)()],
2447
+ ["stakedAtTimestamp", (0, import_kit54.getOptionEncoder)((0, import_kit54.getU64Encoder)())],
2448
+ ["unstakedAtTimestamp", (0, import_kit54.getOptionEncoder)((0, import_kit54.getU64Encoder)())],
2449
+ ["amount", (0, import_kit54.getU64Encoder)()],
2518
2450
  ["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)()]
2451
+ ["revealedOption", (0, import_kit54.getOptionEncoder)((0, import_kit54.getU64Encoder)())],
2452
+ ["score", (0, import_kit54.getOptionEncoder)((0, import_kit54.getU64Encoder)())],
2453
+ ["unstaked", (0, import_kit54.getBooleanEncoder)()],
2454
+ ["id", (0, import_kit54.getU32Encoder)()],
2455
+ ["pendingStakeComputation", (0, import_kit54.getOptionEncoder)((0, import_kit54.getAddressEncoder)())],
2456
+ ["pendingReveal", (0, import_kit54.getBooleanEncoder)()]
2525
2457
  ]),
2526
2458
  (value) => ({ ...value, discriminator: STAKE_ACCOUNT_DISCRIMINATOR })
2527
2459
  );
2528
2460
  }
2529
2461
  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 })],
2462
+ return (0, import_kit54.getStructDecoder)([
2463
+ ["discriminator", (0, import_kit54.fixDecoderSize)((0, import_kit54.getBytesDecoder)(), 8)],
2464
+ ["encryptedOption", (0, import_kit54.getArrayDecoder)((0, import_kit54.getU8Decoder)(), { size: 32 })],
2465
+ ["stateNonce", (0, import_kit54.getU128Decoder)()],
2466
+ ["bump", (0, import_kit54.getU8Decoder)()],
2467
+ ["owner", (0, import_kit54.getAddressDecoder)()],
2468
+ ["market", (0, import_kit54.getAddressDecoder)()],
2469
+ ["userPubkey", (0, import_kit54.getArrayDecoder)((0, import_kit54.getU8Decoder)(), { size: 32 })],
2538
2470
  [
2539
2471
  "encryptedOptionDisclosure",
2540
- (0, import_kit56.getArrayDecoder)((0, import_kit56.getU8Decoder)(), { size: 32 })
2472
+ (0, import_kit54.getArrayDecoder)((0, import_kit54.getU8Decoder)(), { size: 32 })
2541
2473
  ],
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)()],
2474
+ ["stateNonceDisclosure", (0, import_kit54.getU128Decoder)()],
2475
+ ["stakedAtTimestamp", (0, import_kit54.getOptionDecoder)((0, import_kit54.getU64Decoder)())],
2476
+ ["unstakedAtTimestamp", (0, import_kit54.getOptionDecoder)((0, import_kit54.getU64Decoder)())],
2477
+ ["amount", (0, import_kit54.getU64Decoder)()],
2546
2478
  ["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)()]
2479
+ ["revealedOption", (0, import_kit54.getOptionDecoder)((0, import_kit54.getU64Decoder)())],
2480
+ ["score", (0, import_kit54.getOptionDecoder)((0, import_kit54.getU64Decoder)())],
2481
+ ["unstaked", (0, import_kit54.getBooleanDecoder)()],
2482
+ ["id", (0, import_kit54.getU32Decoder)()],
2483
+ ["pendingStakeComputation", (0, import_kit54.getOptionDecoder)((0, import_kit54.getAddressDecoder)())],
2484
+ ["pendingReveal", (0, import_kit54.getBooleanDecoder)()]
2553
2485
  ]);
2554
2486
  }
2555
2487
  function getStakeAccountCodec() {
2556
- return (0, import_kit56.combineCodec)(getStakeAccountEncoder(), getStakeAccountDecoder());
2488
+ return (0, import_kit54.combineCodec)(getStakeAccountEncoder(), getStakeAccountDecoder());
2557
2489
  }
2558
2490
  function decodeStakeAccount(encodedAccount) {
2559
- return (0, import_kit56.decodeAccount)(
2491
+ return (0, import_kit54.decodeAccount)(
2560
2492
  encodedAccount,
2561
2493
  getStakeAccountDecoder()
2562
2494
  );
2563
2495
  }
2564
2496
  async function fetchStakeAccount(rpc, address3, config) {
2565
2497
  const maybeAccount = await fetchMaybeStakeAccount(rpc, address3, config);
2566
- (0, import_kit56.assertAccountExists)(maybeAccount);
2498
+ (0, import_kit54.assertAccountExists)(maybeAccount);
2567
2499
  return maybeAccount;
2568
2500
  }
2569
2501
  async function fetchMaybeStakeAccount(rpc, address3, config) {
2570
- const maybeAccount = await (0, import_kit56.fetchEncodedAccount)(rpc, address3, config);
2502
+ const maybeAccount = await (0, import_kit54.fetchEncodedAccount)(rpc, address3, config);
2571
2503
  return decodeStakeAccount(maybeAccount);
2572
2504
  }
2573
2505
  async function fetchAllStakeAccount(rpc, addresses, config) {
2574
2506
  const maybeAccounts = await fetchAllMaybeStakeAccount(rpc, addresses, config);
2575
- (0, import_kit56.assertAccountsExist)(maybeAccounts);
2507
+ (0, import_kit54.assertAccountsExist)(maybeAccounts);
2576
2508
  return maybeAccounts;
2577
2509
  }
2578
2510
  async function fetchAllMaybeStakeAccount(rpc, addresses, config) {
2579
- const maybeAccounts = await (0, import_kit56.fetchEncodedAccounts)(rpc, addresses, config);
2511
+ const maybeAccounts = await (0, import_kit54.fetchEncodedAccounts)(rpc, addresses, config);
2580
2512
  return maybeAccounts.map((maybeAccount) => decodeStakeAccount(maybeAccount));
2581
2513
  }
2582
2514
 
2583
2515
  // src/generated/errors/opportunityMarket.ts
2584
- var import_kit58 = require("@solana/kit");
2516
+ var import_kit56 = require("@solana/kit");
2585
2517
 
2586
2518
  // src/generated/programs/opportunityMarket.ts
2587
- var import_kit57 = require("@solana/kit");
2519
+ var import_kit55 = require("@solana/kit");
2588
2520
  var OPPORTUNITY_MARKET_PROGRAM_ADDRESS = "B3NCHsGBkdZrPYPJY2rjg4UwmyRotMmFWhxa5hMHwLeg";
2589
2521
  var OpportunityMarketAccount = /* @__PURE__ */ ((OpportunityMarketAccount2) => {
2590
2522
  OpportunityMarketAccount2[OpportunityMarketAccount2["AllowedMint"] = 0] = "AllowedMint";
@@ -2598,63 +2530,63 @@ var OpportunityMarketAccount = /* @__PURE__ */ ((OpportunityMarketAccount2) => {
2598
2530
  })(OpportunityMarketAccount || {});
2599
2531
  function identifyOpportunityMarketAccount(account) {
2600
2532
  const data = "data" in account ? account.data : account;
2601
- if ((0, import_kit57.containsBytes)(
2533
+ if ((0, import_kit55.containsBytes)(
2602
2534
  data,
2603
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2535
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2604
2536
  new Uint8Array([173, 229, 179, 46, 121, 164, 247, 6])
2605
2537
  ),
2606
2538
  0
2607
2539
  )) {
2608
2540
  return 0 /* AllowedMint */;
2609
2541
  }
2610
- if ((0, import_kit57.containsBytes)(
2542
+ if ((0, import_kit55.containsBytes)(
2611
2543
  data,
2612
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2544
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2613
2545
  new Uint8Array([214, 157, 122, 114, 117, 44, 214, 74])
2614
2546
  ),
2615
2547
  0
2616
2548
  )) {
2617
2549
  return 1 /* ArciumSignerAccount */;
2618
2550
  }
2619
- if ((0, import_kit57.containsBytes)(
2551
+ if ((0, import_kit55.containsBytes)(
2620
2552
  data,
2621
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2553
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2622
2554
  new Uint8Array([207, 103, 169, 160, 157, 215, 97, 224])
2623
2555
  ),
2624
2556
  0
2625
2557
  )) {
2626
2558
  return 2 /* OpportunityMarket */;
2627
2559
  }
2628
- if ((0, import_kit57.containsBytes)(
2560
+ if ((0, import_kit55.containsBytes)(
2629
2561
  data,
2630
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2562
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2631
2563
  new Uint8Array([220, 236, 171, 213, 170, 117, 10, 64])
2632
2564
  ),
2633
2565
  0
2634
2566
  )) {
2635
2567
  return 3 /* OpportunityMarketOption */;
2636
2568
  }
2637
- if ((0, import_kit57.containsBytes)(
2569
+ if ((0, import_kit55.containsBytes)(
2638
2570
  data,
2639
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2571
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2640
2572
  new Uint8Array([207, 139, 192, 91, 37, 190, 2, 192])
2641
2573
  ),
2642
2574
  0
2643
2575
  )) {
2644
2576
  return 4 /* OpportunityMarketSponsor */;
2645
2577
  }
2646
- if ((0, import_kit57.containsBytes)(
2578
+ if ((0, import_kit55.containsBytes)(
2647
2579
  data,
2648
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2580
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2649
2581
  new Uint8Array([160, 78, 128, 0, 248, 83, 230, 160])
2650
2582
  ),
2651
2583
  0
2652
2584
  )) {
2653
2585
  return 5 /* PlatformConfig */;
2654
2586
  }
2655
- if ((0, import_kit57.containsBytes)(
2587
+ if ((0, import_kit55.containsBytes)(
2656
2588
  data,
2657
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2589
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2658
2590
  new Uint8Array([80, 158, 67, 124, 50, 189, 192, 255])
2659
2591
  ),
2660
2592
  0
@@ -2680,285 +2612,265 @@ var OpportunityMarketInstruction = /* @__PURE__ */ ((OpportunityMarketInstructio
2680
2612
  OpportunityMarketInstruction2[OpportunityMarketInstruction2["InitPlatformConfig"] = 11] = "InitPlatformConfig";
2681
2613
  OpportunityMarketInstruction2[OpportunityMarketInstruction2["InitStakeAccount"] = 12] = "InitStakeAccount";
2682
2614
  OpportunityMarketInstruction2[OpportunityMarketInstruction2["OpenMarket"] = 13] = "OpenMarket";
2683
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["PauseStaking"] = 14] = "PauseStaking";
2684
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["ResolveMarket"] = 15] = "ResolveMarket";
2685
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["ResumeStaking"] = 16] = "ResumeStaking";
2686
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["RevealStake"] = 17] = "RevealStake";
2687
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["RevealStakeCallback"] = 18] = "RevealStakeCallback";
2688
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["RevealStakeCompDef"] = 19] = "RevealStakeCompDef";
2689
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["SetFeeClaimAuthority"] = 20] = "SetFeeClaimAuthority";
2690
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["SetUpdateAuthority"] = 21] = "SetUpdateAuthority";
2691
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["SetWinningOption"] = 22] = "SetWinningOption";
2692
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["Stake"] = 23] = "Stake";
2693
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["StakeCallback"] = 24] = "StakeCallback";
2694
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["StakeCompDef"] = 25] = "StakeCompDef";
2695
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["Unstake"] = 26] = "Unstake";
2696
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["UpdatePlatformConfig"] = 27] = "UpdatePlatformConfig";
2697
- OpportunityMarketInstruction2[OpportunityMarketInstruction2["WithdrawReward"] = 28] = "WithdrawReward";
2615
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["ResolveMarket"] = 14] = "ResolveMarket";
2616
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["RevealStake"] = 15] = "RevealStake";
2617
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["RevealStakeCallback"] = 16] = "RevealStakeCallback";
2618
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["RevealStakeCompDef"] = 17] = "RevealStakeCompDef";
2619
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["SetFeeClaimAuthority"] = 18] = "SetFeeClaimAuthority";
2620
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["SetUpdateAuthority"] = 19] = "SetUpdateAuthority";
2621
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["SetWinningOption"] = 20] = "SetWinningOption";
2622
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["Stake"] = 21] = "Stake";
2623
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["StakeCallback"] = 22] = "StakeCallback";
2624
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["StakeCompDef"] = 23] = "StakeCompDef";
2625
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["Unstake"] = 24] = "Unstake";
2626
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["UpdatePlatformConfig"] = 25] = "UpdatePlatformConfig";
2627
+ OpportunityMarketInstruction2[OpportunityMarketInstruction2["WithdrawReward"] = 26] = "WithdrawReward";
2698
2628
  return OpportunityMarketInstruction2;
2699
2629
  })(OpportunityMarketInstruction || {});
2700
2630
  function identifyOpportunityMarketInstruction(instruction) {
2701
2631
  const data = "data" in instruction ? instruction.data : instruction;
2702
- if ((0, import_kit57.containsBytes)(
2632
+ if ((0, import_kit55.containsBytes)(
2703
2633
  data,
2704
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2634
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2705
2635
  new Uint8Array([76, 189, 93, 144, 50, 229, 250, 116])
2706
2636
  ),
2707
2637
  0
2708
2638
  )) {
2709
2639
  return 0 /* AddMarketOption */;
2710
2640
  }
2711
- if ((0, import_kit57.containsBytes)(
2641
+ if ((0, import_kit55.containsBytes)(
2712
2642
  data,
2713
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2643
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2714
2644
  new Uint8Array([4, 114, 188, 164, 149, 249, 198, 237])
2715
2645
  ),
2716
2646
  0
2717
2647
  )) {
2718
2648
  return 1 /* AddReward */;
2719
2649
  }
2720
- if ((0, import_kit57.containsBytes)(
2650
+ if ((0, import_kit55.containsBytes)(
2721
2651
  data,
2722
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2652
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2723
2653
  new Uint8Array([0, 23, 125, 234, 156, 118, 134, 89])
2724
2654
  ),
2725
2655
  0
2726
2656
  )) {
2727
2657
  return 2 /* ClaimCreatorFees */;
2728
2658
  }
2729
- if ((0, import_kit57.containsBytes)(
2659
+ if ((0, import_kit55.containsBytes)(
2730
2660
  data,
2731
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2661
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2732
2662
  new Uint8Array([82, 251, 233, 156, 12, 52, 184, 202])
2733
2663
  ),
2734
2664
  0
2735
2665
  )) {
2736
2666
  return 3 /* ClaimFees */;
2737
2667
  }
2738
- if ((0, import_kit57.containsBytes)(
2668
+ if ((0, import_kit55.containsBytes)(
2739
2669
  data,
2740
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2670
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2741
2671
  new Uint8Array([46, 121, 107, 240, 123, 190, 229, 1])
2742
2672
  ),
2743
2673
  0
2744
2674
  )) {
2745
2675
  return 4 /* CloseOptionAccount */;
2746
2676
  }
2747
- if ((0, import_kit57.containsBytes)(
2677
+ if ((0, import_kit55.containsBytes)(
2748
2678
  data,
2749
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2679
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2750
2680
  new Uint8Array([246, 236, 59, 167, 115, 135, 122, 12])
2751
2681
  ),
2752
2682
  0
2753
2683
  )) {
2754
2684
  return 5 /* CloseStakeAccount */;
2755
2685
  }
2756
- if ((0, import_kit57.containsBytes)(
2686
+ if ((0, import_kit55.containsBytes)(
2757
2687
  data,
2758
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2688
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2759
2689
  new Uint8Array([41, 239, 108, 203, 185, 230, 165, 181])
2760
2690
  ),
2761
2691
  0
2762
2692
  )) {
2763
2693
  return 6 /* CloseStuckStakeAccount */;
2764
2694
  }
2765
- if ((0, import_kit57.containsBytes)(
2695
+ if ((0, import_kit55.containsBytes)(
2766
2696
  data,
2767
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2697
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2768
2698
  new Uint8Array([103, 226, 97, 235, 200, 188, 251, 254])
2769
2699
  ),
2770
2700
  0
2771
2701
  )) {
2772
2702
  return 7 /* CreateMarket */;
2773
2703
  }
2774
- if ((0, import_kit57.containsBytes)(
2704
+ if ((0, import_kit55.containsBytes)(
2775
2705
  data,
2776
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2706
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2777
2707
  new Uint8Array([144, 81, 42, 65, 127, 60, 134, 92])
2778
2708
  ),
2779
2709
  0
2780
2710
  )) {
2781
2711
  return 8 /* EndRevealPeriod */;
2782
2712
  }
2783
- if ((0, import_kit57.containsBytes)(
2713
+ if ((0, import_kit55.containsBytes)(
2784
2714
  data,
2785
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2715
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2786
2716
  new Uint8Array([92, 201, 94, 219, 117, 53, 255, 230])
2787
2717
  ),
2788
2718
  0
2789
2719
  )) {
2790
2720
  return 9 /* FinalizeRevealStake */;
2791
2721
  }
2792
- if ((0, import_kit57.containsBytes)(
2722
+ if ((0, import_kit55.containsBytes)(
2793
2723
  data,
2794
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2724
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2795
2725
  new Uint8Array([215, 70, 3, 5, 42, 229, 151, 10])
2796
2726
  ),
2797
2727
  0
2798
2728
  )) {
2799
2729
  return 10 /* InitAllowedMint */;
2800
2730
  }
2801
- if ((0, import_kit57.containsBytes)(
2731
+ if ((0, import_kit55.containsBytes)(
2802
2732
  data,
2803
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2733
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2804
2734
  new Uint8Array([101, 52, 47, 49, 156, 16, 32, 118])
2805
2735
  ),
2806
2736
  0
2807
2737
  )) {
2808
2738
  return 11 /* InitPlatformConfig */;
2809
2739
  }
2810
- if ((0, import_kit57.containsBytes)(
2740
+ if ((0, import_kit55.containsBytes)(
2811
2741
  data,
2812
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2742
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2813
2743
  new Uint8Array([132, 171, 255, 149, 163, 37, 220, 45])
2814
2744
  ),
2815
2745
  0
2816
2746
  )) {
2817
2747
  return 12 /* InitStakeAccount */;
2818
2748
  }
2819
- if ((0, import_kit57.containsBytes)(
2749
+ if ((0, import_kit55.containsBytes)(
2820
2750
  data,
2821
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2751
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2822
2752
  new Uint8Array([116, 19, 123, 75, 217, 244, 69, 44])
2823
2753
  ),
2824
2754
  0
2825
2755
  )) {
2826
2756
  return 13 /* OpenMarket */;
2827
2757
  }
2828
- if ((0, import_kit57.containsBytes)(
2758
+ if ((0, import_kit55.containsBytes)(
2829
2759
  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(
2760
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2840
2761
  new Uint8Array([155, 23, 80, 173, 46, 74, 23, 239])
2841
2762
  ),
2842
2763
  0
2843
2764
  )) {
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 */;
2765
+ return 14 /* ResolveMarket */;
2854
2766
  }
2855
- if ((0, import_kit57.containsBytes)(
2767
+ if ((0, import_kit55.containsBytes)(
2856
2768
  data,
2857
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2769
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2858
2770
  new Uint8Array([107, 229, 210, 77, 126, 255, 243, 188])
2859
2771
  ),
2860
2772
  0
2861
2773
  )) {
2862
- return 17 /* RevealStake */;
2774
+ return 15 /* RevealStake */;
2863
2775
  }
2864
- if ((0, import_kit57.containsBytes)(
2776
+ if ((0, import_kit55.containsBytes)(
2865
2777
  data,
2866
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2778
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2867
2779
  new Uint8Array([79, 19, 120, 162, 232, 39, 206, 116])
2868
2780
  ),
2869
2781
  0
2870
2782
  )) {
2871
- return 18 /* RevealStakeCallback */;
2783
+ return 16 /* RevealStakeCallback */;
2872
2784
  }
2873
- if ((0, import_kit57.containsBytes)(
2785
+ if ((0, import_kit55.containsBytes)(
2874
2786
  data,
2875
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2787
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2876
2788
  new Uint8Array([197, 20, 216, 132, 43, 99, 64, 0])
2877
2789
  ),
2878
2790
  0
2879
2791
  )) {
2880
- return 19 /* RevealStakeCompDef */;
2792
+ return 17 /* RevealStakeCompDef */;
2881
2793
  }
2882
- if ((0, import_kit57.containsBytes)(
2794
+ if ((0, import_kit55.containsBytes)(
2883
2795
  data,
2884
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2796
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2885
2797
  new Uint8Array([75, 250, 161, 197, 43, 196, 161, 3])
2886
2798
  ),
2887
2799
  0
2888
2800
  )) {
2889
- return 20 /* SetFeeClaimAuthority */;
2801
+ return 18 /* SetFeeClaimAuthority */;
2890
2802
  }
2891
- if ((0, import_kit57.containsBytes)(
2803
+ if ((0, import_kit55.containsBytes)(
2892
2804
  data,
2893
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2805
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2894
2806
  new Uint8Array([166, 198, 186, 255, 217, 170, 103, 155])
2895
2807
  ),
2896
2808
  0
2897
2809
  )) {
2898
- return 21 /* SetUpdateAuthority */;
2810
+ return 19 /* SetUpdateAuthority */;
2899
2811
  }
2900
- if ((0, import_kit57.containsBytes)(
2812
+ if ((0, import_kit55.containsBytes)(
2901
2813
  data,
2902
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2814
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2903
2815
  new Uint8Array([156, 73, 113, 33, 170, 115, 163, 206])
2904
2816
  ),
2905
2817
  0
2906
2818
  )) {
2907
- return 22 /* SetWinningOption */;
2819
+ return 20 /* SetWinningOption */;
2908
2820
  }
2909
- if ((0, import_kit57.containsBytes)(
2821
+ if ((0, import_kit55.containsBytes)(
2910
2822
  data,
2911
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2823
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2912
2824
  new Uint8Array([206, 176, 202, 18, 200, 209, 179, 108])
2913
2825
  ),
2914
2826
  0
2915
2827
  )) {
2916
- return 23 /* Stake */;
2828
+ return 21 /* Stake */;
2917
2829
  }
2918
- if ((0, import_kit57.containsBytes)(
2830
+ if ((0, import_kit55.containsBytes)(
2919
2831
  data,
2920
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2832
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2921
2833
  new Uint8Array([40, 220, 36, 47, 6, 116, 132, 89])
2922
2834
  ),
2923
2835
  0
2924
2836
  )) {
2925
- return 24 /* StakeCallback */;
2837
+ return 22 /* StakeCallback */;
2926
2838
  }
2927
- if ((0, import_kit57.containsBytes)(
2839
+ if ((0, import_kit55.containsBytes)(
2928
2840
  data,
2929
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2841
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2930
2842
  new Uint8Array([156, 5, 60, 126, 142, 149, 1, 130])
2931
2843
  ),
2932
2844
  0
2933
2845
  )) {
2934
- return 25 /* StakeCompDef */;
2846
+ return 23 /* StakeCompDef */;
2935
2847
  }
2936
- if ((0, import_kit57.containsBytes)(
2848
+ if ((0, import_kit55.containsBytes)(
2937
2849
  data,
2938
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2850
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2939
2851
  new Uint8Array([90, 95, 107, 42, 205, 124, 50, 225])
2940
2852
  ),
2941
2853
  0
2942
2854
  )) {
2943
- return 26 /* Unstake */;
2855
+ return 24 /* Unstake */;
2944
2856
  }
2945
- if ((0, import_kit57.containsBytes)(
2857
+ if ((0, import_kit55.containsBytes)(
2946
2858
  data,
2947
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2859
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2948
2860
  new Uint8Array([195, 60, 76, 129, 146, 45, 67, 143])
2949
2861
  ),
2950
2862
  0
2951
2863
  )) {
2952
- return 27 /* UpdatePlatformConfig */;
2864
+ return 25 /* UpdatePlatformConfig */;
2953
2865
  }
2954
- if ((0, import_kit57.containsBytes)(
2866
+ if ((0, import_kit55.containsBytes)(
2955
2867
  data,
2956
- (0, import_kit57.fixEncoderSize)((0, import_kit57.getBytesEncoder)(), 8).encode(
2868
+ (0, import_kit55.fixEncoderSize)((0, import_kit55.getBytesEncoder)(), 8).encode(
2957
2869
  new Uint8Array([191, 187, 176, 137, 9, 25, 187, 244])
2958
2870
  ),
2959
2871
  0
2960
2872
  )) {
2961
- return 28 /* WithdrawReward */;
2873
+ return 26 /* WithdrawReward */;
2962
2874
  }
2963
2875
  throw new Error(
2964
2876
  "The provided instruction could not be identified as a opportunityMarket instruction."
@@ -2992,16 +2904,15 @@ var OPPORTUNITY_MARKET_ERROR__LOCKED = 6022;
2992
2904
  var OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE = 6023;
2993
2905
  var OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM = 6024;
2994
2906
  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;
2907
+ var OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM = 6026;
2908
+ var OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED = 6027;
2909
+ var OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES = 6028;
2910
+ var OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED = 6029;
2911
+ var OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH = 6030;
2912
+ var OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER = 6031;
2913
+ var OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION = 6032;
2914
+ var OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6033;
2915
+ var OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED = 6034;
3005
2916
  var opportunityMarketErrorMessages;
3006
2917
  if (process.env.NODE_ENV !== "production") {
3007
2918
  opportunityMarketErrorMessages = {
@@ -3022,10 +2933,9 @@ if (process.env.NODE_ENV !== "production") {
3022
2933
  [OPPORTUNITY_MARKET_ERROR__LOCKED]: `Account is locked`,
3023
2934
  [OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN]: `Market is already open`,
3024
2935
  [OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN]: `Market is not open`,
3025
- [OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED]: `Market is not paused`,
3026
2936
  [OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED]: `Market not yet resolved`,
3027
- [OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED]: `Market staking is currently paused`,
3028
2937
  [OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM]: `No fees to claim`,
2938
+ [OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION]: `No winning option has a finalized stake`,
3029
2939
  [OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM]: `No reward to claim`,
3030
2940
  [OPPORTUNITY_MARKET_ERROR__NO_STAKE]: `Stake account has no recorded stake`,
3031
2941
  [OPPORTUNITY_MARKET_ERROR__NOT_REVEALED]: `Stake not yet revealed`,
@@ -3050,7 +2960,7 @@ function getOpportunityMarketErrorMessage(code) {
3050
2960
  return "Error message not available in production bundles.";
3051
2961
  }
3052
2962
  function isOpportunityMarketError(error, transactionMessage, code) {
3053
- return (0, import_kit58.isProgramError)(
2963
+ return (0, import_kit56.isProgramError)(
3054
2964
  error,
3055
2965
  transactionMessage,
3056
2966
  OPPORTUNITY_MARKET_PROGRAM_ADDRESS,
@@ -3059,10 +2969,10 @@ function isOpportunityMarketError(error, transactionMessage, code) {
3059
2969
  }
3060
2970
 
3061
2971
  // src/generated/instructions/addMarketOption.ts
3062
- var import_kit60 = require("@solana/kit");
2972
+ var import_kit58 = require("@solana/kit");
3063
2973
 
3064
2974
  // src/generated/shared/index.ts
3065
- var import_kit59 = require("@solana/kit");
2975
+ var import_kit57 = require("@solana/kit");
3066
2976
  function expectSome(value) {
3067
2977
  if (value === null || value === void 0) {
3068
2978
  throw new Error("Expected a value but received null or undefined.");
@@ -3087,19 +2997,19 @@ function getAccountMetaFactory(programAddress, optionalAccountStrategy) {
3087
2997
  if (optionalAccountStrategy === "omitted") return;
3088
2998
  return Object.freeze({
3089
2999
  address: programAddress,
3090
- role: import_kit59.AccountRole.READONLY
3000
+ role: import_kit57.AccountRole.READONLY
3091
3001
  });
3092
3002
  }
3093
- const writableRole = account.isWritable ? import_kit59.AccountRole.WRITABLE : import_kit59.AccountRole.READONLY;
3003
+ const writableRole = account.isWritable ? import_kit57.AccountRole.WRITABLE : import_kit57.AccountRole.READONLY;
3094
3004
  return Object.freeze({
3095
3005
  address: expectAddress(account.value),
3096
- role: isTransactionSigner(account.value) ? (0, import_kit59.upgradeRoleToSigner)(writableRole) : writableRole,
3006
+ role: isTransactionSigner(account.value) ? (0, import_kit57.upgradeRoleToSigner)(writableRole) : writableRole,
3097
3007
  ...isTransactionSigner(account.value) ? { signer: account.value } : {}
3098
3008
  });
3099
3009
  };
3100
3010
  }
3101
3011
  function isTransactionSigner(value) {
3102
- return !!value && typeof value === "object" && "address" in value && (0, import_kit59.isTransactionSigner)(value);
3012
+ return !!value && typeof value === "object" && "address" in value && (0, import_kit57.isTransactionSigner)(value);
3103
3013
  }
3104
3014
 
3105
3015
  // src/generated/instructions/addMarketOption.ts
@@ -3114,27 +3024,27 @@ var ADD_MARKET_OPTION_DISCRIMINATOR = new Uint8Array([
3114
3024
  116
3115
3025
  ]);
3116
3026
  function getAddMarketOptionDiscriminatorBytes() {
3117
- return (0, import_kit60.fixEncoderSize)((0, import_kit60.getBytesEncoder)(), 8).encode(
3027
+ return (0, import_kit58.fixEncoderSize)((0, import_kit58.getBytesEncoder)(), 8).encode(
3118
3028
  ADD_MARKET_OPTION_DISCRIMINATOR
3119
3029
  );
3120
3030
  }
3121
3031
  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)()]
3032
+ return (0, import_kit58.transformEncoder)(
3033
+ (0, import_kit58.getStructEncoder)([
3034
+ ["discriminator", (0, import_kit58.fixEncoderSize)((0, import_kit58.getBytesEncoder)(), 8)],
3035
+ ["optionId", (0, import_kit58.getU64Encoder)()]
3126
3036
  ]),
3127
3037
  (value) => ({ ...value, discriminator: ADD_MARKET_OPTION_DISCRIMINATOR })
3128
3038
  );
3129
3039
  }
3130
3040
  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)()]
3041
+ return (0, import_kit58.getStructDecoder)([
3042
+ ["discriminator", (0, import_kit58.fixDecoderSize)((0, import_kit58.getBytesDecoder)(), 8)],
3043
+ ["optionId", (0, import_kit58.getU64Decoder)()]
3134
3044
  ]);
3135
3045
  }
3136
3046
  function getAddMarketOptionInstructionDataCodec() {
3137
- return (0, import_kit60.combineCodec)(
3047
+ return (0, import_kit58.combineCodec)(
3138
3048
  getAddMarketOptionInstructionDataEncoder(),
3139
3049
  getAddMarketOptionInstructionDataDecoder()
3140
3050
  );
@@ -3150,14 +3060,14 @@ async function getAddMarketOptionInstructionAsync(input, config) {
3150
3060
  const accounts = originalAccounts;
3151
3061
  const args = { ...input };
3152
3062
  if (!accounts.option.value) {
3153
- accounts.option.value = await (0, import_kit60.getProgramDerivedAddress)({
3063
+ accounts.option.value = await (0, import_kit58.getProgramDerivedAddress)({
3154
3064
  programAddress,
3155
3065
  seeds: [
3156
- (0, import_kit60.getBytesEncoder)().encode(
3066
+ (0, import_kit58.getBytesEncoder)().encode(
3157
3067
  new Uint8Array([111, 112, 116, 105, 111, 110])
3158
3068
  ),
3159
- (0, import_kit60.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3160
- (0, import_kit60.getU64Encoder)().encode(expectSome(args.optionId))
3069
+ (0, import_kit58.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3070
+ (0, import_kit58.getU64Encoder)().encode(expectSome(args.optionId))
3161
3071
  ]
3162
3072
  });
3163
3073
  }
@@ -3228,7 +3138,7 @@ function parseAddMarketOptionInstruction(instruction) {
3228
3138
  }
3229
3139
 
3230
3140
  // src/generated/instructions/addReward.ts
3231
- var import_kit61 = require("@solana/kit");
3141
+ var import_kit59 = require("@solana/kit");
3232
3142
  var ADD_REWARD_DISCRIMINATOR = new Uint8Array([
3233
3143
  4,
3234
3144
  114,
@@ -3240,27 +3150,27 @@ var ADD_REWARD_DISCRIMINATOR = new Uint8Array([
3240
3150
  237
3241
3151
  ]);
3242
3152
  function getAddRewardDiscriminatorBytes() {
3243
- return (0, import_kit61.fixEncoderSize)((0, import_kit61.getBytesEncoder)(), 8).encode(ADD_REWARD_DISCRIMINATOR);
3153
+ return (0, import_kit59.fixEncoderSize)((0, import_kit59.getBytesEncoder)(), 8).encode(ADD_REWARD_DISCRIMINATOR);
3244
3154
  }
3245
3155
  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)()]
3156
+ return (0, import_kit59.transformEncoder)(
3157
+ (0, import_kit59.getStructEncoder)([
3158
+ ["discriminator", (0, import_kit59.fixEncoderSize)((0, import_kit59.getBytesEncoder)(), 8)],
3159
+ ["amount", (0, import_kit59.getU64Encoder)()],
3160
+ ["lock", (0, import_kit59.getBooleanEncoder)()]
3251
3161
  ]),
3252
3162
  (value) => ({ ...value, discriminator: ADD_REWARD_DISCRIMINATOR })
3253
3163
  );
3254
3164
  }
3255
3165
  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)()]
3166
+ return (0, import_kit59.getStructDecoder)([
3167
+ ["discriminator", (0, import_kit59.fixDecoderSize)((0, import_kit59.getBytesDecoder)(), 8)],
3168
+ ["amount", (0, import_kit59.getU64Decoder)()],
3169
+ ["lock", (0, import_kit59.getBooleanDecoder)()]
3260
3170
  ]);
3261
3171
  }
3262
3172
  function getAddRewardInstructionDataCodec() {
3263
- return (0, import_kit61.combineCodec)(
3173
+ return (0, import_kit59.combineCodec)(
3264
3174
  getAddRewardInstructionDataEncoder(),
3265
3175
  getAddRewardInstructionDataDecoder()
3266
3176
  );
@@ -3283,24 +3193,24 @@ async function getAddRewardInstructionAsync(input, config) {
3283
3193
  const accounts = originalAccounts;
3284
3194
  const args = { ...input };
3285
3195
  if (!accounts.sponsorAccount.value) {
3286
- accounts.sponsorAccount.value = await (0, import_kit61.getProgramDerivedAddress)({
3196
+ accounts.sponsorAccount.value = await (0, import_kit59.getProgramDerivedAddress)({
3287
3197
  programAddress,
3288
3198
  seeds: [
3289
- (0, import_kit61.getBytesEncoder)().encode(
3199
+ (0, import_kit59.getBytesEncoder)().encode(
3290
3200
  new Uint8Array([115, 112, 111, 110, 115, 111, 114])
3291
3201
  ),
3292
- (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.sponsor.value)),
3293
- (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.market.value))
3202
+ (0, import_kit59.getAddressEncoder)().encode(expectAddress(accounts.sponsor.value)),
3203
+ (0, import_kit59.getAddressEncoder)().encode(expectAddress(accounts.market.value))
3294
3204
  ]
3295
3205
  });
3296
3206
  }
3297
3207
  if (!accounts.marketTokenAta.value) {
3298
- accounts.marketTokenAta.value = await (0, import_kit61.getProgramDerivedAddress)({
3208
+ accounts.marketTokenAta.value = await (0, import_kit59.getProgramDerivedAddress)({
3299
3209
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
3300
3210
  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))
3211
+ (0, import_kit59.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3212
+ (0, import_kit59.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3213
+ (0, import_kit59.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3304
3214
  ]
3305
3215
  });
3306
3216
  }
@@ -3390,7 +3300,7 @@ function parseAddRewardInstruction(instruction) {
3390
3300
  }
3391
3301
 
3392
3302
  // src/generated/instructions/claimCreatorFees.ts
3393
- var import_kit62 = require("@solana/kit");
3303
+ var import_kit60 = require("@solana/kit");
3394
3304
  var CLAIM_CREATOR_FEES_DISCRIMINATOR = new Uint8Array([
3395
3305
  0,
3396
3306
  23,
@@ -3402,23 +3312,23 @@ var CLAIM_CREATOR_FEES_DISCRIMINATOR = new Uint8Array([
3402
3312
  89
3403
3313
  ]);
3404
3314
  function getClaimCreatorFeesDiscriminatorBytes() {
3405
- return (0, import_kit62.fixEncoderSize)((0, import_kit62.getBytesEncoder)(), 8).encode(
3315
+ return (0, import_kit60.fixEncoderSize)((0, import_kit60.getBytesEncoder)(), 8).encode(
3406
3316
  CLAIM_CREATOR_FEES_DISCRIMINATOR
3407
3317
  );
3408
3318
  }
3409
3319
  function getClaimCreatorFeesInstructionDataEncoder() {
3410
- return (0, import_kit62.transformEncoder)(
3411
- (0, import_kit62.getStructEncoder)([["discriminator", (0, import_kit62.fixEncoderSize)((0, import_kit62.getBytesEncoder)(), 8)]]),
3320
+ return (0, import_kit60.transformEncoder)(
3321
+ (0, import_kit60.getStructEncoder)([["discriminator", (0, import_kit60.fixEncoderSize)((0, import_kit60.getBytesEncoder)(), 8)]]),
3412
3322
  (value) => ({ ...value, discriminator: CLAIM_CREATOR_FEES_DISCRIMINATOR })
3413
3323
  );
3414
3324
  }
3415
3325
  function getClaimCreatorFeesInstructionDataDecoder() {
3416
- return (0, import_kit62.getStructDecoder)([
3417
- ["discriminator", (0, import_kit62.fixDecoderSize)((0, import_kit62.getBytesDecoder)(), 8)]
3326
+ return (0, import_kit60.getStructDecoder)([
3327
+ ["discriminator", (0, import_kit60.fixDecoderSize)((0, import_kit60.getBytesDecoder)(), 8)]
3418
3328
  ]);
3419
3329
  }
3420
3330
  function getClaimCreatorFeesInstructionDataCodec() {
3421
- return (0, import_kit62.combineCodec)(
3331
+ return (0, import_kit60.combineCodec)(
3422
3332
  getClaimCreatorFeesInstructionDataEncoder(),
3423
3333
  getClaimCreatorFeesInstructionDataDecoder()
3424
3334
  );
@@ -3438,12 +3348,12 @@ async function getClaimCreatorFeesInstructionAsync(input, config) {
3438
3348
  };
3439
3349
  const accounts = originalAccounts;
3440
3350
  if (!accounts.marketTokenAta.value) {
3441
- accounts.marketTokenAta.value = await (0, import_kit62.getProgramDerivedAddress)({
3351
+ accounts.marketTokenAta.value = await (0, import_kit60.getProgramDerivedAddress)({
3442
3352
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
3443
3353
  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))
3354
+ (0, import_kit60.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3355
+ (0, import_kit60.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3356
+ (0, import_kit60.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3447
3357
  ]
3448
3358
  });
3449
3359
  }
@@ -3514,7 +3424,7 @@ function parseClaimCreatorFeesInstruction(instruction) {
3514
3424
  }
3515
3425
 
3516
3426
  // src/generated/instructions/claimFees.ts
3517
- var import_kit63 = require("@solana/kit");
3427
+ var import_kit61 = require("@solana/kit");
3518
3428
  var CLAIM_FEES_DISCRIMINATOR = new Uint8Array([
3519
3429
  82,
3520
3430
  251,
@@ -3526,21 +3436,21 @@ var CLAIM_FEES_DISCRIMINATOR = new Uint8Array([
3526
3436
  202
3527
3437
  ]);
3528
3438
  function getClaimFeesDiscriminatorBytes() {
3529
- return (0, import_kit63.fixEncoderSize)((0, import_kit63.getBytesEncoder)(), 8).encode(CLAIM_FEES_DISCRIMINATOR);
3439
+ return (0, import_kit61.fixEncoderSize)((0, import_kit61.getBytesEncoder)(), 8).encode(CLAIM_FEES_DISCRIMINATOR);
3530
3440
  }
3531
3441
  function getClaimFeesInstructionDataEncoder() {
3532
- return (0, import_kit63.transformEncoder)(
3533
- (0, import_kit63.getStructEncoder)([["discriminator", (0, import_kit63.fixEncoderSize)((0, import_kit63.getBytesEncoder)(), 8)]]),
3442
+ return (0, import_kit61.transformEncoder)(
3443
+ (0, import_kit61.getStructEncoder)([["discriminator", (0, import_kit61.fixEncoderSize)((0, import_kit61.getBytesEncoder)(), 8)]]),
3534
3444
  (value) => ({ ...value, discriminator: CLAIM_FEES_DISCRIMINATOR })
3535
3445
  );
3536
3446
  }
3537
3447
  function getClaimFeesInstructionDataDecoder() {
3538
- return (0, import_kit63.getStructDecoder)([
3539
- ["discriminator", (0, import_kit63.fixDecoderSize)((0, import_kit63.getBytesDecoder)(), 8)]
3448
+ return (0, import_kit61.getStructDecoder)([
3449
+ ["discriminator", (0, import_kit61.fixDecoderSize)((0, import_kit61.getBytesDecoder)(), 8)]
3540
3450
  ]);
3541
3451
  }
3542
3452
  function getClaimFeesInstructionDataCodec() {
3543
- return (0, import_kit63.combineCodec)(
3453
+ return (0, import_kit61.combineCodec)(
3544
3454
  getClaimFeesInstructionDataEncoder(),
3545
3455
  getClaimFeesInstructionDataDecoder()
3546
3456
  );
@@ -3561,12 +3471,12 @@ async function getClaimFeesInstructionAsync(input, config) {
3561
3471
  };
3562
3472
  const accounts = originalAccounts;
3563
3473
  if (!accounts.marketTokenAta.value) {
3564
- accounts.marketTokenAta.value = await (0, import_kit63.getProgramDerivedAddress)({
3474
+ accounts.marketTokenAta.value = await (0, import_kit61.getProgramDerivedAddress)({
3565
3475
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
3566
3476
  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))
3477
+ (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3478
+ (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3479
+ (0, import_kit61.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3570
3480
  ]
3571
3481
  });
3572
3482
  }
@@ -3641,7 +3551,7 @@ function parseClaimFeesInstruction(instruction) {
3641
3551
  }
3642
3552
 
3643
3553
  // src/generated/instructions/closeOptionAccount.ts
3644
- var import_kit64 = require("@solana/kit");
3554
+ var import_kit62 = require("@solana/kit");
3645
3555
  var CLOSE_OPTION_ACCOUNT_DISCRIMINATOR = new Uint8Array([
3646
3556
  46,
3647
3557
  121,
@@ -3653,27 +3563,27 @@ var CLOSE_OPTION_ACCOUNT_DISCRIMINATOR = new Uint8Array([
3653
3563
  1
3654
3564
  ]);
3655
3565
  function getCloseOptionAccountDiscriminatorBytes() {
3656
- return (0, import_kit64.fixEncoderSize)((0, import_kit64.getBytesEncoder)(), 8).encode(
3566
+ return (0, import_kit62.fixEncoderSize)((0, import_kit62.getBytesEncoder)(), 8).encode(
3657
3567
  CLOSE_OPTION_ACCOUNT_DISCRIMINATOR
3658
3568
  );
3659
3569
  }
3660
3570
  function getCloseOptionAccountInstructionDataEncoder() {
3661
- return (0, import_kit64.transformEncoder)(
3662
- (0, import_kit64.getStructEncoder)([
3663
- ["discriminator", (0, import_kit64.fixEncoderSize)((0, import_kit64.getBytesEncoder)(), 8)],
3664
- ["optionId", (0, import_kit64.getU64Encoder)()]
3571
+ return (0, import_kit62.transformEncoder)(
3572
+ (0, import_kit62.getStructEncoder)([
3573
+ ["discriminator", (0, import_kit62.fixEncoderSize)((0, import_kit62.getBytesEncoder)(), 8)],
3574
+ ["optionId", (0, import_kit62.getU64Encoder)()]
3665
3575
  ]),
3666
3576
  (value) => ({ ...value, discriminator: CLOSE_OPTION_ACCOUNT_DISCRIMINATOR })
3667
3577
  );
3668
3578
  }
3669
3579
  function getCloseOptionAccountInstructionDataDecoder() {
3670
- return (0, import_kit64.getStructDecoder)([
3671
- ["discriminator", (0, import_kit64.fixDecoderSize)((0, import_kit64.getBytesDecoder)(), 8)],
3672
- ["optionId", (0, import_kit64.getU64Decoder)()]
3580
+ return (0, import_kit62.getStructDecoder)([
3581
+ ["discriminator", (0, import_kit62.fixDecoderSize)((0, import_kit62.getBytesDecoder)(), 8)],
3582
+ ["optionId", (0, import_kit62.getU64Decoder)()]
3673
3583
  ]);
3674
3584
  }
3675
3585
  function getCloseOptionAccountInstructionDataCodec() {
3676
- return (0, import_kit64.combineCodec)(
3586
+ return (0, import_kit62.combineCodec)(
3677
3587
  getCloseOptionAccountInstructionDataEncoder(),
3678
3588
  getCloseOptionAccountInstructionDataDecoder()
3679
3589
  );
@@ -3690,14 +3600,14 @@ async function getCloseOptionAccountInstructionAsync(input, config) {
3690
3600
  const accounts = originalAccounts;
3691
3601
  const args = { ...input };
3692
3602
  if (!accounts.option.value) {
3693
- accounts.option.value = await (0, import_kit64.getProgramDerivedAddress)({
3603
+ accounts.option.value = await (0, import_kit62.getProgramDerivedAddress)({
3694
3604
  programAddress,
3695
3605
  seeds: [
3696
- (0, import_kit64.getBytesEncoder)().encode(
3606
+ (0, import_kit62.getBytesEncoder)().encode(
3697
3607
  new Uint8Array([111, 112, 116, 105, 111, 110])
3698
3608
  ),
3699
- (0, import_kit64.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3700
- (0, import_kit64.getU64Encoder)().encode(expectSome(args.optionId))
3609
+ (0, import_kit62.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3610
+ (0, import_kit62.getU64Encoder)().encode(expectSome(args.optionId))
3701
3611
  ]
3702
3612
  });
3703
3613
  }
@@ -3774,7 +3684,7 @@ function parseCloseOptionAccountInstruction(instruction) {
3774
3684
  }
3775
3685
 
3776
3686
  // src/generated/instructions/closeStakeAccount.ts
3777
- var import_kit65 = require("@solana/kit");
3687
+ var import_kit63 = require("@solana/kit");
3778
3688
  var CLOSE_STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
3779
3689
  246,
3780
3690
  236,
@@ -3786,29 +3696,29 @@ var CLOSE_STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
3786
3696
  12
3787
3697
  ]);
3788
3698
  function getCloseStakeAccountDiscriminatorBytes() {
3789
- return (0, import_kit65.fixEncoderSize)((0, import_kit65.getBytesEncoder)(), 8).encode(
3699
+ return (0, import_kit63.fixEncoderSize)((0, import_kit63.getBytesEncoder)(), 8).encode(
3790
3700
  CLOSE_STAKE_ACCOUNT_DISCRIMINATOR
3791
3701
  );
3792
3702
  }
3793
3703
  function getCloseStakeAccountInstructionDataEncoder() {
3794
- 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)()]
3704
+ return (0, import_kit63.transformEncoder)(
3705
+ (0, import_kit63.getStructEncoder)([
3706
+ ["discriminator", (0, import_kit63.fixEncoderSize)((0, import_kit63.getBytesEncoder)(), 8)],
3707
+ ["optionId", (0, import_kit63.getU64Encoder)()],
3708
+ ["stakeAccountId", (0, import_kit63.getU32Encoder)()]
3799
3709
  ]),
3800
3710
  (value) => ({ ...value, discriminator: CLOSE_STAKE_ACCOUNT_DISCRIMINATOR })
3801
3711
  );
3802
3712
  }
3803
3713
  function getCloseStakeAccountInstructionDataDecoder() {
3804
- 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)()]
3714
+ return (0, import_kit63.getStructDecoder)([
3715
+ ["discriminator", (0, import_kit63.fixDecoderSize)((0, import_kit63.getBytesDecoder)(), 8)],
3716
+ ["optionId", (0, import_kit63.getU64Decoder)()],
3717
+ ["stakeAccountId", (0, import_kit63.getU32Decoder)()]
3808
3718
  ]);
3809
3719
  }
3810
3720
  function getCloseStakeAccountInstructionDataCodec() {
3811
- return (0, import_kit65.combineCodec)(
3721
+ return (0, import_kit63.combineCodec)(
3812
3722
  getCloseStakeAccountInstructionDataEncoder(),
3813
3723
  getCloseStakeAccountInstructionDataDecoder()
3814
3724
  );
@@ -3832,10 +3742,10 @@ async function getCloseStakeAccountInstructionAsync(input, config) {
3832
3742
  const accounts = originalAccounts;
3833
3743
  const args = { ...input };
3834
3744
  if (!accounts.stakeAccount.value) {
3835
- accounts.stakeAccount.value = await (0, import_kit65.getProgramDerivedAddress)({
3745
+ accounts.stakeAccount.value = await (0, import_kit63.getProgramDerivedAddress)({
3836
3746
  programAddress,
3837
3747
  seeds: [
3838
- (0, import_kit65.getBytesEncoder)().encode(
3748
+ (0, import_kit63.getBytesEncoder)().encode(
3839
3749
  new Uint8Array([
3840
3750
  115,
3841
3751
  116,
@@ -3852,31 +3762,31 @@ async function getCloseStakeAccountInstructionAsync(input, config) {
3852
3762
  116
3853
3763
  ])
3854
3764
  ),
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))
3765
+ (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
3766
+ (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3767
+ (0, import_kit63.getU32Encoder)().encode(expectSome(args.stakeAccountId))
3858
3768
  ]
3859
3769
  });
3860
3770
  }
3861
3771
  if (!accounts.option.value) {
3862
- accounts.option.value = await (0, import_kit65.getProgramDerivedAddress)({
3772
+ accounts.option.value = await (0, import_kit63.getProgramDerivedAddress)({
3863
3773
  programAddress,
3864
3774
  seeds: [
3865
- (0, import_kit65.getBytesEncoder)().encode(
3775
+ (0, import_kit63.getBytesEncoder)().encode(
3866
3776
  new Uint8Array([111, 112, 116, 105, 111, 110])
3867
3777
  ),
3868
- (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3869
- (0, import_kit65.getU64Encoder)().encode(expectSome(args.optionId))
3778
+ (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3779
+ (0, import_kit63.getU64Encoder)().encode(expectSome(args.optionId))
3870
3780
  ]
3871
3781
  });
3872
3782
  }
3873
3783
  if (!accounts.marketTokenAta.value) {
3874
- accounts.marketTokenAta.value = await (0, import_kit65.getProgramDerivedAddress)({
3784
+ accounts.marketTokenAta.value = await (0, import_kit63.getProgramDerivedAddress)({
3875
3785
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
3876
3786
  seeds: [
3877
- (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3878
- (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3879
- (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3787
+ (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3788
+ (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3789
+ (0, import_kit63.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3880
3790
  ]
3881
3791
  });
3882
3792
  }
@@ -3970,7 +3880,7 @@ function parseCloseStakeAccountInstruction(instruction) {
3970
3880
  }
3971
3881
 
3972
3882
  // src/generated/instructions/closeStuckStakeAccount.ts
3973
- var import_kit66 = require("@solana/kit");
3883
+ var import_kit64 = require("@solana/kit");
3974
3884
  var CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
3975
3885
  41,
3976
3886
  239,
@@ -3982,15 +3892,15 @@ var CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
3982
3892
  181
3983
3893
  ]);
3984
3894
  function getCloseStuckStakeAccountDiscriminatorBytes() {
3985
- return (0, import_kit66.fixEncoderSize)((0, import_kit66.getBytesEncoder)(), 8).encode(
3895
+ return (0, import_kit64.fixEncoderSize)((0, import_kit64.getBytesEncoder)(), 8).encode(
3986
3896
  CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR
3987
3897
  );
3988
3898
  }
3989
3899
  function getCloseStuckStakeAccountInstructionDataEncoder() {
3990
- return (0, import_kit66.transformEncoder)(
3991
- (0, import_kit66.getStructEncoder)([
3992
- ["discriminator", (0, import_kit66.fixEncoderSize)((0, import_kit66.getBytesEncoder)(), 8)],
3993
- ["stakeAccountId", (0, import_kit66.getU32Encoder)()]
3900
+ return (0, import_kit64.transformEncoder)(
3901
+ (0, import_kit64.getStructEncoder)([
3902
+ ["discriminator", (0, import_kit64.fixEncoderSize)((0, import_kit64.getBytesEncoder)(), 8)],
3903
+ ["stakeAccountId", (0, import_kit64.getU32Encoder)()]
3994
3904
  ]),
3995
3905
  (value) => ({
3996
3906
  ...value,
@@ -3999,13 +3909,13 @@ function getCloseStuckStakeAccountInstructionDataEncoder() {
3999
3909
  );
4000
3910
  }
4001
3911
  function getCloseStuckStakeAccountInstructionDataDecoder() {
4002
- return (0, import_kit66.getStructDecoder)([
4003
- ["discriminator", (0, import_kit66.fixDecoderSize)((0, import_kit66.getBytesDecoder)(), 8)],
4004
- ["stakeAccountId", (0, import_kit66.getU32Decoder)()]
3912
+ return (0, import_kit64.getStructDecoder)([
3913
+ ["discriminator", (0, import_kit64.fixDecoderSize)((0, import_kit64.getBytesDecoder)(), 8)],
3914
+ ["stakeAccountId", (0, import_kit64.getU32Decoder)()]
4005
3915
  ]);
4006
3916
  }
4007
3917
  function getCloseStuckStakeAccountInstructionDataCodec() {
4008
- return (0, import_kit66.combineCodec)(
3918
+ return (0, import_kit64.combineCodec)(
4009
3919
  getCloseStuckStakeAccountInstructionDataEncoder(),
4010
3920
  getCloseStuckStakeAccountInstructionDataDecoder()
4011
3921
  );
@@ -4028,10 +3938,10 @@ async function getCloseStuckStakeAccountInstructionAsync(input, config) {
4028
3938
  const accounts = originalAccounts;
4029
3939
  const args = { ...input };
4030
3940
  if (!accounts.stakeAccount.value) {
4031
- accounts.stakeAccount.value = await (0, import_kit66.getProgramDerivedAddress)({
3941
+ accounts.stakeAccount.value = await (0, import_kit64.getProgramDerivedAddress)({
4032
3942
  programAddress,
4033
3943
  seeds: [
4034
- (0, import_kit66.getBytesEncoder)().encode(
3944
+ (0, import_kit64.getBytesEncoder)().encode(
4035
3945
  new Uint8Array([
4036
3946
  115,
4037
3947
  116,
@@ -4048,19 +3958,19 @@ async function getCloseStuckStakeAccountInstructionAsync(input, config) {
4048
3958
  116
4049
3959
  ])
4050
3960
  ),
4051
- (0, import_kit66.getAddressEncoder)().encode(expectAddress(accounts.signer.value)),
4052
- (0, import_kit66.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4053
- (0, import_kit66.getU32Encoder)().encode(expectSome(args.stakeAccountId))
3961
+ (0, import_kit64.getAddressEncoder)().encode(expectAddress(accounts.signer.value)),
3962
+ (0, import_kit64.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3963
+ (0, import_kit64.getU32Encoder)().encode(expectSome(args.stakeAccountId))
4054
3964
  ]
4055
3965
  });
4056
3966
  }
4057
3967
  if (!accounts.marketTokenAta.value) {
4058
- accounts.marketTokenAta.value = await (0, import_kit66.getProgramDerivedAddress)({
3968
+ accounts.marketTokenAta.value = await (0, import_kit64.getProgramDerivedAddress)({
4059
3969
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
4060
3970
  seeds: [
4061
- (0, import_kit66.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4062
- (0, import_kit66.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
4063
- (0, import_kit66.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
3971
+ (0, import_kit64.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
3972
+ (0, import_kit64.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
3973
+ (0, import_kit64.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4064
3974
  ]
4065
3975
  });
4066
3976
  }
@@ -4152,7 +4062,7 @@ function parseCloseStuckStakeAccountInstruction(instruction) {
4152
4062
  }
4153
4063
 
4154
4064
  // src/generated/instructions/createMarket.ts
4155
- var import_kit67 = require("@solana/kit");
4065
+ var import_kit65 = require("@solana/kit");
4156
4066
  var CREATE_MARKET_DISCRIMINATOR = new Uint8Array([
4157
4067
  103,
4158
4068
  226,
@@ -4164,43 +4074,41 @@ var CREATE_MARKET_DISCRIMINATOR = new Uint8Array([
4164
4074
  254
4165
4075
  ]);
4166
4076
  function getCreateMarketDiscriminatorBytes() {
4167
- return (0, import_kit67.fixEncoderSize)((0, import_kit67.getBytesEncoder)(), 8).encode(
4077
+ return (0, import_kit65.fixEncoderSize)((0, import_kit65.getBytesEncoder)(), 8).encode(
4168
4078
  CREATE_MARKET_DISCRIMINATOR
4169
4079
  );
4170
4080
  }
4171
4081
  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)()]
4082
+ return (0, import_kit65.transformEncoder)(
4083
+ (0, import_kit65.getStructEncoder)([
4084
+ ["discriminator", (0, import_kit65.fixEncoderSize)((0, import_kit65.getBytesEncoder)(), 8)],
4085
+ ["marketIndex", (0, import_kit65.getU64Encoder)()],
4086
+ ["marketAuthority", (0, import_kit65.getAddressEncoder)()],
4087
+ ["allowUnstakingEarly", (0, import_kit65.getBooleanEncoder)()],
4088
+ ["authorizedReaderPubkey", (0, import_kit65.getArrayEncoder)((0, import_kit65.getU8Encoder)(), { size: 32 })],
4089
+ ["earlinessCutoffSeconds", (0, import_kit65.getU64Encoder)()],
4090
+ ["earlinessMultiplier", (0, import_kit65.getU16Encoder)()],
4091
+ ["minStakeAmount", (0, import_kit65.getU64Encoder)()],
4092
+ ["creatorFeeClaimer", (0, import_kit65.getAddressEncoder)()]
4184
4093
  ]),
4185
4094
  (value) => ({ ...value, discriminator: CREATE_MARKET_DISCRIMINATOR })
4186
4095
  );
4187
4096
  }
4188
4097
  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)()]
4098
+ return (0, import_kit65.getStructDecoder)([
4099
+ ["discriminator", (0, import_kit65.fixDecoderSize)((0, import_kit65.getBytesDecoder)(), 8)],
4100
+ ["marketIndex", (0, import_kit65.getU64Decoder)()],
4101
+ ["marketAuthority", (0, import_kit65.getAddressDecoder)()],
4102
+ ["allowUnstakingEarly", (0, import_kit65.getBooleanDecoder)()],
4103
+ ["authorizedReaderPubkey", (0, import_kit65.getArrayDecoder)((0, import_kit65.getU8Decoder)(), { size: 32 })],
4104
+ ["earlinessCutoffSeconds", (0, import_kit65.getU64Decoder)()],
4105
+ ["earlinessMultiplier", (0, import_kit65.getU16Decoder)()],
4106
+ ["minStakeAmount", (0, import_kit65.getU64Decoder)()],
4107
+ ["creatorFeeClaimer", (0, import_kit65.getAddressDecoder)()]
4200
4108
  ]);
4201
4109
  }
4202
4110
  function getCreateMarketInstructionDataCodec() {
4203
- return (0, import_kit67.combineCodec)(
4111
+ return (0, import_kit65.combineCodec)(
4204
4112
  getCreateMarketInstructionDataEncoder(),
4205
4113
  getCreateMarketInstructionDataDecoder()
4206
4114
  );
@@ -4224,10 +4132,10 @@ async function getCreateMarketInstructionAsync(input, config) {
4224
4132
  const accounts = originalAccounts;
4225
4133
  const args = { ...input };
4226
4134
  if (!accounts.market.value) {
4227
- accounts.market.value = await (0, import_kit67.getProgramDerivedAddress)({
4135
+ accounts.market.value = await (0, import_kit65.getProgramDerivedAddress)({
4228
4136
  programAddress,
4229
4137
  seeds: [
4230
- (0, import_kit67.getBytesEncoder)().encode(
4138
+ (0, import_kit65.getBytesEncoder)().encode(
4231
4139
  new Uint8Array([
4232
4140
  111,
4233
4141
  112,
@@ -4249,29 +4157,29 @@ async function getCreateMarketInstructionAsync(input, config) {
4249
4157
  116
4250
4158
  ])
4251
4159
  ),
4252
- (0, import_kit67.getAddressEncoder)().encode(
4160
+ (0, import_kit65.getAddressEncoder)().encode(
4253
4161
  expectAddress(accounts.platformConfig.value)
4254
4162
  ),
4255
- (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.creator.value)),
4256
- (0, import_kit67.getU64Encoder)().encode(expectSome(args.marketIndex))
4163
+ (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.creator.value)),
4164
+ (0, import_kit65.getU64Encoder)().encode(expectSome(args.marketIndex))
4257
4165
  ]
4258
4166
  });
4259
4167
  }
4260
4168
  if (!accounts.marketTokenAta.value) {
4261
- accounts.marketTokenAta.value = await (0, import_kit67.getProgramDerivedAddress)({
4169
+ accounts.marketTokenAta.value = await (0, import_kit65.getProgramDerivedAddress)({
4262
4170
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
4263
4171
  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))
4172
+ (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4173
+ (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
4174
+ (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4267
4175
  ]
4268
4176
  });
4269
4177
  }
4270
4178
  if (!accounts.allowedMint.value) {
4271
- accounts.allowedMint.value = await (0, import_kit67.getProgramDerivedAddress)({
4179
+ accounts.allowedMint.value = await (0, import_kit65.getProgramDerivedAddress)({
4272
4180
  programAddress,
4273
4181
  seeds: [
4274
- (0, import_kit67.getBytesEncoder)().encode(
4182
+ (0, import_kit65.getBytesEncoder)().encode(
4275
4183
  new Uint8Array([
4276
4184
  97,
4277
4185
  108,
@@ -4287,10 +4195,10 @@ async function getCreateMarketInstructionAsync(input, config) {
4287
4195
  116
4288
4196
  ])
4289
4197
  ),
4290
- (0, import_kit67.getAddressEncoder)().encode(
4198
+ (0, import_kit65.getAddressEncoder)().encode(
4291
4199
  expectAddress(accounts.platformConfig.value)
4292
4200
  ),
4293
- (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4201
+ (0, import_kit65.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4294
4202
  ]
4295
4203
  });
4296
4204
  }
@@ -4390,7 +4298,7 @@ function parseCreateMarketInstruction(instruction) {
4390
4298
  }
4391
4299
 
4392
4300
  // src/generated/instructions/endRevealPeriod.ts
4393
- var import_kit68 = require("@solana/kit");
4301
+ var import_kit66 = require("@solana/kit");
4394
4302
  var END_REVEAL_PERIOD_DISCRIMINATOR = new Uint8Array([
4395
4303
  144,
4396
4304
  81,
@@ -4402,23 +4310,23 @@ var END_REVEAL_PERIOD_DISCRIMINATOR = new Uint8Array([
4402
4310
  92
4403
4311
  ]);
4404
4312
  function getEndRevealPeriodDiscriminatorBytes() {
4405
- return (0, import_kit68.fixEncoderSize)((0, import_kit68.getBytesEncoder)(), 8).encode(
4313
+ return (0, import_kit66.fixEncoderSize)((0, import_kit66.getBytesEncoder)(), 8).encode(
4406
4314
  END_REVEAL_PERIOD_DISCRIMINATOR
4407
4315
  );
4408
4316
  }
4409
4317
  function getEndRevealPeriodInstructionDataEncoder() {
4410
- return (0, import_kit68.transformEncoder)(
4411
- (0, import_kit68.getStructEncoder)([["discriminator", (0, import_kit68.fixEncoderSize)((0, import_kit68.getBytesEncoder)(), 8)]]),
4318
+ return (0, import_kit66.transformEncoder)(
4319
+ (0, import_kit66.getStructEncoder)([["discriminator", (0, import_kit66.fixEncoderSize)((0, import_kit66.getBytesEncoder)(), 8)]]),
4412
4320
  (value) => ({ ...value, discriminator: END_REVEAL_PERIOD_DISCRIMINATOR })
4413
4321
  );
4414
4322
  }
4415
4323
  function getEndRevealPeriodInstructionDataDecoder() {
4416
- return (0, import_kit68.getStructDecoder)([
4417
- ["discriminator", (0, import_kit68.fixDecoderSize)((0, import_kit68.getBytesDecoder)(), 8)]
4324
+ return (0, import_kit66.getStructDecoder)([
4325
+ ["discriminator", (0, import_kit66.fixDecoderSize)((0, import_kit66.getBytesDecoder)(), 8)]
4418
4326
  ]);
4419
4327
  }
4420
4328
  function getEndRevealPeriodInstructionDataCodec() {
4421
- return (0, import_kit68.combineCodec)(
4329
+ return (0, import_kit66.combineCodec)(
4422
4330
  getEndRevealPeriodInstructionDataEncoder(),
4423
4331
  getEndRevealPeriodInstructionDataDecoder()
4424
4332
  );
@@ -4427,21 +4335,23 @@ function getEndRevealPeriodInstruction(input, config) {
4427
4335
  const programAddress = config?.programAddress ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
4428
4336
  const originalAccounts = {
4429
4337
  signer: { value: input.signer ?? null, isWritable: false },
4430
- market: { value: input.market ?? null, isWritable: true }
4338
+ market: { value: input.market ?? null, isWritable: true },
4339
+ platformConfig: { value: input.platformConfig ?? null, isWritable: false }
4431
4340
  };
4432
4341
  const accounts = originalAccounts;
4433
4342
  const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
4434
4343
  return Object.freeze({
4435
4344
  accounts: [
4436
4345
  getAccountMeta(accounts.signer),
4437
- getAccountMeta(accounts.market)
4346
+ getAccountMeta(accounts.market),
4347
+ getAccountMeta(accounts.platformConfig)
4438
4348
  ],
4439
4349
  data: getEndRevealPeriodInstructionDataEncoder().encode({}),
4440
4350
  programAddress
4441
4351
  });
4442
4352
  }
4443
4353
  function parseEndRevealPeriodInstruction(instruction) {
4444
- if (instruction.accounts.length < 2) {
4354
+ if (instruction.accounts.length < 3) {
4445
4355
  throw new Error("Not enough accounts");
4446
4356
  }
4447
4357
  let accountIndex = 0;
@@ -4452,13 +4362,17 @@ function parseEndRevealPeriodInstruction(instruction) {
4452
4362
  };
4453
4363
  return {
4454
4364
  programAddress: instruction.programAddress,
4455
- accounts: { signer: getNextAccount(), market: getNextAccount() },
4365
+ accounts: {
4366
+ signer: getNextAccount(),
4367
+ market: getNextAccount(),
4368
+ platformConfig: getNextAccount()
4369
+ },
4456
4370
  data: getEndRevealPeriodInstructionDataDecoder().decode(instruction.data)
4457
4371
  };
4458
4372
  }
4459
4373
 
4460
4374
  // src/generated/instructions/finalizeRevealStake.ts
4461
- var import_kit69 = require("@solana/kit");
4375
+ var import_kit67 = require("@solana/kit");
4462
4376
  var FINALIZE_REVEAL_STAKE_DISCRIMINATOR = new Uint8Array([
4463
4377
  92,
4464
4378
  201,
@@ -4470,16 +4384,16 @@ var FINALIZE_REVEAL_STAKE_DISCRIMINATOR = new Uint8Array([
4470
4384
  230
4471
4385
  ]);
4472
4386
  function getFinalizeRevealStakeDiscriminatorBytes() {
4473
- return (0, import_kit69.fixEncoderSize)((0, import_kit69.getBytesEncoder)(), 8).encode(
4387
+ return (0, import_kit67.fixEncoderSize)((0, import_kit67.getBytesEncoder)(), 8).encode(
4474
4388
  FINALIZE_REVEAL_STAKE_DISCRIMINATOR
4475
4389
  );
4476
4390
  }
4477
4391
  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)()]
4392
+ return (0, import_kit67.transformEncoder)(
4393
+ (0, import_kit67.getStructEncoder)([
4394
+ ["discriminator", (0, import_kit67.fixEncoderSize)((0, import_kit67.getBytesEncoder)(), 8)],
4395
+ ["optionId", (0, import_kit67.getU64Encoder)()],
4396
+ ["stakeAccountId", (0, import_kit67.getU32Encoder)()]
4483
4397
  ]),
4484
4398
  (value) => ({
4485
4399
  ...value,
@@ -4488,14 +4402,14 @@ function getFinalizeRevealStakeInstructionDataEncoder() {
4488
4402
  );
4489
4403
  }
4490
4404
  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)()]
4405
+ return (0, import_kit67.getStructDecoder)([
4406
+ ["discriminator", (0, import_kit67.fixDecoderSize)((0, import_kit67.getBytesDecoder)(), 8)],
4407
+ ["optionId", (0, import_kit67.getU64Decoder)()],
4408
+ ["stakeAccountId", (0, import_kit67.getU32Decoder)()]
4495
4409
  ]);
4496
4410
  }
4497
4411
  function getFinalizeRevealStakeInstructionDataCodec() {
4498
- return (0, import_kit69.combineCodec)(
4412
+ return (0, import_kit67.combineCodec)(
4499
4413
  getFinalizeRevealStakeInstructionDataEncoder(),
4500
4414
  getFinalizeRevealStakeInstructionDataDecoder()
4501
4415
  );
@@ -4513,10 +4427,10 @@ async function getFinalizeRevealStakeInstructionAsync(input, config) {
4513
4427
  const accounts = originalAccounts;
4514
4428
  const args = { ...input };
4515
4429
  if (!accounts.stakeAccount.value) {
4516
- accounts.stakeAccount.value = await (0, import_kit69.getProgramDerivedAddress)({
4430
+ accounts.stakeAccount.value = await (0, import_kit67.getProgramDerivedAddress)({
4517
4431
  programAddress,
4518
4432
  seeds: [
4519
- (0, import_kit69.getBytesEncoder)().encode(
4433
+ (0, import_kit67.getBytesEncoder)().encode(
4520
4434
  new Uint8Array([
4521
4435
  115,
4522
4436
  116,
@@ -4533,21 +4447,21 @@ async function getFinalizeRevealStakeInstructionAsync(input, config) {
4533
4447
  116
4534
4448
  ])
4535
4449
  ),
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))
4450
+ (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
4451
+ (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4452
+ (0, import_kit67.getU32Encoder)().encode(expectSome(args.stakeAccountId))
4539
4453
  ]
4540
4454
  });
4541
4455
  }
4542
4456
  if (!accounts.option.value) {
4543
- accounts.option.value = await (0, import_kit69.getProgramDerivedAddress)({
4457
+ accounts.option.value = await (0, import_kit67.getProgramDerivedAddress)({
4544
4458
  programAddress,
4545
4459
  seeds: [
4546
- (0, import_kit69.getBytesEncoder)().encode(
4460
+ (0, import_kit67.getBytesEncoder)().encode(
4547
4461
  new Uint8Array([111, 112, 116, 105, 111, 110])
4548
4462
  ),
4549
- (0, import_kit69.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4550
- (0, import_kit69.getU64Encoder)().encode(expectSome(args.optionId))
4463
+ (0, import_kit67.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4464
+ (0, import_kit67.getU64Encoder)().encode(expectSome(args.optionId))
4551
4465
  ]
4552
4466
  });
4553
4467
  }
@@ -4628,7 +4542,7 @@ function parseFinalizeRevealStakeInstruction(instruction) {
4628
4542
  }
4629
4543
 
4630
4544
  // src/generated/instructions/initAllowedMint.ts
4631
- var import_kit70 = require("@solana/kit");
4545
+ var import_kit68 = require("@solana/kit");
4632
4546
  var INIT_ALLOWED_MINT_DISCRIMINATOR = new Uint8Array([
4633
4547
  215,
4634
4548
  70,
@@ -4640,23 +4554,23 @@ var INIT_ALLOWED_MINT_DISCRIMINATOR = new Uint8Array([
4640
4554
  10
4641
4555
  ]);
4642
4556
  function getInitAllowedMintDiscriminatorBytes() {
4643
- return (0, import_kit70.fixEncoderSize)((0, import_kit70.getBytesEncoder)(), 8).encode(
4557
+ return (0, import_kit68.fixEncoderSize)((0, import_kit68.getBytesEncoder)(), 8).encode(
4644
4558
  INIT_ALLOWED_MINT_DISCRIMINATOR
4645
4559
  );
4646
4560
  }
4647
4561
  function getInitAllowedMintInstructionDataEncoder() {
4648
- return (0, import_kit70.transformEncoder)(
4649
- (0, import_kit70.getStructEncoder)([["discriminator", (0, import_kit70.fixEncoderSize)((0, import_kit70.getBytesEncoder)(), 8)]]),
4562
+ return (0, import_kit68.transformEncoder)(
4563
+ (0, import_kit68.getStructEncoder)([["discriminator", (0, import_kit68.fixEncoderSize)((0, import_kit68.getBytesEncoder)(), 8)]]),
4650
4564
  (value) => ({ ...value, discriminator: INIT_ALLOWED_MINT_DISCRIMINATOR })
4651
4565
  );
4652
4566
  }
4653
4567
  function getInitAllowedMintInstructionDataDecoder() {
4654
- return (0, import_kit70.getStructDecoder)([
4655
- ["discriminator", (0, import_kit70.fixDecoderSize)((0, import_kit70.getBytesDecoder)(), 8)]
4568
+ return (0, import_kit68.getStructDecoder)([
4569
+ ["discriminator", (0, import_kit68.fixDecoderSize)((0, import_kit68.getBytesDecoder)(), 8)]
4656
4570
  ]);
4657
4571
  }
4658
4572
  function getInitAllowedMintInstructionDataCodec() {
4659
- return (0, import_kit70.combineCodec)(
4573
+ return (0, import_kit68.combineCodec)(
4660
4574
  getInitAllowedMintInstructionDataEncoder(),
4661
4575
  getInitAllowedMintInstructionDataDecoder()
4662
4576
  );
@@ -4672,10 +4586,10 @@ async function getInitAllowedMintInstructionAsync(input, config) {
4672
4586
  };
4673
4587
  const accounts = originalAccounts;
4674
4588
  if (!accounts.allowedMint.value) {
4675
- accounts.allowedMint.value = await (0, import_kit70.getProgramDerivedAddress)({
4589
+ accounts.allowedMint.value = await (0, import_kit68.getProgramDerivedAddress)({
4676
4590
  programAddress,
4677
4591
  seeds: [
4678
- (0, import_kit70.getBytesEncoder)().encode(
4592
+ (0, import_kit68.getBytesEncoder)().encode(
4679
4593
  new Uint8Array([
4680
4594
  97,
4681
4595
  108,
@@ -4691,10 +4605,10 @@ async function getInitAllowedMintInstructionAsync(input, config) {
4691
4605
  116
4692
4606
  ])
4693
4607
  ),
4694
- (0, import_kit70.getAddressEncoder)().encode(
4608
+ (0, import_kit68.getAddressEncoder)().encode(
4695
4609
  expectAddress(accounts.platformConfig.value)
4696
4610
  ),
4697
- (0, import_kit70.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4611
+ (0, import_kit68.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
4698
4612
  ]
4699
4613
  });
4700
4614
  }
@@ -4764,7 +4678,7 @@ function parseInitAllowedMintInstruction(instruction) {
4764
4678
  }
4765
4679
 
4766
4680
  // src/generated/instructions/initPlatformConfig.ts
4767
- var import_kit71 = require("@solana/kit");
4681
+ var import_kit69 = require("@solana/kit");
4768
4682
  var INIT_PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
4769
4683
  101,
4770
4684
  52,
@@ -4776,43 +4690,43 @@ var INIT_PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
4776
4690
  118
4777
4691
  ]);
4778
4692
  function getInitPlatformConfigDiscriminatorBytes() {
4779
- return (0, import_kit71.fixEncoderSize)((0, import_kit71.getBytesEncoder)(), 8).encode(
4693
+ return (0, import_kit69.fixEncoderSize)((0, import_kit69.getBytesEncoder)(), 8).encode(
4780
4694
  INIT_PLATFORM_CONFIG_DISCRIMINATOR
4781
4695
  );
4782
4696
  }
4783
4697
  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)()]
4698
+ return (0, import_kit69.transformEncoder)(
4699
+ (0, import_kit69.getStructEncoder)([
4700
+ ["discriminator", (0, import_kit69.fixEncoderSize)((0, import_kit69.getBytesEncoder)(), 8)],
4701
+ ["name", (0, import_kit69.addEncoderSizePrefix)((0, import_kit69.getUtf8Encoder)(), (0, import_kit69.getU32Encoder)())],
4702
+ ["platformFeeBp", (0, import_kit69.getU16Encoder)()],
4703
+ ["rewardPoolFeeBp", (0, import_kit69.getU16Encoder)()],
4704
+ ["creatorFeeBp", (0, import_kit69.getU16Encoder)()],
4705
+ ["feeClaimAuthority", (0, import_kit69.getAddressEncoder)()],
4706
+ ["revealAuthority", (0, import_kit69.getAddressEncoder)()],
4707
+ ["minTimeToStakeSeconds", (0, import_kit69.getU64Encoder)()],
4708
+ ["revealPeriodSeconds", (0, import_kit69.getU64Encoder)()],
4709
+ ["marketResolutionDeadlineSeconds", (0, import_kit69.getU64Encoder)()]
4796
4710
  ]),
4797
4711
  (value) => ({ ...value, discriminator: INIT_PLATFORM_CONFIG_DISCRIMINATOR })
4798
4712
  );
4799
4713
  }
4800
4714
  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)()]
4715
+ return (0, import_kit69.getStructDecoder)([
4716
+ ["discriminator", (0, import_kit69.fixDecoderSize)((0, import_kit69.getBytesDecoder)(), 8)],
4717
+ ["name", (0, import_kit69.addDecoderSizePrefix)((0, import_kit69.getUtf8Decoder)(), (0, import_kit69.getU32Decoder)())],
4718
+ ["platformFeeBp", (0, import_kit69.getU16Decoder)()],
4719
+ ["rewardPoolFeeBp", (0, import_kit69.getU16Decoder)()],
4720
+ ["creatorFeeBp", (0, import_kit69.getU16Decoder)()],
4721
+ ["feeClaimAuthority", (0, import_kit69.getAddressDecoder)()],
4722
+ ["revealAuthority", (0, import_kit69.getAddressDecoder)()],
4723
+ ["minTimeToStakeSeconds", (0, import_kit69.getU64Decoder)()],
4724
+ ["revealPeriodSeconds", (0, import_kit69.getU64Decoder)()],
4725
+ ["marketResolutionDeadlineSeconds", (0, import_kit69.getU64Decoder)()]
4812
4726
  ]);
4813
4727
  }
4814
4728
  function getInitPlatformConfigInstructionDataCodec() {
4815
- return (0, import_kit71.combineCodec)(
4729
+ return (0, import_kit69.combineCodec)(
4816
4730
  getInitPlatformConfigInstructionDataEncoder(),
4817
4731
  getInitPlatformConfigInstructionDataDecoder()
4818
4732
  );
@@ -4827,10 +4741,10 @@ async function getInitPlatformConfigInstructionAsync(input, config) {
4827
4741
  const accounts = originalAccounts;
4828
4742
  const args = { ...input };
4829
4743
  if (!accounts.platformConfig.value) {
4830
- accounts.platformConfig.value = await (0, import_kit71.getProgramDerivedAddress)({
4744
+ accounts.platformConfig.value = await (0, import_kit69.getProgramDerivedAddress)({
4831
4745
  programAddress,
4832
4746
  seeds: [
4833
- (0, import_kit71.getBytesEncoder)().encode(
4747
+ (0, import_kit69.getBytesEncoder)().encode(
4834
4748
  new Uint8Array([
4835
4749
  112,
4836
4750
  108,
@@ -4849,8 +4763,8 @@ async function getInitPlatformConfigInstructionAsync(input, config) {
4849
4763
  103
4850
4764
  ])
4851
4765
  ),
4852
- (0, import_kit71.getAddressEncoder)().encode(expectAddress(accounts.payer.value)),
4853
- (0, import_kit71.getUtf8Encoder)().encode(expectSome(args.name))
4766
+ (0, import_kit69.getAddressEncoder)().encode(expectAddress(accounts.payer.value)),
4767
+ (0, import_kit69.getUtf8Encoder)().encode(expectSome(args.name))
4854
4768
  ]
4855
4769
  });
4856
4770
  }
@@ -4919,7 +4833,7 @@ function parseInitPlatformConfigInstruction(instruction) {
4919
4833
  }
4920
4834
 
4921
4835
  // src/generated/instructions/initStakeAccount.ts
4922
- var import_kit72 = require("@solana/kit");
4836
+ var import_kit70 = require("@solana/kit");
4923
4837
  var INIT_STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
4924
4838
  132,
4925
4839
  171,
@@ -4931,27 +4845,27 @@ var INIT_STAKE_ACCOUNT_DISCRIMINATOR = new Uint8Array([
4931
4845
  45
4932
4846
  ]);
4933
4847
  function getInitStakeAccountDiscriminatorBytes() {
4934
- return (0, import_kit72.fixEncoderSize)((0, import_kit72.getBytesEncoder)(), 8).encode(
4848
+ return (0, import_kit70.fixEncoderSize)((0, import_kit70.getBytesEncoder)(), 8).encode(
4935
4849
  INIT_STAKE_ACCOUNT_DISCRIMINATOR
4936
4850
  );
4937
4851
  }
4938
4852
  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)()]
4853
+ return (0, import_kit70.transformEncoder)(
4854
+ (0, import_kit70.getStructEncoder)([
4855
+ ["discriminator", (0, import_kit70.fixEncoderSize)((0, import_kit70.getBytesEncoder)(), 8)],
4856
+ ["stakeAccountId", (0, import_kit70.getU32Encoder)()]
4943
4857
  ]),
4944
4858
  (value) => ({ ...value, discriminator: INIT_STAKE_ACCOUNT_DISCRIMINATOR })
4945
4859
  );
4946
4860
  }
4947
4861
  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)()]
4862
+ return (0, import_kit70.getStructDecoder)([
4863
+ ["discriminator", (0, import_kit70.fixDecoderSize)((0, import_kit70.getBytesDecoder)(), 8)],
4864
+ ["stakeAccountId", (0, import_kit70.getU32Decoder)()]
4951
4865
  ]);
4952
4866
  }
4953
4867
  function getInitStakeAccountInstructionDataCodec() {
4954
- return (0, import_kit72.combineCodec)(
4868
+ return (0, import_kit70.combineCodec)(
4955
4869
  getInitStakeAccountInstructionDataEncoder(),
4956
4870
  getInitStakeAccountInstructionDataDecoder()
4957
4871
  );
@@ -4968,10 +4882,10 @@ async function getInitStakeAccountInstructionAsync(input, config) {
4968
4882
  const accounts = originalAccounts;
4969
4883
  const args = { ...input };
4970
4884
  if (!accounts.stakeAccount.value) {
4971
- accounts.stakeAccount.value = await (0, import_kit72.getProgramDerivedAddress)({
4885
+ accounts.stakeAccount.value = await (0, import_kit70.getProgramDerivedAddress)({
4972
4886
  programAddress,
4973
4887
  seeds: [
4974
- (0, import_kit72.getBytesEncoder)().encode(
4888
+ (0, import_kit70.getBytesEncoder)().encode(
4975
4889
  new Uint8Array([
4976
4890
  115,
4977
4891
  116,
@@ -4988,9 +4902,9 @@ async function getInitStakeAccountInstructionAsync(input, config) {
4988
4902
  116
4989
4903
  ])
4990
4904
  ),
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))
4905
+ (0, import_kit70.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
4906
+ (0, import_kit70.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
4907
+ (0, import_kit70.getU32Encoder)().encode(expectSome(args.stakeAccountId))
4994
4908
  ]
4995
4909
  });
4996
4910
  }
@@ -5065,7 +4979,7 @@ function parseInitStakeAccountInstruction(instruction) {
5065
4979
  }
5066
4980
 
5067
4981
  // src/generated/instructions/openMarket.ts
5068
- var import_kit73 = require("@solana/kit");
4982
+ var import_kit71 = require("@solana/kit");
5069
4983
  var OPEN_MARKET_DISCRIMINATOR = new Uint8Array([
5070
4984
  116,
5071
4985
  19,
@@ -5077,25 +4991,25 @@ var OPEN_MARKET_DISCRIMINATOR = new Uint8Array([
5077
4991
  44
5078
4992
  ]);
5079
4993
  function getOpenMarketDiscriminatorBytes() {
5080
- return (0, import_kit73.fixEncoderSize)((0, import_kit73.getBytesEncoder)(), 8).encode(OPEN_MARKET_DISCRIMINATOR);
4994
+ return (0, import_kit71.fixEncoderSize)((0, import_kit71.getBytesEncoder)(), 8).encode(OPEN_MARKET_DISCRIMINATOR);
5081
4995
  }
5082
4996
  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)()]
4997
+ return (0, import_kit71.transformEncoder)(
4998
+ (0, import_kit71.getStructEncoder)([
4999
+ ["discriminator", (0, import_kit71.fixEncoderSize)((0, import_kit71.getBytesEncoder)(), 8)],
5000
+ ["timeToStake", (0, import_kit71.getU64Encoder)()]
5087
5001
  ]),
5088
5002
  (value) => ({ ...value, discriminator: OPEN_MARKET_DISCRIMINATOR })
5089
5003
  );
5090
5004
  }
5091
5005
  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)()]
5006
+ return (0, import_kit71.getStructDecoder)([
5007
+ ["discriminator", (0, import_kit71.fixDecoderSize)((0, import_kit71.getBytesDecoder)(), 8)],
5008
+ ["timeToStake", (0, import_kit71.getU64Decoder)()]
5095
5009
  ]);
5096
5010
  }
5097
5011
  function getOpenMarketInstructionDataCodec() {
5098
- return (0, import_kit73.combineCodec)(
5012
+ return (0, import_kit71.combineCodec)(
5099
5013
  getOpenMarketInstructionDataEncoder(),
5100
5014
  getOpenMarketInstructionDataDecoder()
5101
5015
  );
@@ -5146,79 +5060,8 @@ function parseOpenMarketInstruction(instruction) {
5146
5060
  };
5147
5061
  }
5148
5062
 
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
5063
  // src/generated/instructions/resolveMarket.ts
5221
- var import_kit75 = require("@solana/kit");
5064
+ var import_kit72 = require("@solana/kit");
5222
5065
  var RESOLVE_MARKET_DISCRIMINATOR = new Uint8Array([
5223
5066
  155,
5224
5067
  23,
@@ -5230,23 +5073,23 @@ var RESOLVE_MARKET_DISCRIMINATOR = new Uint8Array([
5230
5073
  239
5231
5074
  ]);
5232
5075
  function getResolveMarketDiscriminatorBytes() {
5233
- return (0, import_kit75.fixEncoderSize)((0, import_kit75.getBytesEncoder)(), 8).encode(
5076
+ return (0, import_kit72.fixEncoderSize)((0, import_kit72.getBytesEncoder)(), 8).encode(
5234
5077
  RESOLVE_MARKET_DISCRIMINATOR
5235
5078
  );
5236
5079
  }
5237
5080
  function getResolveMarketInstructionDataEncoder() {
5238
- return (0, import_kit75.transformEncoder)(
5239
- (0, import_kit75.getStructEncoder)([["discriminator", (0, import_kit75.fixEncoderSize)((0, import_kit75.getBytesEncoder)(), 8)]]),
5081
+ return (0, import_kit72.transformEncoder)(
5082
+ (0, import_kit72.getStructEncoder)([["discriminator", (0, import_kit72.fixEncoderSize)((0, import_kit72.getBytesEncoder)(), 8)]]),
5240
5083
  (value) => ({ ...value, discriminator: RESOLVE_MARKET_DISCRIMINATOR })
5241
5084
  );
5242
5085
  }
5243
5086
  function getResolveMarketInstructionDataDecoder() {
5244
- return (0, import_kit75.getStructDecoder)([
5245
- ["discriminator", (0, import_kit75.fixDecoderSize)((0, import_kit75.getBytesDecoder)(), 8)]
5087
+ return (0, import_kit72.getStructDecoder)([
5088
+ ["discriminator", (0, import_kit72.fixDecoderSize)((0, import_kit72.getBytesDecoder)(), 8)]
5246
5089
  ]);
5247
5090
  }
5248
5091
  function getResolveMarketInstructionDataCodec() {
5249
- return (0, import_kit75.combineCodec)(
5092
+ return (0, import_kit72.combineCodec)(
5250
5093
  getResolveMarketInstructionDataEncoder(),
5251
5094
  getResolveMarketInstructionDataDecoder()
5252
5095
  );
@@ -5288,79 +5131,8 @@ function parseResolveMarketInstruction(instruction) {
5288
5131
  };
5289
5132
  }
5290
5133
 
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,
5297
- 23,
5298
- 211,
5299
- 22,
5300
- 63,
5301
- 155
5302
- ]);
5303
- function getResumeStakingDiscriminatorBytes() {
5304
- return (0, import_kit76.fixEncoderSize)((0, import_kit76.getBytesEncoder)(), 8).encode(
5305
- RESUME_STAKING_DISCRIMINATOR
5306
- );
5307
- }
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 })
5312
- );
5313
- }
5314
- function getResumeStakingInstructionDataDecoder() {
5315
- return (0, import_kit76.getStructDecoder)([
5316
- ["discriminator", (0, import_kit76.fixDecoderSize)((0, import_kit76.getBytesDecoder)(), 8)]
5317
- ]);
5318
- }
5319
- function getResumeStakingInstructionDataCodec() {
5320
- return (0, import_kit76.combineCodec)(
5321
- getResumeStakingInstructionDataEncoder(),
5322
- getResumeStakingInstructionDataDecoder()
5323
- );
5324
- }
5325
- function getResumeStakingInstruction(input, config) {
5326
- const programAddress = config?.programAddress ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
5327
- const originalAccounts = {
5328
- marketAuthority: {
5329
- value: input.marketAuthority ?? null,
5330
- isWritable: false
5331
- },
5332
- market: { value: input.market ?? null, isWritable: true }
5333
- };
5334
- const accounts = originalAccounts;
5335
- const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
5336
- return Object.freeze({
5337
- accounts: [
5338
- getAccountMeta(accounts.marketAuthority),
5339
- getAccountMeta(accounts.market)
5340
- ],
5341
- data: getResumeStakingInstructionDataEncoder().encode({}),
5342
- programAddress
5343
- });
5344
- }
5345
- function parseResumeStakingInstruction(instruction) {
5346
- if (instruction.accounts.length < 2) {
5347
- throw new Error("Not enough accounts");
5348
- }
5349
- let accountIndex = 0;
5350
- const getNextAccount = () => {
5351
- const accountMeta = instruction.accounts[accountIndex];
5352
- accountIndex += 1;
5353
- return accountMeta;
5354
- };
5355
- return {
5356
- programAddress: instruction.programAddress,
5357
- accounts: { marketAuthority: getNextAccount(), market: getNextAccount() },
5358
- data: getResumeStakingInstructionDataDecoder().decode(instruction.data)
5359
- };
5360
- }
5361
-
5362
5134
  // src/generated/instructions/revealStake.ts
5363
- var import_kit77 = require("@solana/kit");
5135
+ var import_kit73 = require("@solana/kit");
5364
5136
  var REVEAL_STAKE_DISCRIMINATOR = new Uint8Array([
5365
5137
  107,
5366
5138
  229,
@@ -5372,29 +5144,29 @@ var REVEAL_STAKE_DISCRIMINATOR = new Uint8Array([
5372
5144
  188
5373
5145
  ]);
5374
5146
  function getRevealStakeDiscriminatorBytes() {
5375
- return (0, import_kit77.fixEncoderSize)((0, import_kit77.getBytesEncoder)(), 8).encode(
5147
+ return (0, import_kit73.fixEncoderSize)((0, import_kit73.getBytesEncoder)(), 8).encode(
5376
5148
  REVEAL_STAKE_DISCRIMINATOR
5377
5149
  );
5378
5150
  }
5379
5151
  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)()]
5152
+ return (0, import_kit73.transformEncoder)(
5153
+ (0, import_kit73.getStructEncoder)([
5154
+ ["discriminator", (0, import_kit73.fixEncoderSize)((0, import_kit73.getBytesEncoder)(), 8)],
5155
+ ["computationOffset", (0, import_kit73.getU64Encoder)()],
5156
+ ["stakeAccountId", (0, import_kit73.getU32Encoder)()]
5385
5157
  ]),
5386
5158
  (value) => ({ ...value, discriminator: REVEAL_STAKE_DISCRIMINATOR })
5387
5159
  );
5388
5160
  }
5389
5161
  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)()]
5162
+ return (0, import_kit73.getStructDecoder)([
5163
+ ["discriminator", (0, import_kit73.fixDecoderSize)((0, import_kit73.getBytesDecoder)(), 8)],
5164
+ ["computationOffset", (0, import_kit73.getU64Decoder)()],
5165
+ ["stakeAccountId", (0, import_kit73.getU32Decoder)()]
5394
5166
  ]);
5395
5167
  }
5396
5168
  function getRevealStakeInstructionDataCodec() {
5397
- return (0, import_kit77.combineCodec)(
5169
+ return (0, import_kit73.combineCodec)(
5398
5170
  getRevealStakeInstructionDataEncoder(),
5399
5171
  getRevealStakeInstructionDataDecoder()
5400
5172
  );
@@ -5424,10 +5196,10 @@ async function getRevealStakeInstructionAsync(input, config) {
5424
5196
  const accounts = originalAccounts;
5425
5197
  const args = { ...input };
5426
5198
  if (!accounts.stakeAccount.value) {
5427
- accounts.stakeAccount.value = await (0, import_kit77.getProgramDerivedAddress)({
5199
+ accounts.stakeAccount.value = await (0, import_kit73.getProgramDerivedAddress)({
5428
5200
  programAddress,
5429
5201
  seeds: [
5430
- (0, import_kit77.getBytesEncoder)().encode(
5202
+ (0, import_kit73.getBytesEncoder)().encode(
5431
5203
  new Uint8Array([
5432
5204
  115,
5433
5205
  116,
@@ -5444,17 +5216,17 @@ async function getRevealStakeInstructionAsync(input, config) {
5444
5216
  116
5445
5217
  ])
5446
5218
  ),
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))
5219
+ (0, import_kit73.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
5220
+ (0, import_kit73.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
5221
+ (0, import_kit73.getU32Encoder)().encode(expectSome(args.stakeAccountId))
5450
5222
  ]
5451
5223
  });
5452
5224
  }
5453
5225
  if (!accounts.signPdaAccount.value) {
5454
- accounts.signPdaAccount.value = await (0, import_kit77.getProgramDerivedAddress)({
5226
+ accounts.signPdaAccount.value = await (0, import_kit73.getProgramDerivedAddress)({
5455
5227
  programAddress,
5456
5228
  seeds: [
5457
- (0, import_kit77.getBytesEncoder)().encode(
5229
+ (0, import_kit73.getBytesEncoder)().encode(
5458
5230
  new Uint8Array([
5459
5231
  65,
5460
5232
  114,
@@ -5612,7 +5384,7 @@ function parseRevealStakeInstruction(instruction) {
5612
5384
  }
5613
5385
 
5614
5386
  // src/generated/instructions/revealStakeCallback.ts
5615
- var import_kit78 = require("@solana/kit");
5387
+ var import_kit74 = require("@solana/kit");
5616
5388
  var REVEAL_STAKE_CALLBACK_DISCRIMINATOR = new Uint8Array([
5617
5389
  79,
5618
5390
  19,
@@ -5624,34 +5396,34 @@ var REVEAL_STAKE_CALLBACK_DISCRIMINATOR = new Uint8Array([
5624
5396
  116
5625
5397
  ]);
5626
5398
  function getRevealStakeCallbackDiscriminatorBytes() {
5627
- return (0, import_kit78.fixEncoderSize)((0, import_kit78.getBytesEncoder)(), 8).encode(
5399
+ return (0, import_kit74.fixEncoderSize)((0, import_kit74.getBytesEncoder)(), 8).encode(
5628
5400
  REVEAL_STAKE_CALLBACK_DISCRIMINATOR
5629
5401
  );
5630
5402
  }
5631
5403
  function getRevealStakeCallbackInstructionDataEncoder() {
5632
- return (0, import_kit78.transformEncoder)(
5633
- (0, import_kit78.getStructEncoder)([
5634
- ["discriminator", (0, import_kit78.fixEncoderSize)((0, import_kit78.getBytesEncoder)(), 8)],
5404
+ return (0, import_kit74.transformEncoder)(
5405
+ (0, import_kit74.getStructEncoder)([
5406
+ ["discriminator", (0, import_kit74.fixEncoderSize)((0, import_kit74.getBytesEncoder)(), 8)],
5635
5407
  [
5636
5408
  "output",
5637
- (0, import_kit78.getDiscriminatedUnionEncoder)([
5409
+ (0, import_kit74.getDiscriminatedUnionEncoder)([
5638
5410
  [
5639
5411
  "Success",
5640
- (0, import_kit78.getStructEncoder)([
5412
+ (0, import_kit74.getStructEncoder)([
5641
5413
  [
5642
5414
  "fields",
5643
- (0, import_kit78.getTupleEncoder)([
5415
+ (0, import_kit74.getTupleEncoder)([
5644
5416
  getRevealStakeOutputEncoder(),
5645
- (0, import_kit78.getArrayEncoder)((0, import_kit78.getU8Encoder)(), { size: 64 })
5417
+ (0, import_kit74.getArrayEncoder)((0, import_kit74.getU8Encoder)(), { size: 64 })
5646
5418
  ])
5647
5419
  ]
5648
5420
  ])
5649
5421
  ],
5650
- ["Failure", (0, import_kit78.getUnitEncoder)()],
5422
+ ["Failure", (0, import_kit74.getUnitEncoder)()],
5651
5423
  [
5652
5424
  "MarkerForIdlBuildDoNotUseThis",
5653
- (0, import_kit78.getStructEncoder)([
5654
- ["fields", (0, import_kit78.getTupleEncoder)([getRevealStakeOutputEncoder()])]
5425
+ (0, import_kit74.getStructEncoder)([
5426
+ ["fields", (0, import_kit74.getTupleEncoder)([getRevealStakeOutputEncoder()])]
5655
5427
  ])
5656
5428
  ]
5657
5429
  ])
@@ -5664,28 +5436,28 @@ function getRevealStakeCallbackInstructionDataEncoder() {
5664
5436
  );
5665
5437
  }
5666
5438
  function getRevealStakeCallbackInstructionDataDecoder() {
5667
- return (0, import_kit78.getStructDecoder)([
5668
- ["discriminator", (0, import_kit78.fixDecoderSize)((0, import_kit78.getBytesDecoder)(), 8)],
5439
+ return (0, import_kit74.getStructDecoder)([
5440
+ ["discriminator", (0, import_kit74.fixDecoderSize)((0, import_kit74.getBytesDecoder)(), 8)],
5669
5441
  [
5670
5442
  "output",
5671
- (0, import_kit78.getDiscriminatedUnionDecoder)([
5443
+ (0, import_kit74.getDiscriminatedUnionDecoder)([
5672
5444
  [
5673
5445
  "Success",
5674
- (0, import_kit78.getStructDecoder)([
5446
+ (0, import_kit74.getStructDecoder)([
5675
5447
  [
5676
5448
  "fields",
5677
- (0, import_kit78.getTupleDecoder)([
5449
+ (0, import_kit74.getTupleDecoder)([
5678
5450
  getRevealStakeOutputDecoder(),
5679
- (0, import_kit78.getArrayDecoder)((0, import_kit78.getU8Decoder)(), { size: 64 })
5451
+ (0, import_kit74.getArrayDecoder)((0, import_kit74.getU8Decoder)(), { size: 64 })
5680
5452
  ])
5681
5453
  ]
5682
5454
  ])
5683
5455
  ],
5684
- ["Failure", (0, import_kit78.getUnitDecoder)()],
5456
+ ["Failure", (0, import_kit74.getUnitDecoder)()],
5685
5457
  [
5686
5458
  "MarkerForIdlBuildDoNotUseThis",
5687
- (0, import_kit78.getStructDecoder)([
5688
- ["fields", (0, import_kit78.getTupleDecoder)([getRevealStakeOutputDecoder()])]
5459
+ (0, import_kit74.getStructDecoder)([
5460
+ ["fields", (0, import_kit74.getTupleDecoder)([getRevealStakeOutputDecoder()])]
5689
5461
  ])
5690
5462
  ]
5691
5463
  ])
@@ -5693,7 +5465,7 @@ function getRevealStakeCallbackInstructionDataDecoder() {
5693
5465
  ]);
5694
5466
  }
5695
5467
  function getRevealStakeCallbackInstructionDataCodec() {
5696
- return (0, import_kit78.combineCodec)(
5468
+ return (0, import_kit74.combineCodec)(
5697
5469
  getRevealStakeCallbackInstructionDataEncoder(),
5698
5470
  getRevealStakeCallbackInstructionDataDecoder()
5699
5471
  );
@@ -5768,7 +5540,7 @@ function parseRevealStakeCallbackInstruction(instruction) {
5768
5540
  }
5769
5541
 
5770
5542
  // src/generated/instructions/revealStakeCompDef.ts
5771
- var import_kit79 = require("@solana/kit");
5543
+ var import_kit75 = require("@solana/kit");
5772
5544
  var REVEAL_STAKE_COMP_DEF_DISCRIMINATOR = new Uint8Array([
5773
5545
  197,
5774
5546
  20,
@@ -5780,13 +5552,13 @@ var REVEAL_STAKE_COMP_DEF_DISCRIMINATOR = new Uint8Array([
5780
5552
  0
5781
5553
  ]);
5782
5554
  function getRevealStakeCompDefDiscriminatorBytes() {
5783
- return (0, import_kit79.fixEncoderSize)((0, import_kit79.getBytesEncoder)(), 8).encode(
5555
+ return (0, import_kit75.fixEncoderSize)((0, import_kit75.getBytesEncoder)(), 8).encode(
5784
5556
  REVEAL_STAKE_COMP_DEF_DISCRIMINATOR
5785
5557
  );
5786
5558
  }
5787
5559
  function getRevealStakeCompDefInstructionDataEncoder() {
5788
- return (0, import_kit79.transformEncoder)(
5789
- (0, import_kit79.getStructEncoder)([["discriminator", (0, import_kit79.fixEncoderSize)((0, import_kit79.getBytesEncoder)(), 8)]]),
5560
+ return (0, import_kit75.transformEncoder)(
5561
+ (0, import_kit75.getStructEncoder)([["discriminator", (0, import_kit75.fixEncoderSize)((0, import_kit75.getBytesEncoder)(), 8)]]),
5790
5562
  (value) => ({
5791
5563
  ...value,
5792
5564
  discriminator: REVEAL_STAKE_COMP_DEF_DISCRIMINATOR
@@ -5794,12 +5566,12 @@ function getRevealStakeCompDefInstructionDataEncoder() {
5794
5566
  );
5795
5567
  }
5796
5568
  function getRevealStakeCompDefInstructionDataDecoder() {
5797
- return (0, import_kit79.getStructDecoder)([
5798
- ["discriminator", (0, import_kit79.fixDecoderSize)((0, import_kit79.getBytesDecoder)(), 8)]
5569
+ return (0, import_kit75.getStructDecoder)([
5570
+ ["discriminator", (0, import_kit75.fixDecoderSize)((0, import_kit75.getBytesDecoder)(), 8)]
5799
5571
  ]);
5800
5572
  }
5801
5573
  function getRevealStakeCompDefInstructionDataCodec() {
5802
- return (0, import_kit79.combineCodec)(
5574
+ return (0, import_kit75.combineCodec)(
5803
5575
  getRevealStakeCompDefInstructionDataEncoder(),
5804
5576
  getRevealStakeCompDefInstructionDataDecoder()
5805
5577
  );
@@ -5871,7 +5643,7 @@ function parseRevealStakeCompDefInstruction(instruction) {
5871
5643
  }
5872
5644
 
5873
5645
  // src/generated/instructions/setFeeClaimAuthority.ts
5874
- var import_kit80 = require("@solana/kit");
5646
+ var import_kit76 = require("@solana/kit");
5875
5647
  var SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR = new Uint8Array([
5876
5648
  75,
5877
5649
  250,
@@ -5883,13 +5655,13 @@ var SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR = new Uint8Array([
5883
5655
  3
5884
5656
  ]);
5885
5657
  function getSetFeeClaimAuthorityDiscriminatorBytes() {
5886
- return (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8).encode(
5658
+ return (0, import_kit76.fixEncoderSize)((0, import_kit76.getBytesEncoder)(), 8).encode(
5887
5659
  SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR
5888
5660
  );
5889
5661
  }
5890
5662
  function getSetFeeClaimAuthorityInstructionDataEncoder() {
5891
- return (0, import_kit80.transformEncoder)(
5892
- (0, import_kit80.getStructEncoder)([["discriminator", (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8)]]),
5663
+ return (0, import_kit76.transformEncoder)(
5664
+ (0, import_kit76.getStructEncoder)([["discriminator", (0, import_kit76.fixEncoderSize)((0, import_kit76.getBytesEncoder)(), 8)]]),
5893
5665
  (value) => ({
5894
5666
  ...value,
5895
5667
  discriminator: SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR
@@ -5897,12 +5669,12 @@ function getSetFeeClaimAuthorityInstructionDataEncoder() {
5897
5669
  );
5898
5670
  }
5899
5671
  function getSetFeeClaimAuthorityInstructionDataDecoder() {
5900
- return (0, import_kit80.getStructDecoder)([
5901
- ["discriminator", (0, import_kit80.fixDecoderSize)((0, import_kit80.getBytesDecoder)(), 8)]
5672
+ return (0, import_kit76.getStructDecoder)([
5673
+ ["discriminator", (0, import_kit76.fixDecoderSize)((0, import_kit76.getBytesDecoder)(), 8)]
5902
5674
  ]);
5903
5675
  }
5904
5676
  function getSetFeeClaimAuthorityInstructionDataCodec() {
5905
- return (0, import_kit80.combineCodec)(
5677
+ return (0, import_kit76.combineCodec)(
5906
5678
  getSetFeeClaimAuthorityInstructionDataEncoder(),
5907
5679
  getSetFeeClaimAuthorityInstructionDataDecoder()
5908
5680
  );
@@ -5956,7 +5728,7 @@ function parseSetFeeClaimAuthorityInstruction(instruction) {
5956
5728
  }
5957
5729
 
5958
5730
  // src/generated/instructions/setUpdateAuthority.ts
5959
- var import_kit81 = require("@solana/kit");
5731
+ var import_kit77 = require("@solana/kit");
5960
5732
  var SET_UPDATE_AUTHORITY_DISCRIMINATOR = new Uint8Array([
5961
5733
  166,
5962
5734
  198,
@@ -5968,23 +5740,23 @@ var SET_UPDATE_AUTHORITY_DISCRIMINATOR = new Uint8Array([
5968
5740
  155
5969
5741
  ]);
5970
5742
  function getSetUpdateAuthorityDiscriminatorBytes() {
5971
- return (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8).encode(
5743
+ return (0, import_kit77.fixEncoderSize)((0, import_kit77.getBytesEncoder)(), 8).encode(
5972
5744
  SET_UPDATE_AUTHORITY_DISCRIMINATOR
5973
5745
  );
5974
5746
  }
5975
5747
  function getSetUpdateAuthorityInstructionDataEncoder() {
5976
- return (0, import_kit81.transformEncoder)(
5977
- (0, import_kit81.getStructEncoder)([["discriminator", (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8)]]),
5748
+ return (0, import_kit77.transformEncoder)(
5749
+ (0, import_kit77.getStructEncoder)([["discriminator", (0, import_kit77.fixEncoderSize)((0, import_kit77.getBytesEncoder)(), 8)]]),
5978
5750
  (value) => ({ ...value, discriminator: SET_UPDATE_AUTHORITY_DISCRIMINATOR })
5979
5751
  );
5980
5752
  }
5981
5753
  function getSetUpdateAuthorityInstructionDataDecoder() {
5982
- return (0, import_kit81.getStructDecoder)([
5983
- ["discriminator", (0, import_kit81.fixDecoderSize)((0, import_kit81.getBytesDecoder)(), 8)]
5754
+ return (0, import_kit77.getStructDecoder)([
5755
+ ["discriminator", (0, import_kit77.fixDecoderSize)((0, import_kit77.getBytesDecoder)(), 8)]
5984
5756
  ]);
5985
5757
  }
5986
5758
  function getSetUpdateAuthorityInstructionDataCodec() {
5987
- return (0, import_kit81.combineCodec)(
5759
+ return (0, import_kit77.combineCodec)(
5988
5760
  getSetUpdateAuthorityInstructionDataEncoder(),
5989
5761
  getSetUpdateAuthorityInstructionDataDecoder()
5990
5762
  );
@@ -6035,7 +5807,7 @@ function parseSetUpdateAuthorityInstruction(instruction) {
6035
5807
  }
6036
5808
 
6037
5809
  // src/generated/instructions/setWinningOption.ts
6038
- var import_kit82 = require("@solana/kit");
5810
+ var import_kit78 = require("@solana/kit");
6039
5811
  var SET_WINNING_OPTION_DISCRIMINATOR = new Uint8Array([
6040
5812
  156,
6041
5813
  73,
@@ -6047,29 +5819,29 @@ var SET_WINNING_OPTION_DISCRIMINATOR = new Uint8Array([
6047
5819
  206
6048
5820
  ]);
6049
5821
  function getSetWinningOptionDiscriminatorBytes() {
6050
- return (0, import_kit82.fixEncoderSize)((0, import_kit82.getBytesEncoder)(), 8).encode(
5822
+ return (0, import_kit78.fixEncoderSize)((0, import_kit78.getBytesEncoder)(), 8).encode(
6051
5823
  SET_WINNING_OPTION_DISCRIMINATOR
6052
5824
  );
6053
5825
  }
6054
5826
  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)()]
5827
+ return (0, import_kit78.transformEncoder)(
5828
+ (0, import_kit78.getStructEncoder)([
5829
+ ["discriminator", (0, import_kit78.fixEncoderSize)((0, import_kit78.getBytesEncoder)(), 8)],
5830
+ ["optionId", (0, import_kit78.getU64Encoder)()],
5831
+ ["rewardBp", (0, import_kit78.getU16Encoder)()]
6060
5832
  ]),
6061
5833
  (value) => ({ ...value, discriminator: SET_WINNING_OPTION_DISCRIMINATOR })
6062
5834
  );
6063
5835
  }
6064
5836
  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)()]
5837
+ return (0, import_kit78.getStructDecoder)([
5838
+ ["discriminator", (0, import_kit78.fixDecoderSize)((0, import_kit78.getBytesDecoder)(), 8)],
5839
+ ["optionId", (0, import_kit78.getU64Decoder)()],
5840
+ ["rewardBp", (0, import_kit78.getU16Decoder)()]
6069
5841
  ]);
6070
5842
  }
6071
5843
  function getSetWinningOptionInstructionDataCodec() {
6072
- return (0, import_kit82.combineCodec)(
5844
+ return (0, import_kit78.combineCodec)(
6073
5845
  getSetWinningOptionInstructionDataEncoder(),
6074
5846
  getSetWinningOptionInstructionDataDecoder()
6075
5847
  );
@@ -6087,14 +5859,14 @@ async function getSetWinningOptionInstructionAsync(input, config) {
6087
5859
  const accounts = originalAccounts;
6088
5860
  const args = { ...input };
6089
5861
  if (!accounts.option.value) {
6090
- accounts.option.value = await (0, import_kit82.getProgramDerivedAddress)({
5862
+ accounts.option.value = await (0, import_kit78.getProgramDerivedAddress)({
6091
5863
  programAddress,
6092
5864
  seeds: [
6093
- (0, import_kit82.getBytesEncoder)().encode(
5865
+ (0, import_kit78.getBytesEncoder)().encode(
6094
5866
  new Uint8Array([111, 112, 116, 105, 111, 110])
6095
5867
  ),
6096
- (0, import_kit82.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6097
- (0, import_kit82.getU64Encoder)().encode(expectSome(args.optionId))
5868
+ (0, import_kit78.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
5869
+ (0, import_kit78.getU64Encoder)().encode(expectSome(args.optionId))
6098
5870
  ]
6099
5871
  });
6100
5872
  }
@@ -6158,7 +5930,7 @@ function parseSetWinningOptionInstruction(instruction) {
6158
5930
  }
6159
5931
 
6160
5932
  // src/generated/instructions/stake.ts
6161
- var import_kit83 = require("@solana/kit");
5933
+ var import_kit79 = require("@solana/kit");
6162
5934
  var STAKE_DISCRIMINATOR = new Uint8Array([
6163
5935
  206,
6164
5936
  176,
@@ -6170,42 +5942,42 @@ var STAKE_DISCRIMINATOR = new Uint8Array([
6170
5942
  108
6171
5943
  ]);
6172
5944
  function getStakeDiscriminatorBytes() {
6173
- return (0, import_kit83.fixEncoderSize)((0, import_kit83.getBytesEncoder)(), 8).encode(STAKE_DISCRIMINATOR);
5945
+ return (0, import_kit79.fixEncoderSize)((0, import_kit79.getBytesEncoder)(), 8).encode(STAKE_DISCRIMINATOR);
6174
5946
  }
6175
5947
  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)()],
5948
+ return (0, import_kit79.transformEncoder)(
5949
+ (0, import_kit79.getStructEncoder)([
5950
+ ["discriminator", (0, import_kit79.fixEncoderSize)((0, import_kit79.getBytesEncoder)(), 8)],
5951
+ ["computationOffset", (0, import_kit79.getU64Encoder)()],
5952
+ ["stakeAccountId", (0, import_kit79.getU32Encoder)()],
5953
+ ["amount", (0, import_kit79.getU64Encoder)()],
6182
5954
  [
6183
5955
  "selectedOptionCiphertext",
6184
- (0, import_kit83.getArrayEncoder)((0, import_kit83.getU8Encoder)(), { size: 32 })
5956
+ (0, import_kit79.getArrayEncoder)((0, import_kit79.getU8Encoder)(), { size: 32 })
6185
5957
  ],
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)()]
5958
+ ["inputNonce", (0, import_kit79.getU128Encoder)()],
5959
+ ["authorizedReaderNonce", (0, import_kit79.getU128Encoder)()],
5960
+ ["userPubkey", (0, import_kit79.getArrayEncoder)((0, import_kit79.getU8Encoder)(), { size: 32 })],
5961
+ ["stateNonce", (0, import_kit79.getU128Encoder)()]
6190
5962
  ]),
6191
5963
  (value) => ({ ...value, discriminator: STAKE_DISCRIMINATOR })
6192
5964
  );
6193
5965
  }
6194
5966
  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)()]
5967
+ return (0, import_kit79.getStructDecoder)([
5968
+ ["discriminator", (0, import_kit79.fixDecoderSize)((0, import_kit79.getBytesDecoder)(), 8)],
5969
+ ["computationOffset", (0, import_kit79.getU64Decoder)()],
5970
+ ["stakeAccountId", (0, import_kit79.getU32Decoder)()],
5971
+ ["amount", (0, import_kit79.getU64Decoder)()],
5972
+ ["selectedOptionCiphertext", (0, import_kit79.getArrayDecoder)((0, import_kit79.getU8Decoder)(), { size: 32 })],
5973
+ ["inputNonce", (0, import_kit79.getU128Decoder)()],
5974
+ ["authorizedReaderNonce", (0, import_kit79.getU128Decoder)()],
5975
+ ["userPubkey", (0, import_kit79.getArrayDecoder)((0, import_kit79.getU8Decoder)(), { size: 32 })],
5976
+ ["stateNonce", (0, import_kit79.getU128Decoder)()]
6205
5977
  ]);
6206
5978
  }
6207
5979
  function getStakeInstructionDataCodec() {
6208
- return (0, import_kit83.combineCodec)(
5980
+ return (0, import_kit79.combineCodec)(
6209
5981
  getStakeInstructionDataEncoder(),
6210
5982
  getStakeInstructionDataDecoder()
6211
5983
  );
@@ -6242,20 +6014,20 @@ async function getStakeInstructionAsync(input, config) {
6242
6014
  const accounts = originalAccounts;
6243
6015
  const args = { ...input };
6244
6016
  if (!accounts.marketTokenAta.value) {
6245
- accounts.marketTokenAta.value = await (0, import_kit83.getProgramDerivedAddress)({
6017
+ accounts.marketTokenAta.value = await (0, import_kit79.getProgramDerivedAddress)({
6246
6018
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
6247
6019
  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))
6020
+ (0, import_kit79.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6021
+ (0, import_kit79.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
6022
+ (0, import_kit79.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
6251
6023
  ]
6252
6024
  });
6253
6025
  }
6254
6026
  if (!accounts.signPdaAccount.value) {
6255
- accounts.signPdaAccount.value = await (0, import_kit83.getProgramDerivedAddress)({
6027
+ accounts.signPdaAccount.value = await (0, import_kit79.getProgramDerivedAddress)({
6256
6028
  programAddress,
6257
6029
  seeds: [
6258
- (0, import_kit83.getBytesEncoder)().encode(
6030
+ (0, import_kit79.getBytesEncoder)().encode(
6259
6031
  new Uint8Array([
6260
6032
  65,
6261
6033
  114,
@@ -6432,7 +6204,7 @@ function parseStakeInstruction(instruction) {
6432
6204
  }
6433
6205
 
6434
6206
  // src/generated/instructions/stakeCallback.ts
6435
- var import_kit84 = require("@solana/kit");
6207
+ var import_kit80 = require("@solana/kit");
6436
6208
  var STAKE_CALLBACK_DISCRIMINATOR = new Uint8Array([
6437
6209
  40,
6438
6210
  220,
@@ -6444,34 +6216,34 @@ var STAKE_CALLBACK_DISCRIMINATOR = new Uint8Array([
6444
6216
  89
6445
6217
  ]);
6446
6218
  function getStakeCallbackDiscriminatorBytes() {
6447
- return (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8).encode(
6219
+ return (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8).encode(
6448
6220
  STAKE_CALLBACK_DISCRIMINATOR
6449
6221
  );
6450
6222
  }
6451
6223
  function getStakeCallbackInstructionDataEncoder() {
6452
- return (0, import_kit84.transformEncoder)(
6453
- (0, import_kit84.getStructEncoder)([
6454
- ["discriminator", (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8)],
6224
+ return (0, import_kit80.transformEncoder)(
6225
+ (0, import_kit80.getStructEncoder)([
6226
+ ["discriminator", (0, import_kit80.fixEncoderSize)((0, import_kit80.getBytesEncoder)(), 8)],
6455
6227
  [
6456
6228
  "output",
6457
- (0, import_kit84.getDiscriminatedUnionEncoder)([
6229
+ (0, import_kit80.getDiscriminatedUnionEncoder)([
6458
6230
  [
6459
6231
  "Success",
6460
- (0, import_kit84.getStructEncoder)([
6232
+ (0, import_kit80.getStructEncoder)([
6461
6233
  [
6462
6234
  "fields",
6463
- (0, import_kit84.getTupleEncoder)([
6235
+ (0, import_kit80.getTupleEncoder)([
6464
6236
  getStakeOutputEncoder(),
6465
- (0, import_kit84.getArrayEncoder)((0, import_kit84.getU8Encoder)(), { size: 64 })
6237
+ (0, import_kit80.getArrayEncoder)((0, import_kit80.getU8Encoder)(), { size: 64 })
6466
6238
  ])
6467
6239
  ]
6468
6240
  ])
6469
6241
  ],
6470
- ["Failure", (0, import_kit84.getUnitEncoder)()],
6242
+ ["Failure", (0, import_kit80.getUnitEncoder)()],
6471
6243
  [
6472
6244
  "MarkerForIdlBuildDoNotUseThis",
6473
- (0, import_kit84.getStructEncoder)([
6474
- ["fields", (0, import_kit84.getTupleEncoder)([getStakeOutputEncoder()])]
6245
+ (0, import_kit80.getStructEncoder)([
6246
+ ["fields", (0, import_kit80.getTupleEncoder)([getStakeOutputEncoder()])]
6475
6247
  ])
6476
6248
  ]
6477
6249
  ])
@@ -6481,28 +6253,28 @@ function getStakeCallbackInstructionDataEncoder() {
6481
6253
  );
6482
6254
  }
6483
6255
  function getStakeCallbackInstructionDataDecoder() {
6484
- return (0, import_kit84.getStructDecoder)([
6485
- ["discriminator", (0, import_kit84.fixDecoderSize)((0, import_kit84.getBytesDecoder)(), 8)],
6256
+ return (0, import_kit80.getStructDecoder)([
6257
+ ["discriminator", (0, import_kit80.fixDecoderSize)((0, import_kit80.getBytesDecoder)(), 8)],
6486
6258
  [
6487
6259
  "output",
6488
- (0, import_kit84.getDiscriminatedUnionDecoder)([
6260
+ (0, import_kit80.getDiscriminatedUnionDecoder)([
6489
6261
  [
6490
6262
  "Success",
6491
- (0, import_kit84.getStructDecoder)([
6263
+ (0, import_kit80.getStructDecoder)([
6492
6264
  [
6493
6265
  "fields",
6494
- (0, import_kit84.getTupleDecoder)([
6266
+ (0, import_kit80.getTupleDecoder)([
6495
6267
  getStakeOutputDecoder(),
6496
- (0, import_kit84.getArrayDecoder)((0, import_kit84.getU8Decoder)(), { size: 64 })
6268
+ (0, import_kit80.getArrayDecoder)((0, import_kit80.getU8Decoder)(), { size: 64 })
6497
6269
  ])
6498
6270
  ]
6499
6271
  ])
6500
6272
  ],
6501
- ["Failure", (0, import_kit84.getUnitDecoder)()],
6273
+ ["Failure", (0, import_kit80.getUnitDecoder)()],
6502
6274
  [
6503
6275
  "MarkerForIdlBuildDoNotUseThis",
6504
- (0, import_kit84.getStructDecoder)([
6505
- ["fields", (0, import_kit84.getTupleDecoder)([getStakeOutputDecoder()])]
6276
+ (0, import_kit80.getStructDecoder)([
6277
+ ["fields", (0, import_kit80.getTupleDecoder)([getStakeOutputDecoder()])]
6506
6278
  ])
6507
6279
  ]
6508
6280
  ])
@@ -6510,7 +6282,7 @@ function getStakeCallbackInstructionDataDecoder() {
6510
6282
  ]);
6511
6283
  }
6512
6284
  function getStakeCallbackInstructionDataCodec() {
6513
- return (0, import_kit84.combineCodec)(
6285
+ return (0, import_kit80.combineCodec)(
6514
6286
  getStakeCallbackInstructionDataEncoder(),
6515
6287
  getStakeCallbackInstructionDataDecoder()
6516
6288
  );
@@ -6586,7 +6358,7 @@ function parseStakeCallbackInstruction(instruction) {
6586
6358
  }
6587
6359
 
6588
6360
  // src/generated/instructions/stakeCompDef.ts
6589
- var import_kit85 = require("@solana/kit");
6361
+ var import_kit81 = require("@solana/kit");
6590
6362
  var STAKE_COMP_DEF_DISCRIMINATOR = new Uint8Array([
6591
6363
  156,
6592
6364
  5,
@@ -6598,23 +6370,23 @@ var STAKE_COMP_DEF_DISCRIMINATOR = new Uint8Array([
6598
6370
  130
6599
6371
  ]);
6600
6372
  function getStakeCompDefDiscriminatorBytes() {
6601
- return (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8).encode(
6373
+ return (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8).encode(
6602
6374
  STAKE_COMP_DEF_DISCRIMINATOR
6603
6375
  );
6604
6376
  }
6605
6377
  function getStakeCompDefInstructionDataEncoder() {
6606
- return (0, import_kit85.transformEncoder)(
6607
- (0, import_kit85.getStructEncoder)([["discriminator", (0, import_kit85.fixEncoderSize)((0, import_kit85.getBytesEncoder)(), 8)]]),
6378
+ return (0, import_kit81.transformEncoder)(
6379
+ (0, import_kit81.getStructEncoder)([["discriminator", (0, import_kit81.fixEncoderSize)((0, import_kit81.getBytesEncoder)(), 8)]]),
6608
6380
  (value) => ({ ...value, discriminator: STAKE_COMP_DEF_DISCRIMINATOR })
6609
6381
  );
6610
6382
  }
6611
6383
  function getStakeCompDefInstructionDataDecoder() {
6612
- return (0, import_kit85.getStructDecoder)([
6613
- ["discriminator", (0, import_kit85.fixDecoderSize)((0, import_kit85.getBytesDecoder)(), 8)]
6384
+ return (0, import_kit81.getStructDecoder)([
6385
+ ["discriminator", (0, import_kit81.fixDecoderSize)((0, import_kit81.getBytesDecoder)(), 8)]
6614
6386
  ]);
6615
6387
  }
6616
6388
  function getStakeCompDefInstructionDataCodec() {
6617
- return (0, import_kit85.combineCodec)(
6389
+ return (0, import_kit81.combineCodec)(
6618
6390
  getStakeCompDefInstructionDataEncoder(),
6619
6391
  getStakeCompDefInstructionDataDecoder()
6620
6392
  );
@@ -6684,7 +6456,7 @@ function parseStakeCompDefInstruction(instruction) {
6684
6456
  }
6685
6457
 
6686
6458
  // src/generated/instructions/unstake.ts
6687
- var import_kit86 = require("@solana/kit");
6459
+ var import_kit82 = require("@solana/kit");
6688
6460
  var UNSTAKE_DISCRIMINATOR = new Uint8Array([
6689
6461
  90,
6690
6462
  95,
@@ -6696,25 +6468,25 @@ var UNSTAKE_DISCRIMINATOR = new Uint8Array([
6696
6468
  225
6697
6469
  ]);
6698
6470
  function getUnstakeDiscriminatorBytes() {
6699
- return (0, import_kit86.fixEncoderSize)((0, import_kit86.getBytesEncoder)(), 8).encode(UNSTAKE_DISCRIMINATOR);
6471
+ return (0, import_kit82.fixEncoderSize)((0, import_kit82.getBytesEncoder)(), 8).encode(UNSTAKE_DISCRIMINATOR);
6700
6472
  }
6701
6473
  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)()]
6474
+ return (0, import_kit82.transformEncoder)(
6475
+ (0, import_kit82.getStructEncoder)([
6476
+ ["discriminator", (0, import_kit82.fixEncoderSize)((0, import_kit82.getBytesEncoder)(), 8)],
6477
+ ["stakeAccountId", (0, import_kit82.getU32Encoder)()]
6706
6478
  ]),
6707
6479
  (value) => ({ ...value, discriminator: UNSTAKE_DISCRIMINATOR })
6708
6480
  );
6709
6481
  }
6710
6482
  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)()]
6483
+ return (0, import_kit82.getStructDecoder)([
6484
+ ["discriminator", (0, import_kit82.fixDecoderSize)((0, import_kit82.getBytesDecoder)(), 8)],
6485
+ ["stakeAccountId", (0, import_kit82.getU32Decoder)()]
6714
6486
  ]);
6715
6487
  }
6716
6488
  function getUnstakeInstructionDataCodec() {
6717
- return (0, import_kit86.combineCodec)(
6489
+ return (0, import_kit82.combineCodec)(
6718
6490
  getUnstakeInstructionDataEncoder(),
6719
6491
  getUnstakeInstructionDataDecoder()
6720
6492
  );
@@ -6738,10 +6510,10 @@ async function getUnstakeInstructionAsync(input, config) {
6738
6510
  const accounts = originalAccounts;
6739
6511
  const args = { ...input };
6740
6512
  if (!accounts.stakeAccount.value) {
6741
- accounts.stakeAccount.value = await (0, import_kit86.getProgramDerivedAddress)({
6513
+ accounts.stakeAccount.value = await (0, import_kit82.getProgramDerivedAddress)({
6742
6514
  programAddress,
6743
6515
  seeds: [
6744
- (0, import_kit86.getBytesEncoder)().encode(
6516
+ (0, import_kit82.getBytesEncoder)().encode(
6745
6517
  new Uint8Array([
6746
6518
  115,
6747
6519
  116,
@@ -6758,19 +6530,19 @@ async function getUnstakeInstructionAsync(input, config) {
6758
6530
  116
6759
6531
  ])
6760
6532
  ),
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))
6533
+ (0, import_kit82.getAddressEncoder)().encode(expectAddress(accounts.owner.value)),
6534
+ (0, import_kit82.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6535
+ (0, import_kit82.getU32Encoder)().encode(expectSome(args.stakeAccountId))
6764
6536
  ]
6765
6537
  });
6766
6538
  }
6767
6539
  if (!accounts.marketTokenAta.value) {
6768
- accounts.marketTokenAta.value = await (0, import_kit86.getProgramDerivedAddress)({
6540
+ accounts.marketTokenAta.value = await (0, import_kit82.getProgramDerivedAddress)({
6769
6541
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
6770
6542
  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))
6543
+ (0, import_kit82.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6544
+ (0, import_kit82.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
6545
+ (0, import_kit82.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
6774
6546
  ]
6775
6547
  });
6776
6548
  }
@@ -6864,7 +6636,7 @@ function parseUnstakeInstruction(instruction) {
6864
6636
  }
6865
6637
 
6866
6638
  // src/generated/instructions/updatePlatformConfig.ts
6867
- var import_kit87 = require("@solana/kit");
6639
+ var import_kit83 = require("@solana/kit");
6868
6640
  var UPDATE_PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
6869
6641
  195,
6870
6642
  60,
@@ -6876,21 +6648,21 @@ var UPDATE_PLATFORM_CONFIG_DISCRIMINATOR = new Uint8Array([
6876
6648
  143
6877
6649
  ]);
6878
6650
  function getUpdatePlatformConfigDiscriminatorBytes() {
6879
- return (0, import_kit87.fixEncoderSize)((0, import_kit87.getBytesEncoder)(), 8).encode(
6651
+ return (0, import_kit83.fixEncoderSize)((0, import_kit83.getBytesEncoder)(), 8).encode(
6880
6652
  UPDATE_PLATFORM_CONFIG_DISCRIMINATOR
6881
6653
  );
6882
6654
  }
6883
6655
  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)()]
6656
+ return (0, import_kit83.transformEncoder)(
6657
+ (0, import_kit83.getStructEncoder)([
6658
+ ["discriminator", (0, import_kit83.fixEncoderSize)((0, import_kit83.getBytesEncoder)(), 8)],
6659
+ ["platformFeeBp", (0, import_kit83.getU16Encoder)()],
6660
+ ["rewardPoolFeeBp", (0, import_kit83.getU16Encoder)()],
6661
+ ["creatorFeeBp", (0, import_kit83.getU16Encoder)()],
6662
+ ["revealAuthority", (0, import_kit83.getAddressEncoder)()],
6663
+ ["minTimeToStakeSeconds", (0, import_kit83.getU64Encoder)()],
6664
+ ["revealPeriodSeconds", (0, import_kit83.getU64Encoder)()],
6665
+ ["marketResolutionDeadlineSeconds", (0, import_kit83.getU64Encoder)()]
6894
6666
  ]),
6895
6667
  (value) => ({
6896
6668
  ...value,
@@ -6899,19 +6671,19 @@ function getUpdatePlatformConfigInstructionDataEncoder() {
6899
6671
  );
6900
6672
  }
6901
6673
  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)()]
6674
+ return (0, import_kit83.getStructDecoder)([
6675
+ ["discriminator", (0, import_kit83.fixDecoderSize)((0, import_kit83.getBytesDecoder)(), 8)],
6676
+ ["platformFeeBp", (0, import_kit83.getU16Decoder)()],
6677
+ ["rewardPoolFeeBp", (0, import_kit83.getU16Decoder)()],
6678
+ ["creatorFeeBp", (0, import_kit83.getU16Decoder)()],
6679
+ ["revealAuthority", (0, import_kit83.getAddressDecoder)()],
6680
+ ["minTimeToStakeSeconds", (0, import_kit83.getU64Decoder)()],
6681
+ ["revealPeriodSeconds", (0, import_kit83.getU64Decoder)()],
6682
+ ["marketResolutionDeadlineSeconds", (0, import_kit83.getU64Decoder)()]
6911
6683
  ]);
6912
6684
  }
6913
6685
  function getUpdatePlatformConfigInstructionDataCodec() {
6914
- return (0, import_kit87.combineCodec)(
6686
+ return (0, import_kit83.combineCodec)(
6915
6687
  getUpdatePlatformConfigInstructionDataEncoder(),
6916
6688
  getUpdatePlatformConfigInstructionDataDecoder()
6917
6689
  );
@@ -6962,7 +6734,7 @@ function parseUpdatePlatformConfigInstruction(instruction) {
6962
6734
  }
6963
6735
 
6964
6736
  // src/generated/instructions/withdrawReward.ts
6965
- var import_kit88 = require("@solana/kit");
6737
+ var import_kit84 = require("@solana/kit");
6966
6738
  var WITHDRAW_REWARD_DISCRIMINATOR = new Uint8Array([
6967
6739
  191,
6968
6740
  187,
@@ -6974,23 +6746,23 @@ var WITHDRAW_REWARD_DISCRIMINATOR = new Uint8Array([
6974
6746
  244
6975
6747
  ]);
6976
6748
  function getWithdrawRewardDiscriminatorBytes() {
6977
- return (0, import_kit88.fixEncoderSize)((0, import_kit88.getBytesEncoder)(), 8).encode(
6749
+ return (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8).encode(
6978
6750
  WITHDRAW_REWARD_DISCRIMINATOR
6979
6751
  );
6980
6752
  }
6981
6753
  function getWithdrawRewardInstructionDataEncoder() {
6982
- return (0, import_kit88.transformEncoder)(
6983
- (0, import_kit88.getStructEncoder)([["discriminator", (0, import_kit88.fixEncoderSize)((0, import_kit88.getBytesEncoder)(), 8)]]),
6754
+ return (0, import_kit84.transformEncoder)(
6755
+ (0, import_kit84.getStructEncoder)([["discriminator", (0, import_kit84.fixEncoderSize)((0, import_kit84.getBytesEncoder)(), 8)]]),
6984
6756
  (value) => ({ ...value, discriminator: WITHDRAW_REWARD_DISCRIMINATOR })
6985
6757
  );
6986
6758
  }
6987
6759
  function getWithdrawRewardInstructionDataDecoder() {
6988
- return (0, import_kit88.getStructDecoder)([
6989
- ["discriminator", (0, import_kit88.fixDecoderSize)((0, import_kit88.getBytesDecoder)(), 8)]
6760
+ return (0, import_kit84.getStructDecoder)([
6761
+ ["discriminator", (0, import_kit84.fixDecoderSize)((0, import_kit84.getBytesDecoder)(), 8)]
6990
6762
  ]);
6991
6763
  }
6992
6764
  function getWithdrawRewardInstructionDataCodec() {
6993
- return (0, import_kit88.combineCodec)(
6765
+ return (0, import_kit84.combineCodec)(
6994
6766
  getWithdrawRewardInstructionDataEncoder(),
6995
6767
  getWithdrawRewardInstructionDataDecoder()
6996
6768
  );
@@ -7011,24 +6783,24 @@ async function getWithdrawRewardInstructionAsync(input, config) {
7011
6783
  };
7012
6784
  const accounts = originalAccounts;
7013
6785
  if (!accounts.sponsorAccount.value) {
7014
- accounts.sponsorAccount.value = await (0, import_kit88.getProgramDerivedAddress)({
6786
+ accounts.sponsorAccount.value = await (0, import_kit84.getProgramDerivedAddress)({
7015
6787
  programAddress,
7016
6788
  seeds: [
7017
- (0, import_kit88.getBytesEncoder)().encode(
6789
+ (0, import_kit84.getBytesEncoder)().encode(
7018
6790
  new Uint8Array([115, 112, 111, 110, 115, 111, 114])
7019
6791
  ),
7020
- (0, import_kit88.getAddressEncoder)().encode(expectAddress(accounts.sponsor.value)),
7021
- (0, import_kit88.getAddressEncoder)().encode(expectAddress(accounts.market.value))
6792
+ (0, import_kit84.getAddressEncoder)().encode(expectAddress(accounts.sponsor.value)),
6793
+ (0, import_kit84.getAddressEncoder)().encode(expectAddress(accounts.market.value))
7022
6794
  ]
7023
6795
  });
7024
6796
  }
7025
6797
  if (!accounts.marketTokenAta.value) {
7026
- accounts.marketTokenAta.value = await (0, import_kit88.getProgramDerivedAddress)({
6798
+ accounts.marketTokenAta.value = await (0, import_kit84.getProgramDerivedAddress)({
7027
6799
  programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
7028
6800
  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))
6801
+ (0, import_kit84.getAddressEncoder)().encode(expectAddress(accounts.market.value)),
6802
+ (0, import_kit84.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
6803
+ (0, import_kit84.getAddressEncoder)().encode(expectAddress(accounts.tokenMint.value))
7032
6804
  ]
7033
6805
  });
7034
6806
  }
@@ -7134,7 +6906,7 @@ async function createMarket(input) {
7134
6906
  }
7135
6907
 
7136
6908
  // src/instructions/initCompDef.ts
7137
- var import_kit89 = require("@solana/kit");
6909
+ var import_kit85 = require("@solana/kit");
7138
6910
  var import_client = require("@arcium-hq/client");
7139
6911
  var import_web3 = require("@solana/web3.js");
7140
6912
  var import_bn = require("bn.js");
@@ -7143,13 +6915,13 @@ var ALL_COMP_DEF_CIRCUITS = [
7143
6915
  "reveal_stake"
7144
6916
  ];
7145
6917
  function toAddress(pubkey) {
7146
- return (0, import_kit89.address)(pubkey.toBase58());
6918
+ return (0, import_kit85.address)(pubkey.toBase58());
7147
6919
  }
7148
6920
  async function getMxeAccount(rpc, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7149
6921
  const programIdLegacy = new import_web3.PublicKey(programId);
7150
6922
  const mxeAddress = toAddress((0, import_client.getMXEAccAddress)(programIdLegacy));
7151
- const encoded = await (0, import_kit89.fetchEncodedAccount)(rpc, mxeAddress);
7152
- (0, import_kit89.assertAccountExists)(encoded);
6923
+ const encoded = await (0, import_kit85.fetchEncodedAccount)(rpc, mxeAddress);
6924
+ (0, import_kit85.assertAccountExists)(encoded);
7153
6925
  const data = getMXEAccountDecoder().decode(encoded.data.slice(8));
7154
6926
  return { address: mxeAddress, data };
7155
6927
  }
@@ -7189,12 +6961,12 @@ async function getInitCompDefInstruction(rpc, payer, circuitName, config = {}) {
7189
6961
  }
7190
6962
 
7191
6963
  // src/arcium/computeAccounts.ts
7192
- var import_kit90 = require("@solana/kit");
6964
+ var import_kit86 = require("@solana/kit");
7193
6965
  var import_client2 = require("@arcium-hq/client");
7194
6966
  var import_web32 = require("@solana/web3.js");
7195
6967
  var import_bn2 = __toESM(require("bn.js"), 1);
7196
6968
  function toAddress2(pubkey) {
7197
- return (0, import_kit90.address)(pubkey.toBase58());
6969
+ return (0, import_kit86.address)(pubkey.toBase58());
7198
6970
  }
7199
6971
  function getComputeAccounts(ixName, config) {
7200
6972
  const programId = config.programId ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
@@ -7225,6 +6997,44 @@ function getComputeAccounts(ixName, config) {
7225
6997
  };
7226
6998
  }
7227
6999
 
7000
+ // src/arcium/awaitFinalizeComputation.ts
7001
+ var TIMEOUT_SLOTS = 180;
7002
+ var DEFAULT_POLL_INTERVAL = 1e3;
7003
+ var DEFAULT_SIGNATURE_LIMIT = 100;
7004
+ var awaitComputationFinalization = async (rpc, computationAccount, invocationSignature, options) => {
7005
+ const commitment = options?.commitment ?? "confirmed";
7006
+ const pollInterval = options?.pollInterval ?? DEFAULT_POLL_INTERVAL;
7007
+ const limit = options?.transactionCountLimit ?? DEFAULT_SIGNATURE_LIMIT;
7008
+ const invocationTx = await rpc.getTransaction(invocationSignature, {
7009
+ commitment,
7010
+ encoding: "json",
7011
+ maxSupportedTransactionVersion: 0
7012
+ }).send();
7013
+ if (!invocationTx) {
7014
+ throw new Error(`Invocation transaction ${invocationSignature} not found`);
7015
+ }
7016
+ const deadlineSlot = invocationTx.slot + BigInt(TIMEOUT_SLOTS);
7017
+ for (; ; ) {
7018
+ const signatures = await rpc.getSignaturesForAddress(computationAccount, {
7019
+ limit,
7020
+ commitment
7021
+ }).send();
7022
+ for (const sigInfo of signatures) {
7023
+ if (sigInfo.signature === invocationSignature) continue;
7024
+ if (sigInfo.err === null) {
7025
+ return sigInfo.signature;
7026
+ }
7027
+ }
7028
+ const currentSlot = await rpc.getSlot({ commitment }).send();
7029
+ if (currentSlot > deadlineSlot) {
7030
+ throw new Error(
7031
+ `Computation ${computationAccount} not finalized within ${TIMEOUT_SLOTS} slots of invocation ${invocationSignature}`
7032
+ );
7033
+ }
7034
+ await new Promise((resolve) => setTimeout(resolve, pollInterval));
7035
+ }
7036
+ };
7037
+
7228
7038
  // src/instructions/stake.ts
7229
7039
  async function stake(input, config) {
7230
7040
  const {
@@ -7265,6 +7075,10 @@ async function stake(input, config) {
7265
7075
  programAddress ? { programAddress } : void 0
7266
7076
  );
7267
7077
  }
7078
+ async function awaitStakeFinalization(rpc, txSignature, config, options) {
7079
+ const { computationAccount } = getComputeAccounts("stake", config);
7080
+ return awaitComputationFinalization(rpc, computationAccount, txSignature, options);
7081
+ }
7268
7082
 
7269
7083
  // src/instructions/revealStake.ts
7270
7084
  async function revealStake(input, config) {
@@ -7280,6 +7094,10 @@ async function revealStake(input, config) {
7280
7094
  programAddress ? { programAddress } : void 0
7281
7095
  );
7282
7096
  }
7097
+ async function awaitRevealStakeFinalization(rpc, txSignature, config, options) {
7098
+ const { computationAccount } = getComputeAccounts("reveal_stake", config);
7099
+ return awaitComputationFinalization(rpc, computationAccount, txSignature, options);
7100
+ }
7283
7101
 
7284
7102
  // src/instructions/addMarketOption.ts
7285
7103
  async function addMarketOption(input) {
@@ -7299,24 +7117,6 @@ function openMarket(input) {
7299
7117
  );
7300
7118
  }
7301
7119
 
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
7120
  // src/instructions/setWinningOption.ts
7321
7121
  async function setWinningOption(input) {
7322
7122
  const { programAddress, ...params } = input;
@@ -7417,15 +7217,15 @@ async function finalizeRevealStake(input) {
7417
7217
  }
7418
7218
 
7419
7219
  // src/accounts/platformConfig.ts
7420
- var import_kit91 = require("@solana/kit");
7220
+ var import_kit87 = require("@solana/kit");
7421
7221
  var PLATFORM_CONFIG_SEED = "platform_config";
7422
7222
  async function getPlatformConfigAddress(authority, name, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7423
- return (0, import_kit91.getProgramDerivedAddress)({
7223
+ return (0, import_kit87.getProgramDerivedAddress)({
7424
7224
  programAddress: programId,
7425
7225
  seeds: [
7426
7226
  PLATFORM_CONFIG_SEED,
7427
- (0, import_kit91.getAddressEncoder)().encode(authority),
7428
- (0, import_kit91.getUtf8Encoder)().encode(name)
7227
+ (0, import_kit87.getAddressEncoder)().encode(authority),
7228
+ (0, import_kit87.getUtf8Encoder)().encode(name)
7429
7229
  ]
7430
7230
  });
7431
7231
  }
@@ -7440,9 +7240,9 @@ async function createPlatformConfig(rpc, params) {
7440
7240
  rewardPoolFeeBp,
7441
7241
  creatorFeeBp,
7442
7242
  feeClaimAuthority,
7243
+ revealAuthority,
7443
7244
  minTimeToStakeSeconds,
7444
- minRevealPeriodSeconds,
7445
- maxRevealPeriodSeconds,
7245
+ revealPeriodSeconds,
7446
7246
  marketResolutionDeadlineSeconds
7447
7247
  } = params;
7448
7248
  const [platformConfigAddress] = await getPlatformConfigAddress(
@@ -7464,9 +7264,9 @@ async function createPlatformConfig(rpc, params) {
7464
7264
  rewardPoolFeeBp,
7465
7265
  creatorFeeBp,
7466
7266
  feeClaimAuthority,
7267
+ revealAuthority,
7467
7268
  minTimeToStakeSeconds,
7468
- minRevealPeriodSeconds,
7469
- maxRevealPeriodSeconds,
7269
+ revealPeriodSeconds,
7470
7270
  marketResolutionDeadlineSeconds
7471
7271
  },
7472
7272
  programAddress ? { programAddress } : void 0
@@ -7482,9 +7282,9 @@ async function updatePlatformConfig(rpc, params) {
7482
7282
  platformFeeBp,
7483
7283
  rewardPoolFeeBp,
7484
7284
  creatorFeeBp,
7285
+ revealAuthority,
7485
7286
  minTimeToStakeSeconds,
7486
- minRevealPeriodSeconds,
7487
- maxRevealPeriodSeconds,
7287
+ revealPeriodSeconds,
7488
7288
  marketResolutionDeadlineSeconds
7489
7289
  } = params;
7490
7290
  const [platformConfigAddress] = await getPlatformConfigAddress(
@@ -7505,9 +7305,9 @@ async function updatePlatformConfig(rpc, params) {
7505
7305
  platformFeeBp,
7506
7306
  rewardPoolFeeBp,
7507
7307
  creatorFeeBp,
7308
+ revealAuthority,
7508
7309
  minTimeToStakeSeconds,
7509
- minRevealPeriodSeconds,
7510
- maxRevealPeriodSeconds,
7310
+ revealPeriodSeconds,
7511
7311
  marketResolutionDeadlineSeconds
7512
7312
  },
7513
7313
  programAddress ? { programAddress } : void 0
@@ -7560,51 +7360,51 @@ function setFeeClaimAuthority(input) {
7560
7360
  }
7561
7361
 
7562
7362
  // src/accounts/allowedMint.ts
7563
- var import_kit92 = require("@solana/kit");
7363
+ var import_kit88 = require("@solana/kit");
7564
7364
  var ALLOWED_MINT_SEED = "allowed_mint";
7565
7365
  async function getAllowedMintAddress(platformConfig, mint, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7566
- const enc = (0, import_kit92.getAddressEncoder)();
7567
- return (0, import_kit92.getProgramDerivedAddress)({
7366
+ const enc = (0, import_kit88.getAddressEncoder)();
7367
+ return (0, import_kit88.getProgramDerivedAddress)({
7568
7368
  programAddress: programId,
7569
7369
  seeds: [ALLOWED_MINT_SEED, enc.encode(platformConfig), enc.encode(mint)]
7570
7370
  });
7571
7371
  }
7572
7372
 
7573
7373
  // src/accounts/opportunityMarket.ts
7574
- var import_kit93 = require("@solana/kit");
7374
+ var import_kit89 = require("@solana/kit");
7575
7375
  var OPPORTUNITY_MARKET_SEED = "opportunity_market";
7576
7376
  async function getOpportunityMarketAddress(platformConfig, creator, marketIndex, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7577
- return (0, import_kit93.getProgramDerivedAddress)({
7377
+ return (0, import_kit89.getProgramDerivedAddress)({
7578
7378
  programAddress: programId,
7579
7379
  seeds: [
7580
7380
  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))
7381
+ (0, import_kit89.getAddressEncoder)().encode(platformConfig),
7382
+ (0, import_kit89.getAddressEncoder)().encode(creator),
7383
+ (0, import_kit89.getU64Encoder)().encode(BigInt(marketIndex))
7584
7384
  ]
7585
7385
  });
7586
7386
  }
7587
7387
 
7588
7388
  // src/accounts/opportunityMarketOption.ts
7589
- var import_kit94 = require("@solana/kit");
7389
+ var import_kit90 = require("@solana/kit");
7590
7390
  var OPPORTUNITY_MARKET_OPTION_SEED = "option";
7591
7391
  async function getOpportunityMarketOptionAddress(market, optionId, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7592
- return (0, import_kit94.getProgramDerivedAddress)({
7392
+ return (0, import_kit90.getProgramDerivedAddress)({
7593
7393
  programAddress: programId,
7594
7394
  seeds: [
7595
7395
  OPPORTUNITY_MARKET_OPTION_SEED,
7596
- (0, import_kit94.getAddressEncoder)().encode(market),
7597
- (0, import_kit94.getU64Encoder)().encode(optionId)
7396
+ (0, import_kit90.getAddressEncoder)().encode(market),
7397
+ (0, import_kit90.getU64Encoder)().encode(optionId)
7598
7398
  ]
7599
7399
  });
7600
7400
  }
7601
7401
 
7602
7402
  // src/accounts/opportunityMarketSponsor.ts
7603
- var import_kit95 = require("@solana/kit");
7403
+ var import_kit91 = require("@solana/kit");
7604
7404
  var SPONSOR_SEED = "sponsor";
7605
7405
  async function getOpportunityMarketSponsorAddress(sponsor, market, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7606
- const addressEncoder = (0, import_kit95.getAddressEncoder)();
7607
- return (0, import_kit95.getProgramDerivedAddress)({
7406
+ const addressEncoder = (0, import_kit91.getAddressEncoder)();
7407
+ return (0, import_kit91.getProgramDerivedAddress)({
7608
7408
  programAddress: programId,
7609
7409
  seeds: [
7610
7410
  SPONSOR_SEED,
@@ -7615,13 +7415,13 @@ async function getOpportunityMarketSponsorAddress(sponsor, market, programId = O
7615
7415
  }
7616
7416
 
7617
7417
  // src/accounts/stakeAccount.ts
7618
- var import_kit96 = require("@solana/kit");
7418
+ var import_kit92 = require("@solana/kit");
7619
7419
  var STAKE_ACCOUNT_SEED = "stake_account";
7620
7420
  async function getStakeAccountAddress(owner, market, stakeAccountId, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
7621
- const addressEncoder = (0, import_kit96.getAddressEncoder)();
7421
+ const addressEncoder = (0, import_kit92.getAddressEncoder)();
7622
7422
  const idBytes = new Uint8Array(4);
7623
7423
  new DataView(idBytes.buffer).setUint32(0, stakeAccountId, true);
7624
- return (0, import_kit96.getProgramDerivedAddress)({
7424
+ return (0, import_kit92.getProgramDerivedAddress)({
7625
7425
  programAddress: programId,
7626
7426
  seeds: [
7627
7427
  STAKE_ACCOUNT_SEED,
@@ -7632,115 +7432,6 @@ async function getStakeAccountAddress(owner, market, stakeAccountId, programId =
7632
7432
  });
7633
7433
  }
7634
7434
 
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
7435
  // src/x25519/keypair.ts
7745
7436
  var import_client3 = require("@arcium-hq/client");
7746
7437
  var import_bn3 = require("bn.js");
@@ -7805,11 +7496,10 @@ function nonceToBytes(nonce) {
7805
7496
  OPPORTUNITY_MARKET_ERROR__LOCKED,
7806
7497
  OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN,
7807
7498
  OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN,
7808
- OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED,
7809
7499
  OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED,
7810
- OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED,
7811
7500
  OPPORTUNITY_MARKET_ERROR__NOT_REVEALED,
7812
7501
  OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM,
7502
+ OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION,
7813
7503
  OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM,
7814
7504
  OPPORTUNITY_MARKET_ERROR__NO_STAKE,
7815
7505
  OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED,
@@ -7832,12 +7522,10 @@ function nonceToBytes(nonce) {
7832
7522
  OpportunityMarketAccount,
7833
7523
  OpportunityMarketInstruction,
7834
7524
  Output,
7835
- PAUSE_STAKING_DISCRIMINATOR,
7836
7525
  PLATFORM_CONFIG_DISCRIMINATOR,
7837
7526
  PLATFORM_CONFIG_SEED,
7838
7527
  Parameter,
7839
7528
  RESOLVE_MARKET_DISCRIMINATOR,
7840
- RESUME_STAKING_DISCRIMINATOR,
7841
7529
  REVEAL_STAKE_CALLBACK_DISCRIMINATOR,
7842
7530
  REVEAL_STAKE_COMP_DEF_DISCRIMINATOR,
7843
7531
  REVEAL_STAKE_DISCRIMINATOR,
@@ -7855,8 +7543,9 @@ function nonceToBytes(nonce) {
7855
7543
  WITHDRAW_REWARD_DISCRIMINATOR,
7856
7544
  addMarketOption,
7857
7545
  addReward,
7858
- awaitBatchComputationFinalization,
7859
7546
  awaitComputationFinalization,
7547
+ awaitRevealStakeFinalization,
7548
+ awaitStakeFinalization,
7860
7549
  circuitSource,
7861
7550
  claimCreatorFees,
7862
7551
  claimFees,
@@ -8107,11 +7796,6 @@ function nonceToBytes(nonce) {
8107
7796
  getParameterCodec,
8108
7797
  getParameterDecoder,
8109
7798
  getParameterEncoder,
8110
- getPauseStakingDiscriminatorBytes,
8111
- getPauseStakingInstruction,
8112
- getPauseStakingInstructionDataCodec,
8113
- getPauseStakingInstructionDataDecoder,
8114
- getPauseStakingInstructionDataEncoder,
8115
7799
  getPlatformConfigAddress,
8116
7800
  getPlatformConfigCodec,
8117
7801
  getPlatformConfigDecoder,
@@ -8122,11 +7806,6 @@ function nonceToBytes(nonce) {
8122
7806
  getResolveMarketInstructionDataCodec,
8123
7807
  getResolveMarketInstructionDataDecoder,
8124
7808
  getResolveMarketInstructionDataEncoder,
8125
- getResumeStakingDiscriminatorBytes,
8126
- getResumeStakingInstruction,
8127
- getResumeStakingInstructionDataCodec,
8128
- getResumeStakingInstructionDataDecoder,
8129
- getResumeStakingInstructionDataEncoder,
8130
7809
  getRevealPeriodEndedEventCodec,
8131
7810
  getRevealPeriodEndedEventDecoder,
8132
7811
  getRevealPeriodEndedEventEncoder,
@@ -8213,12 +7892,6 @@ function nonceToBytes(nonce) {
8213
7892
  getStakedEventCodec,
8214
7893
  getStakedEventDecoder,
8215
7894
  getStakedEventEncoder,
8216
- getStakingPausedEventCodec,
8217
- getStakingPausedEventDecoder,
8218
- getStakingPausedEventEncoder,
8219
- getStakingResumedEventCodec,
8220
- getStakingResumedEventDecoder,
8221
- getStakingResumedEventEncoder,
8222
7895
  getStuckStakeClosedEventCodec,
8223
7896
  getStuckStakeClosedEventDecoder,
8224
7897
  getStuckStakeClosedEventEncoder,
@@ -8276,9 +7949,7 @@ function nonceToBytes(nonce) {
8276
7949
  parseInitPlatformConfigInstruction,
8277
7950
  parseInitStakeAccountInstruction,
8278
7951
  parseOpenMarketInstruction,
8279
- parsePauseStakingInstruction,
8280
7952
  parseResolveMarketInstruction,
8281
- parseResumeStakingInstruction,
8282
7953
  parseRevealStakeCallbackInstruction,
8283
7954
  parseRevealStakeCompDefInstruction,
8284
7955
  parseRevealStakeInstruction,
@@ -8291,11 +7962,9 @@ function nonceToBytes(nonce) {
8291
7962
  parseUnstakeInstruction,
8292
7963
  parseUpdatePlatformConfigInstruction,
8293
7964
  parseWithdrawRewardInstruction,
8294
- pauseStaking,
8295
7965
  randomComputationOffset,
8296
7966
  randomStateNonce,
8297
7967
  resolveMarket,
8298
- resumeStaking,
8299
7968
  revealStake,
8300
7969
  setFeeClaimAuthority,
8301
7970
  setUpdateAuthority,