@bench.games/opportunity-markets 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { ReadonlyUint8Array, Address, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccounts, FetchAccountsConfig, fetchEncodedAccount, FetchAccountConfig, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, GetDiscriminatedUnionVariantContent, GetDiscriminatedUnionVariant, Codec, Decoder, Encoder, Option, OptionOrNullable, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, TransactionSigner, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, WritableSignerAccount, AccountSignerMeta, WritableAccount, ReadonlyAccount, ReadonlySignerAccount, Rpc, SolanaRpcApi, ProgramDerivedAddress } from '@solana/kit';
1
+ import { ReadonlyUint8Array, Address, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccounts, FetchAccountsConfig, fetchEncodedAccount, FetchAccountConfig, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, GetDiscriminatedUnionVariantContent, GetDiscriminatedUnionVariant, Codec, Decoder, Encoder, Option, OptionOrNullable, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, TransactionSigner, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, WritableSignerAccount, AccountSignerMeta, WritableAccount, ReadonlyAccount, ReadonlySignerAccount, Rpc, SolanaRpcApi, Signature, ProgramDerivedAddress } from '@solana/kit';
2
2
  import { RescueCipher } from '@arcium-hq/client';
3
3
 
4
4
  /**
@@ -490,13 +490,11 @@ type MarketCreatedEvent = {
490
490
  earlinessMultiplier: number;
491
491
  marketAuthority: Address;
492
492
  authorizedReaderPubkey: Array<number>;
493
- allowUnstakingEarly: boolean;
494
493
  minStakeAmount: bigint;
495
494
  feeRates: FeeRates;
496
495
  creatorFeeClaimer: Address;
497
496
  marketResolutionDeadlineSeconds: bigint;
498
- minRevealPeriodSeconds: bigint;
499
- maxRevealPeriodSeconds: bigint;
497
+ revealPeriodSeconds: bigint;
500
498
  timestamp: bigint;
501
499
  };
502
500
  type MarketCreatedEventArgs = {
@@ -509,13 +507,11 @@ type MarketCreatedEventArgs = {
509
507
  earlinessMultiplier: number;
510
508
  marketAuthority: Address;
511
509
  authorizedReaderPubkey: Array<number>;
512
- allowUnstakingEarly: boolean;
513
510
  minStakeAmount: number | bigint;
514
511
  feeRates: FeeRatesArgs;
515
512
  creatorFeeClaimer: Address;
516
513
  marketResolutionDeadlineSeconds: number | bigint;
517
- minRevealPeriodSeconds: number | bigint;
518
- maxRevealPeriodSeconds: number | bigint;
514
+ revealPeriodSeconds: number | bigint;
519
515
  timestamp: number | bigint;
520
516
  };
521
517
  declare function getMarketCreatedEventEncoder(): FixedSizeEncoder<MarketCreatedEventArgs>;
@@ -938,7 +934,6 @@ type RewardAddedEvent = {
938
934
  sponsor: Address;
939
935
  amount: bigint;
940
936
  totalRewardAmount: bigint;
941
- locked: boolean;
942
937
  timestamp: bigint;
943
938
  };
944
939
  type RewardAddedEventArgs = {
@@ -946,13 +941,44 @@ type RewardAddedEventArgs = {
946
941
  sponsor: Address;
947
942
  amount: number | bigint;
948
943
  totalRewardAmount: number | bigint;
949
- locked: boolean;
950
944
  timestamp: number | bigint;
951
945
  };
952
946
  declare function getRewardAddedEventEncoder(): FixedSizeEncoder<RewardAddedEventArgs>;
953
947
  declare function getRewardAddedEventDecoder(): FixedSizeDecoder<RewardAddedEvent>;
954
948
  declare function getRewardAddedEventCodec(): FixedSizeCodec<RewardAddedEventArgs, RewardAddedEvent>;
955
949
 
950
+ /**
951
+ * This code was AUTOGENERATED using the Codama library.
952
+ * Please DO NOT EDIT THIS FILE, instead use visitors
953
+ * to add features, then rerun Codama to update it.
954
+ *
955
+ * @see https://github.com/codama-idl/codama
956
+ */
957
+
958
+ type RewardsClaimedEvent = {
959
+ owner: Address;
960
+ market: Address;
961
+ stakeAccount: Address;
962
+ stakeAccountId: number;
963
+ optionId: bigint;
964
+ rewardAmount: bigint;
965
+ score: bigint;
966
+ timestamp: bigint;
967
+ };
968
+ type RewardsClaimedEventArgs = {
969
+ owner: Address;
970
+ market: Address;
971
+ stakeAccount: Address;
972
+ stakeAccountId: number;
973
+ optionId: number | bigint;
974
+ rewardAmount: number | bigint;
975
+ score: number | bigint;
976
+ timestamp: number | bigint;
977
+ };
978
+ declare function getRewardsClaimedEventEncoder(): FixedSizeEncoder<RewardsClaimedEventArgs>;
979
+ declare function getRewardsClaimedEventDecoder(): FixedSizeDecoder<RewardsClaimedEvent>;
980
+ declare function getRewardsClaimedEventCodec(): FixedSizeCodec<RewardsClaimedEventArgs, RewardsClaimedEvent>;
981
+
956
982
  /**
957
983
  * This code was AUTOGENERATED using the Codama library.
958
984
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -992,11 +1018,11 @@ type StakeAccountClosedEvent = {
992
1018
  market: Address;
993
1019
  stakeAccount: Address;
994
1020
  stakeAccountId: number;
995
- optionId: bigint;
996
- rewardAmount: bigint;
1021
+ optionId: Option<bigint>;
1022
+ stakeAmount: bigint;
1023
+ feeRefund: bigint;
997
1024
  stakedAtTimestamp: bigint;
998
1025
  stakeEndTimestamp: bigint;
999
- stakeAmount: bigint;
1000
1026
  score: bigint;
1001
1027
  timestamp: bigint;
1002
1028
  };
@@ -1005,17 +1031,17 @@ type StakeAccountClosedEventArgs = {
1005
1031
  market: Address;
1006
1032
  stakeAccount: Address;
1007
1033
  stakeAccountId: number;
1008
- optionId: number | bigint;
1009
- rewardAmount: number | bigint;
1034
+ optionId: OptionOrNullable<number | bigint>;
1035
+ stakeAmount: number | bigint;
1036
+ feeRefund: number | bigint;
1010
1037
  stakedAtTimestamp: number | bigint;
1011
1038
  stakeEndTimestamp: number | bigint;
1012
- stakeAmount: number | bigint;
1013
1039
  score: number | bigint;
1014
1040
  timestamp: number | bigint;
1015
1041
  };
1016
- declare function getStakeAccountClosedEventEncoder(): FixedSizeEncoder<StakeAccountClosedEventArgs>;
1017
- declare function getStakeAccountClosedEventDecoder(): FixedSizeDecoder<StakeAccountClosedEvent>;
1018
- declare function getStakeAccountClosedEventCodec(): FixedSizeCodec<StakeAccountClosedEventArgs, StakeAccountClosedEvent>;
1042
+ declare function getStakeAccountClosedEventEncoder(): Encoder<StakeAccountClosedEventArgs>;
1043
+ declare function getStakeAccountClosedEventDecoder(): Decoder<StakeAccountClosedEvent>;
1044
+ declare function getStakeAccountClosedEventCodec(): Codec<StakeAccountClosedEventArgs, StakeAccountClosedEvent>;
1019
1045
 
1020
1046
  /**
1021
1047
  * This code was AUTOGENERATED using the Codama library.
@@ -1167,46 +1193,6 @@ declare function getStakeRevealedEventEncoder(): FixedSizeEncoder<StakeRevealedE
1167
1193
  declare function getStakeRevealedEventDecoder(): FixedSizeDecoder<StakeRevealedEvent>;
1168
1194
  declare function getStakeRevealedEventCodec(): FixedSizeCodec<StakeRevealedEventArgs, StakeRevealedEvent>;
1169
1195
 
1170
- /**
1171
- * This code was AUTOGENERATED using the Codama library.
1172
- * Please DO NOT EDIT THIS FILE, instead use visitors
1173
- * to add features, then rerun Codama to update it.
1174
- *
1175
- * @see https://github.com/codama-idl/codama
1176
- */
1177
-
1178
- type StakingPausedEvent = {
1179
- market: Address;
1180
- timestamp: bigint;
1181
- };
1182
- type StakingPausedEventArgs = {
1183
- market: Address;
1184
- timestamp: number | bigint;
1185
- };
1186
- declare function getStakingPausedEventEncoder(): FixedSizeEncoder<StakingPausedEventArgs>;
1187
- declare function getStakingPausedEventDecoder(): FixedSizeDecoder<StakingPausedEvent>;
1188
- declare function getStakingPausedEventCodec(): FixedSizeCodec<StakingPausedEventArgs, StakingPausedEvent>;
1189
-
1190
- /**
1191
- * This code was AUTOGENERATED using the Codama library.
1192
- * Please DO NOT EDIT THIS FILE, instead use visitors
1193
- * to add features, then rerun Codama to update it.
1194
- *
1195
- * @see https://github.com/codama-idl/codama
1196
- */
1197
-
1198
- type StakingResumedEvent = {
1199
- market: Address;
1200
- timestamp: bigint;
1201
- };
1202
- type StakingResumedEventArgs = {
1203
- market: Address;
1204
- timestamp: number | bigint;
1205
- };
1206
- declare function getStakingResumedEventEncoder(): FixedSizeEncoder<StakingResumedEventArgs>;
1207
- declare function getStakingResumedEventDecoder(): FixedSizeDecoder<StakingResumedEvent>;
1208
- declare function getStakingResumedEventCodec(): FixedSizeCodec<StakingResumedEventArgs, StakingResumedEvent>;
1209
-
1210
1196
  /**
1211
1197
  * This code was AUTOGENERATED using the Codama library.
1212
1198
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -1380,22 +1366,19 @@ type OpportunityMarket = {
1380
1366
  stakeEndTimestamp: Option<bigint>;
1381
1367
  resolvedAtTimestamp: Option<bigint>;
1382
1368
  winningOptionAllocation: number;
1369
+ winningOptionActiveBp: number;
1383
1370
  rewardAmount: bigint;
1384
1371
  marketAuthority: Address;
1385
- revealPeriodAuthority: Address;
1386
1372
  mint: Address;
1387
1373
  earlinessCutoffSeconds: bigint;
1388
1374
  earlinessMultiplier: number;
1389
- allowUnstakingEarly: boolean;
1390
1375
  authorizedReaderPubkey: Array<number>;
1391
- stakingPaused: boolean;
1392
1376
  feeRates: FeeRates;
1393
1377
  collectedPlatformFees: bigint;
1394
1378
  collectedCreatorFees: bigint;
1395
1379
  creatorFeeClaimer: Address;
1396
1380
  marketResolutionDeadlineSeconds: bigint;
1397
- minRevealPeriodSeconds: bigint;
1398
- maxRevealPeriodSeconds: bigint;
1381
+ revealPeriodSeconds: bigint;
1399
1382
  revealEnded: boolean;
1400
1383
  minStakeAmount: bigint;
1401
1384
  };
@@ -1408,22 +1391,19 @@ type OpportunityMarketArgs = {
1408
1391
  stakeEndTimestamp: OptionOrNullable<number | bigint>;
1409
1392
  resolvedAtTimestamp: OptionOrNullable<number | bigint>;
1410
1393
  winningOptionAllocation: number;
1394
+ winningOptionActiveBp: number;
1411
1395
  rewardAmount: number | bigint;
1412
1396
  marketAuthority: Address;
1413
- revealPeriodAuthority: Address;
1414
1397
  mint: Address;
1415
1398
  earlinessCutoffSeconds: number | bigint;
1416
1399
  earlinessMultiplier: number;
1417
- allowUnstakingEarly: boolean;
1418
1400
  authorizedReaderPubkey: Array<number>;
1419
- stakingPaused: boolean;
1420
1401
  feeRates: FeeRatesArgs;
1421
1402
  collectedPlatformFees: number | bigint;
1422
1403
  collectedCreatorFees: number | bigint;
1423
1404
  creatorFeeClaimer: Address;
1424
1405
  marketResolutionDeadlineSeconds: number | bigint;
1425
- minRevealPeriodSeconds: number | bigint;
1426
- maxRevealPeriodSeconds: number | bigint;
1406
+ revealPeriodSeconds: number | bigint;
1427
1407
  revealEnded: boolean;
1428
1408
  minStakeAmount: number | bigint;
1429
1409
  };
@@ -1453,22 +1433,28 @@ type OpportunityMarketOption = {
1453
1433
  id: bigint;
1454
1434
  creator: Address;
1455
1435
  createdAt: bigint;
1456
- totalStaked: bigint;
1436
+ unclaimedStake: bigint;
1457
1437
  totalScore: bigint;
1458
- rewardBp: Option<number>;
1438
+ /** Non-zero iff this option is a winner; share of pool in basis points (0–10_000). */
1439
+ rewardBp: number;
1440
+ /** Set on first finalize for a winning option; gates adding `reward_bp` to `winning_option_active_bp`. */
1441
+ includedInActiveBp: boolean;
1459
1442
  };
