@bench.games/opportunity-markets 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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
  /**
@@ -495,8 +495,7 @@ type MarketCreatedEvent = {
495
495
  feeRates: FeeRates;
496
496
  creatorFeeClaimer: Address;
497
497
  marketResolutionDeadlineSeconds: bigint;
498
- minRevealPeriodSeconds: bigint;
499
- maxRevealPeriodSeconds: bigint;
498
+ revealPeriodSeconds: bigint;
500
499
  timestamp: bigint;
501
500
  };
502
501
  type MarketCreatedEventArgs = {
@@ -514,8 +513,7 @@ type MarketCreatedEventArgs = {
514
513
  feeRates: FeeRatesArgs;
515
514
  creatorFeeClaimer: Address;
516
515
  marketResolutionDeadlineSeconds: number | bigint;
517
- minRevealPeriodSeconds: number | bigint;
518
- maxRevealPeriodSeconds: number | bigint;
516
+ revealPeriodSeconds: number | bigint;
519
517
  timestamp: number | bigint;
520
518
  };
521
519
  declare function getMarketCreatedEventEncoder(): FixedSizeEncoder<MarketCreatedEventArgs>;
@@ -1167,46 +1165,6 @@ declare function getStakeRevealedEventEncoder(): FixedSizeEncoder<StakeRevealedE
1167
1165
  declare function getStakeRevealedEventDecoder(): FixedSizeDecoder<StakeRevealedEvent>;
1168
1166
  declare function getStakeRevealedEventCodec(): FixedSizeCodec<StakeRevealedEventArgs, StakeRevealedEvent>;
1169
1167
 
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
1168
  /**
1211
1169
  * This code was AUTOGENERATED using the Codama library.
1212
1170
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -1380,22 +1338,20 @@ type OpportunityMarket = {
1380
1338
  stakeEndTimestamp: Option<bigint>;
1381
1339
  resolvedAtTimestamp: Option<bigint>;
1382
1340
  winningOptionAllocation: number;
1341
+ winningOptionActiveBp: number;
1383
1342
  rewardAmount: bigint;
1384
1343
  marketAuthority: Address;
1385
- revealPeriodAuthority: Address;
1386
1344
  mint: Address;
1387
1345
  earlinessCutoffSeconds: bigint;
1388
1346
  earlinessMultiplier: number;
1389
1347
  allowUnstakingEarly: boolean;
1390
1348
  authorizedReaderPubkey: Array<number>;
1391
- stakingPaused: boolean;
1392
1349
  feeRates: FeeRates;
1393
1350
  collectedPlatformFees: bigint;
1394
1351
  collectedCreatorFees: bigint;
1395
1352
  creatorFeeClaimer: Address;
1396
1353
  marketResolutionDeadlineSeconds: bigint;
1397
- minRevealPeriodSeconds: bigint;
1398
- maxRevealPeriodSeconds: bigint;
1354
+ revealPeriodSeconds: bigint;
1399
1355
  revealEnded: boolean;
1400
1356
  minStakeAmount: bigint;
1401
1357
  };
@@ -1408,22 +1364,20 @@ type OpportunityMarketArgs = {
1408
1364
  stakeEndTimestamp: OptionOrNullable<number | bigint>;
1409
1365
  resolvedAtTimestamp: OptionOrNullable<number | bigint>;
1410
1366
  winningOptionAllocation: number;
1367
+ winningOptionActiveBp: number;
1411
1368
  rewardAmount: number | bigint;
1412
1369
  marketAuthority: Address;
1413
- revealPeriodAuthority: Address;
1414
1370
  mint: Address;
1415
1371
  earlinessCutoffSeconds: number | bigint;
1416
1372
  earlinessMultiplier: number;
1417
1373
  allowUnstakingEarly: boolean;
1418
1374
  authorizedReaderPubkey: Array<number>;
1419
- stakingPaused: boolean;
1420
1375
  feeRates: FeeRatesArgs;
1421
1376
  collectedPlatformFees: number | bigint;
1422
1377
  collectedCreatorFees: number | bigint;
1423
1378
  creatorFeeClaimer: Address;
1424
1379
  marketResolutionDeadlineSeconds: number | bigint;
1425
- minRevealPeriodSeconds: number | bigint;
1426
- maxRevealPeriodSeconds: number | bigint;
1380
+ revealPeriodSeconds: number | bigint;
1427
1381
  revealEnded: boolean;
1428
1382
  minStakeAmount: number | bigint;
1429
1383
  };
@@ -1455,7 +1409,10 @@ type OpportunityMarketOption = {
1455
1409
  createdAt: bigint;
1456
1410
  totalStaked: bigint;
1457
1411
  totalScore: bigint;
1458
- rewardBp: Option<number>;
1412
+ /** Non-zero iff this option is a winner; share of pool in basis points (0–10_000). */
1413
+ rewardBp: number;
1414
+ /** Set on first finalize for a winning option; gates adding `reward_bp` to `winning_option_active_bp`. */
1415
+ includedInActiveBp: boolean;
1459
1416
  };