1460
1443
  type OpportunityMarketOptionArgs = {
1461
1444
  bump: number;
1462
1445
  id: number | bigint;
1463
1446
  creator: Address;
1464
1447
  createdAt: number | bigint;
1465
- totalStaked: number | bigint;
1448
+ unclaimedStake: number | bigint;
1466
1449
  totalScore: number | bigint;
1467
- rewardBp: OptionOrNullable<number>;
1450
+ /** Non-zero iff this option is a winner; share of pool in basis points (0–10_000). */
1451
+ rewardBp: number;
1452
+ /** Set on first finalize for a winning option; gates adding `reward_bp` to `winning_option_active_bp`. */
1453
+ includedInActiveBp: boolean;
1468
1454
  };
1469
- declare function getOpportunityMarketOptionEncoder(): Encoder<OpportunityMarketOptionArgs>;
1470
- declare function getOpportunityMarketOptionDecoder(): Decoder<OpportunityMarketOption>;
1471
- declare function getOpportunityMarketOptionCodec(): Codec<OpportunityMarketOptionArgs, OpportunityMarketOption>;
1455
+ declare function getOpportunityMarketOptionEncoder(): FixedSizeEncoder<OpportunityMarketOptionArgs>;
1456
+ declare function getOpportunityMarketOptionDecoder(): FixedSizeDecoder<OpportunityMarketOption>;
1457
+ declare function getOpportunityMarketOptionCodec(): FixedSizeCodec<OpportunityMarketOptionArgs, OpportunityMarketOption>;
1472
1458
  declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OpportunityMarketOption, TAddress>;
1473
1459
  declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OpportunityMarketOption, TAddress>;
1474
1460
  declare function fetchOpportunityMarketOption<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OpportunityMarketOption, TAddress>>;
@@ -1492,14 +1478,12 @@ type OpportunityMarketSponsor = {
1492
1478
  sponsor: Address;
1493
1479
  market: Address;
1494
1480
  rewardDeposited: bigint;
1495
- rewardLocked: boolean;
1496
1481
  };
1497
1482
  type OpportunityMarketSponsorArgs = {
1498
1483
  bump: number;
1499
1484
  sponsor: Address;
1500
1485
  market: Address;
1501
1486
  rewardDeposited: number | bigint;
1502
- rewardLocked: boolean;
1503
1487
  };
1504
1488
  declare function getOpportunityMarketSponsorEncoder(): FixedSizeEncoder<OpportunityMarketSponsorArgs>;
1505
1489
  declare function getOpportunityMarketSponsorDecoder(): FixedSizeDecoder<OpportunityMarketSponsor>;
@@ -1530,8 +1514,8 @@ type PlatformConfig = {
1530
1514
  feeRates: FeeRates;
1531
1515
  marketResolutionDeadlineSeconds: bigint;
1532
1516
  minTimeToStakeSeconds: bigint;
1533
- minRevealPeriodSeconds: bigint;
1534
- maxRevealPeriodSeconds: bigint;
1517
+ revealAuthority: Address;
1518
+ revealPeriodSeconds: bigint;
1535
1519
  };