1460
1417
  type OpportunityMarketOptionArgs = {
1461
1418
  bump: number;
@@ -1464,11 +1421,14 @@ type OpportunityMarketOptionArgs = {
1464
1421
  createdAt: number | bigint;
1465
1422
  totalStaked: number | bigint;
1466
1423
  totalScore: number | bigint;
1467
- rewardBp: OptionOrNullable<number>;
1424
+ /** Non-zero iff this option is a winner; share of pool in basis points (0–10_000). */
1425
+ rewardBp: number;
1426
+ /** Set on first finalize for a winning option; gates adding `reward_bp` to `winning_option_active_bp`. */
1427
+ includedInActiveBp: boolean;
1468
1428
  };
1469
- declare function getOpportunityMarketOptionEncoder(): Encoder<OpportunityMarketOptionArgs>;
1470
- declare function getOpportunityMarketOptionDecoder(): Decoder<OpportunityMarketOption>;
1471
- declare function getOpportunityMarketOptionCodec(): Codec<OpportunityMarketOptionArgs, OpportunityMarketOption>;
1429
+ declare function getOpportunityMarketOptionEncoder(): FixedSizeEncoder<OpportunityMarketOptionArgs>;
1430
+ declare function getOpportunityMarketOptionDecoder(): FixedSizeDecoder<OpportunityMarketOption>;
1431
+ declare function getOpportunityMarketOptionCodec(): FixedSizeCodec<OpportunityMarketOptionArgs, OpportunityMarketOption>;
1472
1432
  declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OpportunityMarketOption, TAddress>;
1473
1433
  declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OpportunityMarketOption, TAddress>;
1474
1434
  declare function fetchOpportunityMarketOption<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OpportunityMarketOption, TAddress>>;
@@ -1530,8 +1490,8 @@ type PlatformConfig = {
1530
1490
  feeRates: FeeRates;
1531
1491
  marketResolutionDeadlineSeconds: bigint;
1532
1492
  minTimeToStakeSeconds: bigint;
1533
- minRevealPeriodSeconds: bigint;
1534
- maxRevealPeriodSeconds: bigint;
1493
+ revealAuthority: Address;
1494
+ revealPeriodSeconds: bigint;
1535
1495
  };
1536
1496
  type PlatformConfigArgs = {
1537
1497
  bump: number;
@@ -1541,8 +1501,8 @@ type PlatformConfigArgs = {
1541
1501
  feeRates: FeeRatesArgs;
1542
1502
  marketResolutionDeadlineSeconds: number | bigint;
1543
1503
  minTimeToStakeSeconds: number | bigint;
1544
- minRevealPeriodSeconds: number | bigint;
1545
- maxRevealPeriodSeconds: number | bigint;
1504
+ revealAuthority: Address;
1505
+ revealPeriodSeconds: number | bigint;
1546
1506
  };
1547
1507
  declare function getPlatformConfigEncoder(): Encoder<PlatformConfigArgs>;
1548
1508
  declare function getPlatformConfigDecoder(): Decoder<PlatformConfig>;
@@ -1675,27 +1635,25 @@ declare const OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE = 6023;
1675
1635
  declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM = 6024;
1676
1636
  /** StakeNotStuck: Stake account is not in a stuck or failed state */
1677
1637
  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
1638
  /** StakeBelowMinimum: Stake amount is below the market minimum */
1683
- declare const OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM = 6028;
1639
+ declare const OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM = 6026;
1684
1640
  /** SelectOptionsDeadlinePassed: Deadline for selecting winning options has passed */
1685
- declare const OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED = 6029;
1641
+ declare const OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED = 6027;
1686
1642
  /** InvalidFeeRates: Invalid fee rates */
1687
- declare const OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES = 6030;
1643
+ declare const OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES = 6028;
1688
1644
  /** OptionStillNeeded: Option still needed */
1689
- declare const OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED = 6031;
1645
+ declare const OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED = 6029;
1690
1646
  /** CreatorMismatch: Creator mismatch */
1691
- declare const OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH = 6032;
1647
+ declare const OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH = 6030;
1692
1648
  /** RevealPeriodNotOver: Reveal period not over */
1693
- declare const OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER = 6033;
1649
+ declare const OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER = 6031;
1650
+ /** NoFinalizedWinningOption: No winning option has a finalized stake */
1651
+ declare const OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION = 6032;
1694
1652
  /** NoRewardToClaim: No reward to claim */
1695
- declare const OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6034;
1653
+ declare const OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6033;
1696
1654
  /** 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;
1655
+ declare const OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED = 6034;
1656
+ 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
1657
  declare function getOpportunityMarketErrorMessage(code: OpportunityMarketError): string;
1700
1658
  declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityMarketError>(error: unknown, transactionMessage: {
1701
1659
  instructions: Record<number, {
@@ -1743,21 +1701,19 @@ declare enum OpportunityMarketInstruction {
1743
1701
  InitPlatformConfig = 11,
1744
1702
  InitStakeAccount = 12,
1745
1703
  OpenMarket = 13,
1746
- PauseStaking = 14,
1747
- ResolveMarket = 15,
1748
- ResumeStaking = 16,
1749
- RevealStake = 17,
1750
- RevealStakeCallback = 18,
1751
- RevealStakeCompDef = 19,
1752
- SetFeeClaimAuthority = 20,
1753
- SetUpdateAuthority = 21,
1754
- SetWinningOption = 22,
1755
- Stake = 23,
1756
- StakeCallback = 24,
1757
- StakeCompDef = 25,
1758
- Unstake = 26,
1759
- UpdatePlatformConfig = 27,
1760
- WithdrawReward = 28
1704
+ ResolveMarket = 14,
1705
+ RevealStake = 15,
1706
+ RevealStakeCallback = 16,
1707
+ RevealStakeCompDef = 17,
1708
+ SetFeeClaimAuthority = 18,
1709
+ SetUpdateAuthority = 19,
1710
+ SetWinningOption = 20,
1711
+ Stake = 21,
1712
+ StakeCallback = 22,
1713
+ StakeCompDef = 23,
1714
+ Unstake = 24,
1715
+ UpdatePlatformConfig = 25,
1716
+ WithdrawReward = 26
1761
1717
  }
1762
1718
  declare function identifyOpportunityMarketInstruction(instruction: {
1763
1719
  data: ReadonlyUint8Array;
@@ -1791,12 +1747,8 @@ type ParsedOpportunityMarketInstruction<TProgram extends string = 'B3NCHsGBkdZrP
1791
1747
  } & ParsedInitStakeAccountInstruction<TProgram>) | ({
1792
1748
  instructionType: OpportunityMarketInstruction.OpenMarket;
1793
1749
  } & ParsedOpenMarketInstruction<TProgram>) | ({
1794
- instructionType: OpportunityMarketInstruction.PauseStaking;
1795
- } & ParsedPauseStakingInstruction<TProgram>) | ({
1796
1750
  instructionType: OpportunityMarketInstruction.ResolveMarket;
1797
1751
  } & ParsedResolveMarketInstruction<TProgram>) | ({
1798
- instructionType: OpportunityMarketInstruction.ResumeStaking;
1799
- } & ParsedResumeStakingInstruction<TProgram>) | ({
1800
1752
  instructionType: OpportunityMarketInstruction.RevealStake;
1801
1753
  } & ParsedRevealStakeInstruction<TProgram>) | ({
1802
1754
  instructionType: OpportunityMarketInstruction.RevealStakeCallback;
@@ -2349,7 +2301,6 @@ type CreateMarketInstructionData = {
2349
2301
  marketAuthority: Address;
2350
2302
  allowUnstakingEarly: boolean;
2351
2303
  authorizedReaderPubkey: Array<number>;
2352
- revealPeriodAuthority: Address;
2353
2304
  earlinessCutoffSeconds: bigint;
2354
2305
  earlinessMultiplier: number;
2355
2306
  minStakeAmount: bigint;
@@ -2360,7 +2311,6 @@ type CreateMarketInstructionDataArgs = {
2360
2311
  marketAuthority: Address;
2361
2312
  allowUnstakingEarly: boolean;
2362
2313
  authorizedReaderPubkey: Array<number>;
2363
- revealPeriodAuthority: Address;
2364
2314
  earlinessCutoffSeconds: number | bigint;
2365
2315
  earlinessMultiplier: number;
2366
2316
  minStakeAmount: number | bigint;
@@ -2384,7 +2334,6 @@ type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountPla
2384
2334
  marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
2385
2335
  allowUnstakingEarly: CreateMarketInstructionDataArgs['allowUnstakingEarly'];
2386
2336
  authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
2387
- revealPeriodAuthority: CreateMarketInstructionDataArgs['revealPeriodAuthority'];
2388
2337
  earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
2389
2338
  earlinessMultiplier: CreateMarketInstructionDataArgs['earlinessMultiplier'];
2390
2339
  minStakeAmount: CreateMarketInstructionDataArgs['minStakeAmount'];
@@ -2408,7 +2357,6 @@ type CreateMarketInput<TAccountCreator extends string = string, TAccountPlatform
2408
2357
  marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
2409
2358
  allowUnstakingEarly: CreateMarketInstructionDataArgs['allowUnstakingEarly'];
2410
2359
  authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
2411
- revealPeriodAuthority: CreateMarketInstructionDataArgs['revealPeriodAuthority'];
2412
2360
  earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
2413
2361
  earlinessMultiplier: CreateMarketInstructionDataArgs['earlinessMultiplier'];
2414
2362
  minStakeAmount: CreateMarketInstructionDataArgs['minStakeAmount'];
@@ -2445,9 +2393,10 @@ declare function parseCreateMarketInstruction<TProgram extends string, TAccountM
2445
2393
 
2446
2394
  declare const END_REVEAL_PERIOD_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2447
2395
  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<[
2396
+ 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
2397
  TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
2450
2398
  TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2399
+ TAccountPlatformConfig extends string ? ReadonlyAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
2451
2400
  ...TRemainingAccounts
2452
2401
  ]>;
2453
2402
  type EndRevealPeriodInstructionData = {
@@ -2457,18 +2406,20 @@ type EndRevealPeriodInstructionDataArgs = {};
2457
2406
  declare function getEndRevealPeriodInstructionDataEncoder(): FixedSizeEncoder<EndRevealPeriodInstructionDataArgs>;
2458
2407
  declare function getEndRevealPeriodInstructionDataDecoder(): FixedSizeDecoder<EndRevealPeriodInstructionData>;
2459
2408
  declare function getEndRevealPeriodInstructionDataCodec(): FixedSizeCodec<EndRevealPeriodInstructionDataArgs, EndRevealPeriodInstructionData>;
2460
- type EndRevealPeriodInput<TAccountSigner extends string = string, TAccountMarket extends string = string> = {
2409
+ type EndRevealPeriodInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountPlatformConfig extends string = string> = {
2461
2410
  signer: TransactionSigner<TAccountSigner>;
2462
2411
  market: Address<TAccountMarket>;
2412
+ platformConfig: Address<TAccountPlatformConfig>;
2463
2413
  };
2464
- declare function getEndRevealPeriodInstruction<TAccountSigner extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: EndRevealPeriodInput<TAccountSigner, TAccountMarket>, config?: {
2414
+ 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
2415
  programAddress?: TProgramAddress;
2466
- }): EndRevealPeriodInstruction<TProgramAddress, TAccountSigner, TAccountMarket>;
2416
+ }): EndRevealPeriodInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountPlatformConfig>;
2467
2417
  type ParsedEndRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2468
2418
  programAddress: Address<TProgram>;
2469
2419
  accounts: {
2470
2420
  signer: TAccountMetas[0];
2471
2421
  market: TAccountMetas[1];
2422
+ platformConfig: TAccountMetas[2];
2472
2423
  };
2473
2424
  data: EndRevealPeriodInstructionData;
2474
2425
  };
@@ -2626,9 +2577,9 @@ type InitPlatformConfigInstructionData = {
2626
2577
  rewardPoolFeeBp: number;
2627
2578
  creatorFeeBp: number;
2628
2579
  feeClaimAuthority: Address;
2580
+ revealAuthority: Address;
2629
2581
  minTimeToStakeSeconds: bigint;
2630
- minRevealPeriodSeconds: bigint;
2631
- maxRevealPeriodSeconds: bigint;
2582
+ revealPeriodSeconds: bigint;
2632
2583
  marketResolutionDeadlineSeconds: bigint;
2633
2584
  };
2634
2585
  type InitPlatformConfigInstructionDataArgs = {
@@ -2637,9 +2588,9 @@ type InitPlatformConfigInstructionDataArgs = {
2637
2588
  rewardPoolFeeBp: number;
2638
2589
  creatorFeeBp: number;
2639
2590
  feeClaimAuthority: Address;
2591
+ revealAuthority: Address;
2640
2592
  minTimeToStakeSeconds: number | bigint;
2641
- minRevealPeriodSeconds: number | bigint;
2642
- maxRevealPeriodSeconds: number | bigint;
2593
+ revealPeriodSeconds: number | bigint;
2643
2594
  marketResolutionDeadlineSeconds: number | bigint;
2644
2595
  };
2645
2596
  declare function getInitPlatformConfigInstructionDataEncoder(): Encoder<InitPlatformConfigInstructionDataArgs>;
@@ -2654,9 +2605,9 @@ type InitPlatformConfigAsyncInput<TAccountPayer extends string = string, TAccoun
2654
2605
  rewardPoolFeeBp: InitPlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
2655
2606
  creatorFeeBp: InitPlatformConfigInstructionDataArgs['creatorFeeBp'];
2656
2607
  feeClaimAuthority: InitPlatformConfigInstructionDataArgs['feeClaimAuthority'];
2608
+ revealAuthority: InitPlatformConfigInstructionDataArgs['revealAuthority'];
2657
2609
  minTimeToStakeSeconds: InitPlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
2658
- minRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['minRevealPeriodSeconds'];
2659
- maxRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['maxRevealPeriodSeconds'];
2610
+ revealPeriodSeconds: InitPlatformConfigInstructionDataArgs['revealPeriodSeconds'];
2660
2611
  marketResolutionDeadlineSeconds: InitPlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
2661
2612
  };
2662
2613
  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 +2622,9 @@ type InitPlatformConfigInput<TAccountPayer extends string = string, TAccountPlat
2671
2622
  rewardPoolFeeBp: InitPlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
2672
2623
  creatorFeeBp: InitPlatformConfigInstructionDataArgs['creatorFeeBp'];
2673
2624
  feeClaimAuthority: InitPlatformConfigInstructionDataArgs['feeClaimAuthority'];
2625
+ revealAuthority: InitPlatformConfigInstructionDataArgs['revealAuthority'];
2674
2626
  minTimeToStakeSeconds: InitPlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
2675
- minRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['minRevealPeriodSeconds'];
2676
- maxRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['maxRevealPeriodSeconds'];
2627
+ revealPeriodSeconds: InitPlatformConfigInstructionDataArgs['revealPeriodSeconds'];
2677
2628
  marketResolutionDeadlineSeconds: InitPlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
2678
2629
  };
2679
2630
  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 +2753,6 @@ type ParsedOpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MA
2802
2753
  };
2803
2754
  declare function parseOpenMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedOpenMarketInstruction<TProgram, TAccountMetas>;
2804
2755
 
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
2756
  /**
2845
2757
  * This code was AUTOGENERATED using the Codama library.
2846
2758
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -2880,45 +2792,6 @@ type ParsedResolveMarketInstruction<TProgram extends string = typeof OPPORTUNITY
2880
2792
  };
2881
2793
  declare function parseResolveMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedResolveMarketInstruction<TProgram, TAccountMetas>;
2882
2794
 
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
2795
  /**
2923
2796
  * This code was AUTOGENERATED using the Codama library.
2924
2797
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -3680,18 +3553,18 @@ type UpdatePlatformConfigInstructionData = {
3680
3553
  platformFeeBp: number;
3681
3554
  rewardPoolFeeBp: number;
3682
3555
  creatorFeeBp: number;
3556
+ revealAuthority: Address;
3683
3557
  minTimeToStakeSeconds: bigint;
3684
- minRevealPeriodSeconds: bigint;
3685
- maxRevealPeriodSeconds: bigint;
3558
+ revealPeriodSeconds: bigint;
3686
3559
  marketResolutionDeadlineSeconds: bigint;
3687
3560
  };
3688
3561
  type UpdatePlatformConfigInstructionDataArgs = {
3689
3562
  platformFeeBp: number;
3690
3563
  rewardPoolFeeBp: number;
3691
3564
  creatorFeeBp: number;
3565
+ revealAuthority: Address;
3692
3566
  minTimeToStakeSeconds: number | bigint;
3693
- minRevealPeriodSeconds: number | bigint;
3694
- maxRevealPeriodSeconds: number | bigint;
3567
+ revealPeriodSeconds: number | bigint;
3695
3568
  marketResolutionDeadlineSeconds: number | bigint;
3696
3569
  };
3697
3570
  declare function getUpdatePlatformConfigInstructionDataEncoder(): FixedSizeEncoder<UpdatePlatformConfigInstructionDataArgs>;
@@ -3703,9 +3576,9 @@ type UpdatePlatformConfigInput<TAccountUpdateAuthority extends string = string,
3703
3576
  platformFeeBp: UpdatePlatformConfigInstructionDataArgs['platformFeeBp'];
3704
3577
  rewardPoolFeeBp: UpdatePlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
3705
3578
  creatorFeeBp: UpdatePlatformConfigInstructionDataArgs['creatorFeeBp'];
3579
+ revealAuthority: UpdatePlatformConfigInstructionDataArgs['revealAuthority'];
3706
3580
  minTimeToStakeSeconds: UpdatePlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
3707
- minRevealPeriodSeconds: UpdatePlatformConfigInstructionDataArgs['minRevealPeriodSeconds'];
3708
- maxRevealPeriodSeconds: UpdatePlatformConfigInstructionDataArgs['maxRevealPeriodSeconds'];
3581
+ revealPeriodSeconds: UpdatePlatformConfigInstructionDataArgs['revealPeriodSeconds'];
3709
3582
  marketResolutionDeadlineSeconds: UpdatePlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
3710
3583
  };
3711
3584
  declare function getUpdatePlatformConfigInstruction<TAccountUpdateAuthority extends string, TAccountPlatformConfig extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdatePlatformConfigInput<TAccountUpdateAuthority, TAccountPlatformConfig>, config?: {
@@ -3824,7 +3697,6 @@ interface CreateMarketParams extends BaseInstructionParams {
3824
3697
  marketAuthority: Address;
3825
3698
  allowUnstakingEarly: boolean;
3826
3699
  authorizedReaderPubkey: ByteArray;
3827
- revealPeriodAuthority: Address;
3828
3700
  earlinessCutoffSeconds: bigint;
3829
3701
  earlinessMultiplier: number;
3830
3702
  minStakeAmount: bigint;
@@ -3850,6 +3722,16 @@ interface ArciumConfig {
3850
3722
  programId?: Address;
3851
3723
  }
3852
3724
 
3725
+ interface AwaitComputationOptions {
3726
+ commitment?: "confirmed" | "finalized";
3727
+ pollInterval?: number;
3728
+ transactionCountLimit?: number;
3729
+ }
3730
+ /**
3731
+ * Waits for a single Arcium computation to be finalized.
3732
+ */
3733
+ declare const awaitComputationFinalization: (rpc: Rpc<SolanaRpcApi>, computationAccount: Address, invocationSignature: Signature, options?: AwaitComputationOptions) => Promise<Signature>;
3734
+
3853
3735
  interface StakeParams extends BaseInstructionParams {
3854
3736
  signer: TransactionSigner;
3855
3737
  payer: TransactionSigner;
@@ -3871,6 +3753,7 @@ interface StakeParams extends BaseInstructionParams {
3871
3753
  stateNonce: bigint;
3872
3754
  }
3873
3755
  declare function stake(input: StakeParams, config: ArciumConfig): Promise<StakeInstruction<string>>;
3756
+ declare function awaitStakeFinalization(rpc: Rpc<SolanaRpcApi>, txSignature: Signature, config: ArciumConfig, options?: AwaitComputationOptions): Promise<Signature>;
3874
3757
 
3875
3758
  interface RevealStakeParams extends BaseInstructionParams {
3876
3759
  signer: TransactionSigner;
@@ -3879,6 +3762,7 @@ interface RevealStakeParams extends BaseInstructionParams {
3879
3762
  stakeAccountId: number;
3880
3763
  }
3881
3764
  declare function revealStake(input: RevealStakeParams, config: ArciumConfig): Promise<RevealStakeInstruction<string>>;
3765
+ declare function awaitRevealStakeFinalization(rpc: Rpc<SolanaRpcApi>, txSignature: Signature, config: ArciumConfig, options?: AwaitComputationOptions): Promise<Signature>;
3882
3766
 
3883
3767
  interface AddMarketOptionParams extends BaseInstructionParams {
3884
3768
  signer: TransactionSigner;
@@ -3895,18 +3779,6 @@ interface OpenMarketParams extends BaseInstructionParams {
3895
3779
  }
3896
3780
  declare function openMarket(input: OpenMarketParams): OpenMarketInstruction<string>;
3897
3781
 
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
3782
  interface SetWinningOptionParams extends BaseInstructionParams {
3911
3783
  marketAuthority: TransactionSigner;
3912
3784
  market: Address;
@@ -3923,6 +3795,7 @@ declare function resolveMarket(input: ResolveMarketParams): ResolveMarketInstruc
3923
3795
 
3924
3796
  interface EndRevealPeriodParams extends BaseInstructionParams {
3925
3797
  signer: TransactionSigner;
3798
+ platformConfig: Address;
3926
3799
  market: Address;
3927
3800
  }
3928
3801
  declare function endRevealPeriod(input: EndRevealPeriodParams): EndRevealPeriodInstruction<string>;
@@ -4009,9 +3882,9 @@ interface CreatePlatformConfigParams extends BaseInstructionParams {
4009
3882
  rewardPoolFeeBp: number;
4010
3883
  creatorFeeBp: number;
4011
3884
  feeClaimAuthority: Address;
3885
+ revealAuthority: Address;
4012
3886
  minTimeToStakeSeconds: bigint;
4013
- minRevealPeriodSeconds: bigint;
4014
- maxRevealPeriodSeconds: bigint;
3887
+ revealPeriodSeconds: bigint;
4015
3888
  marketResolutionDeadlineSeconds: bigint;
4016
3889
  }
4017
3890
  declare function createPlatformConfig(rpc: Parameters<typeof fetchMaybePlatformConfig>[0], params: CreatePlatformConfigParams): Promise<Instruction>;
@@ -4022,9 +3895,9 @@ interface UpdatePlatformConfigParams extends BaseInstructionParams {
4022
3895
  platformFeeBp: number;
4023
3896
  rewardPoolFeeBp: number;
4024
3897
  creatorFeeBp: number;
3898
+ revealAuthority: Address;
4025
3899
  minTimeToStakeSeconds: bigint;
4026
- minRevealPeriodSeconds: bigint;
4027
- maxRevealPeriodSeconds: bigint;
3900
+ revealPeriodSeconds: bigint;
4028
3901
  marketResolutionDeadlineSeconds: bigint;
4029
3902
  }
4030
3903
  declare function updatePlatformConfig(rpc: Parameters<typeof fetchMaybePlatformConfig>[0], params: UpdatePlatformConfigParams): Promise<Instruction>;
@@ -4089,29 +3962,6 @@ declare function getOpportunityMarketSponsorAddress(sponsor: Address, market: Ad
4089
3962
  declare const STAKE_ACCOUNT_SEED = "stake_account";
4090
3963
  declare function getStakeAccountAddress(owner: Address, market: Address, stakeAccountId: number, programId?: Address): Promise<ProgramDerivedAddress>;
4091
3964
 
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
3965
  interface X25519Keypair {
4116
3966
  publicKey: Uint8Array;
4117
3967
  secretKey: Uint8Array;
@@ -4137,4 +3987,4 @@ declare function deriveSharedSecret(userSecretKey: Uint8Array, mxePublicKey: Uin
4137
3987
  declare function createCipher(userSecretKey: Uint8Array, mxePublicKey: Uint8Array): RescueCipher;
4138
3988
  declare function nonceToBytes(nonce: bigint): Uint8Array;
4139
3989
 
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 };
3990
+ 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 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 ParsedCloseOptionAccountInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, 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, 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, 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, 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, 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, parseCloseOptionAccountInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, 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 };