1536
1520
  type PlatformConfigArgs = {
1537
1521
  bump: number;
@@ -1541,8 +1525,8 @@ type PlatformConfigArgs = {
1541
1525
  feeRates: FeeRatesArgs;
1542
1526
  marketResolutionDeadlineSeconds: number | bigint;
1543
1527
  minTimeToStakeSeconds: number | bigint;
1544
- minRevealPeriodSeconds: number | bigint;
1545
- maxRevealPeriodSeconds: number | bigint;
1528
+ revealAuthority: Address;
1529
+ revealPeriodSeconds: number | bigint;
1546
1530
  };
1547
1531
  declare function getPlatformConfigEncoder(): Encoder<PlatformConfigArgs>;
1548
1532
  declare function getPlatformConfigDecoder(): Decoder<PlatformConfig>;
@@ -1581,6 +1565,7 @@ type StakeAccount = {
1581
1565
  revealedOption: Option<bigint>;
1582
1566
  score: Option<bigint>;
1583
1567
  unstaked: boolean;
1568
+ rewardsClaimed: boolean;
1584
1569
  id: number;
1585
1570
  pendingStakeComputation: Option<Address>;
1586
1571
  pendingReveal: boolean;
@@ -1601,6 +1586,7 @@ type StakeAccountArgs = {
1601
1586
  revealedOption: OptionOrNullable<number | bigint>;
1602
1587
  score: OptionOrNullable<number | bigint>;
1603
1588
  unstaked: boolean;
1589
+ rewardsClaimed: boolean;
1604
1590
  id: number;
1605
1591
  pendingStakeComputation: OptionOrNullable<Address>;
1606
1592
  pendingReveal: boolean;
@@ -1675,27 +1661,25 @@ declare const OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE = 6023;
1675
1661
  declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM = 6024;
1676
1662
  /** StakeNotStuck: Stake account is not in a stuck or failed state */
1677
1663
  declare const OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK = 6025;
1678
- /** MarketPaused: Market staking is currently paused */
1679
- declare const OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED = 6026;
1680
- /** MarketNotPaused: Market is not paused */
1681
- declare const OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED = 6027;
1682
1664
  /** StakeBelowMinimum: Stake amount is below the market minimum */
1683
- declare const OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM = 6028;
1665
+ declare const OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM = 6026;
1684
1666
  /** SelectOptionsDeadlinePassed: Deadline for selecting winning options has passed */
1685
- declare const OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED = 6029;
1667
+ declare const OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED = 6027;
1686
1668
  /** InvalidFeeRates: Invalid fee rates */
1687
- declare const OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES = 6030;
1669
+ declare const OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES = 6028;
1688
1670
  /** OptionStillNeeded: Option still needed */
1689
- declare const OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED = 6031;
1671
+ declare const OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED = 6029;
1690
1672
  /** CreatorMismatch: Creator mismatch */
1691
- declare const OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH = 6032;
1673
+ declare const OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH = 6030;
1692
1674
  /** RevealPeriodNotOver: Reveal period not over */
1693
- declare const OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER = 6033;
1675
+ declare const OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER = 6031;
1676
+ /** NoFinalizedWinningOption: No winning option has a finalized stake */
1677
+ declare const OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION = 6032;
1694
1678
  /** NoRewardToClaim: No reward to claim */
1695
- declare const OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6034;
1679
+ declare const OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6033;
1696
1680
  /** RewardAlreadyClaimed: Reward already claimed */
1697
- declare const OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED = 6035;
1698
- type OpportunityMarketError = typeof OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION | typeof OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED | typeof OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH | typeof OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING | typeof OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE | typeof OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES | typeof OPPORTUNITY_MARKET_ERROR__INVALID_MINT | typeof OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID | typeof OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS | typeof OPPORTUNITY_MARKET_ERROR__LOCKED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED | typeof OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_STAKE | typeof OPPORTUNITY_MARKET_ERROR__NOT_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED | typeof OPPORTUNITY_MARKET_ERROR__OVERFLOW | typeof OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED | typeof OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER | typeof OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED | typeof OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED | typeof OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK | typeof OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED | typeof OPPORTUNITY_MARKET_ERROR__TIME_WINDOW_MISMATCH | typeof OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED;
1681
+ declare const OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED = 6034;
1682
+ type OpportunityMarketError = typeof OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION | typeof OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED | typeof OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH | typeof OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING | typeof OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE | typeof OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES | typeof OPPORTUNITY_MARKET_ERROR__INVALID_MINT | typeof OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID | typeof OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS | typeof OPPORTUNITY_MARKET_ERROR__LOCKED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED | typeof OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION | typeof OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_STAKE | typeof OPPORTUNITY_MARKET_ERROR__NOT_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED | typeof OPPORTUNITY_MARKET_ERROR__OVERFLOW | typeof OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED | typeof OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER | typeof OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED | typeof OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED | typeof OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK | typeof OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED | typeof OPPORTUNITY_MARKET_ERROR__TIME_WINDOW_MISMATCH | typeof OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED;
1699
1683
  declare function getOpportunityMarketErrorMessage(code: OpportunityMarketError): string;
1700
1684
  declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityMarketError>(error: unknown, transactionMessage: {
1701
1685
  instructions: Record<number, {
@@ -1715,7 +1699,7 @@ declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityM
1715
1699
  * @see https://github.com/codama-idl/codama
1716
1700
  */
1717
1701
 
1718
- declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"B3NCHsGBkdZrPYPJY2rjg4UwmyRotMmFWhxa5hMHwLeg">;
1702
+ declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"bncqApu6NkUibDwnbfXR5oRPCLiYjwHgVuCdHRTD6rp">;
1719
1703
  declare enum OpportunityMarketAccount {
1720
1704
  AllowedMint = 0,
1721
1705
  ArciumSignerAccount = 1,
@@ -1733,19 +1717,19 @@ declare enum OpportunityMarketInstruction {
1733
1717
  AddReward = 1,
1734
1718
  ClaimCreatorFees = 2,
1735
1719
  ClaimFees = 3,
1736
- CloseOptionAccount = 4,
1737
- CloseStakeAccount = 5,
1738
- CloseStuckStakeAccount = 6,
1739
- CreateMarket = 7,
1740
- EndRevealPeriod = 8,
1741
- FinalizeRevealStake = 9,
1742
- InitAllowedMint = 10,
1743
- InitPlatformConfig = 11,
1744
- InitStakeAccount = 12,
1745
- OpenMarket = 13,
1746
- PauseStaking = 14,
1747
- ResolveMarket = 15,
1748
- ResumeStaking = 16,
1720
+ ClaimRewards = 4,
1721
+ CloseOptionAccount = 5,
1722
+ CloseStakeAccount = 6,
1723
+ CloseStuckStakeAccount = 7,
1724
+ CloseUnrevealedStakeAccount = 8,
1725
+ CreateMarket = 9,
1726
+ EndRevealPeriod = 10,
1727
+ FinalizeRevealStake = 11,
1728
+ InitAllowedMint = 12,
1729
+ InitPlatformConfig = 13,
1730
+ InitStakeAccount = 14,
1731
+ OpenMarket = 15,
1732
+ ResolveMarket = 16,
1749
1733
  RevealStake = 17,
1750
1734
  RevealStakeCallback = 18,
1751
1735
  RevealStakeCompDef = 19,
@@ -1762,7 +1746,7 @@ declare enum OpportunityMarketInstruction {
1762
1746
  declare function identifyOpportunityMarketInstruction(instruction: {
1763
1747
  data: ReadonlyUint8Array;
1764
1748
  } | ReadonlyUint8Array): OpportunityMarketInstruction;
1765
- type ParsedOpportunityMarketInstruction<TProgram extends string = 'B3NCHsGBkdZrPYPJY2rjg4UwmyRotMmFWhxa5hMHwLeg'> = ({
1749
+ type ParsedOpportunityMarketInstruction<TProgram extends string = 'bncqApu6NkUibDwnbfXR5oRPCLiYjwHgVuCdHRTD6rp'> = ({
1766
1750
  instructionType: OpportunityMarketInstruction.AddMarketOption;
1767
1751
  } & ParsedAddMarketOptionInstruction<TProgram>) | ({
1768
1752
  instructionType: OpportunityMarketInstruction.AddReward;
@@ -1771,12 +1755,16 @@ type ParsedOpportunityMarketInstruction<TProgram extends string = 'B3NCHsGBkdZrP
1771
1755
  } & ParsedClaimCreatorFeesInstruction<TProgram>) | ({
1772
1756
  instructionType: OpportunityMarketInstruction.ClaimFees;
1773
1757
  } & ParsedClaimFeesInstruction<TProgram>) | ({
1758
+ instructionType: OpportunityMarketInstruction.ClaimRewards;
1759
+ } & ParsedClaimRewardsInstruction<TProgram>) | ({
1774
1760
  instructionType: OpportunityMarketInstruction.CloseOptionAccount;
1775
1761
  } & ParsedCloseOptionAccountInstruction<TProgram>) | ({
1776
1762
  instructionType: OpportunityMarketInstruction.CloseStakeAccount;
1777
1763
  } & ParsedCloseStakeAccountInstruction<TProgram>) | ({
1778
1764
  instructionType: OpportunityMarketInstruction.CloseStuckStakeAccount;
1779
1765
  } & ParsedCloseStuckStakeAccountInstruction<TProgram>) | ({
1766
+ instructionType: OpportunityMarketInstruction.CloseUnrevealedStakeAccount;
1767
+ } & ParsedCloseUnrevealedStakeAccountInstruction<TProgram>) | ({
1780
1768
  instructionType: OpportunityMarketInstruction.CreateMarket;
1781
1769
  } & ParsedCreateMarketInstruction<TProgram>) | ({
1782
1770
  instructionType: OpportunityMarketInstruction.EndRevealPeriod;
@@ -1791,12 +1779,8 @@ type ParsedOpportunityMarketInstruction<TProgram extends string = 'B3NCHsGBkdZrP
1791
1779
  } & ParsedInitStakeAccountInstruction<TProgram>) | ({
1792
1780
  instructionType: OpportunityMarketInstruction.OpenMarket;
1793
1781
  } & ParsedOpenMarketInstruction<TProgram>) | ({
1794
- instructionType: OpportunityMarketInstruction.PauseStaking;
1795
- } & ParsedPauseStakingInstruction<TProgram>) | ({
1796
1782
  instructionType: OpportunityMarketInstruction.ResolveMarket;
1797
1783
  } & ParsedResolveMarketInstruction<TProgram>) | ({
1798
- instructionType: OpportunityMarketInstruction.ResumeStaking;
1799
- } & ParsedResumeStakingInstruction<TProgram>) | ({
1800
1784
  instructionType: OpportunityMarketInstruction.RevealStake;
1801
1785
  } & ParsedRevealStakeInstruction<TProgram>) | ({
1802
1786
  instructionType: OpportunityMarketInstruction.RevealStakeCallback;
@@ -1905,11 +1889,9 @@ type AddRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PR
1905
1889
  type AddRewardInstructionData = {
1906
1890
  discriminator: ReadonlyUint8Array;
1907
1891
  amount: bigint;
1908
- lock: boolean;
1909
1892
  };
1910
1893
  type AddRewardInstructionDataArgs = {
1911
1894
  amount: number | bigint;
1912
- lock: boolean;
1913
1895
  };
1914
1896
  declare function getAddRewardInstructionDataEncoder(): FixedSizeEncoder<AddRewardInstructionDataArgs>;
1915
1897
  declare function getAddRewardInstructionDataDecoder(): FixedSizeDecoder<AddRewardInstructionData>;
@@ -1925,7 +1907,6 @@ type AddRewardAsyncInput<TAccountSponsor extends string = string, TAccountMarket
1925
1907
  tokenProgram: Address<TAccountTokenProgram>;
1926
1908
  systemProgram?: Address<TAccountSystemProgram>;
1927
1909
  amount: AddRewardInstructionDataArgs['amount'];
1928
- lock: AddRewardInstructionDataArgs['lock'];
1929
1910
  };
1930
1911
  declare function getAddRewardInstructionAsync<TAccountSponsor extends string, TAccountMarket extends string, TAccountSponsorAccount extends string, TAccountTokenMint extends string, TAccountSponsorTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: AddRewardAsyncInput<TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountSponsorTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
1931
1912
  programAddress?: TProgramAddress;
@@ -1941,7 +1922,6 @@ type AddRewardInput<TAccountSponsor extends string = string, TAccountMarket exte
1941
1922
  tokenProgram: Address<TAccountTokenProgram>;
1942
1923
  systemProgram?: Address<TAccountSystemProgram>;
1943
1924
  amount: AddRewardInstructionDataArgs['amount'];
1944
- lock: AddRewardInstructionDataArgs['lock'];
1945
1925
  };
1946
1926
  declare function getAddRewardInstruction<TAccountSponsor extends string, TAccountMarket extends string, TAccountSponsorAccount extends string, TAccountTokenMint extends string, TAccountSponsorTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: AddRewardInput<TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountSponsorTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
1947
1927
  programAddress?: TProgramAddress;
@@ -2091,6 +2071,76 @@ type ParsedClaimFeesInstruction<TProgram extends string = typeof OPPORTUNITY_MAR
2091
2071
  };
2092
2072
  declare function parseClaimFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimFeesInstruction<TProgram, TAccountMetas>;
2093
2073
 
2074
+ /**
2075
+ * This code was AUTOGENERATED using the Codama library.
2076
+ * Please DO NOT EDIT THIS FILE, instead use visitors
2077
+ * to add features, then rerun Codama to update it.
2078
+ *
2079
+ * @see https://github.com/codama-idl/codama
2080
+ */
2081
+
2082
+ declare const CLAIM_REWARDS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2083
+ declare function getClaimRewardsDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2084
+ type ClaimRewardsInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountOption extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountOwnerTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2085
+ TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
2086
+ TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2087
+ TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
2088
+ TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
2089
+ TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
2090
+ TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
2091
+ TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
2092
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
2093
+ ...TRemainingAccounts
2094
+ ]>;
2095
+ type ClaimRewardsInstructionData = {
2096
+ discriminator: ReadonlyUint8Array;
2097
+ };
2098
+ type ClaimRewardsInstructionDataArgs = {};
2099
+ declare function getClaimRewardsInstructionDataEncoder(): FixedSizeEncoder<ClaimRewardsInstructionDataArgs>;
2100
+ declare function getClaimRewardsInstructionDataDecoder(): FixedSizeDecoder<ClaimRewardsInstructionData>;
2101
+ declare function getClaimRewardsInstructionDataCodec(): FixedSizeCodec<ClaimRewardsInstructionDataArgs, ClaimRewardsInstructionData>;
2102
+ type ClaimRewardsAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
2103
+ owner: TransactionSigner<TAccountOwner>;
2104
+ market: Address<TAccountMarket>;
2105
+ stakeAccount: Address<TAccountStakeAccount>;
2106
+ option: Address<TAccountOption>;
2107
+ tokenMint: Address<TAccountTokenMint>;
2108
+ marketTokenAta?: Address<TAccountMarketTokenAta>;
2109
+ ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2110
+ tokenProgram: Address<TAccountTokenProgram>;
2111
+ };
2112
+ declare function getClaimRewardsInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimRewardsAsyncInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>, config?: {
2113
+ programAddress?: TProgramAddress;
2114
+ }): Promise<ClaimRewardsInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>>;
2115
+ type ClaimRewardsInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
2116
+ owner: TransactionSigner<TAccountOwner>;
2117
+ market: Address<TAccountMarket>;
2118
+ stakeAccount: Address<TAccountStakeAccount>;
2119
+ option: Address<TAccountOption>;
2120
+ tokenMint: Address<TAccountTokenMint>;
2121
+ marketTokenAta: Address<TAccountMarketTokenAta>;
2122
+ ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2123
+ tokenProgram: Address<TAccountTokenProgram>;
2124
+ };
2125
+ declare function getClaimRewardsInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimRewardsInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>, config?: {
2126
+ programAddress?: TProgramAddress;
2127
+ }): ClaimRewardsInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>;
2128
+ type ParsedClaimRewardsInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2129
+ programAddress: Address<TProgram>;
2130
+ accounts: {
2131
+ owner: TAccountMetas[0];
2132
+ market: TAccountMetas[1];
2133
+ stakeAccount: TAccountMetas[2];
2134
+ option: TAccountMetas[3];
2135
+ tokenMint: TAccountMetas[4];
2136
+ marketTokenAta: TAccountMetas[5];
2137
+ ownerTokenAccount: TAccountMetas[6];
2138
+ tokenProgram: TAccountMetas[7];
2139
+ };
2140
+ data: ClaimRewardsInstructionData;
2141
+ };
2142
+ declare function parseClaimRewardsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimRewardsInstruction<TProgram, TAccountMetas>;
2143
+
2094
2144
  /**
2095
2145
  * This code was AUTOGENERATED using the Codama library.
2096
2146
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -2178,30 +2228,21 @@ type CloseStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_M
2178
2228
  ]>;
2179
2229
  type CloseStakeAccountInstructionData = {
2180
2230
  discriminator: ReadonlyUint8Array;
2181
- optionId: bigint;
2182
- stakeAccountId: number;
2183
- };
2184
- type CloseStakeAccountInstructionDataArgs = {
2185
- optionId: number | bigint;
2186
- stakeAccountId: number;
2187
2231
  };
2232
+ type CloseStakeAccountInstructionDataArgs = {};
2188
2233
  declare function getCloseStakeAccountInstructionDataEncoder(): FixedSizeEncoder<CloseStakeAccountInstructionDataArgs>;
2189
2234
  declare function getCloseStakeAccountInstructionDataDecoder(): FixedSizeDecoder<CloseStakeAccountInstructionData>;
2190
2235
  declare function getCloseStakeAccountInstructionDataCodec(): FixedSizeCodec<CloseStakeAccountInstructionDataArgs, CloseStakeAccountInstructionData>;
2191
2236
  type CloseStakeAccountAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
2192
2237
  owner: TransactionSigner<TAccountOwner>;
2193
2238
  market: Address<TAccountMarket>;
2194
- stakeAccount?: Address<TAccountStakeAccount>;
2195
- option?: Address<TAccountOption>;
2239
+ stakeAccount: Address<TAccountStakeAccount>;
2240
+ option: Address<TAccountOption>;
2196
2241
  tokenMint: Address<TAccountTokenMint>;
2197
- /** Market-owned ATA holding all program-held tokens for this market */
2198
2242
  marketTokenAta?: Address<TAccountMarketTokenAta>;
2199
- /** Owner's token account to receive rewards */
2200
2243
  ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2201
2244
  tokenProgram: Address<TAccountTokenProgram>;
2202
2245
  systemProgram?: Address<TAccountSystemProgram>;
2203
- optionId: CloseStakeAccountInstructionDataArgs['optionId'];
2204
- stakeAccountId: CloseStakeAccountInstructionDataArgs['stakeAccountId'];
2205
2246
  };
2206
2247
  declare function getCloseStakeAccountInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStakeAccountAsyncInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2207
2248
  programAddress?: TProgramAddress;
@@ -2212,14 +2253,10 @@ type CloseStakeAccountInput<TAccountOwner extends string = string, TAccountMarke
2212
2253
  stakeAccount: Address<TAccountStakeAccount>;
2213
2254
  option: Address<TAccountOption>;
2214
2255
  tokenMint: Address<TAccountTokenMint>;
2215
- /** Market-owned ATA holding all program-held tokens for this market */
2216
2256
  marketTokenAta: Address<TAccountMarketTokenAta>;
2217
- /** Owner's token account to receive rewards */
2218
2257
  ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2219
2258
  tokenProgram: Address<TAccountTokenProgram>;
2220
2259
  systemProgram?: Address<TAccountSystemProgram>;
2221
- optionId: CloseStakeAccountInstructionDataArgs['optionId'];
2222
- stakeAccountId: CloseStakeAccountInstructionDataArgs['stakeAccountId'];
2223
2260
  };
2224
2261
  declare function getCloseStakeAccountInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStakeAccountInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2225
2262
  programAddress?: TProgramAddress;
@@ -2232,9 +2269,7 @@ type ParsedCloseStakeAccountInstruction<TProgram extends string = typeof OPPORTU
2232
2269
  stakeAccount: TAccountMetas[2];
2233
2270
  option: TAccountMetas[3];
2234
2271
  tokenMint: TAccountMetas[4];
2235
- /** Market-owned ATA holding all program-held tokens for this market */
2236
2272
  marketTokenAta: TAccountMetas[5];
2237
- /** Owner's token account to receive rewards */
2238
2273
  ownerTokenAccount: TAccountMetas[6];
2239
2274
  tokenProgram: TAccountMetas[7];
2240
2275
  systemProgram: TAccountMetas[8];
@@ -2321,6 +2356,76 @@ type ParsedCloseStuckStakeAccountInstruction<TProgram extends string = typeof OP
2321
2356
  };
2322
2357
  declare function parseCloseStuckStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseStuckStakeAccountInstruction<TProgram, TAccountMetas>;
2323
2358
 
2359
+ /**
2360
+ * This code was AUTOGENERATED using the Codama library.
2361
+ * Please DO NOT EDIT THIS FILE, instead use visitors
2362
+ * to add features, then rerun Codama to update it.
2363
+ *
2364
+ * @see https://github.com/codama-idl/codama
2365
+ */
2366
+
2367
+ declare const CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2368
+ declare function getCloseUnrevealedStakeAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2369
+ type CloseUnrevealedStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountOwnerTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2370
+ TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
2371
+ TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2372
+ TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
2373
+ TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
2374
+ TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
2375
+ TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
2376
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
2377
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
2378
+ ...TRemainingAccounts
2379
+ ]>;
2380
+ type CloseUnrevealedStakeAccountInstructionData = {
2381
+ discriminator: ReadonlyUint8Array;
2382
+ };
2383
+ type CloseUnrevealedStakeAccountInstructionDataArgs = {};
2384
+ declare function getCloseUnrevealedStakeAccountInstructionDataEncoder(): FixedSizeEncoder<CloseUnrevealedStakeAccountInstructionDataArgs>;
2385
+ declare function getCloseUnrevealedStakeAccountInstructionDataDecoder(): FixedSizeDecoder<CloseUnrevealedStakeAccountInstructionData>;
2386
+ declare function getCloseUnrevealedStakeAccountInstructionDataCodec(): FixedSizeCodec<CloseUnrevealedStakeAccountInstructionDataArgs, CloseUnrevealedStakeAccountInstructionData>;
2387
+ type CloseUnrevealedStakeAccountAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
2388
+ owner: TransactionSigner<TAccountOwner>;
2389
+ market: Address<TAccountMarket>;
2390
+ stakeAccount: Address<TAccountStakeAccount>;
2391
+ tokenMint: Address<TAccountTokenMint>;
2392
+ marketTokenAta?: Address<TAccountMarketTokenAta>;
2393
+ ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2394
+ tokenProgram: Address<TAccountTokenProgram>;
2395
+ systemProgram?: Address<TAccountSystemProgram>;
2396
+ };
2397
+ declare function getCloseUnrevealedStakeAccountInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseUnrevealedStakeAccountAsyncInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2398
+ programAddress?: TProgramAddress;
2399
+ }): Promise<CloseUnrevealedStakeAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>>;
2400
+ type CloseUnrevealedStakeAccountInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
2401
+ owner: TransactionSigner<TAccountOwner>;
2402
+ market: Address<TAccountMarket>;
2403
+ stakeAccount: Address<TAccountStakeAccount>;
2404
+ tokenMint: Address<TAccountTokenMint>;
2405
+ marketTokenAta: Address<TAccountMarketTokenAta>;
2406
+ ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2407
+ tokenProgram: Address<TAccountTokenProgram>;
2408
+ systemProgram?: Address<TAccountSystemProgram>;
2409
+ };
2410
+ declare function getCloseUnrevealedStakeAccountInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseUnrevealedStakeAccountInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2411
+ programAddress?: TProgramAddress;
2412
+ }): CloseUnrevealedStakeAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>;
2413
+ type ParsedCloseUnrevealedStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2414
+ programAddress: Address<TProgram>;
2415
+ accounts: {
2416
+ owner: TAccountMetas[0];
2417
+ market: TAccountMetas[1];
2418
+ stakeAccount: TAccountMetas[2];
2419
+ tokenMint: TAccountMetas[3];
2420
+ marketTokenAta: TAccountMetas[4];
2421
+ ownerTokenAccount: TAccountMetas[5];
2422
+ tokenProgram: TAccountMetas[6];
2423
+ systemProgram: TAccountMetas[7];
2424
+ };
2425
+ data: CloseUnrevealedStakeAccountInstructionData;
2426
+ };
2427
+ declare function parseCloseUnrevealedStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseUnrevealedStakeAccountInstruction<TProgram, TAccountMetas>;
2428
+
2324
2429
  /**
2325
2430
  * This code was AUTOGENERATED using the Codama library.
2326
2431
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -2347,9 +2452,7 @@ type CreateMarketInstructionData = {
2347
2452
  discriminator: ReadonlyUint8Array;
2348
2453
  marketIndex: bigint;
2349
2454
  marketAuthority: Address;
2350
- allowUnstakingEarly: boolean;
2351
2455
  authorizedReaderPubkey: Array<number>;
2352
- revealPeriodAuthority: Address;
2353
2456
  earlinessCutoffSeconds: bigint;
2354
2457
  earlinessMultiplier: number;
2355
2458
  minStakeAmount: bigint;
@@ -2358,9 +2461,7 @@ type CreateMarketInstructionData = {
2358
2461
  type CreateMarketInstructionDataArgs = {
2359
2462
  marketIndex: number | bigint;
2360
2463
  marketAuthority: Address;
2361
- allowUnstakingEarly: boolean;
2362
2464
  authorizedReaderPubkey: Array<number>;
2363
- revealPeriodAuthority: Address;
2364
2465
  earlinessCutoffSeconds: number | bigint;
2365
2466
  earlinessMultiplier: number;
2366
2467
  minStakeAmount: number | bigint;
@@ -2382,9 +2483,7 @@ type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountPla
2382
2483
  systemProgram?: Address<TAccountSystemProgram>;
2383
2484
  marketIndex: CreateMarketInstructionDataArgs['marketIndex'];
2384
2485
  marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
2385
- allowUnstakingEarly: CreateMarketInstructionDataArgs['allowUnstakingEarly'];
2386
2486
  authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
2387
- revealPeriodAuthority: CreateMarketInstructionDataArgs['revealPeriodAuthority'];
2388
2487
  earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
2389
2488
  earlinessMultiplier: CreateMarketInstructionDataArgs['earlinessMultiplier'];
2390
2489
  minStakeAmount: CreateMarketInstructionDataArgs['minStakeAmount'];
@@ -2406,9 +2505,7 @@ type CreateMarketInput<TAccountCreator extends string = string, TAccountPlatform
2406
2505
  systemProgram?: Address<TAccountSystemProgram>;
2407
2506
  marketIndex: CreateMarketInstructionDataArgs['marketIndex'];
2408
2507
  marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
2409
- allowUnstakingEarly: CreateMarketInstructionDataArgs['allowUnstakingEarly'];
2410
2508
  authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
2411
- revealPeriodAuthority: CreateMarketInstructionDataArgs['revealPeriodAuthority'];
2412
2509
  earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
2413
2510
  earlinessMultiplier: CreateMarketInstructionDataArgs['earlinessMultiplier'];
2414
2511
  minStakeAmount: CreateMarketInstructionDataArgs['minStakeAmount'];
@@ -2445,9 +2542,10 @@ declare function parseCreateMarketInstruction<TProgram extends string, TAccountM
2445
2542
 
2446
2543
  declare const END_REVEAL_PERIOD_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2447
2544
  declare function getEndRevealPeriodDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2448
- type EndRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2545
+ type EndRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountPlatformConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2449
2546
  TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
2450
2547
  TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2548
+ TAccountPlatformConfig extends string ? ReadonlyAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
2451
2549
  ...TRemainingAccounts
2452
2550
  ]>;
2453
2551
  type EndRevealPeriodInstructionData = {
@@ -2457,18 +2555,20 @@ type EndRevealPeriodInstructionDataArgs = {};
2457
2555
  declare function getEndRevealPeriodInstructionDataEncoder(): FixedSizeEncoder<EndRevealPeriodInstructionDataArgs>;
2458
2556
  declare function getEndRevealPeriodInstructionDataDecoder(): FixedSizeDecoder<EndRevealPeriodInstructionData>;
2459
2557
  declare function getEndRevealPeriodInstructionDataCodec(): FixedSizeCodec<EndRevealPeriodInstructionDataArgs, EndRevealPeriodInstructionData>;
2460
- type EndRevealPeriodInput<TAccountSigner extends string = string, TAccountMarket extends string = string> = {
2558
+ type EndRevealPeriodInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountPlatformConfig extends string = string> = {
2461
2559
  signer: TransactionSigner<TAccountSigner>;
2462
2560
  market: Address<TAccountMarket>;
2561
+ platformConfig: Address<TAccountPlatformConfig>;
2463
2562
  };
2464
- declare function getEndRevealPeriodInstruction<TAccountSigner extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: EndRevealPeriodInput<TAccountSigner, TAccountMarket>, config?: {
2563
+ declare function getEndRevealPeriodInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountPlatformConfig extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: EndRevealPeriodInput<TAccountSigner, TAccountMarket, TAccountPlatformConfig>, config?: {
2465
2564
  programAddress?: TProgramAddress;
2466
- }): EndRevealPeriodInstruction<TProgramAddress, TAccountSigner, TAccountMarket>;
2565
+ }): EndRevealPeriodInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountPlatformConfig>;
2467
2566
  type ParsedEndRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2468
2567
  programAddress: Address<TProgram>;
2469
2568
  accounts: {
2470
2569
  signer: TAccountMetas[0];
2471
2570
  market: TAccountMetas[1];
2571
+ platformConfig: TAccountMetas[2];
2472
2572
  };
2473
2573
  data: EndRevealPeriodInstructionData;
2474
2574
  };
@@ -2626,9 +2726,9 @@ type InitPlatformConfigInstructionData = {
2626
2726
  rewardPoolFeeBp: number;
2627
2727
  creatorFeeBp: number;
2628
2728
  feeClaimAuthority: Address;
2729
+ revealAuthority: Address;
2629
2730
  minTimeToStakeSeconds: bigint;
2630
- minRevealPeriodSeconds: bigint;
2631
- maxRevealPeriodSeconds: bigint;
2731
+ revealPeriodSeconds: bigint;
2632
2732
  marketResolutionDeadlineSeconds: bigint;
2633
2733
  };
2634
2734
  type InitPlatformConfigInstructionDataArgs = {
@@ -2637,9 +2737,9 @@ type InitPlatformConfigInstructionDataArgs = {
2637
2737
  rewardPoolFeeBp: number;
2638
2738
  creatorFeeBp: number;
2639
2739
  feeClaimAuthority: Address;
2740
+ revealAuthority: Address;
2640
2741
  minTimeToStakeSeconds: number | bigint;
2641
- minRevealPeriodSeconds: number | bigint;
2642
- maxRevealPeriodSeconds: number | bigint;
2742
+ revealPeriodSeconds: number | bigint;
2643
2743
  marketResolutionDeadlineSeconds: number | bigint;
2644
2744
  };
2645
2745
  declare function getInitPlatformConfigInstructionDataEncoder(): Encoder<InitPlatformConfigInstructionDataArgs>;
@@ -2654,9 +2754,9 @@ type InitPlatformConfigAsyncInput<TAccountPayer extends string = string, TAccoun
2654
2754
  rewardPoolFeeBp: InitPlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
2655
2755
  creatorFeeBp: InitPlatformConfigInstructionDataArgs['creatorFeeBp'];
2656
2756
  feeClaimAuthority: InitPlatformConfigInstructionDataArgs['feeClaimAuthority'];
2757
+ revealAuthority: InitPlatformConfigInstructionDataArgs['revealAuthority'];
2657
2758
  minTimeToStakeSeconds: InitPlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
2658
- minRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['minRevealPeriodSeconds'];
2659
- maxRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['maxRevealPeriodSeconds'];
2759
+ revealPeriodSeconds: InitPlatformConfigInstructionDataArgs['revealPeriodSeconds'];
2660
2760
  marketResolutionDeadlineSeconds: InitPlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
2661
2761
  };
2662
2762
  declare function getInitPlatformConfigInstructionAsync<TAccountPayer extends string, TAccountPlatformConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitPlatformConfigAsyncInput<TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>, config?: {
@@ -2671,9 +2771,9 @@ type InitPlatformConfigInput<TAccountPayer extends string = string, TAccountPlat
2671
2771
  rewardPoolFeeBp: InitPlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
2672
2772
  creatorFeeBp: InitPlatformConfigInstructionDataArgs['creatorFeeBp'];
2673
2773
  feeClaimAuthority: InitPlatformConfigInstructionDataArgs['feeClaimAuthority'];
2774
+ revealAuthority: InitPlatformConfigInstructionDataArgs['revealAuthority'];
2674
2775
  minTimeToStakeSeconds: InitPlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
2675
- minRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['minRevealPeriodSeconds'];
2676
- maxRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['maxRevealPeriodSeconds'];
2776
+ revealPeriodSeconds: InitPlatformConfigInstructionDataArgs['revealPeriodSeconds'];
2677
2777
  marketResolutionDeadlineSeconds: InitPlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
2678
2778
  };
2679
2779
  declare function getInitPlatformConfigInstruction<TAccountPayer extends string, TAccountPlatformConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitPlatformConfigInput<TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>, config?: {
@@ -2802,45 +2902,6 @@ type ParsedOpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MA
2802
2902
  };
2803
2903
  declare function parseOpenMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedOpenMarketInstruction<TProgram, TAccountMetas>;
2804
2904
 
2805
- /**
2806
- * This code was AUTOGENERATED using the Codama library.
2807
- * Please DO NOT EDIT THIS FILE, instead use visitors
2808
- * to add features, then rerun Codama to update it.
2809
- *
2810
- * @see https://github.com/codama-idl/codama
2811
- */
2812
-
2813
- declare const PAUSE_STAKING_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2814
- declare function getPauseStakingDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2815
- type PauseStakingInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2816
- TAccountMarketAuthority extends string ? ReadonlySignerAccount<TAccountMarketAuthority> & AccountSignerMeta<TAccountMarketAuthority> : TAccountMarketAuthority,
2817
- TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2818
- ...TRemainingAccounts
2819
- ]>;
2820
- type PauseStakingInstructionData = {
2821
- discriminator: ReadonlyUint8Array;
2822
- };
2823
- type PauseStakingInstructionDataArgs = {};
2824
- declare function getPauseStakingInstructionDataEncoder(): FixedSizeEncoder<PauseStakingInstructionDataArgs>;
2825
- declare function getPauseStakingInstructionDataDecoder(): FixedSizeDecoder<PauseStakingInstructionData>;
2826
- declare function getPauseStakingInstructionDataCodec(): FixedSizeCodec<PauseStakingInstructionDataArgs, PauseStakingInstructionData>;
2827
- type PauseStakingInput<TAccountMarketAuthority extends string = string, TAccountMarket extends string = string> = {
2828
- marketAuthority: TransactionSigner<TAccountMarketAuthority>;
2829
- market: Address<TAccountMarket>;
2830
- };
2831
- declare function getPauseStakingInstruction<TAccountMarketAuthority extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: PauseStakingInput<TAccountMarketAuthority, TAccountMarket>, config?: {
2832
- programAddress?: TProgramAddress;
2833
- }): PauseStakingInstruction<TProgramAddress, TAccountMarketAuthority, TAccountMarket>;
2834
- type ParsedPauseStakingInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2835
- programAddress: Address<TProgram>;
2836
- accounts: {
2837
- marketAuthority: TAccountMetas[0];
2838
- market: TAccountMetas[1];
2839
- };
2840
- data: PauseStakingInstructionData;
2841
- };
2842
- declare function parsePauseStakingInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedPauseStakingInstruction<TProgram, TAccountMetas>;
2843
-
2844
2905
  /**
2845
2906
  * This code was AUTOGENERATED using the Codama library.
2846
2907
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -2880,45 +2941,6 @@ type ParsedResolveMarketInstruction<TProgram extends string = typeof OPPORTUNITY
2880
2941
  };
2881
2942
  declare function parseResolveMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedResolveMarketInstruction<TProgram, TAccountMetas>;
2882
2943
 
2883
- /**
2884
- * This code was AUTOGENERATED using the Codama library.
2885
- * Please DO NOT EDIT THIS FILE, instead use visitors
2886
- * to add features, then rerun Codama to update it.
2887
- *
2888
- * @see https://github.com/codama-idl/codama
2889
- */
2890
-
2891
- declare const RESUME_STAKING_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2892
- declare function getResumeStakingDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2893
- type ResumeStakingInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2894
- TAccountMarketAuthority extends string ? ReadonlySignerAccount<TAccountMarketAuthority> & AccountSignerMeta<TAccountMarketAuthority> : TAccountMarketAuthority,
2895
- TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2896
- ...TRemainingAccounts
2897
- ]>;
2898
- type ResumeStakingInstructionData = {
2899
- discriminator: ReadonlyUint8Array;
2900
- };
2901
- type ResumeStakingInstructionDataArgs = {};
2902
- declare function getResumeStakingInstructionDataEncoder(): FixedSizeEncoder<ResumeStakingInstructionDataArgs>;
2903
- declare function getResumeStakingInstructionDataDecoder(): FixedSizeDecoder<ResumeStakingInstructionData>;
2904
- declare function getResumeStakingInstructionDataCodec(): FixedSizeCodec<ResumeStakingInstructionDataArgs, ResumeStakingInstructionData>;
2905
- type ResumeStakingInput<TAccountMarketAuthority extends string = string, TAccountMarket extends string = string> = {
2906
- marketAuthority: TransactionSigner<TAccountMarketAuthority>;
2907
- market: Address<TAccountMarket>;
2908
- };
2909
- declare function getResumeStakingInstruction<TAccountMarketAuthority extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ResumeStakingInput<TAccountMarketAuthority, TAccountMarket>, config?: {
2910
- programAddress?: TProgramAddress;
2911
- }): ResumeStakingInstruction<TProgramAddress, TAccountMarketAuthority, TAccountMarket>;
2912
- type ParsedResumeStakingInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2913
- programAddress: Address<TProgram>;
2914
- accounts: {
2915
- marketAuthority: TAccountMetas[0];
2916
- market: TAccountMetas[1];
2917
- };
2918
- data: ResumeStakingInstructionData;
2919
- };
2920
- declare function parseResumeStakingInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedResumeStakingInstruction<TProgram, TAccountMetas>;
2921
-
2922
2944
  /**
2923
2945
  * This code was AUTOGENERATED using the Codama library.
2924
2946
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -3680,18 +3702,18 @@ type UpdatePlatformConfigInstructionData = {
3680
3702
  platformFeeBp: number;
3681
3703
  rewardPoolFeeBp: number;
3682
3704
  creatorFeeBp: number;
3705
+ revealAuthority: Address;
3683
3706
  minTimeToStakeSeconds: bigint;
3684
- minRevealPeriodSeconds: bigint;
3685
- maxRevealPeriodSeconds: bigint;
3707
+ revealPeriodSeconds: bigint;
3686
3708
  marketResolutionDeadlineSeconds: bigint;
3687
3709
  };
3688
3710
  type UpdatePlatformConfigInstructionDataArgs = {
3689
3711
  platformFeeBp: number;
3690
3712
  rewardPoolFeeBp: number;
3691
3713
  creatorFeeBp: number;
3714
+ revealAuthority: Address;
3692
3715
  minTimeToStakeSeconds: number | bigint;
3693
- minRevealPeriodSeconds: number | bigint;
3694
- maxRevealPeriodSeconds: number | bigint;
3716
+ revealPeriodSeconds: number | bigint;
3695
3717
  marketResolutionDeadlineSeconds: number | bigint;
3696
3718
  };
3697
3719
  declare function getUpdatePlatformConfigInstructionDataEncoder(): FixedSizeEncoder<UpdatePlatformConfigInstructionDataArgs>;
@@ -3703,9 +3725,9 @@ type UpdatePlatformConfigInput<TAccountUpdateAuthority extends string = string,
3703
3725
  platformFeeBp: UpdatePlatformConfigInstructionDataArgs['platformFeeBp'];
3704
3726
  rewardPoolFeeBp: UpdatePlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
3705
3727
  creatorFeeBp: UpdatePlatformConfigInstructionDataArgs['creatorFeeBp'];
3728
+ revealAuthority: UpdatePlatformConfigInstructionDataArgs['revealAuthority'];
3706
3729
  minTimeToStakeSeconds: UpdatePlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
3707
- minRevealPeriodSeconds: UpdatePlatformConfigInstructionDataArgs['minRevealPeriodSeconds'];
3708
- maxRevealPeriodSeconds: UpdatePlatformConfigInstructionDataArgs['maxRevealPeriodSeconds'];
3730
+ revealPeriodSeconds: UpdatePlatformConfigInstructionDataArgs['revealPeriodSeconds'];
3709
3731
  marketResolutionDeadlineSeconds: UpdatePlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
3710
3732
  };
3711
3733
  declare function getUpdatePlatformConfigInstruction<TAccountUpdateAuthority extends string, TAccountPlatformConfig extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdatePlatformConfigInput<TAccountUpdateAuthority, TAccountPlatformConfig>, config?: {
@@ -3822,9 +3844,7 @@ interface CreateMarketParams extends BaseInstructionParams {
3822
3844
  tokenProgram: Address;
3823
3845
  marketIndex: bigint;
3824
3846
  marketAuthority: Address;
3825
- allowUnstakingEarly: boolean;
3826
3847
  authorizedReaderPubkey: ByteArray;
3827
- revealPeriodAuthority: Address;
3828
3848
  earlinessCutoffSeconds: bigint;
3829
3849
  earlinessMultiplier: number;
3830
3850
  minStakeAmount: bigint;
@@ -3850,6 +3870,16 @@ interface ArciumConfig {
3850
3870
  programId?: Address;
3851
3871
  }
3852
3872
 
3873
+ interface AwaitComputationOptions {
3874
+ commitment?: "confirmed" | "finalized";
3875
+ pollInterval?: number;
3876
+ transactionCountLimit?: number;
3877
+ }
3878
+ /**
3879
+ * Waits for a single Arcium computation to be finalized.
3880
+ */
3881
+ declare const awaitComputationFinalization: (rpc: Rpc<SolanaRpcApi>, computationAccount: Address, invocationSignature: Signature, options?: AwaitComputationOptions) => Promise<Signature>;
3882
+
3853
3883
  interface StakeParams extends BaseInstructionParams {
3854
3884
  signer: TransactionSigner;
3855
3885
  payer: TransactionSigner;
@@ -3871,6 +3901,7 @@ interface StakeParams extends BaseInstructionParams {
3871
3901
  stateNonce: bigint;
3872
3902
  }
3873
3903
  declare function stake(input: StakeParams, config: ArciumConfig): Promise<StakeInstruction<string>>;
3904
+ declare function awaitStakeFinalization(rpc: Rpc<SolanaRpcApi>, txSignature: Signature, config: ArciumConfig, options?: AwaitComputationOptions): Promise<Signature>;
3874
3905
 
3875
3906
  interface RevealStakeParams extends BaseInstructionParams {
3876
3907
  signer: TransactionSigner;
@@ -3879,6 +3910,7 @@ interface RevealStakeParams extends BaseInstructionParams {
3879
3910
  stakeAccountId: number;
3880
3911
  }
3881
3912
  declare function revealStake(input: RevealStakeParams, config: ArciumConfig): Promise<RevealStakeInstruction<string>>;
3913
+ declare function awaitRevealStakeFinalization(rpc: Rpc<SolanaRpcApi>, txSignature: Signature, config: ArciumConfig, options?: AwaitComputationOptions): Promise<Signature>;
3882
3914
 
3883
3915
  interface AddMarketOptionParams extends BaseInstructionParams {
3884
3916
  signer: TransactionSigner;
@@ -3895,18 +3927,6 @@ interface OpenMarketParams extends BaseInstructionParams {
3895
3927
  }
3896
3928
  declare function openMarket(input: OpenMarketParams): OpenMarketInstruction<string>;
3897
3929
 
3898
- interface PauseStakingParams extends BaseInstructionParams {
3899
- marketAuthority: TransactionSigner;
3900
- market: Address;
3901
- }
3902
- declare function pauseStaking(input: PauseStakingParams): PauseStakingInstruction<string>;
3903
-
3904
- interface ResumeStakingParams extends BaseInstructionParams {
3905
- marketAuthority: TransactionSigner;
3906
- market: Address;
3907
- }
3908
- declare function resumeStaking(input: ResumeStakingParams): ResumeStakingInstruction<string>;
3909
-
3910
3930
  interface SetWinningOptionParams extends BaseInstructionParams {
3911
3931
  marketAuthority: TransactionSigner;
3912
3932
  market: Address;
@@ -3923,6 +3943,7 @@ declare function resolveMarket(input: ResolveMarketParams): ResolveMarketInstruc
3923
3943
 
3924
3944
  interface EndRevealPeriodParams extends BaseInstructionParams {
3925
3945
  signer: TransactionSigner;
3946
+ platformConfig: Address;
3926
3947
  market: Address;
3927
3948
  }
3928
3949
  declare function endRevealPeriod(input: EndRevealPeriodParams): EndRevealPeriodInstruction<string>;
@@ -3934,7 +3955,6 @@ interface AddRewardParams extends BaseInstructionParams {
3934
3955
  sponsorTokenAccount: Address;
3935
3956
  tokenProgram: Address;
3936
3957
  amount: bigint;
3937
- lock: boolean;
3938
3958
  }
3939
3959
  declare function addReward(input: AddRewardParams): Promise<AddRewardInstruction<string>>;
3940
3960
 
@@ -3953,17 +3973,38 @@ interface InitAllowedMintParams extends BaseInstructionParams {
3953
3973
  }
3954
3974
  declare function initAllowedMint(input: InitAllowedMintParams): Promise<InitAllowedMintInstruction<string>>;
3955
3975
 
3976
+ interface ClaimRewardsParams extends BaseInstructionParams {
3977
+ owner: TransactionSigner;
3978
+ market: Address;
3979
+ stakeAccount: Address;
3980
+ option: Address;
3981
+ tokenMint: Address;
3982
+ ownerTokenAccount: Address;
3983
+ tokenProgram: Address;
3984
+ }
3985
+ declare function claimRewards(input: ClaimRewardsParams): Promise<ClaimRewardsInstruction<string>>;
3986
+
3956
3987
  interface CloseStakeAccountParams extends BaseInstructionParams {
3957
3988
  owner: TransactionSigner;
3958
3989
  market: Address;
3990
+ stakeAccount: Address;
3991
+ option: Address;
3959
3992
  tokenMint: Address;
3960
3993
  ownerTokenAccount: Address;
3961
3994
  tokenProgram: Address;
3962
- optionId: number | bigint;
3963
- stakeAccountId: number;
3964
3995
  }
3965
3996
  declare function closeStakeAccount(input: CloseStakeAccountParams): Promise<CloseStakeAccountInstruction<string>>;
3966
3997
 
3998
+ interface CloseUnrevealedStakeAccountParams extends BaseInstructionParams {
3999
+ owner: TransactionSigner;
4000
+ market: Address;
4001
+ stakeAccount: Address;
4002
+ tokenMint: Address;
4003
+ ownerTokenAccount: Address;
4004
+ tokenProgram: Address;
4005
+ }
4006
+ declare function closeUnrevealedStakeAccount(input: CloseUnrevealedStakeAccountParams): Promise<CloseUnrevealedStakeAccountInstruction<string>>;
4007
+
3967
4008
  interface CloseStuckStakeAccountParams extends BaseInstructionParams {
3968
4009
  signer: TransactionSigner;
3969
4010
  market: Address;
@@ -4009,9 +4050,9 @@ interface CreatePlatformConfigParams extends BaseInstructionParams {
4009
4050
  rewardPoolFeeBp: number;
4010
4051
  creatorFeeBp: number;
4011
4052
  feeClaimAuthority: Address;
4053
+ revealAuthority: Address;
4012
4054
  minTimeToStakeSeconds: bigint;
4013
- minRevealPeriodSeconds: bigint;
4014
- maxRevealPeriodSeconds: bigint;
4055
+ revealPeriodSeconds: bigint;
4015
4056
  marketResolutionDeadlineSeconds: bigint;
4016
4057
  }
4017
4058
  declare function createPlatformConfig(rpc: Parameters<typeof fetchMaybePlatformConfig>[0], params: CreatePlatformConfigParams): Promise<Instruction>;
@@ -4022,9 +4063,9 @@ interface UpdatePlatformConfigParams extends BaseInstructionParams {
4022
4063
  platformFeeBp: number;
4023
4064
  rewardPoolFeeBp: number;
4024
4065
  creatorFeeBp: number;
4066
+ revealAuthority: Address;
4025
4067
  minTimeToStakeSeconds: bigint;
4026
- minRevealPeriodSeconds: bigint;
4027
- maxRevealPeriodSeconds: bigint;
4068
+ revealPeriodSeconds: bigint;
4028
4069
  marketResolutionDeadlineSeconds: bigint;
4029
4070
  }
4030
4071
  declare function updatePlatformConfig(rpc: Parameters<typeof fetchMaybePlatformConfig>[0], params: UpdatePlatformConfigParams): Promise<Instruction>;
@@ -4089,29 +4130,6 @@ declare function getOpportunityMarketSponsorAddress(sponsor: Address, market: Ad
4089
4130
  declare const STAKE_ACCOUNT_SEED = "stake_account";
4090
4131
  declare function getStakeAccountAddress(owner: Address, market: Address, stakeAccountId: number, programId?: Address): Promise<ProgramDerivedAddress>;
4091
4132
 
4092
- interface AwaitComputationOptions {
4093
- commitment?: "processed" | "confirmed" | "finalized";
4094
- mxeProgramId?: Address;
4095
- transactionCountLimit?: number;
4096
- pollInterval?: number;
4097
- maxAttempts?: number;
4098
- }
4099
- interface ComputationResult {
4100
- signature: string;
4101
- error?: string;
4102
- }
4103
- /**
4104
- * Waits for multiple computations to be finalized on the Arcium network.
4105
- * Returns a map of computationOffset -> ComputationResult for all found computations.
4106
- * If a computation's callback transaction failed, the error field will be populated.
4107
- */
4108
- declare const awaitBatchComputationFinalization: (rpc: Rpc<SolanaRpcApi>, computationOffsets: bigint[], options?: AwaitComputationOptions) => Promise<Map<bigint, ComputationResult>>;
4109
- /**
4110
- * Waits for a single computation to be finalized on the Arcium network.
4111
- * Returns a ComputationResult with the signature and an optional error if the callback failed.
4112
- */
4113
- declare const awaitComputationFinalization: (rpc: Rpc<SolanaRpcApi>, computationOffset: bigint, options?: AwaitComputationOptions) => Promise<ComputationResult>;
4114
-
4115
4133
  interface X25519Keypair {
4116
4134
  publicKey: Uint8Array;
4117
4135
  secretKey: Uint8Array;
@@ -4137,4 +4155,4 @@ declare function deriveSharedSecret(userSecretKey: Uint8Array, mxePublicKey: Uin
4137
4155
  declare function createCipher(userSecretKey: Uint8Array, mxePublicKey: Uint8Array): RescueCipher;
4138
4156
  declare function nonceToBytes(nonce: bigint): Uint8Array;
4139
4157
 
4140
- export { ADD_MARKET_OPTION_DISCRIMINATOR, ADD_REWARD_DISCRIMINATOR, ALLOWED_MINT_DISCRIMINATOR, ALLOWED_MINT_SEED, ALL_COMP_DEF_CIRCUITS, ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR, type Activation, type ActivationArgs, type AddMarketOptionAsyncInput, type AddMarketOptionInput, type AddMarketOptionInstruction, type AddMarketOptionInstructionData, type AddMarketOptionInstructionDataArgs, type AddMarketOptionParams, type AddRewardAsyncInput, type AddRewardInput, type AddRewardInstruction, type AddRewardInstructionData, type AddRewardInstructionDataArgs, type AddRewardParams, type AllowedMint, type AllowedMintArgs, type AllowedMintInitializedEvent, type AllowedMintInitializedEventArgs, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CLAIM_CREATOR_FEES_DISCRIMINATOR, CLAIM_FEES_DISCRIMINATOR, CLOSE_OPTION_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CircuitSource, type CircuitSourceArgs, type ClaimCreatorFeesAsyncInput, type ClaimCreatorFeesInput, type ClaimCreatorFeesInstruction, type ClaimCreatorFeesInstructionData, type ClaimCreatorFeesInstructionDataArgs, type ClaimCreatorFeesParams, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClaimFeesParams, type ClockAccount, type ClockAccountArgs, type CloseOptionAccountAsyncInput, type CloseOptionAccountInput, type CloseOptionAccountInstruction, type CloseOptionAccountInstructionData, type CloseOptionAccountInstructionDataArgs, type CloseOptionAccountParams, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type CloseStuckStakeAccountAsyncInput, type CloseStuckStakeAccountInput, type CloseStuckStakeAccountInstruction, type CloseStuckStakeAccountInstructionData, type CloseStuckStakeAccountInstructionDataArgs, type CloseStuckStakeAccountParams, type Cluster, type ClusterArgs, type CollectedFees, type CollectedFeesArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationResult, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParams, type CreatePlatformConfigParams, type CreatorFeesClaimedEvent, type CreatorFeesClaimedEventArgs, END_REVEAL_PERIOD_DISCRIMINATOR, type EndRevealPeriodInput, type EndRevealPeriodInstruction, type EndRevealPeriodInstructionData, type EndRevealPeriodInstructionDataArgs, type EndRevealPeriodParams, type Epoch, type EpochArgs, FINALIZE_REVEAL_STAKE_DISCRIMINATOR, type FeeClaimAuthorityChangedEvent, type FeeClaimAuthorityChangedEventArgs, type FeePool, type FeePoolArgs, type FeeRates, type FeeRatesArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, type FinalizeRevealStakeAsyncInput, type FinalizeRevealStakeInput, type FinalizeRevealStakeInstruction, type FinalizeRevealStakeInstructionData, type FinalizeRevealStakeInstructionDataArgs, type FinalizeRevealStakeParams, INIT_ALLOWED_MINT_DISCRIMINATOR, INIT_PLATFORM_CONFIG_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, type InitAllowedMintAsyncInput, type InitAllowedMintInput, type InitAllowedMintInstruction, type InitAllowedMintInstructionData, type InitAllowedMintInstructionDataArgs, type InitAllowedMintParams, type InitCompDefConfig, type InitPlatformConfigAsyncInput, type InitPlatformConfigInput, type InitPlatformConfigInstruction, type InitPlatformConfigInstructionData, type InitPlatformConfigInstructionDataArgs, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, type MarketResolvedEvent, type MarketResolvedEventArgs, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION, OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH, OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING, OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE, OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES, OPPORTUNITY_MARKET_ERROR__INVALID_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS, OPPORTUNITY_MARKET_ERROR__LOCKED, OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED, OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED, OPPORTUNITY_MARKET_ERROR__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_STAKE, OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER, OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED, OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED, OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__TIME_WINDOW_MISMATCH, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, type OpportunityMarketSponsor, type OpportunityMarketSponsorArgs, type OptionClosedEvent, type OptionClosedEventArgs, Output, type OutputArgs, PAUSE_STAKING_DISCRIMINATOR, PLATFORM_CONFIG_DISCRIMINATOR, PLATFORM_CONFIG_SEED, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimCreatorFeesInstruction, type ParsedClaimFeesInstruction, type ParsedCloseOptionAccountInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedEndRevealPeriodInstruction, type ParsedFinalizeRevealStakeInstruction, type ParsedInitAllowedMintInstruction, type ParsedInitPlatformConfigInstruction, type ParsedInitStakeAccountInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedPauseStakingInstruction, type ParsedResolveMarketInstruction, type ParsedResumeStakingInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSetFeeClaimAuthorityInstruction, type ParsedSetUpdateAuthorityInstruction, type ParsedSetWinningOptionInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedUnstakeInstruction, type ParsedUpdatePlatformConfigInstruction, type ParsedWithdrawRewardInstruction, type PauseStakingInput, type PauseStakingInstruction, type PauseStakingInstructionData, type PauseStakingInstructionDataArgs, type PauseStakingParams, type PlatformConfig, type PlatformConfigArgs, RESOLVE_MARKET_DISCRIMINATOR, RESUME_STAKING_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ResolveMarketInput, type ResolveMarketInstruction, type ResolveMarketInstructionData, type ResolveMarketInstructionDataArgs, type ResolveMarketParams, type ResumeStakingInput, type ResumeStakingInstruction, type ResumeStakingInstructionData, type ResumeStakingInstructionDataArgs, type ResumeStakingParams, type RevealPeriodEndedEvent, type RevealPeriodEndedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeFinalizedEvent, type RevealStakeFinalizedEventArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR, SET_UPDATE_AUTHORITY_DISCRIMINATOR, SET_WINNING_OPTION_DISCRIMINATOR, SPONSOR_SEED, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SetFeeClaimAuthorityInput, type SetFeeClaimAuthorityInstruction, type SetFeeClaimAuthorityInstructionData, type SetFeeClaimAuthorityInstructionDataArgs, type SetFeeClaimAuthorityParams, type SetUpdateAuthorityInput, type SetUpdateAuthorityInstruction, type SetUpdateAuthorityInstructionData, type SetUpdateAuthorityInstructionDataArgs, type SetUpdateAuthorityParams, type SetWinningOptionAsyncInput, type SetWinningOptionInput, type SetWinningOptionInstruction, type SetWinningOptionInstructionData, type SetWinningOptionInstructionDataArgs, type SetWinningOptionParams, type StakeAccount, type StakeAccountArgs, type StakeAccountClosedEvent, type StakeAccountClosedEventArgs, type StakeAccountInitializedEvent, type StakeAccountInitializedEventArgs, type StakeAsyncInput, type StakeCallbackInput, type StakeCallbackInstruction, type StakeCallbackInstructionData, type StakeCallbackInstructionDataArgs, type StakeCompDefInput, type StakeCompDefInstruction, type StakeCompDefInstructionData, type StakeCompDefInstructionDataArgs, type StakeInput, type StakeInstruction, type StakeInstructionData, type StakeInstructionDataArgs, type StakeOutput, type StakeOutputArgs, type StakeOutputStruct0, type StakeOutputStruct0Args, type StakeParams, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, type StakingPausedEvent, type StakingPausedEventArgs, type StakingResumedEvent, type StakingResumedEventArgs, type StuckStakeClosedEvent, type StuckStakeClosedEventArgs, type Timestamp, type TimestampArgs, UNSTAKE_DISCRIMINATOR, UPDATE_PLATFORM_CONFIG_DISCRIMINATOR, type UnstakeAsyncInput, type UnstakeInput, type UnstakeInstruction, type UnstakeInstructionData, type UnstakeInstructionDataArgs, type UnstakeParams, type UnstakedEvent, type UnstakedEventArgs, type UpdateAuthorityChangedEvent, type UpdateAuthorityChangedEventArgs, type UpdatePlatformConfigInput, type UpdatePlatformConfigInstruction, type UpdatePlatformConfigInstructionData, type UpdatePlatformConfigInstructionDataArgs, type UpdatePlatformConfigParams, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOptionSetEvent, type WinningOptionSetEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, addReward, awaitBatchComputationFinalization, awaitComputationFinalization, circuitSource, claimCreatorFees, claimFees, closeOptionAccount, closeStakeAccount, closeStuckStakeAccount, createCipher, createMarket, createPlatformConfig, decodeAllowedMint, decodeArciumSignerAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodePlatformConfig, decodeStakeAccount, deriveSharedSecret, deriveX25519KeypairFromSignature, endRevealPeriod, fetchAllAllowedMint, fetchAllArciumSignerAccount, fetchAllMaybeAllowedMint, fetchAllMaybeArciumSignerAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybePlatformConfig, fetchAllMaybeStakeAccount, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllPlatformConfig, fetchAllStakeAccount, fetchAllowedMint, fetchArciumSignerAccount, fetchMaybeAllowedMint, fetchMaybeArciumSignerAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybePlatformConfig, fetchMaybeStakeAccount, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchPlatformConfig, fetchStakeAccount, finalizeRevealStake, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getAddRewardDiscriminatorBytes, getAddRewardInstruction, getAddRewardInstructionAsync, getAddRewardInstructionDataCodec, getAddRewardInstructionDataDecoder, getAddRewardInstructionDataEncoder, getAllowedMintAddress, getAllowedMintCodec, getAllowedMintDecoder, getAllowedMintDiscriminatorBytes, getAllowedMintEncoder, getAllowedMintInitializedEventCodec, getAllowedMintInitializedEventDecoder, getAllowedMintInitializedEventEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimCreatorFeesDiscriminatorBytes, getClaimCreatorFeesInstruction, getClaimCreatorFeesInstructionAsync, getClaimCreatorFeesInstructionDataCodec, getClaimCreatorFeesInstructionDataDecoder, getClaimCreatorFeesInstructionDataEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountEncoder, getCloseOptionAccountDiscriminatorBytes, getCloseOptionAccountInstruction, getCloseOptionAccountInstructionAsync, getCloseOptionAccountInstructionDataCodec, getCloseOptionAccountInstructionDataDecoder, getCloseOptionAccountInstructionDataEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterEncoder, getCollectedFeesCodec, getCollectedFeesDecoder, getCollectedFeesEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreatorFeesClaimedEventCodec, getCreatorFeesClaimedEventDecoder, getCreatorFeesClaimedEventEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeeClaimAuthorityChangedEventCodec, getFeeClaimAuthorityChangedEventDecoder, getFeeClaimAuthorityChangedEventEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolEncoder, getFeeRatesCodec, getFeeRatesDecoder, getFeeRatesEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getFinalizeRevealStakeDiscriminatorBytes, getFinalizeRevealStakeInstruction, getFinalizeRevealStakeInstructionAsync, getFinalizeRevealStakeInstructionDataCodec, getFinalizeRevealStakeInstructionDataDecoder, getFinalizeRevealStakeInstructionDataEncoder, getInitAllowedMintDiscriminatorBytes, getInitAllowedMintInstruction, getInitAllowedMintInstructionAsync, getInitAllowedMintInstructionDataCodec, getInitAllowedMintInstructionDataDecoder, getInitAllowedMintInstructionDataEncoder, getInitCompDefInstruction, getInitPlatformConfigDiscriminatorBytes, getInitPlatformConfigInstruction, getInitPlatformConfigInstructionAsync, getInitPlatformConfigInstructionDataCodec, getInitPlatformConfigInstructionDataDecoder, getInitPlatformConfigInstructionDataEncoder, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMarketResolvedEventCodec, getMarketResolvedEventDecoder, getMarketResolvedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOpportunityMarketSponsorAddress, getOpportunityMarketSponsorCodec, getOpportunityMarketSponsorDecoder, getOpportunityMarketSponsorDiscriminatorBytes, getOpportunityMarketSponsorEncoder, getOptionClosedEventCodec, getOptionClosedEventDecoder, getOptionClosedEventEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getPauseStakingDiscriminatorBytes, getPauseStakingInstruction, getPauseStakingInstructionDataCodec, getPauseStakingInstructionDataDecoder, getPauseStakingInstructionDataEncoder, getPlatformConfigAddress, getPlatformConfigCodec, getPlatformConfigDecoder, getPlatformConfigDiscriminatorBytes, getPlatformConfigEncoder, getResolveMarketDiscriminatorBytes, getResolveMarketInstruction, getResolveMarketInstructionDataCodec, getResolveMarketInstructionDataDecoder, getResolveMarketInstructionDataEncoder, getResumeStakingDiscriminatorBytes, getResumeStakingInstruction, getResumeStakingInstructionDataCodec, getResumeStakingInstructionDataDecoder, getResumeStakingInstructionDataEncoder, getRevealPeriodEndedEventCodec, getRevealPeriodEndedEventDecoder, getRevealPeriodEndedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeFinalizedEventCodec, getRevealStakeFinalizedEventDecoder, getRevealStakeFinalizedEventEncoder, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getSetFeeClaimAuthorityDiscriminatorBytes, getSetFeeClaimAuthorityInstruction, getSetFeeClaimAuthorityInstructionDataCodec, getSetFeeClaimAuthorityInstructionDataDecoder, getSetFeeClaimAuthorityInstructionDataEncoder, getSetUpdateAuthorityDiscriminatorBytes, getSetUpdateAuthorityInstruction, getSetUpdateAuthorityInstructionDataCodec, getSetUpdateAuthorityInstructionDataDecoder, getSetUpdateAuthorityInstructionDataEncoder, getSetWinningOptionDiscriminatorBytes, getSetWinningOptionInstruction, getSetWinningOptionInstructionAsync, getSetWinningOptionInstructionDataCodec, getSetWinningOptionInstructionDataDecoder, getSetWinningOptionInstructionDataEncoder, getStakeAccountAddress, getStakeAccountClosedEventCodec, getStakeAccountClosedEventDecoder, getStakeAccountClosedEventEncoder, getStakeAccountCodec, getStakeAccountDecoder, getStakeAccountDiscriminatorBytes, getStakeAccountEncoder, getStakeAccountInitializedEventCodec, getStakeAccountInitializedEventDecoder, getStakeAccountInitializedEventEncoder, getStakeCallbackDiscriminatorBytes, getStakeCallbackInstruction, getStakeCallbackInstructionDataCodec, getStakeCallbackInstructionDataDecoder, getStakeCallbackInstructionDataEncoder, getStakeCompDefDiscriminatorBytes, getStakeCompDefInstruction, getStakeCompDefInstructionDataCodec, getStakeCompDefInstructionDataDecoder, getStakeCompDefInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getStakeOutputCodec, getStakeOutputDecoder, getStakeOutputEncoder, getStakeOutputStruct0Codec, getStakeOutputStruct0Decoder, getStakeOutputStruct0Encoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStakingPausedEventCodec, getStakingPausedEventDecoder, getStakingPausedEventEncoder, getStakingResumedEventCodec, getStakingResumedEventDecoder, getStakingResumedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getUnstakeDiscriminatorBytes, getUnstakeInstruction, getUnstakeInstructionAsync, getUnstakeInstructionDataCodec, getUnstakeInstructionDataDecoder, getUnstakeInstructionDataEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateAuthorityChangedEventCodec, getUpdateAuthorityChangedEventDecoder, getUpdateAuthorityChangedEventEncoder, getUpdatePlatformConfigDiscriminatorBytes, getUpdatePlatformConfigInstruction, getUpdatePlatformConfigInstructionDataCodec, getUpdatePlatformConfigInstructionDataDecoder, getUpdatePlatformConfigInstructionDataEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionSetEventCodec, getWinningOptionSetEventDecoder, getWinningOptionSetEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, initAllowedMint, initStakeAccount, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimCreatorFeesInstruction, parseClaimFeesInstruction, parseCloseOptionAccountInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCreateMarketInstruction, parseEndRevealPeriodInstruction, parseFinalizeRevealStakeInstruction, parseInitAllowedMintInstruction, parseInitPlatformConfigInstruction, parseInitStakeAccountInstruction, parseOpenMarketInstruction, parsePauseStakingInstruction, parseResolveMarketInstruction, parseResumeStakingInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSetFeeClaimAuthorityInstruction, parseSetUpdateAuthorityInstruction, parseSetWinningOptionInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseUnstakeInstruction, parseUpdatePlatformConfigInstruction, parseWithdrawRewardInstruction, pauseStaking, randomComputationOffset, randomStateNonce, resolveMarket, resumeStaking, revealStake, setFeeClaimAuthority, setUpdateAuthority, setWinningOption, stake, toNumberArray, unstake, updatePlatformConfig, withdrawReward };
4158
+ export { ADD_MARKET_OPTION_DISCRIMINATOR, ADD_REWARD_DISCRIMINATOR, ALLOWED_MINT_DISCRIMINATOR, ALLOWED_MINT_SEED, ALL_COMP_DEF_CIRCUITS, ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR, type Activation, type ActivationArgs, type AddMarketOptionAsyncInput, type AddMarketOptionInput, type AddMarketOptionInstruction, type AddMarketOptionInstructionData, type AddMarketOptionInstructionDataArgs, type AddMarketOptionParams, type AddRewardAsyncInput, type AddRewardInput, type AddRewardInstruction, type AddRewardInstructionData, type AddRewardInstructionDataArgs, type AddRewardParams, type AllowedMint, type AllowedMintArgs, type AllowedMintInitializedEvent, type AllowedMintInitializedEventArgs, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CLAIM_CREATOR_FEES_DISCRIMINATOR, CLAIM_FEES_DISCRIMINATOR, CLAIM_REWARDS_DISCRIMINATOR, CLOSE_OPTION_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CircuitSource, type CircuitSourceArgs, type ClaimCreatorFeesAsyncInput, type ClaimCreatorFeesInput, type ClaimCreatorFeesInstruction, type ClaimCreatorFeesInstructionData, type ClaimCreatorFeesInstructionDataArgs, type ClaimCreatorFeesParams, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClaimFeesParams, type ClaimRewardsAsyncInput, type ClaimRewardsInput, type ClaimRewardsInstruction, type ClaimRewardsInstructionData, type ClaimRewardsInstructionDataArgs, type ClaimRewardsParams, type ClockAccount, type ClockAccountArgs, type CloseOptionAccountAsyncInput, type CloseOptionAccountInput, type CloseOptionAccountInstruction, type CloseOptionAccountInstructionData, type CloseOptionAccountInstructionDataArgs, type CloseOptionAccountParams, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type CloseStuckStakeAccountAsyncInput, type CloseStuckStakeAccountInput, type CloseStuckStakeAccountInstruction, type CloseStuckStakeAccountInstructionData, type CloseStuckStakeAccountInstructionDataArgs, type CloseStuckStakeAccountParams, type CloseUnrevealedStakeAccountAsyncInput, type CloseUnrevealedStakeAccountInput, type CloseUnrevealedStakeAccountInstruction, type CloseUnrevealedStakeAccountInstructionData, type CloseUnrevealedStakeAccountInstructionDataArgs, type CloseUnrevealedStakeAccountParams, type Cluster, type ClusterArgs, type CollectedFees, type CollectedFeesArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParams, type CreatePlatformConfigParams, type CreatorFeesClaimedEvent, type CreatorFeesClaimedEventArgs, END_REVEAL_PERIOD_DISCRIMINATOR, type EndRevealPeriodInput, type EndRevealPeriodInstruction, type EndRevealPeriodInstructionData, type EndRevealPeriodInstructionDataArgs, type EndRevealPeriodParams, type Epoch, type EpochArgs, FINALIZE_REVEAL_STAKE_DISCRIMINATOR, type FeeClaimAuthorityChangedEvent, type FeeClaimAuthorityChangedEventArgs, type FeePool, type FeePoolArgs, type FeeRates, type FeeRatesArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, type FinalizeRevealStakeAsyncInput, type FinalizeRevealStakeInput, type FinalizeRevealStakeInstruction, type FinalizeRevealStakeInstructionData, type FinalizeRevealStakeInstructionDataArgs, type FinalizeRevealStakeParams, INIT_ALLOWED_MINT_DISCRIMINATOR, INIT_PLATFORM_CONFIG_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, type InitAllowedMintAsyncInput, type InitAllowedMintInput, type InitAllowedMintInstruction, type InitAllowedMintInstructionData, type InitAllowedMintInstructionDataArgs, type InitAllowedMintParams, type InitCompDefConfig, type InitPlatformConfigAsyncInput, type InitPlatformConfigInput, type InitPlatformConfigInstruction, type InitPlatformConfigInstructionData, type InitPlatformConfigInstructionDataArgs, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, type MarketResolvedEvent, type MarketResolvedEventArgs, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION, OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH, OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING, OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE, OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES, OPPORTUNITY_MARKET_ERROR__INVALID_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS, OPPORTUNITY_MARKET_ERROR__LOCKED, OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED, OPPORTUNITY_MARKET_ERROR__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION, OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_STAKE, OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER, OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED, OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED, OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__TIME_WINDOW_MISMATCH, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, type OpportunityMarketSponsor, type OpportunityMarketSponsorArgs, type OptionClosedEvent, type OptionClosedEventArgs, Output, type OutputArgs, PLATFORM_CONFIG_DISCRIMINATOR, PLATFORM_CONFIG_SEED, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimCreatorFeesInstruction, type ParsedClaimFeesInstruction, type ParsedClaimRewardsInstruction, type ParsedCloseOptionAccountInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCloseUnrevealedStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedEndRevealPeriodInstruction, type ParsedFinalizeRevealStakeInstruction, type ParsedInitAllowedMintInstruction, type ParsedInitPlatformConfigInstruction, type ParsedInitStakeAccountInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedResolveMarketInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSetFeeClaimAuthorityInstruction, type ParsedSetUpdateAuthorityInstruction, type ParsedSetWinningOptionInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedUnstakeInstruction, type ParsedUpdatePlatformConfigInstruction, type ParsedWithdrawRewardInstruction, type PlatformConfig, type PlatformConfigArgs, RESOLVE_MARKET_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ResolveMarketInput, type ResolveMarketInstruction, type ResolveMarketInstructionData, type ResolveMarketInstructionDataArgs, type ResolveMarketParams, type RevealPeriodEndedEvent, type RevealPeriodEndedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeFinalizedEvent, type RevealStakeFinalizedEventArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, type RewardsClaimedEvent, type RewardsClaimedEventArgs, SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR, SET_UPDATE_AUTHORITY_DISCRIMINATOR, SET_WINNING_OPTION_DISCRIMINATOR, SPONSOR_SEED, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SetFeeClaimAuthorityInput, type SetFeeClaimAuthorityInstruction, type SetFeeClaimAuthorityInstructionData, type SetFeeClaimAuthorityInstructionDataArgs, type SetFeeClaimAuthorityParams, type SetUpdateAuthorityInput, type SetUpdateAuthorityInstruction, type SetUpdateAuthorityInstructionData, type SetUpdateAuthorityInstructionDataArgs, type SetUpdateAuthorityParams, type SetWinningOptionAsyncInput, type SetWinningOptionInput, type SetWinningOptionInstruction, type SetWinningOptionInstructionData, type SetWinningOptionInstructionDataArgs, type SetWinningOptionParams, type StakeAccount, type StakeAccountArgs, type StakeAccountClosedEvent, type StakeAccountClosedEventArgs, type StakeAccountInitializedEvent, type StakeAccountInitializedEventArgs, type StakeAsyncInput, type StakeCallbackInput, type StakeCallbackInstruction, type StakeCallbackInstructionData, type StakeCallbackInstructionDataArgs, type StakeCompDefInput, type StakeCompDefInstruction, type StakeCompDefInstructionData, type StakeCompDefInstructionDataArgs, type StakeInput, type StakeInstruction, type StakeInstructionData, type StakeInstructionDataArgs, type StakeOutput, type StakeOutputArgs, type StakeOutputStruct0, type StakeOutputStruct0Args, type StakeParams, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, type StuckStakeClosedEvent, type StuckStakeClosedEventArgs, type Timestamp, type TimestampArgs, UNSTAKE_DISCRIMINATOR, UPDATE_PLATFORM_CONFIG_DISCRIMINATOR, type UnstakeAsyncInput, type UnstakeInput, type UnstakeInstruction, type UnstakeInstructionData, type UnstakeInstructionDataArgs, type UnstakeParams, type UnstakedEvent, type UnstakedEventArgs, type UpdateAuthorityChangedEvent, type UpdateAuthorityChangedEventArgs, type UpdatePlatformConfigInput, type UpdatePlatformConfigInstruction, type UpdatePlatformConfigInstructionData, type UpdatePlatformConfigInstructionDataArgs, type UpdatePlatformConfigParams, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOptionSetEvent, type WinningOptionSetEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, addReward, awaitComputationFinalization, awaitRevealStakeFinalization, awaitStakeFinalization, circuitSource, claimCreatorFees, claimFees, claimRewards, closeOptionAccount, closeStakeAccount, closeStuckStakeAccount, closeUnrevealedStakeAccount, createCipher, createMarket, createPlatformConfig, decodeAllowedMint, decodeArciumSignerAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodePlatformConfig, decodeStakeAccount, deriveSharedSecret, deriveX25519KeypairFromSignature, endRevealPeriod, fetchAllAllowedMint, fetchAllArciumSignerAccount, fetchAllMaybeAllowedMint, fetchAllMaybeArciumSignerAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybePlatformConfig, fetchAllMaybeStakeAccount, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllPlatformConfig, fetchAllStakeAccount, fetchAllowedMint, fetchArciumSignerAccount, fetchMaybeAllowedMint, fetchMaybeArciumSignerAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybePlatformConfig, fetchMaybeStakeAccount, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchPlatformConfig, fetchStakeAccount, finalizeRevealStake, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getAddRewardDiscriminatorBytes, getAddRewardInstruction, getAddRewardInstructionAsync, getAddRewardInstructionDataCodec, getAddRewardInstructionDataDecoder, getAddRewardInstructionDataEncoder, getAllowedMintAddress, getAllowedMintCodec, getAllowedMintDecoder, getAllowedMintDiscriminatorBytes, getAllowedMintEncoder, getAllowedMintInitializedEventCodec, getAllowedMintInitializedEventDecoder, getAllowedMintInitializedEventEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimCreatorFeesDiscriminatorBytes, getClaimCreatorFeesInstruction, getClaimCreatorFeesInstructionAsync, getClaimCreatorFeesInstructionDataCodec, getClaimCreatorFeesInstructionDataDecoder, getClaimCreatorFeesInstructionDataEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClaimRewardsDiscriminatorBytes, getClaimRewardsInstruction, getClaimRewardsInstructionAsync, getClaimRewardsInstructionDataCodec, getClaimRewardsInstructionDataDecoder, getClaimRewardsInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountEncoder, getCloseOptionAccountDiscriminatorBytes, getCloseOptionAccountInstruction, getCloseOptionAccountInstructionAsync, getCloseOptionAccountInstructionDataCodec, getCloseOptionAccountInstructionDataDecoder, getCloseOptionAccountInstructionDataEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getCloseUnrevealedStakeAccountDiscriminatorBytes, getCloseUnrevealedStakeAccountInstruction, getCloseUnrevealedStakeAccountInstructionAsync, getCloseUnrevealedStakeAccountInstructionDataCodec, getCloseUnrevealedStakeAccountInstructionDataDecoder, getCloseUnrevealedStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterEncoder, getCollectedFeesCodec, getCollectedFeesDecoder, getCollectedFeesEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreatorFeesClaimedEventCodec, getCreatorFeesClaimedEventDecoder, getCreatorFeesClaimedEventEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeeClaimAuthorityChangedEventCodec, getFeeClaimAuthorityChangedEventDecoder, getFeeClaimAuthorityChangedEventEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolEncoder, getFeeRatesCodec, getFeeRatesDecoder, getFeeRatesEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getFinalizeRevealStakeDiscriminatorBytes, getFinalizeRevealStakeInstruction, getFinalizeRevealStakeInstructionAsync, getFinalizeRevealStakeInstructionDataCodec, getFinalizeRevealStakeInstructionDataDecoder, getFinalizeRevealStakeInstructionDataEncoder, getInitAllowedMintDiscriminatorBytes, getInitAllowedMintInstruction, getInitAllowedMintInstructionAsync, getInitAllowedMintInstructionDataCodec, getInitAllowedMintInstructionDataDecoder, getInitAllowedMintInstructionDataEncoder, getInitCompDefInstruction, getInitPlatformConfigDiscriminatorBytes, getInitPlatformConfigInstruction, getInitPlatformConfigInstructionAsync, getInitPlatformConfigInstructionDataCodec, getInitPlatformConfigInstructionDataDecoder, getInitPlatformConfigInstructionDataEncoder, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMarketResolvedEventCodec, getMarketResolvedEventDecoder, getMarketResolvedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOpportunityMarketSponsorAddress, getOpportunityMarketSponsorCodec, getOpportunityMarketSponsorDecoder, getOpportunityMarketSponsorDiscriminatorBytes, getOpportunityMarketSponsorEncoder, getOptionClosedEventCodec, getOptionClosedEventDecoder, getOptionClosedEventEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getPlatformConfigAddress, getPlatformConfigCodec, getPlatformConfigDecoder, getPlatformConfigDiscriminatorBytes, getPlatformConfigEncoder, getResolveMarketDiscriminatorBytes, getResolveMarketInstruction, getResolveMarketInstructionDataCodec, getResolveMarketInstructionDataDecoder, getResolveMarketInstructionDataEncoder, getRevealPeriodEndedEventCodec, getRevealPeriodEndedEventDecoder, getRevealPeriodEndedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeFinalizedEventCodec, getRevealStakeFinalizedEventDecoder, getRevealStakeFinalizedEventEncoder, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getRewardsClaimedEventCodec, getRewardsClaimedEventDecoder, getRewardsClaimedEventEncoder, getSetFeeClaimAuthorityDiscriminatorBytes, getSetFeeClaimAuthorityInstruction, getSetFeeClaimAuthorityInstructionDataCodec, getSetFeeClaimAuthorityInstructionDataDecoder, getSetFeeClaimAuthorityInstructionDataEncoder, getSetUpdateAuthorityDiscriminatorBytes, getSetUpdateAuthorityInstruction, getSetUpdateAuthorityInstructionDataCodec, getSetUpdateAuthorityInstructionDataDecoder, getSetUpdateAuthorityInstructionDataEncoder, getSetWinningOptionDiscriminatorBytes, getSetWinningOptionInstruction, getSetWinningOptionInstructionAsync, getSetWinningOptionInstructionDataCodec, getSetWinningOptionInstructionDataDecoder, getSetWinningOptionInstructionDataEncoder, getStakeAccountAddress, getStakeAccountClosedEventCodec, getStakeAccountClosedEventDecoder, getStakeAccountClosedEventEncoder, getStakeAccountCodec, getStakeAccountDecoder, getStakeAccountDiscriminatorBytes, getStakeAccountEncoder, getStakeAccountInitializedEventCodec, getStakeAccountInitializedEventDecoder, getStakeAccountInitializedEventEncoder, getStakeCallbackDiscriminatorBytes, getStakeCallbackInstruction, getStakeCallbackInstructionDataCodec, getStakeCallbackInstructionDataDecoder, getStakeCallbackInstructionDataEncoder, getStakeCompDefDiscriminatorBytes, getStakeCompDefInstruction, getStakeCompDefInstructionDataCodec, getStakeCompDefInstructionDataDecoder, getStakeCompDefInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getStakeOutputCodec, getStakeOutputDecoder, getStakeOutputEncoder, getStakeOutputStruct0Codec, getStakeOutputStruct0Decoder, getStakeOutputStruct0Encoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getUnstakeDiscriminatorBytes, getUnstakeInstruction, getUnstakeInstructionAsync, getUnstakeInstructionDataCodec, getUnstakeInstructionDataDecoder, getUnstakeInstructionDataEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateAuthorityChangedEventCodec, getUpdateAuthorityChangedEventDecoder, getUpdateAuthorityChangedEventEncoder, getUpdatePlatformConfigDiscriminatorBytes, getUpdatePlatformConfigInstruction, getUpdatePlatformConfigInstructionDataCodec, getUpdatePlatformConfigInstructionDataDecoder, getUpdatePlatformConfigInstructionDataEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionSetEventCodec, getWinningOptionSetEventDecoder, getWinningOptionSetEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, initAllowedMint, initStakeAccount, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimCreatorFeesInstruction, parseClaimFeesInstruction, parseClaimRewardsInstruction, parseCloseOptionAccountInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCloseUnrevealedStakeAccountInstruction, parseCreateMarketInstruction, parseEndRevealPeriodInstruction, parseFinalizeRevealStakeInstruction, parseInitAllowedMintInstruction, parseInitPlatformConfigInstruction, parseInitStakeAccountInstruction, parseOpenMarketInstruction, parseResolveMarketInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSetFeeClaimAuthorityInstruction, parseSetUpdateAuthorityInstruction, parseSetWinningOptionInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseUnstakeInstruction, parseUpdatePlatformConfigInstruction, parseWithdrawRewardInstruction, randomComputationOffset, randomStateNonce, resolveMarket, revealStake, setFeeClaimAuthority, setUpdateAuthority, setWinningOption, stake, toNumberArray, unstake, updatePlatformConfig, withdrawReward };