@bench.games/opportunity-markets 0.2.3 → 0.2.6

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.ts CHANGED
@@ -47,6 +47,7 @@ type CentralState = {
47
47
  minOptionDeposit: bigint;
48
48
  protocolFeeBp: number;
49
49
  feeRecipient: Address;
50
+ minimumInitialRevealPeriod: bigint;
50
51
  };
51
52
  type CentralStateArgs = {
52
53
  bump: number;
@@ -55,6 +56,7 @@ type CentralStateArgs = {
55
56
  minOptionDeposit: number | bigint;
56
57
  protocolFeeBp: number;
57
58
  feeRecipient: Address;
59
+ minimumInitialRevealPeriod: number | bigint;
58
60
  };
59
61
  declare function getCentralStateEncoder(): FixedSizeEncoder<CentralStateArgs>;
60
62
  declare function getCentralStateDecoder(): FixedSizeDecoder<CentralState>;
@@ -252,7 +254,6 @@ type MarketCreatedEvent = {
252
254
  creator: Address;
253
255
  index: bigint;
254
256
  mint: Address;
255
- rewardAmount: bigint;
256
257
  timeToStake: bigint;
257
258
  timeToReveal: bigint;
258
259
  earlinessCutoffSeconds: bigint;
@@ -267,7 +268,6 @@ type MarketCreatedEventArgs = {
267
268
  creator: Address;
268
269
  index: number | bigint;
269
270
  mint: Address;
270
- rewardAmount: number | bigint;
271
271
  timeToStake: number | bigint;
272
272
  timeToReveal: number | bigint;
273
273
  earlinessCutoffSeconds: number | bigint;
@@ -549,6 +549,34 @@ declare function getRevealStakeOutputEncoder(): FixedSizeEncoder<RevealStakeOutp
549
549
  declare function getRevealStakeOutputDecoder(): FixedSizeDecoder<RevealStakeOutput>;
550
550
  declare function getRevealStakeOutputCodec(): FixedSizeCodec<RevealStakeOutputArgs, RevealStakeOutput>;
551
551
 
552
+ /**
553
+ * This code was AUTOGENERATED using the Codama library.
554
+ * Please DO NOT EDIT THIS FILE, instead use visitors
555
+ * to add features, then rerun Codama to update it.
556
+ *
557
+ * @see https://github.com/codama-idl/codama
558
+ */
559
+
560
+ type RewardAddedEvent = {
561
+ market: Address;
562
+ sponsor: Address;
563
+ amount: bigint;
564
+ totalRewardAmount: bigint;
565
+ locked: boolean;
566
+ timestamp: bigint;
567
+ };
568
+ type RewardAddedEventArgs = {
569
+ market: Address;
570
+ sponsor: Address;
571
+ amount: number | bigint;
572
+ totalRewardAmount: number | bigint;
573
+ locked: boolean;
574
+ timestamp: number | bigint;
575
+ };
576
+ declare function getRewardAddedEventEncoder(): FixedSizeEncoder<RewardAddedEventArgs>;
577
+ declare function getRewardAddedEventDecoder(): FixedSizeDecoder<RewardAddedEvent>;
578
+ declare function getRewardAddedEventCodec(): FixedSizeCodec<RewardAddedEventArgs, RewardAddedEvent>;
579
+
552
580
  /**
553
581
  * This code was AUTOGENERATED using the Codama library.
554
582
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -585,32 +613,6 @@ declare function getRewardClaimedEventEncoder(): FixedSizeEncoder<RewardClaimedE
585
613
  declare function getRewardClaimedEventDecoder(): FixedSizeDecoder<RewardClaimedEvent>;
586
614
  declare function getRewardClaimedEventCodec(): FixedSizeCodec<RewardClaimedEventArgs, RewardClaimedEvent>;
587
615
 
588
- /**
589
- * This code was AUTOGENERATED using the Codama library.
590
- * Please DO NOT EDIT THIS FILE, instead use visitors
591
- * to add features, then rerun Codama to update it.
592
- *
593
- * @see https://github.com/codama-idl/codama
594
- */
595
-
596
- type RewardPoolIncreasedEvent = {
597
- market: Address;
598
- authority: Address;
599
- oldRewardAmount: bigint;
600
- newRewardAmount: bigint;
601
- timestamp: bigint;
602
- };
603
- type RewardPoolIncreasedEventArgs = {
604
- market: Address;
605
- authority: Address;
606
- oldRewardAmount: number | bigint;
607
- newRewardAmount: number | bigint;
608
- timestamp: number | bigint;
609
- };
610
- declare function getRewardPoolIncreasedEventEncoder(): FixedSizeEncoder<RewardPoolIncreasedEventArgs>;
611
- declare function getRewardPoolIncreasedEventDecoder(): FixedSizeDecoder<RewardPoolIncreasedEvent>;
612
- declare function getRewardPoolIncreasedEventCodec(): FixedSizeCodec<RewardPoolIncreasedEventArgs, RewardPoolIncreasedEvent>;
613
-
614
616
  /**
615
617
  * This code was AUTOGENERATED using the Codama library.
616
618
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -621,14 +623,14 @@ declare function getRewardPoolIncreasedEventCodec(): FixedSizeCodec<RewardPoolIn
621
623
 
622
624
  type RewardWithdrawnEvent = {
623
625
  market: Address;
624
- creator: Address;
626
+ sponsor: Address;
625
627
  rewardAmount: bigint;
626
628
  refundTokenAccount: Address;
627
629
  timestamp: bigint;
628
630
  };
629
631
  type RewardWithdrawnEventArgs = {
630
632
  market: Address;
631
- creator: Address;
633
+ sponsor: Address;
632
634
  rewardAmount: number | bigint;
633
635
  refundTokenAccount: Address;
634
636
  timestamp: number | bigint;
@@ -663,26 +665,6 @@ declare function getStakeAccountInitializedEventEncoder(): FixedSizeEncoder<Stak
663
665
  declare function getStakeAccountInitializedEventDecoder(): FixedSizeDecoder<StakeAccountInitializedEvent>;
664
666
  declare function getStakeAccountInitializedEventCodec(): FixedSizeCodec<StakeAccountInitializedEventArgs, StakeAccountInitializedEvent>;
665
667
 
666
- /**
667
- * This code was AUTOGENERATED using the Codama library.
668
- * Please DO NOT EDIT THIS FILE, instead use visitors
669
- * to add features, then rerun Codama to update it.
670
- *
671
- * @see https://github.com/codama-idl/codama
672
- */
673
-
674
- type StakedError = {
675
- user: Address;
676
- timestamp: bigint;
677
- };
678
- type StakedErrorArgs = {
679
- user: Address;
680
- timestamp: number | bigint;
681
- };
682
- declare function getStakedErrorEncoder(): FixedSizeEncoder<StakedErrorArgs>;
683
- declare function getStakedErrorDecoder(): FixedSizeDecoder<StakedError>;
684
- declare function getStakedErrorCodec(): FixedSizeCodec<StakedErrorArgs, StakedError>;
685
-
686
668
  /**
687
669
  * This code was AUTOGENERATED using the Codama library.
688
670
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -809,17 +791,25 @@ declare function getStakeReclaimedEventCodec(): FixedSizeCodec<StakeReclaimedEve
809
791
  * @see https://github.com/codama-idl/codama
810
792
  */
811
793
 
812
- type StakeRevealedError = {
794
+ type StakeRevealedEvent = {
813
795
  user: Address;
796
+ market: Address;
797
+ stakeAccount: Address;
798
+ stakeAmount: bigint;
799
+ selectedOption: bigint;
814
800
  timestamp: bigint;
815
801
  };
816
- type StakeRevealedErrorArgs = {
802
+ type StakeRevealedEventArgs = {
817
803
  user: Address;
804
+ market: Address;
805
+ stakeAccount: Address;
806
+ stakeAmount: number | bigint;
807
+ selectedOption: number | bigint;
818
808
  timestamp: number | bigint;
819
809
  };
820
- declare function getStakeRevealedErrorEncoder(): FixedSizeEncoder<StakeRevealedErrorArgs>;
821
- declare function getStakeRevealedErrorDecoder(): FixedSizeDecoder<StakeRevealedError>;
822
- declare function getStakeRevealedErrorCodec(): FixedSizeCodec<StakeRevealedErrorArgs, StakeRevealedError>;
810
+ declare function getStakeRevealedEventEncoder(): FixedSizeEncoder<StakeRevealedEventArgs>;
811
+ declare function getStakeRevealedEventDecoder(): FixedSizeDecoder<StakeRevealedEvent>;
812
+ declare function getStakeRevealedEventCodec(): FixedSizeCodec<StakeRevealedEventArgs, StakeRevealedEvent>;
823
813
 
824
814
  /**
825
815
  * This code was AUTOGENERATED using the Codama library.
@@ -829,25 +819,25 @@ declare function getStakeRevealedErrorCodec(): FixedSizeCodec<StakeRevealedError
829
819
  * @see https://github.com/codama-idl/codama
830
820
  */
831
821
 
832
- type StakeRevealedEvent = {
833
- user: Address;
822
+ type StuckStakeClosedEvent = {
823
+ owner: Address;
834
824
  market: Address;
835
- stakeAccount: Address;
836
- stakeAmount: bigint;
837
- selectedOption: bigint;
825
+ stakeAccountId: number;
826
+ refundedAmount: bigint;
827
+ refundedFee: bigint;
838
828
  timestamp: bigint;
839
829
  };
840
- type StakeRevealedEventArgs = {
841
- user: Address;
830
+ type StuckStakeClosedEventArgs = {
831
+ owner: Address;
842
832
  market: Address;
843
- stakeAccount: Address;
844
- stakeAmount: number | bigint;
845
- selectedOption: number | bigint;
833
+ stakeAccountId: number;
834
+ refundedAmount: number | bigint;
835
+ refundedFee: number | bigint;
846
836
  timestamp: number | bigint;
847
837
  };
848
- declare function getStakeRevealedEventEncoder(): FixedSizeEncoder<StakeRevealedEventArgs>;
849
- declare function getStakeRevealedEventDecoder(): FixedSizeDecoder<StakeRevealedEvent>;
850
- declare function getStakeRevealedEventCodec(): FixedSizeCodec<StakeRevealedEventArgs, StakeRevealedEvent>;
838
+ declare function getStuckStakeClosedEventEncoder(): FixedSizeEncoder<StuckStakeClosedEventArgs>;
839
+ declare function getStuckStakeClosedEventDecoder(): FixedSizeDecoder<StuckStakeClosedEvent>;
840
+ declare function getStuckStakeClosedEventCodec(): FixedSizeCodec<StuckStakeClosedEventArgs, StuckStakeClosedEvent>;
851
841
 
852
842
  /**
853
843
  * This code was AUTOGENERATED using the Codama library.
@@ -1248,13 +1238,13 @@ type OpportunityMarket = {
1248
1238
  timeToReveal: bigint;
1249
1239
  selectedOptions: Option<Array<WinningOption>>;
1250
1240
  rewardAmount: bigint;
1251
- marketAuthority: Option<Address>;
1241
+ marketAuthority: Address;
1242
+ revealPeriodAuthority: Address;
1252
1243
  mint: Address;
1253
1244
  earlinessCutoffSeconds: bigint;
1254
1245
  unstakeDelaySeconds: bigint;
1255
1246
  authorizedReaderPubkey: Array<number>;
1256
1247
  allowClosingEarly: boolean;
1257
- rewardWithdrawn: boolean;
1258
1248
  };
1259
1249
  type OpportunityMarketArgs = {
1260
1250
  bump: number;
@@ -1266,13 +1256,13 @@ type OpportunityMarketArgs = {
1266
1256
  timeToReveal: number | bigint;
1267
1257
  selectedOptions: OptionOrNullable<Array<WinningOptionArgs>>;
1268
1258
  rewardAmount: number | bigint;
1269
- marketAuthority: OptionOrNullable<Address>;
1259
+ marketAuthority: Address;
1260
+ revealPeriodAuthority: Address;
1270
1261
  mint: Address;
1271
1262
  earlinessCutoffSeconds: number | bigint;
1272
1263
  unstakeDelaySeconds: number | bigint;
1273
1264
  authorizedReaderPubkey: Array<number>;
1274
1265
  allowClosingEarly: boolean;
1275
- rewardWithdrawn: boolean;
1276
1266
  };
1277
1267
  declare function getOpportunityMarketEncoder(): Encoder<OpportunityMarketArgs>;
1278
1268
  declare function getOpportunityMarketDecoder(): Decoder<OpportunityMarket>;
@@ -1298,14 +1288,12 @@ type OpportunityMarketOption = {
1298
1288
  discriminator: ReadonlyUint8Array;
1299
1289
  bump: number;
1300
1290
  id: bigint;
1301
- /** Total staked for this option (tally) */
1302
1291
  totalStaked: bigint;
1303
1292
  totalScore: bigint;
1304
1293
  };
1305
1294
  type OpportunityMarketOptionArgs = {
1306
1295
  bump: number;
1307
1296
  id: number | bigint;
1308
- /** Total staked for this option (tally) */
1309
1297
  totalStaked: number | bigint;
1310
1298
  totalScore: number | bigint;
1311
1299
  };
@@ -1319,6 +1307,41 @@ declare function fetchMaybeOpportunityMarketOption<TAddress extends string = str
1319
1307
  declare function fetchAllOpportunityMarketOption(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<OpportunityMarketOption>[]>;
1320
1308
  declare function fetchAllMaybeOpportunityMarketOption(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<OpportunityMarketOption>[]>;
1321
1309
 
1310
+ /**
1311
+ * This code was AUTOGENERATED using the Codama library.
1312
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1313
+ * to add features, then rerun Codama to update it.
1314
+ *
1315
+ * @see https://github.com/codama-idl/codama
1316
+ */
1317
+
1318
+ declare const OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1319
+ declare function getOpportunityMarketSponsorDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1320
+ type OpportunityMarketSponsor = {
1321
+ discriminator: ReadonlyUint8Array;
1322
+ bump: number;
1323
+ sponsor: Address;
1324
+ market: Address;
1325
+ rewardDeposited: bigint;
1326
+ rewardLocked: boolean;
1327
+ };
1328
+ type OpportunityMarketSponsorArgs = {
1329
+ bump: number;
1330
+ sponsor: Address;
1331
+ market: Address;
1332
+ rewardDeposited: number | bigint;
1333
+ rewardLocked: boolean;
1334
+ };
1335
+ declare function getOpportunityMarketSponsorEncoder(): FixedSizeEncoder<OpportunityMarketSponsorArgs>;
1336
+ declare function getOpportunityMarketSponsorDecoder(): FixedSizeDecoder<OpportunityMarketSponsor>;
1337
+ declare function getOpportunityMarketSponsorCodec(): FixedSizeCodec<OpportunityMarketSponsorArgs, OpportunityMarketSponsor>;
1338
+ declare function decodeOpportunityMarketSponsor<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OpportunityMarketSponsor, TAddress>;
1339
+ declare function decodeOpportunityMarketSponsor<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OpportunityMarketSponsor, TAddress>;
1340
+ declare function fetchOpportunityMarketSponsor<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OpportunityMarketSponsor, TAddress>>;
1341
+ declare function fetchMaybeOpportunityMarketSponsor<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<OpportunityMarketSponsor, TAddress>>;
1342
+ declare function fetchAllOpportunityMarketSponsor(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<OpportunityMarketSponsor>[]>;
1343
+ declare function fetchAllMaybeOpportunityMarketSponsor(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<OpportunityMarketSponsor>[]>;
1344
+
1322
1345
  /**
1323
1346
  * This code was AUTOGENERATED using the Codama library.
1324
1347
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -1342,12 +1365,15 @@ type StakeAccount = {
1342
1365
  stakedAtTimestamp: Option<bigint>;
1343
1366
  unstakedAtTimestamp: Option<bigint>;
1344
1367
  amount: bigint;
1368
+ fee: bigint;
1345
1369
  revealedOption: Option<bigint>;
1346
1370
  score: Option<bigint>;
1347
1371
  totalIncremented: boolean;
1348
1372
  unstakeableAtTimestamp: Option<bigint>;
1349
1373
  locked: boolean;
1350
1374
  stakeReclaimed: boolean;
1375
+ pendingStake: boolean;
1376
+ pendingReveal: boolean;
1351
1377
  };
1352
1378
  type StakeAccountArgs = {
1353
1379
  encryptedOption: Array<number>;
@@ -1361,12 +1387,15 @@ type StakeAccountArgs = {
1361
1387
  stakedAtTimestamp: OptionOrNullable<number | bigint>;
1362
1388
  unstakedAtTimestamp: OptionOrNullable<number | bigint>;
1363
1389
  amount: number | bigint;
1390
+ fee: number | bigint;
1364
1391
  revealedOption: OptionOrNullable<number | bigint>;
1365
1392
  score: OptionOrNullable<number | bigint>;
1366
1393
  totalIncremented: boolean;
1367
1394
  unstakeableAtTimestamp: OptionOrNullable<number | bigint>;
1368
1395
  locked: boolean;
1369
1396
  stakeReclaimed: boolean;
1397
+ pendingStake: boolean;
1398
+ pendingReveal: boolean;
1370
1399
  };
1371
1400
  declare function getStakeAccountEncoder(): Encoder<StakeAccountArgs>;
1372
1401
  declare function getStakeAccountDecoder(): Decoder<StakeAccount>;
@@ -1459,8 +1488,8 @@ declare const OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED = 6016;
1459
1488
  declare const OPPORTUNITY_MARKET_ERROR__INVALID_MINT = 6017;
1460
1489
  /** AlreadyUnstaked: Already unstaked */
1461
1490
  declare const OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED = 6018;
1462
- /** AlreadyPurchased: Already staked for this stake account */
1463
- declare const OPPORTUNITY_MARKET_ERROR__ALREADY_PURCHASED = 6019;
1491
+ /** AlreadyStaked: Already staked for this stake account */
1492
+ declare const OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED = 6019;
1464
1493
  /** DepositBelowMinimum: Deposit amount below minimum required for option creation */
1465
1494
  declare const OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM = 6020;
1466
1495
  /** AddOptionStakeFailed: Add option stake failed: insufficient balance or below minimum deposit */
@@ -1479,11 +1508,9 @@ declare const OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED = 6026;
1479
1508
  declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM = 6027;
1480
1509
  /** InvalidWinningOptionsInput: Invalid winning options input */
1481
1510
  declare const OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT = 6028;
1482
- /** RewardAmountNotIncreased: New reward amount must be greater than current */
1483
- declare const OPPORTUNITY_MARKET_ERROR__REWARD_AMOUNT_NOT_INCREASED = 6029;
1484
- /** RewardAlreadyWithdrawn: Reward has already been withdrawn */
1485
- declare const OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_WITHDRAWN = 6030;
1486
- type OpportunityMarketError = typeof OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION | typeof OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_PURCHASED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED | typeof OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED | typeof OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET | 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_MINT | typeof OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID | typeof OPPORTUNITY_MARKET_ERROR__INVALID_TIMESTAMP | typeof OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT | 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__NOT_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__OVERFLOW | typeof OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED | typeof OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_WITHDRAWN | typeof OPPORTUNITY_MARKET_ERROR__REWARD_AMOUNT_NOT_INCREASED | typeof OPPORTUNITY_MARKET_ERROR__STAKING_NOT_ACTIVE | typeof OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED | typeof OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET | typeof OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED;
1511
+ /** StakeNotStuck: Stake account is not in a stuck or failed state */
1512
+ declare const OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK = 6029;
1513
+ 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__CLOSING_EARLY_NOT_ALLOWED | typeof OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET | 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_MINT | typeof OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID | typeof OPPORTUNITY_MARKET_ERROR__INVALID_TIMESTAMP | typeof OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT | 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__NOT_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__OVERFLOW | typeof OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED | typeof OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK | typeof OPPORTUNITY_MARKET_ERROR__STAKING_NOT_ACTIVE | typeof OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED | typeof OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET | typeof OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED;
1487
1514
  declare function getOpportunityMarketErrorMessage(code: OpportunityMarketError): string;
1488
1515
  declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityMarketError>(error: unknown, transactionMessage: {
1489
1516
  instructions: Record<number, {
@@ -1514,37 +1541,39 @@ declare enum OpportunityMarketAccount {
1514
1541
  MXEAccount = 6,
1515
1542
  OpportunityMarket = 7,
1516
1543
  OpportunityMarketOption = 8,
1517
- StakeAccount = 9,
1518
- TokenVault = 10
1544
+ OpportunityMarketSponsor = 9,
1545
+ StakeAccount = 10,
1546
+ TokenVault = 11
1519
1547
  }
1520
1548
  declare function identifyOpportunityMarketAccount(account: {
1521
1549
  data: ReadonlyUint8Array;
1522
1550
  } | ReadonlyUint8Array): OpportunityMarketAccount;
1523
1551
  declare enum OpportunityMarketInstruction {
1524
1552
  AddMarketOption = 0,
1525
- ClaimFees = 1,
1526
- CloseStakeAccount = 2,
1527
- CreateMarket = 3,
1528
- DoUnstakeEarly = 4,
1529
- ExtendRevealPeriod = 5,
1530
- IncreaseRewardPool = 6,
1531
- IncrementOptionTally = 7,
1532
- InitCentralState = 8,
1533
- InitStakeAccount = 9,
1534
- InitTokenVault = 10,
1535
- OpenMarket = 11,
1536
- ReclaimStake = 12,
1537
- RevealStake = 13,
1538
- RevealStakeCallback = 14,
1539
- RevealStakeCompDef = 15,
1540
- SelectWinningOptions = 16,
1541
- Stake = 17,
1542
- StakeCallback = 18,
1543
- StakeCompDef = 19,
1544
- TransferCentralStateAuthority = 20,
1545
- UnstakeEarly = 21,
1546
- UpdateCentralState = 22,
1547
- WithdrawReward = 23
1553
+ AddReward = 1,
1554
+ ClaimFees = 2,
1555
+ CloseStakeAccount = 3,
1556
+ CloseStuckStakeAccount = 4,
1557
+ CreateMarket = 5,
1558
+ DoUnstakeEarly = 6,
1559
+ EndRevealPeriod = 7,
1560
+ IncrementOptionTally = 8,
1561
+ InitCentralState = 9,
1562
+ InitStakeAccount = 10,
1563
+ InitTokenVault = 11,
1564
+ OpenMarket = 12,
1565
+ ReclaimStake = 13,
1566
+ RevealStake = 14,
1567
+ RevealStakeCallback = 15,
1568
+ RevealStakeCompDef = 16,
1569
+ SelectWinningOptions = 17,
1570
+ Stake = 18,
1571
+ StakeCallback = 19,
1572
+ StakeCompDef = 20,
1573
+ TransferCentralStateAuthority = 21,
1574
+ UnstakeEarly = 22,
1575
+ UpdateCentralState = 23,
1576
+ WithdrawReward = 24
1548
1577
  }
1549
1578
  declare function identifyOpportunityMarketInstruction(instruction: {
1550
1579
  data: ReadonlyUint8Array;
@@ -1552,18 +1581,20 @@ declare function identifyOpportunityMarketInstruction(instruction: {
1552
1581
  type ParsedOpportunityMarketInstruction<TProgram extends string = 'BencHEXKYZ8HJ9LCrihgCWAmnqBT1abpsa9FYRs8fK1D'> = ({
1553
1582
  instructionType: OpportunityMarketInstruction.AddMarketOption;
1554
1583
  } & ParsedAddMarketOptionInstruction<TProgram>) | ({
1584
+ instructionType: OpportunityMarketInstruction.AddReward;
1585
+ } & ParsedAddRewardInstruction<TProgram>) | ({
1555
1586
  instructionType: OpportunityMarketInstruction.ClaimFees;
1556
1587
  } & ParsedClaimFeesInstruction<TProgram>) | ({
1557
1588
  instructionType: OpportunityMarketInstruction.CloseStakeAccount;
1558
1589
  } & ParsedCloseStakeAccountInstruction<TProgram>) | ({
1590
+ instructionType: OpportunityMarketInstruction.CloseStuckStakeAccount;
1591
+ } & ParsedCloseStuckStakeAccountInstruction<TProgram>) | ({
1559
1592
  instructionType: OpportunityMarketInstruction.CreateMarket;
1560
1593
  } & ParsedCreateMarketInstruction<TProgram>) | ({
1561
1594
  instructionType: OpportunityMarketInstruction.DoUnstakeEarly;
1562
1595
  } & ParsedDoUnstakeEarlyInstruction<TProgram>) | ({
1563
- instructionType: OpportunityMarketInstruction.ExtendRevealPeriod;
1564
- } & ParsedExtendRevealPeriodInstruction<TProgram>) | ({
1565
- instructionType: OpportunityMarketInstruction.IncreaseRewardPool;
1566
- } & ParsedIncreaseRewardPoolInstruction<TProgram>) | ({
1596
+ instructionType: OpportunityMarketInstruction.EndRevealPeriod;
1597
+ } & ParsedEndRevealPeriodInstruction<TProgram>) | ({
1567
1598
  instructionType: OpportunityMarketInstruction.IncrementOptionTally;
1568
1599
  } & ParsedIncrementOptionTallyInstruction<TProgram>) | ({
1569
1600
  instructionType: OpportunityMarketInstruction.InitCentralState;
@@ -1658,6 +1689,88 @@ type ParsedAddMarketOptionInstruction<TProgram extends string = typeof OPPORTUNI
1658
1689
  };
1659
1690
  declare function parseAddMarketOptionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddMarketOptionInstruction<TProgram, TAccountMetas>;
1660
1691
 
1692
+ /**
1693
+ * This code was AUTOGENERATED using the Codama library.
1694
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1695
+ * to add features, then rerun Codama to update it.
1696
+ *
1697
+ * @see https://github.com/codama-idl/codama
1698
+ */
1699
+
1700
+ declare const ADD_REWARD_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1701
+ declare function getAddRewardDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1702
+ type AddRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSponsor extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountSponsorAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountSponsorTokenAccount extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1703
+ TAccountSponsor extends string ? WritableSignerAccount<TAccountSponsor> & AccountSignerMeta<TAccountSponsor> : TAccountSponsor,
1704
+ TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
1705
+ TAccountSponsorAccount extends string ? WritableAccount<TAccountSponsorAccount> : TAccountSponsorAccount,
1706
+ TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
1707
+ TAccountSponsorTokenAccount extends string ? WritableAccount<TAccountSponsorTokenAccount> : TAccountSponsorTokenAccount,
1708
+ TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
1709
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
1710
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
1711
+ ...TRemainingAccounts
1712
+ ]>;
1713
+ type AddRewardInstructionData = {
1714
+ discriminator: ReadonlyUint8Array;
1715
+ amount: bigint;
1716
+ lock: boolean;
1717
+ };
1718
+ type AddRewardInstructionDataArgs = {
1719
+ amount: number | bigint;
1720
+ lock: boolean;
1721
+ };
1722
+ declare function getAddRewardInstructionDataEncoder(): FixedSizeEncoder<AddRewardInstructionDataArgs>;
1723
+ declare function getAddRewardInstructionDataDecoder(): FixedSizeDecoder<AddRewardInstructionData>;
1724
+ declare function getAddRewardInstructionDataCodec(): FixedSizeCodec<AddRewardInstructionDataArgs, AddRewardInstructionData>;
1725
+ type AddRewardAsyncInput<TAccountSponsor extends string = string, TAccountMarket extends string = string, TAccountSponsorAccount extends string = string, TAccountTokenMint extends string = string, TAccountSponsorTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
1726
+ sponsor: TransactionSigner<TAccountSponsor>;
1727
+ market: Address<TAccountMarket>;
1728
+ sponsorAccount?: Address<TAccountSponsorAccount>;
1729
+ tokenMint: Address<TAccountTokenMint>;
1730
+ sponsorTokenAccount: Address<TAccountSponsorTokenAccount>;
1731
+ /** Market's ATA holding reward tokens */
1732
+ marketTokenAta?: Address<TAccountMarketTokenAta>;
1733
+ tokenProgram: Address<TAccountTokenProgram>;
1734
+ systemProgram?: Address<TAccountSystemProgram>;
1735
+ amount: AddRewardInstructionDataArgs['amount'];
1736
+ lock: AddRewardInstructionDataArgs['lock'];
1737
+ };
1738
+ declare function getAddRewardInstructionAsync<TAccountSponsor extends string, TAccountMarket extends string, TAccountSponsorAccount extends string, TAccountTokenMint extends string, TAccountSponsorTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: AddRewardAsyncInput<TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountSponsorTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
1739
+ programAddress?: TProgramAddress;
1740
+ }): Promise<AddRewardInstruction<TProgramAddress, TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountSponsorTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>>;
1741
+ type AddRewardInput<TAccountSponsor extends string = string, TAccountMarket extends string = string, TAccountSponsorAccount extends string = string, TAccountTokenMint extends string = string, TAccountSponsorTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
1742
+ sponsor: TransactionSigner<TAccountSponsor>;
1743
+ market: Address<TAccountMarket>;
1744
+ sponsorAccount: Address<TAccountSponsorAccount>;
1745
+ tokenMint: Address<TAccountTokenMint>;
1746
+ sponsorTokenAccount: Address<TAccountSponsorTokenAccount>;
1747
+ /** Market's ATA holding reward tokens */
1748
+ marketTokenAta: Address<TAccountMarketTokenAta>;
1749
+ tokenProgram: Address<TAccountTokenProgram>;
1750
+ systemProgram?: Address<TAccountSystemProgram>;
1751
+ amount: AddRewardInstructionDataArgs['amount'];
1752
+ lock: AddRewardInstructionDataArgs['lock'];
1753
+ };
1754
+ declare function getAddRewardInstruction<TAccountSponsor extends string, TAccountMarket extends string, TAccountSponsorAccount extends string, TAccountTokenMint extends string, TAccountSponsorTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: AddRewardInput<TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountSponsorTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
1755
+ programAddress?: TProgramAddress;
1756
+ }): AddRewardInstruction<TProgramAddress, TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountSponsorTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>;
1757
+ type ParsedAddRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1758
+ programAddress: Address<TProgram>;
1759
+ accounts: {
1760
+ sponsor: TAccountMetas[0];
1761
+ market: TAccountMetas[1];
1762
+ sponsorAccount: TAccountMetas[2];
1763
+ tokenMint: TAccountMetas[3];
1764
+ sponsorTokenAccount: TAccountMetas[4];
1765
+ /** Market's ATA holding reward tokens */
1766
+ marketTokenAta: TAccountMetas[5];
1767
+ tokenProgram: TAccountMetas[6];
1768
+ systemProgram: TAccountMetas[7];
1769
+ };
1770
+ data: AddRewardInstructionData;
1771
+ };
1772
+ declare function parseAddRewardInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddRewardInstruction<TProgram, TAccountMetas>;
1773
+
1661
1774
  /**
1662
1775
  * This code was AUTOGENERATED using the Codama library.
1663
1776
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -1813,6 +1926,98 @@ type ParsedCloseStakeAccountInstruction<TProgram extends string = typeof OPPORTU
1813
1926
  };
1814
1927
  declare function parseCloseStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseStakeAccountInstruction<TProgram, TAccountMetas>;
1815
1928
 
1929
+ /**
1930
+ * This code was AUTOGENERATED using the Codama library.
1931
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1932
+ * to add features, then rerun Codama to update it.
1933
+ *
1934
+ * @see https://github.com/codama-idl/codama
1935
+ */
1936
+
1937
+ declare const CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1938
+ declare function getCloseStuckStakeAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1939
+ type CloseStuckStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountSignerTokenAccount extends string | AccountMeta<string> = string, TAccountTokenVault extends string | AccountMeta<string> = string, TAccountTokenVaultAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1940
+ TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
1941
+ TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
1942
+ TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
1943
+ TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
1944
+ TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
1945
+ TAccountSignerTokenAccount extends string ? WritableAccount<TAccountSignerTokenAccount> : TAccountSignerTokenAccount,
1946
+ TAccountTokenVault extends string ? WritableAccount<TAccountTokenVault> : TAccountTokenVault,
1947
+ TAccountTokenVaultAta extends string ? WritableAccount<TAccountTokenVaultAta> : TAccountTokenVaultAta,
1948
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
1949
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
1950
+ ...TRemainingAccounts
1951
+ ]>;
1952
+ type CloseStuckStakeAccountInstructionData = {
1953
+ discriminator: ReadonlyUint8Array;
1954
+ stakeAccountId: number;
1955
+ };
1956
+ type CloseStuckStakeAccountInstructionDataArgs = {
1957
+ stakeAccountId: number;
1958
+ };
1959
+ declare function getCloseStuckStakeAccountInstructionDataEncoder(): FixedSizeEncoder<CloseStuckStakeAccountInstructionDataArgs>;
1960
+ declare function getCloseStuckStakeAccountInstructionDataDecoder(): FixedSizeDecoder<CloseStuckStakeAccountInstructionData>;
1961
+ declare function getCloseStuckStakeAccountInstructionDataCodec(): FixedSizeCodec<CloseStuckStakeAccountInstructionDataArgs, CloseStuckStakeAccountInstructionData>;
1962
+ type CloseStuckStakeAccountAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountSignerTokenAccount extends string = string, TAccountTokenVault extends string = string, TAccountTokenVaultAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
1963
+ signer: TransactionSigner<TAccountSigner>;
1964
+ market: Address<TAccountMarket>;
1965
+ stakeAccount?: Address<TAccountStakeAccount>;
1966
+ tokenMint: Address<TAccountTokenMint>;
1967
+ /** Market's ATA holding staked tokens */
1968
+ marketTokenAta?: Address<TAccountMarketTokenAta>;
1969
+ /** Signer's token account to receive refund */
1970
+ signerTokenAccount: Address<TAccountSignerTokenAccount>;
1971
+ tokenVault?: Address<TAccountTokenVault>;
1972
+ /** Token vault ATA holding fee tokens */
1973
+ tokenVaultAta?: Address<TAccountTokenVaultAta>;
1974
+ tokenProgram: Address<TAccountTokenProgram>;
1975
+ systemProgram?: Address<TAccountSystemProgram>;
1976
+ stakeAccountId: CloseStuckStakeAccountInstructionDataArgs['stakeAccountId'];
1977
+ };
1978
+ declare function getCloseStuckStakeAccountInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountSignerTokenAccount extends string, TAccountTokenVault extends string, TAccountTokenVaultAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStuckStakeAccountAsyncInput<TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountSignerTokenAccount, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
1979
+ programAddress?: TProgramAddress;
1980
+ }): Promise<CloseStuckStakeAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountSignerTokenAccount, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSystemProgram>>;
1981
+ type CloseStuckStakeAccountInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountSignerTokenAccount extends string = string, TAccountTokenVault extends string = string, TAccountTokenVaultAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
1982
+ signer: TransactionSigner<TAccountSigner>;
1983
+ market: Address<TAccountMarket>;
1984
+ stakeAccount: Address<TAccountStakeAccount>;
1985
+ tokenMint: Address<TAccountTokenMint>;
1986
+ /** Market's ATA holding staked tokens */
1987
+ marketTokenAta: Address<TAccountMarketTokenAta>;
1988
+ /** Signer's token account to receive refund */
1989
+ signerTokenAccount: Address<TAccountSignerTokenAccount>;
1990
+ tokenVault: Address<TAccountTokenVault>;
1991
+ /** Token vault ATA holding fee tokens */
1992
+ tokenVaultAta: Address<TAccountTokenVaultAta>;
1993
+ tokenProgram: Address<TAccountTokenProgram>;
1994
+ systemProgram?: Address<TAccountSystemProgram>;
1995
+ stakeAccountId: CloseStuckStakeAccountInstructionDataArgs['stakeAccountId'];
1996
+ };
1997
+ declare function getCloseStuckStakeAccountInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountSignerTokenAccount extends string, TAccountTokenVault extends string, TAccountTokenVaultAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStuckStakeAccountInput<TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountSignerTokenAccount, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
1998
+ programAddress?: TProgramAddress;
1999
+ }): CloseStuckStakeAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountSignerTokenAccount, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSystemProgram>;
2000
+ type ParsedCloseStuckStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2001
+ programAddress: Address<TProgram>;
2002
+ accounts: {
2003
+ signer: TAccountMetas[0];
2004
+ market: TAccountMetas[1];
2005
+ stakeAccount: TAccountMetas[2];
2006
+ tokenMint: TAccountMetas[3];
2007
+ /** Market's ATA holding staked tokens */
2008
+ marketTokenAta: TAccountMetas[4];
2009
+ /** Signer's token account to receive refund */
2010
+ signerTokenAccount: TAccountMetas[5];
2011
+ tokenVault: TAccountMetas[6];
2012
+ /** Token vault ATA holding fee tokens */
2013
+ tokenVaultAta: TAccountMetas[7];
2014
+ tokenProgram: TAccountMetas[8];
2015
+ systemProgram: TAccountMetas[9];
2016
+ };
2017
+ data: CloseStuckStakeAccountInstructionData;
2018
+ };
2019
+ declare function parseCloseStuckStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseStuckStakeAccountInstruction<TProgram, TAccountMetas>;
2020
+
1816
2021
  /**
1817
2022
  * This code was AUTOGENERATED using the Codama library.
1818
2023
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -1837,23 +2042,23 @@ type CreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET
1837
2042
  type CreateMarketInstructionData = {
1838
2043
  discriminator: ReadonlyUint8Array;
1839
2044
  marketIndex: bigint;
1840
- rewardAmount: bigint;
1841
2045
  timeToStake: bigint;
1842
2046
  timeToReveal: bigint;
1843
2047
  marketAuthority: Option<Address>;
1844
2048
  unstakeDelaySeconds: bigint;
1845
2049
  authorizedReaderPubkey: Array<number>;
1846
2050
  allowClosingEarly: boolean;
2051
+ revealPeriodAuthority: Address;
1847
2052
  };
1848
2053
  type CreateMarketInstructionDataArgs = {
1849
2054
  marketIndex: number | bigint;
1850
- rewardAmount: number | bigint;
1851
2055
  timeToStake: number | bigint;
1852
2056
  timeToReveal: number | bigint;
1853
2057
  marketAuthority: OptionOrNullable<Address>;
1854
2058
  unstakeDelaySeconds: number | bigint;
1855
2059
  authorizedReaderPubkey: Array<number>;
1856
2060
  allowClosingEarly: boolean;
2061
+ revealPeriodAuthority: Address;
1857
2062
  };
1858
2063
  declare function getCreateMarketInstructionDataEncoder(): Encoder<CreateMarketInstructionDataArgs>;
1859
2064
  declare function getCreateMarketInstructionDataDecoder(): Decoder<CreateMarketInstructionData>;
@@ -1869,13 +2074,13 @@ type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountTok
1869
2074
  tokenProgram: Address<TAccountTokenProgram>;
1870
2075
  associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
1871
2076
  marketIndex: CreateMarketInstructionDataArgs['marketIndex'];
1872
- rewardAmount: CreateMarketInstructionDataArgs['rewardAmount'];
1873
2077
  timeToStake: CreateMarketInstructionDataArgs['timeToStake'];
1874
2078
  timeToReveal: CreateMarketInstructionDataArgs['timeToReveal'];
1875
2079
  marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
1876
2080
  unstakeDelaySeconds: CreateMarketInstructionDataArgs['unstakeDelaySeconds'];
1877
2081
  authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
1878
2082
  allowClosingEarly: CreateMarketInstructionDataArgs['allowClosingEarly'];
2083
+ revealPeriodAuthority: CreateMarketInstructionDataArgs['revealPeriodAuthority'];
1879
2084
  };
1880
2085
  declare function getCreateMarketInstructionAsync<TAccountCreator extends string, TAccountTokenMint extends string, TAccountCentralState extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketAsyncInput<TAccountCreator, TAccountTokenMint, TAccountCentralState, TAccountMarket, TAccountMarketTokenAta, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram>, config?: {
1881
2086
  programAddress?: TProgramAddress;
@@ -1891,13 +2096,13 @@ type CreateMarketInput<TAccountCreator extends string = string, TAccountTokenMin
1891
2096
  tokenProgram: Address<TAccountTokenProgram>;
1892
2097
  associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
1893
2098
  marketIndex: CreateMarketInstructionDataArgs['marketIndex'];
1894
- rewardAmount: CreateMarketInstructionDataArgs['rewardAmount'];
1895
2099
  timeToStake: CreateMarketInstructionDataArgs['timeToStake'];
1896
2100
  timeToReveal: CreateMarketInstructionDataArgs['timeToReveal'];
1897
2101
  marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
1898
2102
  unstakeDelaySeconds: CreateMarketInstructionDataArgs['unstakeDelaySeconds'];
1899
2103
  authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
1900
2104
  allowClosingEarly: CreateMarketInstructionDataArgs['allowClosingEarly'];
2105
+ revealPeriodAuthority: CreateMarketInstructionDataArgs['revealPeriodAuthority'];
1901
2106
  };
1902
2107
  declare function getCreateMarketInstruction<TAccountCreator extends string, TAccountTokenMint extends string, TAccountCentralState extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketInput<TAccountCreator, TAccountTokenMint, TAccountCentralState, TAccountMarket, TAccountMarketTokenAta, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram>, config?: {
1903
2108
  programAddress?: TProgramAddress;
@@ -2012,106 +2217,36 @@ declare function parseDoUnstakeEarlyInstruction<TProgram extends string, TAccoun
2012
2217
  * @see https://github.com/codama-idl/codama
2013
2218
  */
2014
2219
 
2015
- declare const EXTEND_REVEAL_PERIOD_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2016
- declare function getExtendRevealPeriodDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2017
- type ExtendRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2220
+ declare const END_REVEAL_PERIOD_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2221
+ declare function getEndRevealPeriodDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2222
+ type EndRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2018
2223
  TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
2019
2224
  TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2020
2225
  ...TRemainingAccounts
2021
2226
  ]>;
2022
- type ExtendRevealPeriodInstructionData = {
2227
+ type EndRevealPeriodInstructionData = {
2023
2228
  discriminator: ReadonlyUint8Array;
2024
- newTimeToReveal: bigint;
2025
- };
2026
- type ExtendRevealPeriodInstructionDataArgs = {
2027
- newTimeToReveal: number | bigint;
2028
2229
  };
2029
- declare function getExtendRevealPeriodInstructionDataEncoder(): FixedSizeEncoder<ExtendRevealPeriodInstructionDataArgs>;
2030
- declare function getExtendRevealPeriodInstructionDataDecoder(): FixedSizeDecoder<ExtendRevealPeriodInstructionData>;
2031
- declare function getExtendRevealPeriodInstructionDataCodec(): FixedSizeCodec<ExtendRevealPeriodInstructionDataArgs, ExtendRevealPeriodInstructionData>;
2032
- type ExtendRevealPeriodInput<TAccountAuthority extends string = string, TAccountMarket extends string = string> = {
2230
+ type EndRevealPeriodInstructionDataArgs = {};
2231
+ declare function getEndRevealPeriodInstructionDataEncoder(): FixedSizeEncoder<EndRevealPeriodInstructionDataArgs>;
2232
+ declare function getEndRevealPeriodInstructionDataDecoder(): FixedSizeDecoder<EndRevealPeriodInstructionData>;
2233
+ declare function getEndRevealPeriodInstructionDataCodec(): FixedSizeCodec<EndRevealPeriodInstructionDataArgs, EndRevealPeriodInstructionData>;
2234
+ type EndRevealPeriodInput<TAccountAuthority extends string = string, TAccountMarket extends string = string> = {
2033
2235
  authority: TransactionSigner<TAccountAuthority>;
2034
2236
  market: Address<TAccountMarket>;
2035
- newTimeToReveal: ExtendRevealPeriodInstructionDataArgs['newTimeToReveal'];
2036
2237
  };
2037
- declare function getExtendRevealPeriodInstruction<TAccountAuthority extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ExtendRevealPeriodInput<TAccountAuthority, TAccountMarket>, config?: {
2238
+ declare function getEndRevealPeriodInstruction<TAccountAuthority extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: EndRevealPeriodInput<TAccountAuthority, TAccountMarket>, config?: {
2038
2239
  programAddress?: TProgramAddress;
2039
- }): ExtendRevealPeriodInstruction<TProgramAddress, TAccountAuthority, TAccountMarket>;
2040
- type ParsedExtendRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2240
+ }): EndRevealPeriodInstruction<TProgramAddress, TAccountAuthority, TAccountMarket>;
2241
+ type ParsedEndRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2041
2242
  programAddress: Address<TProgram>;
2042
2243
  accounts: {
2043
2244
  authority: TAccountMetas[0];
2044
2245
  market: TAccountMetas[1];
2045
2246
  };
2046
- data: ExtendRevealPeriodInstructionData;
2247
+ data: EndRevealPeriodInstructionData;
2047
2248
  };
2048
- declare function parseExtendRevealPeriodInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedExtendRevealPeriodInstruction<TProgram, TAccountMetas>;
2049
-
2050
- /**
2051
- * This code was AUTOGENERATED using the Codama library.
2052
- * Please DO NOT EDIT THIS FILE, instead use visitors
2053
- * to add features, then rerun Codama to update it.
2054
- *
2055
- * @see https://github.com/codama-idl/codama
2056
- */
2057
-
2058
- declare const INCREASE_REWARD_POOL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2059
- declare function getIncreaseRewardPoolDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2060
- type IncreaseRewardPoolInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2061
- TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
2062
- TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2063
- TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
2064
- TAccountMarketTokenAta extends string ? ReadonlyAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
2065
- TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
2066
- ...TRemainingAccounts
2067
- ]>;
2068
- type IncreaseRewardPoolInstructionData = {
2069
- discriminator: ReadonlyUint8Array;
2070
- newRewardAmount: bigint;
2071
- };
2072
- type IncreaseRewardPoolInstructionDataArgs = {
2073
- newRewardAmount: number | bigint;
2074
- };
2075
- declare function getIncreaseRewardPoolInstructionDataEncoder(): FixedSizeEncoder<IncreaseRewardPoolInstructionDataArgs>;
2076
- declare function getIncreaseRewardPoolInstructionDataDecoder(): FixedSizeDecoder<IncreaseRewardPoolInstructionData>;
2077
- declare function getIncreaseRewardPoolInstructionDataCodec(): FixedSizeCodec<IncreaseRewardPoolInstructionDataArgs, IncreaseRewardPoolInstructionData>;
2078
- type IncreaseRewardPoolAsyncInput<TAccountAuthority extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string> = {
2079
- authority: TransactionSigner<TAccountAuthority>;
2080
- market: Address<TAccountMarket>;
2081
- tokenMint: Address<TAccountTokenMint>;
2082
- /** Market's ATA holding reward tokens */
2083
- marketTokenAta?: Address<TAccountMarketTokenAta>;
2084
- tokenProgram: Address<TAccountTokenProgram>;
2085
- newRewardAmount: IncreaseRewardPoolInstructionDataArgs['newRewardAmount'];
2086
- };
2087
- declare function getIncreaseRewardPoolInstructionAsync<TAccountAuthority extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: IncreaseRewardPoolAsyncInput<TAccountAuthority, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>, config?: {
2088
- programAddress?: TProgramAddress;
2089
- }): Promise<IncreaseRewardPoolInstruction<TProgramAddress, TAccountAuthority, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>>;
2090
- type IncreaseRewardPoolInput<TAccountAuthority extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string> = {
2091
- authority: TransactionSigner<TAccountAuthority>;
2092
- market: Address<TAccountMarket>;
2093
- tokenMint: Address<TAccountTokenMint>;
2094
- /** Market's ATA holding reward tokens */
2095
- marketTokenAta: Address<TAccountMarketTokenAta>;
2096
- tokenProgram: Address<TAccountTokenProgram>;
2097
- newRewardAmount: IncreaseRewardPoolInstructionDataArgs['newRewardAmount'];
2098
- };
2099
- declare function getIncreaseRewardPoolInstruction<TAccountAuthority extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: IncreaseRewardPoolInput<TAccountAuthority, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>, config?: {
2100
- programAddress?: TProgramAddress;
2101
- }): IncreaseRewardPoolInstruction<TProgramAddress, TAccountAuthority, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>;
2102
- type ParsedIncreaseRewardPoolInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2103
- programAddress: Address<TProgram>;
2104
- accounts: {
2105
- authority: TAccountMetas[0];
2106
- market: TAccountMetas[1];
2107
- tokenMint: TAccountMetas[2];
2108
- /** Market's ATA holding reward tokens */
2109
- marketTokenAta: TAccountMetas[3];
2110
- tokenProgram: TAccountMetas[4];
2111
- };
2112
- data: IncreaseRewardPoolInstructionData;
2113
- };
2114
- declare function parseIncreaseRewardPoolInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedIncreaseRewardPoolInstruction<TProgram, TAccountMetas>;
2249
+ declare function parseEndRevealPeriodInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedEndRevealPeriodInstruction<TProgram, TAccountMetas>;
2115
2250
 
2116
2251
  /**
2117
2252
  * This code was AUTOGENERATED using the Codama library.
@@ -2206,12 +2341,14 @@ type InitCentralStateInstructionData = {
2206
2341
  minOptionDeposit: bigint;
2207
2342
  protocolFeeBp: number;
2208
2343
  feeRecipient: Address;
2344
+ minimumInitialRevealPeriod: bigint;
2209
2345
  };
2210
2346
  type InitCentralStateInstructionDataArgs = {
2211
2347
  earlinessCutoffSeconds: number | bigint;
2212
2348
  minOptionDeposit: number | bigint;
2213
2349
  protocolFeeBp: number;
2214
2350
  feeRecipient: Address;
2351
+ minimumInitialRevealPeriod: number | bigint;
2215
2352
  };
2216
2353
  declare function getInitCentralStateInstructionDataEncoder(): FixedSizeEncoder<InitCentralStateInstructionDataArgs>;
2217
2354
  declare function getInitCentralStateInstructionDataDecoder(): FixedSizeDecoder<InitCentralStateInstructionData>;
@@ -2224,6 +2361,7 @@ type InitCentralStateAsyncInput<TAccountPayer extends string = string, TAccountC
2224
2361
  minOptionDeposit: InitCentralStateInstructionDataArgs['minOptionDeposit'];
2225
2362
  protocolFeeBp: InitCentralStateInstructionDataArgs['protocolFeeBp'];
2226
2363
  feeRecipient: InitCentralStateInstructionDataArgs['feeRecipient'];
2364
+ minimumInitialRevealPeriod: InitCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
2227
2365
  };
2228
2366
  declare function getInitCentralStateInstructionAsync<TAccountPayer extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitCentralStateAsyncInput<TAccountPayer, TAccountCentralState, TAccountSystemProgram>, config?: {
2229
2367
  programAddress?: TProgramAddress;
@@ -2236,6 +2374,7 @@ type InitCentralStateInput<TAccountPayer extends string = string, TAccountCentra
2236
2374
  minOptionDeposit: InitCentralStateInstructionDataArgs['minOptionDeposit'];
2237
2375
  protocolFeeBp: InitCentralStateInstructionDataArgs['protocolFeeBp'];
2238
2376
  feeRecipient: InitCentralStateInstructionDataArgs['feeRecipient'];
2377
+ minimumInitialRevealPeriod: InitCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
2239
2378
  };
2240
2379
  declare function getInitCentralStateInstruction<TAccountPayer extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitCentralStateInput<TAccountPayer, TAccountCentralState, TAccountSystemProgram>, config?: {
2241
2380
  programAddress?: TProgramAddress;
@@ -2387,12 +2526,9 @@ declare function parseInitTokenVaultInstruction<TProgram extends string, TAccoun
2387
2526
 
2388
2527
  declare const OPEN_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2389
2528
  declare function getOpenMarketDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2390
- type OpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2529
+ type OpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2391
2530
  TAccountCreator extends string ? ReadonlySignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
2392
2531
  TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2393
- TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
2394
- TAccountMarketTokenAta extends string ? ReadonlyAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
2395
- TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
2396
2532
  ...TRemainingAccounts
2397
2533
  ]>;
2398
2534
  type OpenMarketInstructionData = {
@@ -2405,39 +2541,19 @@ type OpenMarketInstructionDataArgs = {
2405
2541
  declare function getOpenMarketInstructionDataEncoder(): FixedSizeEncoder<OpenMarketInstructionDataArgs>;
2406
2542
  declare function getOpenMarketInstructionDataDecoder(): FixedSizeDecoder<OpenMarketInstructionData>;
2407
2543
  declare function getOpenMarketInstructionDataCodec(): FixedSizeCodec<OpenMarketInstructionDataArgs, OpenMarketInstructionData>;
2408
- type OpenMarketAsyncInput<TAccountCreator extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string> = {
2544
+ type OpenMarketInput<TAccountCreator extends string = string, TAccountMarket extends string = string> = {
2409
2545
  creator: TransactionSigner<TAccountCreator>;
2410
2546
  market: Address<TAccountMarket>;
2411
- tokenMint: Address<TAccountTokenMint>;
2412
- /** Market's ATA holding reward tokens */
2413
- marketTokenAta?: Address<TAccountMarketTokenAta>;
2414
- tokenProgram: Address<TAccountTokenProgram>;
2415
- openTimestamp: OpenMarketInstructionDataArgs['openTimestamp'];
2416
- };
2417
- declare function getOpenMarketInstructionAsync<TAccountCreator extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: OpenMarketAsyncInput<TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>, config?: {
2418
- programAddress?: TProgramAddress;
2419
- }): Promise<OpenMarketInstruction<TProgramAddress, TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>>;
2420
- type OpenMarketInput<TAccountCreator extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string> = {
2421
- creator: TransactionSigner<TAccountCreator>;
2422
- market: Address<TAccountMarket>;
2423
- tokenMint: Address<TAccountTokenMint>;
2424
- /** Market's ATA holding reward tokens */
2425
- marketTokenAta: Address<TAccountMarketTokenAta>;
2426
- tokenProgram: Address<TAccountTokenProgram>;
2427
2547
  openTimestamp: OpenMarketInstructionDataArgs['openTimestamp'];
2428
2548
  };
2429
- declare function getOpenMarketInstruction<TAccountCreator extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: OpenMarketInput<TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>, config?: {
2549
+ declare function getOpenMarketInstruction<TAccountCreator extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: OpenMarketInput<TAccountCreator, TAccountMarket>, config?: {
2430
2550
  programAddress?: TProgramAddress;
2431
- }): OpenMarketInstruction<TProgramAddress, TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>;
2551
+ }): OpenMarketInstruction<TProgramAddress, TAccountCreator, TAccountMarket>;
2432
2552
  type ParsedOpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2433
2553
  programAddress: Address<TProgram>;
2434
2554
  accounts: {
2435
2555
  creator: TAccountMetas[0];
2436
2556
  market: TAccountMetas[1];
2437
- tokenMint: TAccountMetas[2];
2438
- /** Market's ATA holding reward tokens */
2439
- marketTokenAta: TAccountMetas[3];
2440
- tokenProgram: TAccountMetas[4];
2441
2557
  };
2442
2558
  data: OpenMarketInstructionData;
2443
2559
  };
@@ -2816,8 +2932,9 @@ declare function parseSelectWinningOptionsInstruction<TProgram extends string, T
2816
2932
 
2817
2933
  declare const STAKE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2818
2934
  declare function getStakeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2819
- type StakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountSignerTokenAccount extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountTokenVault extends string | AccountMeta<string> = string, TAccountTokenVaultAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountSignPdaAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountMempoolAccount extends string | AccountMeta<string> = string, TAccountExecutingPool extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountPoolAccount extends string | AccountMeta<string> = 'G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC', TAccountClockAccount extends string | AccountMeta<string> = '7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2820
- TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
2935
+ type StakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountSignerTokenAccount extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountTokenVault extends string | AccountMeta<string> = string, TAccountTokenVaultAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountSignPdaAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountMempoolAccount extends string | AccountMeta<string> = string, TAccountExecutingPool extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountPoolAccount extends string | AccountMeta<string> = 'G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC', TAccountClockAccount extends string | AccountMeta<string> = '7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2936
+ TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
2937
+ TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
2821
2938
  TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
2822
2939
  TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
2823
2940
  TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
@@ -2861,8 +2978,9 @@ type StakeInstructionDataArgs = {
2861
2978
  declare function getStakeInstructionDataEncoder(): FixedSizeEncoder<StakeInstructionDataArgs>;
2862
2979
  declare function getStakeInstructionDataDecoder(): FixedSizeDecoder<StakeInstructionData>;
2863
2980
  declare function getStakeInstructionDataCodec(): FixedSizeCodec<StakeInstructionDataArgs, StakeInstructionData>;
2864
- type StakeAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenVault extends string = string, TAccountTokenVaultAta extends string = string, TAccountTokenProgram extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountArciumProgram extends string = string> = {
2981
+ type StakeAsyncInput<TAccountSigner extends string = string, TAccountPayer extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenVault extends string = string, TAccountTokenVaultAta extends string = string, TAccountTokenProgram extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountArciumProgram extends string = string> = {
2865
2982
  signer: TransactionSigner<TAccountSigner>;
2983
+ payer: TransactionSigner<TAccountPayer>;
2866
2984
  market: Address<TAccountMarket>;
2867
2985
  stakeAccount?: Address<TAccountStakeAccount>;
2868
2986
  tokenMint: Address<TAccountTokenMint>;
@@ -2893,11 +3011,12 @@ type StakeAsyncInput<TAccountSigner extends string = string, TAccountMarket exte
2893
3011
  authorizedReaderNonce: StakeInstructionDataArgs['authorizedReaderNonce'];
2894
3012
  userPubkey: StakeInstructionDataArgs['userPubkey'];
2895
3013
  };
2896
- declare function getStakeInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenVault extends string, TAccountTokenVaultAta extends string, TAccountTokenProgram extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeAsyncInput<TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
3014
+ declare function getStakeInstructionAsync<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenVault extends string, TAccountTokenVaultAta extends string, TAccountTokenProgram extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeAsyncInput<TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
2897
3015
  programAddress?: TProgramAddress;
2898
- }): Promise<StakeInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>>;
2899
- type StakeInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenVault extends string = string, TAccountTokenVaultAta extends string = string, TAccountTokenProgram extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountArciumProgram extends string = string> = {
3016
+ }): Promise<StakeInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>>;
3017
+ type StakeInput<TAccountSigner extends string = string, TAccountPayer extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenVault extends string = string, TAccountTokenVaultAta extends string = string, TAccountTokenProgram extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountArciumProgram extends string = string> = {
2900
3018
  signer: TransactionSigner<TAccountSigner>;
3019
+ payer: TransactionSigner<TAccountPayer>;
2901
3020
  market: Address<TAccountMarket>;
2902
3021
  stakeAccount: Address<TAccountStakeAccount>;
2903
3022
  tokenMint: Address<TAccountTokenMint>;
@@ -2928,35 +3047,36 @@ type StakeInput<TAccountSigner extends string = string, TAccountMarket extends s
2928
3047
  authorizedReaderNonce: StakeInstructionDataArgs['authorizedReaderNonce'];
2929
3048
  userPubkey: StakeInstructionDataArgs['userPubkey'];
2930
3049
  };
2931
- declare function getStakeInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenVault extends string, TAccountTokenVaultAta extends string, TAccountTokenProgram extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeInput<TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
3050
+ declare function getStakeInstruction<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenVault extends string, TAccountTokenVaultAta extends string, TAccountTokenProgram extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeInput<TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
2932
3051
  programAddress?: TProgramAddress;
2933
- }): StakeInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>;
3052
+ }): StakeInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>;
2934
3053
  type ParsedStakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2935
3054
  programAddress: Address<TProgram>;
2936
3055
  accounts: {
2937
3056
  signer: TAccountMetas[0];
2938
- market: TAccountMetas[1];
2939
- stakeAccount: TAccountMetas[2];
2940
- tokenMint: TAccountMetas[3];
2941
- signerTokenAccount: TAccountMetas[4];
3057
+ payer: TAccountMetas[1];
3058
+ market: TAccountMetas[2];
3059
+ stakeAccount: TAccountMetas[3];
3060
+ tokenMint: TAccountMetas[4];
3061
+ signerTokenAccount: TAccountMetas[5];
2942
3062
  /** Market's ATA for holding staked tokens */
2943
- marketTokenAta: TAccountMetas[5];
3063
+ marketTokenAta: TAccountMetas[6];
2944
3064
  /** Token vault for fee collection */
2945
- tokenVault: TAccountMetas[6];
3065
+ tokenVault: TAccountMetas[7];
2946
3066
  /** Token vault ATA for fee tokens */
2947
- tokenVaultAta: TAccountMetas[7];
2948
- tokenProgram: TAccountMetas[8];
2949
- signPdaAccount: TAccountMetas[9];
2950
- mxeAccount: TAccountMetas[10];
2951
- mempoolAccount: TAccountMetas[11];
2952
- executingPool: TAccountMetas[12];
2953
- computationAccount: TAccountMetas[13];
2954
- compDefAccount: TAccountMetas[14];
2955
- clusterAccount: TAccountMetas[15];
2956
- poolAccount: TAccountMetas[16];
2957
- clockAccount: TAccountMetas[17];
2958
- systemProgram: TAccountMetas[18];
2959
- arciumProgram: TAccountMetas[19];
3067
+ tokenVaultAta: TAccountMetas[8];
3068
+ tokenProgram: TAccountMetas[9];
3069
+ signPdaAccount: TAccountMetas[10];
3070
+ mxeAccount: TAccountMetas[11];
3071
+ mempoolAccount: TAccountMetas[12];
3072
+ executingPool: TAccountMetas[13];
3073
+ computationAccount: TAccountMetas[14];
3074
+ compDefAccount: TAccountMetas[15];
3075
+ clusterAccount: TAccountMetas[16];
3076
+ poolAccount: TAccountMetas[17];
3077
+ clockAccount: TAccountMetas[18];
3078
+ systemProgram: TAccountMetas[19];
3079
+ arciumProgram: TAccountMetas[20];
2960
3080
  };
2961
3081
  data: StakeInstructionData;
2962
3082
  };
@@ -2972,14 +3092,16 @@ declare function parseStakeInstruction<TProgram extends string, TAccountMetas ex
2972
3092
 
2973
3093
  declare const STAKE_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2974
3094
  declare function getStakeCallbackDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2975
- type StakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountInstructionsSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountStakeAccount extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3095
+ type StakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountInstructionsSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountTokenVault extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2976
3096
  TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
2977
3097
  TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
2978
3098
  TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
2979
3099
  TAccountComputationAccount extends string ? ReadonlyAccount<TAccountComputationAccount> : TAccountComputationAccount,
2980
3100
  TAccountClusterAccount extends string ? ReadonlyAccount<TAccountClusterAccount> : TAccountClusterAccount,
2981
3101
  TAccountInstructionsSysvar extends string ? ReadonlyAccount<TAccountInstructionsSysvar> : TAccountInstructionsSysvar,
3102
+ TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2982
3103
  TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
3104
+ TAccountTokenVault extends string ? WritableAccount<TAccountTokenVault> : TAccountTokenVault,
2983
3105
  ...TRemainingAccounts
2984
3106
  ]>;
2985
3107
  type StakeCallbackInstructionData = {
@@ -3008,19 +3130,21 @@ type StakeCallbackInstructionDataArgs = {
3008
3130
  declare function getStakeCallbackInstructionDataEncoder(): Encoder<StakeCallbackInstructionDataArgs>;
3009
3131
  declare function getStakeCallbackInstructionDataDecoder(): Decoder<StakeCallbackInstructionData>;
3010
3132
  declare function getStakeCallbackInstructionDataCodec(): Codec<StakeCallbackInstructionDataArgs, StakeCallbackInstructionData>;
3011
- type StakeCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountStakeAccount extends string = string> = {
3133
+ type StakeCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenVault extends string = string> = {
3012
3134
  arciumProgram?: Address<TAccountArciumProgram>;
3013
3135
  compDefAccount: Address<TAccountCompDefAccount>;
3014
3136
  mxeAccount: Address<TAccountMxeAccount>;
3015
3137
  computationAccount: Address<TAccountComputationAccount>;
3016
3138
  clusterAccount: Address<TAccountClusterAccount>;
3017
3139
  instructionsSysvar?: Address<TAccountInstructionsSysvar>;
3140
+ market: Address<TAccountMarket>;
3018
3141
  stakeAccount: Address<TAccountStakeAccount>;
3142
+ tokenVault: Address<TAccountTokenVault>;
3019
3143
  output: StakeCallbackInstructionDataArgs['output'];
3020
3144
  };
3021
- declare function getStakeCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountStakeAccount extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountStakeAccount>, config?: {
3145
+ declare function getStakeCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenVault extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountMarket, TAccountStakeAccount, TAccountTokenVault>, config?: {
3022
3146
  programAddress?: TProgramAddress;
3023
- }): StakeCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountStakeAccount>;
3147
+ }): StakeCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountMarket, TAccountStakeAccount, TAccountTokenVault>;
3024
3148
  type ParsedStakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3025
3149
  programAddress: Address<TProgram>;
3026
3150
  accounts: {
@@ -3030,7 +3154,9 @@ type ParsedStakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY
3030
3154
  computationAccount: TAccountMetas[3];
3031
3155
  clusterAccount: TAccountMetas[4];
3032
3156
  instructionsSysvar: TAccountMetas[5];
3033
- stakeAccount: TAccountMetas[6];
3157
+ market: TAccountMetas[6];
3158
+ stakeAccount: TAccountMetas[7];
3159
+ tokenVault: TAccountMetas[8];
3034
3160
  };
3035
3161
  data: StakeCallbackInstructionData;
3036
3162
  };
@@ -3217,12 +3343,14 @@ type UpdateCentralStateInstructionData = {
3217
3343
  minOptionDeposit: bigint;
3218
3344
  protocolFeeBp: number;
3219
3345
  feeRecipient: Address;
3346
+ minimumInitialRevealPeriod: bigint;
3220
3347
  };
3221
3348
  type UpdateCentralStateInstructionDataArgs = {
3222
3349
  earlinessCutoffSeconds: number | bigint;
3223
3350
  minOptionDeposit: number | bigint;
3224
3351
  protocolFeeBp: number;
3225
3352
  feeRecipient: Address;
3353
+ minimumInitialRevealPeriod: number | bigint;
3226
3354
  };
3227
3355
  declare function getUpdateCentralStateInstructionDataEncoder(): FixedSizeEncoder<UpdateCentralStateInstructionDataArgs>;
3228
3356
  declare function getUpdateCentralStateInstructionDataDecoder(): FixedSizeDecoder<UpdateCentralStateInstructionData>;
@@ -3234,6 +3362,7 @@ type UpdateCentralStateAsyncInput<TAccountAuthority extends string = string, TAc
3234
3362
  minOptionDeposit: UpdateCentralStateInstructionDataArgs['minOptionDeposit'];
3235
3363
  protocolFeeBp: UpdateCentralStateInstructionDataArgs['protocolFeeBp'];
3236
3364
  feeRecipient: UpdateCentralStateInstructionDataArgs['feeRecipient'];
3365
+ minimumInitialRevealPeriod: UpdateCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
3237
3366
  };
3238
3367
  declare function getUpdateCentralStateInstructionAsync<TAccountAuthority extends string, TAccountCentralState extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdateCentralStateAsyncInput<TAccountAuthority, TAccountCentralState>, config?: {
3239
3368
  programAddress?: TProgramAddress;
@@ -3245,6 +3374,7 @@ type UpdateCentralStateInput<TAccountAuthority extends string = string, TAccount
3245
3374
  minOptionDeposit: UpdateCentralStateInstructionDataArgs['minOptionDeposit'];
3246
3375
  protocolFeeBp: UpdateCentralStateInstructionDataArgs['protocolFeeBp'];
3247
3376
  feeRecipient: UpdateCentralStateInstructionDataArgs['feeRecipient'];
3377
+ minimumInitialRevealPeriod: UpdateCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
3248
3378
  };
3249
3379
  declare function getUpdateCentralStateInstruction<TAccountAuthority extends string, TAccountCentralState extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdateCentralStateInput<TAccountAuthority, TAccountCentralState>, config?: {
3250
3380
  programAddress?: TProgramAddress;
@@ -3269,9 +3399,10 @@ declare function parseUpdateCentralStateInstruction<TProgram extends string, TAc
3269
3399
 
3270
3400
  declare const WITHDRAW_REWARD_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3271
3401
  declare function getWithdrawRewardDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3272
- type WithdrawRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountRefundTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3273
- TAccountCreator extends string ? ReadonlySignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
3402
+ type WithdrawRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSponsor extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountSponsorAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountRefundTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3403
+ TAccountSponsor extends string ? WritableSignerAccount<TAccountSponsor> & AccountSignerMeta<TAccountSponsor> : TAccountSponsor,
3274
3404
  TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
3405
+ TAccountSponsorAccount extends string ? WritableAccount<TAccountSponsorAccount> : TAccountSponsorAccount,
3275
3406
  TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
3276
3407
  TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
3277
3408
  TAccountRefundTokenAccount extends string ? WritableAccount<TAccountRefundTokenAccount> : TAccountRefundTokenAccount,
@@ -3285,43 +3416,46 @@ type WithdrawRewardInstructionDataArgs = {};
3285
3416
  declare function getWithdrawRewardInstructionDataEncoder(): FixedSizeEncoder<WithdrawRewardInstructionDataArgs>;
3286
3417
  declare function getWithdrawRewardInstructionDataDecoder(): FixedSizeDecoder<WithdrawRewardInstructionData>;
3287
3418
  declare function getWithdrawRewardInstructionDataCodec(): FixedSizeCodec<WithdrawRewardInstructionDataArgs, WithdrawRewardInstructionData>;
3288
- type WithdrawRewardAsyncInput<TAccountCreator extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountRefundTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
3289
- creator: TransactionSigner<TAccountCreator>;
3419
+ type WithdrawRewardAsyncInput<TAccountSponsor extends string = string, TAccountMarket extends string = string, TAccountSponsorAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountRefundTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
3420
+ sponsor: TransactionSigner<TAccountSponsor>;
3290
3421
  market: Address<TAccountMarket>;
3422
+ sponsorAccount?: Address<TAccountSponsorAccount>;
3291
3423
  tokenMint: Address<TAccountTokenMint>;
3292
3424
  /** Market's ATA holding reward tokens */
3293
3425
  marketTokenAta?: Address<TAccountMarketTokenAta>;
3294
- /** Creator-specified destination for refunded reward tokens */
3426
+ /** Sponsor's destination for refunded reward tokens */
3295
3427
  refundTokenAccount: Address<TAccountRefundTokenAccount>;
3296
3428
  tokenProgram: Address<TAccountTokenProgram>;
3297
3429
  };
3298
- declare function getWithdrawRewardInstructionAsync<TAccountCreator extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountRefundTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: WithdrawRewardAsyncInput<TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>, config?: {
3430
+ declare function getWithdrawRewardInstructionAsync<TAccountSponsor extends string, TAccountMarket extends string, TAccountSponsorAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountRefundTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: WithdrawRewardAsyncInput<TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>, config?: {
3299
3431
  programAddress?: TProgramAddress;
3300
- }): Promise<WithdrawRewardInstruction<TProgramAddress, TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>>;
3301
- type WithdrawRewardInput<TAccountCreator extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountRefundTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
3302
- creator: TransactionSigner<TAccountCreator>;
3432
+ }): Promise<WithdrawRewardInstruction<TProgramAddress, TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>>;
3433
+ type WithdrawRewardInput<TAccountSponsor extends string = string, TAccountMarket extends string = string, TAccountSponsorAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountRefundTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
3434
+ sponsor: TransactionSigner<TAccountSponsor>;
3303
3435
  market: Address<TAccountMarket>;
3436
+ sponsorAccount: Address<TAccountSponsorAccount>;
3304
3437
  tokenMint: Address<TAccountTokenMint>;
3305
3438
  /** Market's ATA holding reward tokens */
3306
3439
  marketTokenAta: Address<TAccountMarketTokenAta>;
3307
- /** Creator-specified destination for refunded reward tokens */
3440
+ /** Sponsor's destination for refunded reward tokens */
3308
3441
  refundTokenAccount: Address<TAccountRefundTokenAccount>;
3309
3442
  tokenProgram: Address<TAccountTokenProgram>;
3310
3443
  };
3311
- declare function getWithdrawRewardInstruction<TAccountCreator extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountRefundTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: WithdrawRewardInput<TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>, config?: {
3444
+ declare function getWithdrawRewardInstruction<TAccountSponsor extends string, TAccountMarket extends string, TAccountSponsorAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountRefundTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: WithdrawRewardInput<TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>, config?: {
3312
3445
  programAddress?: TProgramAddress;
3313
- }): WithdrawRewardInstruction<TProgramAddress, TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>;
3446
+ }): WithdrawRewardInstruction<TProgramAddress, TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>;
3314
3447
  type ParsedWithdrawRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3315
3448
  programAddress: Address<TProgram>;
3316
3449
  accounts: {
3317
- creator: TAccountMetas[0];
3450
+ sponsor: TAccountMetas[0];
3318
3451
  market: TAccountMetas[1];
3319
- tokenMint: TAccountMetas[2];
3452
+ sponsorAccount: TAccountMetas[2];
3453
+ tokenMint: TAccountMetas[3];
3320
3454
  /** Market's ATA holding reward tokens */
3321
- marketTokenAta: TAccountMetas[3];
3322
- /** Creator-specified destination for refunded reward tokens */
3323
- refundTokenAccount: TAccountMetas[4];
3324
- tokenProgram: TAccountMetas[5];
3455
+ marketTokenAta: TAccountMetas[4];
3456
+ /** Sponsor's destination for refunded reward tokens */
3457
+ refundTokenAccount: TAccountMetas[5];
3458
+ tokenProgram: TAccountMetas[6];
3325
3459
  };
3326
3460
  data: WithdrawRewardInstructionData;
3327
3461
  };
@@ -3367,13 +3501,13 @@ interface CreateMarketParams extends BaseInstructionParams {
3367
3501
  tokenMint: Address;
3368
3502
  tokenProgram: Address;
3369
3503
  marketIndex: bigint;
3370
- rewardAmount: bigint;
3371
3504
  timeToStake: bigint;
3372
3505
  timeToReveal: bigint;
3373
3506
  marketAuthority: Address | null;
3374
3507
  unstakeDelaySeconds: bigint;
3375
3508
  authorizedReaderPubkey: ByteArray;
3376
3509
  allowClosingEarly: boolean;
3510
+ revealPeriodAuthority: Address;
3377
3511
  }
3378
3512
  declare function createMarket(input: CreateMarketParams): Promise<CreateMarketInstruction<string>>;
3379
3513
 
@@ -3394,6 +3528,7 @@ interface ArciumConfig {
3394
3528
 
3395
3529
  interface StakeParams extends BaseInstructionParams {
3396
3530
  signer: TransactionSigner;
3531
+ payer: TransactionSigner;
3397
3532
  market: Address;
3398
3533
  stakeAccountId: number;
3399
3534
  tokenMint: Address;
@@ -3428,9 +3563,6 @@ declare function addMarketOption(input: AddMarketOptionParams): Promise<AddMarke
3428
3563
  interface OpenMarketParams extends BaseInstructionParams {
3429
3564
  creator: TransactionSigner;
3430
3565
  market: Address;
3431
- tokenMint: Address;
3432
- marketTokenAta: Address;
3433
- tokenProgram: Address;
3434
3566
  openTimestamp: bigint;
3435
3567
  }
3436
3568
  declare function openMarket(input: OpenMarketParams): OpenMarketInstruction<string>;
@@ -3442,22 +3574,22 @@ interface SelectWinningOptionsParams extends BaseInstructionParams {
3442
3574
  }
3443
3575
  declare function selectWinningOptions(input: SelectWinningOptionsParams): SelectWinningOptionsInstruction<string>;
3444
3576
 
3445
- interface ExtendRevealPeriodParams extends BaseInstructionParams {
3577
+ interface EndRevealPeriodParams extends BaseInstructionParams {
3446
3578
  authority: TransactionSigner;
3447
3579
  market: Address;
3448
- newTimeToReveal: bigint;
3449
3580
  }
3450
- declare function extendRevealPeriod(input: ExtendRevealPeriodParams): ExtendRevealPeriodInstruction<string>;
3581
+ declare function endRevealPeriod(input: EndRevealPeriodParams): EndRevealPeriodInstruction<string>;
3451
3582
 
3452
- interface IncreaseRewardPoolParams extends BaseInstructionParams {
3453
- authority: TransactionSigner;
3583
+ interface AddRewardParams extends BaseInstructionParams {
3584
+ sponsor: TransactionSigner;
3454
3585
  market: Address;
3455
3586
  tokenMint: Address;
3456
- marketTokenAta: Address;
3587
+ sponsorTokenAccount: Address;
3457
3588
  tokenProgram: Address;
3458
- newRewardAmount: bigint;
3589
+ amount: bigint;
3590
+ lock: boolean;
3459
3591
  }
3460
- declare function increaseRewardPool(input: IncreaseRewardPoolParams): IncreaseRewardPoolInstruction<string>;
3592
+ declare function addReward(input: AddRewardParams): Promise<AddRewardInstruction<string>>;
3461
3593
 
3462
3594
  interface InitStakeAccountParams extends BaseInstructionParams {
3463
3595
  signer: TransactionSigner;
@@ -3478,6 +3610,16 @@ interface CloseStakeAccountParams extends BaseInstructionParams {
3478
3610
  }
3479
3611
  declare function closeStakeAccount(input: CloseStakeAccountParams): Promise<CloseStakeAccountInstruction<string>>;
3480
3612
 
3613
+ interface CloseStuckStakeAccountParams extends BaseInstructionParams {
3614
+ signer: TransactionSigner;
3615
+ market: Address;
3616
+ tokenMint: Address;
3617
+ signerTokenAccount: Address;
3618
+ tokenProgram: Address;
3619
+ stakeAccountId: number;
3620
+ }
3621
+ declare function closeStuckStakeAccount(input: CloseStuckStakeAccountParams): Promise<CloseStuckStakeAccountInstruction<string>>;
3622
+
3481
3623
  interface ReclaimStakeParams extends BaseInstructionParams {
3482
3624
  signer: TransactionSigner;
3483
3625
  owner: Address;
@@ -3524,11 +3666,12 @@ interface EnsureCentralStateParams extends BaseInstructionParams {
3524
3666
  minOptionDeposit: bigint | number;
3525
3667
  protocolFeeBp: number;
3526
3668
  feeRecipient: Address;
3669
+ minimumInitialRevealPeriod: bigint | number;
3527
3670
  }
3528
3671
  declare function ensureCentralState(rpc: Parameters<typeof fetchMaybeCentralState>[0], params: EnsureCentralStateParams): Promise<Instruction | null>;
3529
3672
 
3530
3673
  interface WithdrawRewardParams extends BaseInstructionParams {
3531
- creator: TransactionSigner;
3674
+ sponsor: TransactionSigner;
3532
3675
  market: Address;
3533
3676
  tokenMint: Address;
3534
3677
  refundTokenAccount: Address;
@@ -3545,6 +3688,9 @@ declare function getOpportunityMarketAddress(creator: Address, marketIndex: bigi
3545
3688
  declare const OPPORTUNITY_MARKET_OPTION_SEED = "option";
3546
3689
  declare function getOpportunityMarketOptionAddress(market: Address, optionId: number | bigint, programId?: Address): Promise<ProgramDerivedAddress>;
3547
3690
 
3691
+ declare const SPONSOR_SEED = "sponsor";
3692
+ declare function getOpportunityMarketSponsorAddress(sponsor: Address, market: Address, programId?: Address): Promise<ProgramDerivedAddress>;
3693
+
3548
3694
  declare const STAKE_ACCOUNT_SEED = "stake_account";
3549
3695
  declare function getStakeAccountAddress(owner: Address, market: Address, stakeAccountId: number, programId?: Address): Promise<ProgramDerivedAddress>;
3550
3696
 
@@ -3599,4 +3745,4 @@ declare function deriveSharedSecret(userSecretKey: Uint8Array, mxePublicKey: Uin
3599
3745
  declare function createCipher(userSecretKey: Uint8Array, mxePublicKey: Uint8Array): RescueCipher;
3600
3746
  declare function nonceToBytes(nonce: bigint): Uint8Array;
3601
3747
 
3602
- export { ADD_MARKET_OPTION_DISCRIMINATOR, 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 ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CENTRAL_STATE_DISCRIMINATOR, CENTRAL_STATE_SEED, CLAIM_FEES_DISCRIMINATOR, CLOCK_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLUSTER_DISCRIMINATOR, COMPUTATION_DEFINITION_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CentralState, type CentralStateArgs, type CircuitSource, type CircuitSourceArgs, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClockAccount, type ClockAccountArgs, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type Cluster, type ClusterArgs, 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, DO_UNSTAKE_EARLY_DISCRIMINATOR, type DoUnstakeEarlyAsyncInput, type DoUnstakeEarlyInput, type DoUnstakeEarlyInstruction, type DoUnstakeEarlyInstructionData, type DoUnstakeEarlyInstructionDataArgs, type DoUnstakeEarlyParams, EXTEND_REVEAL_PERIOD_DISCRIMINATOR, type EnsureCentralStateParams, type Epoch, type EpochArgs, type ExtendRevealPeriodInput, type ExtendRevealPeriodInstruction, type ExtendRevealPeriodInstructionData, type ExtendRevealPeriodInstructionDataArgs, type ExtendRevealPeriodParams, FEE_POOL_DISCRIMINATOR, type FeePool, type FeePoolArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, INCREASE_REWARD_POOL_DISCRIMINATOR, INCREMENT_OPTION_TALLY_DISCRIMINATOR, INIT_CENTRAL_STATE_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, INIT_TOKEN_VAULT_DISCRIMINATOR, type IncreaseRewardPoolAsyncInput, type IncreaseRewardPoolInput, type IncreaseRewardPoolInstruction, type IncreaseRewardPoolInstructionData, type IncreaseRewardPoolInstructionDataArgs, type IncreaseRewardPoolParams, type IncrementOptionTallyAsyncInput, type IncrementOptionTallyInput, type IncrementOptionTallyInstruction, type IncrementOptionTallyInstructionData, type IncrementOptionTallyInstructionDataArgs, type IncrementOptionTallyParams, type InitCentralStateAsyncInput, type InitCentralStateInput, type InitCentralStateInstruction, type InitCentralStateInstructionData, type InitCentralStateInstructionDataArgs, type InitCompDefConfig, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, type InitTokenVaultAsyncInput, type InitTokenVaultInput, type InitTokenVaultInstruction, type InitTokenVaultInstructionData, type InitTokenVaultInstructionDataArgs, type InitTokenVaultParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, M_X_E_ACCOUNT_DISCRIMINATOR, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, 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_PURCHASED, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED, OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET, 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_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_TIMESTAMP, OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT, 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__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED, OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_WITHDRAWN, OPPORTUNITY_MARKET_ERROR__REWARD_AMOUNT_NOT_INCREASED, OPPORTUNITY_MARKET_ERROR__STAKING_NOT_ACTIVE, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET, OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketAsyncInput, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, Output, type OutputArgs, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedClaimFeesInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedDoUnstakeEarlyInstruction, type ParsedExtendRevealPeriodInstruction, type ParsedIncreaseRewardPoolInstruction, type ParsedIncrementOptionTallyInstruction, type ParsedInitCentralStateInstruction, type ParsedInitStakeAccountInstruction, type ParsedInitTokenVaultInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedReclaimStakeInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSelectWinningOptionsInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedTransferCentralStateAuthorityInstruction, type ParsedUnstakeEarlyInstruction, type ParsedUpdateCentralStateInstruction, type ParsedWithdrawRewardInstruction, RECLAIM_STAKE_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ReclaimStakeAsyncInput, type ReclaimStakeInput, type ReclaimStakeInstruction, type ReclaimStakeInstructionData, type ReclaimStakeInstructionDataArgs, type ReclaimStakeParams, type RevealPeriodExtendedEvent, type RevealPeriodExtendedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardClaimedEvent, type RewardClaimedEventArgs, type RewardPoolIncreasedEvent, type RewardPoolIncreasedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, SELECT_WINNING_OPTIONS_DISCRIMINATOR, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SelectWinningOptionsInput, type SelectWinningOptionsInstruction, type SelectWinningOptionsInstructionData, type SelectWinningOptionsInstructionDataArgs, type SelectWinningOptionsParams, type StakeAccount, type StakeAccountArgs, 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 StakeReclaimedEvent, type StakeReclaimedEventArgs, type StakeRevealedError, type StakeRevealedErrorArgs, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedError, type StakedErrorArgs, type StakedEvent, type StakedEventArgs, TOKEN_VAULT_DISCRIMINATOR, TOKEN_VAULT_SEED, TRANSFER_CENTRAL_STATE_AUTHORITY_DISCRIMINATOR, type TallyIncrementedEvent, type TallyIncrementedEventArgs, type Timestamp, type TimestampArgs, type TokenVault, type TokenVaultArgs, type TransferCentralStateAuthorityAsyncInput, type TransferCentralStateAuthorityInput, type TransferCentralStateAuthorityInstruction, type TransferCentralStateAuthorityInstructionData, type TransferCentralStateAuthorityInstructionDataArgs, UNSTAKE_EARLY_DISCRIMINATOR, UPDATE_CENTRAL_STATE_DISCRIMINATOR, type UnstakeEarlyAsyncInput, type UnstakeEarlyInput, type UnstakeEarlyInstruction, type UnstakeEarlyInstructionData, type UnstakeEarlyInstructionDataArgs, type UnstakeEarlyParams, type UnstakeInitiatedEvent, type UnstakeInitiatedEventArgs, type UnstakedEvent, type UnstakedEventArgs, type UpdateCentralStateAsyncInput, type UpdateCentralStateInput, type UpdateCentralStateInstruction, type UpdateCentralStateInstructionData, type UpdateCentralStateInstructionDataArgs, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOption, type WinningOptionArgs, type WinningOptionsSelectedEvent, type WinningOptionsSelectedEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, awaitBatchComputationFinalization, awaitComputationFinalization, circuitSource, closeStakeAccount, createCipher, createMarket, decodeArciumSignerAccount, decodeCentralState, decodeClockAccount, decodeCluster, decodeComputationDefinitionAccount, decodeFeePool, decodeMXEAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeStakeAccount, decodeTokenVault, deriveSharedSecret, deriveX25519KeypairFromSignature, doUnstakeEarly, ensureCentralState, extendRevealPeriod, fetchAllArciumSignerAccount, fetchAllCentralState, fetchAllClockAccount, fetchAllCluster, fetchAllComputationDefinitionAccount, fetchAllFeePool, fetchAllMXEAccount, fetchAllMaybeArciumSignerAccount, fetchAllMaybeCentralState, fetchAllMaybeClockAccount, fetchAllMaybeCluster, fetchAllMaybeComputationDefinitionAccount, fetchAllMaybeFeePool, fetchAllMaybeMXEAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeStakeAccount, fetchAllMaybeTokenVault, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllStakeAccount, fetchAllTokenVault, fetchArciumSignerAccount, fetchCentralState, fetchClockAccount, fetchCluster, fetchComputationDefinitionAccount, fetchFeePool, fetchMXEAccount, fetchMaybeArciumSignerAccount, fetchMaybeCentralState, fetchMaybeClockAccount, fetchMaybeCluster, fetchMaybeComputationDefinitionAccount, fetchMaybeFeePool, fetchMaybeMXEAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeStakeAccount, fetchMaybeTokenVault, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchStakeAccount, fetchTokenVault, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCentralStateAddress, getCentralStateCodec, getCentralStateDecoder, getCentralStateDiscriminatorBytes, getCentralStateEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountDiscriminatorBytes, getClockAccountEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterDiscriminatorBytes, getClusterEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountDiscriminatorBytes, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getDoUnstakeEarlyDiscriminatorBytes, getDoUnstakeEarlyInstruction, getDoUnstakeEarlyInstructionAsync, getDoUnstakeEarlyInstructionDataCodec, getDoUnstakeEarlyInstructionDataDecoder, getDoUnstakeEarlyInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getExtendRevealPeriodDiscriminatorBytes, getExtendRevealPeriodInstruction, getExtendRevealPeriodInstructionDataCodec, getExtendRevealPeriodInstructionDataDecoder, getExtendRevealPeriodInstructionDataEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolDiscriminatorBytes, getFeePoolEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getIncreaseRewardPoolDiscriminatorBytes, getIncreaseRewardPoolInstruction, getIncreaseRewardPoolInstructionAsync, getIncreaseRewardPoolInstructionDataCodec, getIncreaseRewardPoolInstructionDataDecoder, getIncreaseRewardPoolInstructionDataEncoder, getIncrementOptionTallyDiscriminatorBytes, getIncrementOptionTallyInstruction, getIncrementOptionTallyInstructionAsync, getIncrementOptionTallyInstructionDataCodec, getIncrementOptionTallyInstructionDataDecoder, getIncrementOptionTallyInstructionDataEncoder, getInitCentralStateDiscriminatorBytes, getInitCentralStateInstruction, getInitCentralStateInstructionAsync, getInitCentralStateInstructionDataCodec, getInitCentralStateInstructionDataDecoder, getInitCentralStateInstructionDataEncoder, getInitCompDefInstruction, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getInitTokenVaultDiscriminatorBytes, getInitTokenVaultInstruction, getInitTokenVaultInstructionAsync, getInitTokenVaultInstructionDataCodec, getInitTokenVaultInstructionDataDecoder, getInitTokenVaultInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountDiscriminatorBytes, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionAsync, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getReclaimStakeDiscriminatorBytes, getReclaimStakeInstruction, getReclaimStakeInstructionAsync, getReclaimStakeInstructionDataCodec, getReclaimStakeInstructionDataDecoder, getReclaimStakeInstructionDataEncoder, getRevealPeriodExtendedEventCodec, getRevealPeriodExtendedEventDecoder, getRevealPeriodExtendedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardClaimedEventCodec, getRewardClaimedEventDecoder, getRewardClaimedEventEncoder, getRewardPoolIncreasedEventCodec, getRewardPoolIncreasedEventDecoder, getRewardPoolIncreasedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getSelectWinningOptionsDiscriminatorBytes, getSelectWinningOptionsInstruction, getSelectWinningOptionsInstructionDataCodec, getSelectWinningOptionsInstructionDataDecoder, getSelectWinningOptionsInstructionDataEncoder, getStakeAccountAddress, 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, getStakeReclaimedEventCodec, getStakeReclaimedEventDecoder, getStakeReclaimedEventEncoder, getStakeRevealedErrorCodec, getStakeRevealedErrorDecoder, getStakeRevealedErrorEncoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedErrorCodec, getStakedErrorDecoder, getStakedErrorEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getTallyIncrementedEventCodec, getTallyIncrementedEventDecoder, getTallyIncrementedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getTokenVaultAddress, getTokenVaultCodec, getTokenVaultDecoder, getTokenVaultDiscriminatorBytes, getTokenVaultEncoder, getTransferCentralStateAuthorityDiscriminatorBytes, getTransferCentralStateAuthorityInstruction, getTransferCentralStateAuthorityInstructionAsync, getTransferCentralStateAuthorityInstructionDataCodec, getTransferCentralStateAuthorityInstructionDataDecoder, getTransferCentralStateAuthorityInstructionDataEncoder, getUnstakeEarlyDiscriminatorBytes, getUnstakeEarlyInstruction, getUnstakeEarlyInstructionAsync, getUnstakeEarlyInstructionDataCodec, getUnstakeEarlyInstructionDataDecoder, getUnstakeEarlyInstructionDataEncoder, getUnstakeInitiatedEventCodec, getUnstakeInitiatedEventDecoder, getUnstakeInitiatedEventEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateCentralStateDiscriminatorBytes, getUpdateCentralStateInstruction, getUpdateCentralStateInstructionAsync, getUpdateCentralStateInstructionDataCodec, getUpdateCentralStateInstructionDataDecoder, getUpdateCentralStateInstructionDataEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionCodec, getWinningOptionDecoder, getWinningOptionEncoder, getWinningOptionsSelectedEventCodec, getWinningOptionsSelectedEventDecoder, getWinningOptionsSelectedEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, increaseRewardPool, incrementOptionTally, initStakeAccount, initTokenVault, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseClaimFeesInstruction, parseCloseStakeAccountInstruction, parseCreateMarketInstruction, parseDoUnstakeEarlyInstruction, parseExtendRevealPeriodInstruction, parseIncreaseRewardPoolInstruction, parseIncrementOptionTallyInstruction, parseInitCentralStateInstruction, parseInitStakeAccountInstruction, parseInitTokenVaultInstruction, parseOpenMarketInstruction, parseReclaimStakeInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSelectWinningOptionsInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseTransferCentralStateAuthorityInstruction, parseUnstakeEarlyInstruction, parseUpdateCentralStateInstruction, parseWithdrawRewardInstruction, randomComputationOffset, randomStateNonce, reclaimStake, revealStake, selectWinningOptions, stake, toNumberArray, unstakeEarly, withdrawReward };
3748
+ export { ADD_MARKET_OPTION_DISCRIMINATOR, ADD_REWARD_DISCRIMINATOR, 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 ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CENTRAL_STATE_DISCRIMINATOR, CENTRAL_STATE_SEED, CLAIM_FEES_DISCRIMINATOR, CLOCK_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CLUSTER_DISCRIMINATOR, COMPUTATION_DEFINITION_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CentralState, type CentralStateArgs, type CircuitSource, type CircuitSourceArgs, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClockAccount, type ClockAccountArgs, 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 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, DO_UNSTAKE_EARLY_DISCRIMINATOR, type DoUnstakeEarlyAsyncInput, type DoUnstakeEarlyInput, type DoUnstakeEarlyInstruction, type DoUnstakeEarlyInstructionData, type DoUnstakeEarlyInstructionDataArgs, type DoUnstakeEarlyParams, END_REVEAL_PERIOD_DISCRIMINATOR, type EndRevealPeriodInput, type EndRevealPeriodInstruction, type EndRevealPeriodInstructionData, type EndRevealPeriodInstructionDataArgs, type EndRevealPeriodParams, type EnsureCentralStateParams, type Epoch, type EpochArgs, FEE_POOL_DISCRIMINATOR, type FeePool, type FeePoolArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, INCREMENT_OPTION_TALLY_DISCRIMINATOR, INIT_CENTRAL_STATE_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, INIT_TOKEN_VAULT_DISCRIMINATOR, type IncrementOptionTallyAsyncInput, type IncrementOptionTallyInput, type IncrementOptionTallyInstruction, type IncrementOptionTallyInstructionData, type IncrementOptionTallyInstructionDataArgs, type IncrementOptionTallyParams, type InitCentralStateAsyncInput, type InitCentralStateInput, type InitCentralStateInstruction, type InitCentralStateInstructionData, type InitCentralStateInstructionDataArgs, type InitCompDefConfig, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, type InitTokenVaultAsyncInput, type InitTokenVaultInput, type InitTokenVaultInstruction, type InitTokenVaultInstructionData, type InitTokenVaultInstructionDataArgs, type InitTokenVaultParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, M_X_E_ACCOUNT_DISCRIMINATOR, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, 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__CLOSING_EARLY_NOT_ALLOWED, OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET, 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_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_TIMESTAMP, OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT, 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__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__STAKING_NOT_ACTIVE, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET, OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED, 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, Output, type OutputArgs, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimFeesInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedDoUnstakeEarlyInstruction, type ParsedEndRevealPeriodInstruction, type ParsedIncrementOptionTallyInstruction, type ParsedInitCentralStateInstruction, type ParsedInitStakeAccountInstruction, type ParsedInitTokenVaultInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedReclaimStakeInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSelectWinningOptionsInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedTransferCentralStateAuthorityInstruction, type ParsedUnstakeEarlyInstruction, type ParsedUpdateCentralStateInstruction, type ParsedWithdrawRewardInstruction, RECLAIM_STAKE_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ReclaimStakeAsyncInput, type ReclaimStakeInput, type ReclaimStakeInstruction, type ReclaimStakeInstructionData, type ReclaimStakeInstructionDataArgs, type ReclaimStakeParams, type RevealPeriodExtendedEvent, type RevealPeriodExtendedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardClaimedEvent, type RewardClaimedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, SELECT_WINNING_OPTIONS_DISCRIMINATOR, SPONSOR_SEED, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SelectWinningOptionsInput, type SelectWinningOptionsInstruction, type SelectWinningOptionsInstructionData, type SelectWinningOptionsInstructionDataArgs, type SelectWinningOptionsParams, type StakeAccount, type StakeAccountArgs, 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 StakeReclaimedEvent, type StakeReclaimedEventArgs, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, type StuckStakeClosedEvent, type StuckStakeClosedEventArgs, TOKEN_VAULT_DISCRIMINATOR, TOKEN_VAULT_SEED, TRANSFER_CENTRAL_STATE_AUTHORITY_DISCRIMINATOR, type TallyIncrementedEvent, type TallyIncrementedEventArgs, type Timestamp, type TimestampArgs, type TokenVault, type TokenVaultArgs, type TransferCentralStateAuthorityAsyncInput, type TransferCentralStateAuthorityInput, type TransferCentralStateAuthorityInstruction, type TransferCentralStateAuthorityInstructionData, type TransferCentralStateAuthorityInstructionDataArgs, UNSTAKE_EARLY_DISCRIMINATOR, UPDATE_CENTRAL_STATE_DISCRIMINATOR, type UnstakeEarlyAsyncInput, type UnstakeEarlyInput, type UnstakeEarlyInstruction, type UnstakeEarlyInstructionData, type UnstakeEarlyInstructionDataArgs, type UnstakeEarlyParams, type UnstakeInitiatedEvent, type UnstakeInitiatedEventArgs, type UnstakedEvent, type UnstakedEventArgs, type UpdateCentralStateAsyncInput, type UpdateCentralStateInput, type UpdateCentralStateInstruction, type UpdateCentralStateInstructionData, type UpdateCentralStateInstructionDataArgs, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOption, type WinningOptionArgs, type WinningOptionsSelectedEvent, type WinningOptionsSelectedEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, addReward, awaitBatchComputationFinalization, awaitComputationFinalization, circuitSource, closeStakeAccount, closeStuckStakeAccount, createCipher, createMarket, decodeArciumSignerAccount, decodeCentralState, decodeClockAccount, decodeCluster, decodeComputationDefinitionAccount, decodeFeePool, decodeMXEAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodeStakeAccount, decodeTokenVault, deriveSharedSecret, deriveX25519KeypairFromSignature, doUnstakeEarly, endRevealPeriod, ensureCentralState, fetchAllArciumSignerAccount, fetchAllCentralState, fetchAllClockAccount, fetchAllCluster, fetchAllComputationDefinitionAccount, fetchAllFeePool, fetchAllMXEAccount, fetchAllMaybeArciumSignerAccount, fetchAllMaybeCentralState, fetchAllMaybeClockAccount, fetchAllMaybeCluster, fetchAllMaybeComputationDefinitionAccount, fetchAllMaybeFeePool, fetchAllMaybeMXEAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybeStakeAccount, fetchAllMaybeTokenVault, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllStakeAccount, fetchAllTokenVault, fetchArciumSignerAccount, fetchCentralState, fetchClockAccount, fetchCluster, fetchComputationDefinitionAccount, fetchFeePool, fetchMXEAccount, fetchMaybeArciumSignerAccount, fetchMaybeCentralState, fetchMaybeClockAccount, fetchMaybeCluster, fetchMaybeComputationDefinitionAccount, fetchMaybeFeePool, fetchMaybeMXEAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybeStakeAccount, fetchMaybeTokenVault, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchStakeAccount, fetchTokenVault, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getAddRewardDiscriminatorBytes, getAddRewardInstruction, getAddRewardInstructionAsync, getAddRewardInstructionDataCodec, getAddRewardInstructionDataDecoder, getAddRewardInstructionDataEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCentralStateAddress, getCentralStateCodec, getCentralStateDecoder, getCentralStateDiscriminatorBytes, getCentralStateEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountDiscriminatorBytes, getClockAccountEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterDiscriminatorBytes, getClusterEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountDiscriminatorBytes, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getDoUnstakeEarlyDiscriminatorBytes, getDoUnstakeEarlyInstruction, getDoUnstakeEarlyInstructionAsync, getDoUnstakeEarlyInstructionDataCodec, getDoUnstakeEarlyInstructionDataDecoder, getDoUnstakeEarlyInstructionDataEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolDiscriminatorBytes, getFeePoolEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getIncrementOptionTallyDiscriminatorBytes, getIncrementOptionTallyInstruction, getIncrementOptionTallyInstructionAsync, getIncrementOptionTallyInstructionDataCodec, getIncrementOptionTallyInstructionDataDecoder, getIncrementOptionTallyInstructionDataEncoder, getInitCentralStateDiscriminatorBytes, getInitCentralStateInstruction, getInitCentralStateInstructionAsync, getInitCentralStateInstructionDataCodec, getInitCentralStateInstructionDataDecoder, getInitCentralStateInstructionDataEncoder, getInitCompDefInstruction, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getInitTokenVaultDiscriminatorBytes, getInitTokenVaultInstruction, getInitTokenVaultInstructionAsync, getInitTokenVaultInstructionDataCodec, getInitTokenVaultInstructionDataDecoder, getInitTokenVaultInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountDiscriminatorBytes, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, 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, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getReclaimStakeDiscriminatorBytes, getReclaimStakeInstruction, getReclaimStakeInstructionAsync, getReclaimStakeInstructionDataCodec, getReclaimStakeInstructionDataDecoder, getReclaimStakeInstructionDataEncoder, getRevealPeriodExtendedEventCodec, getRevealPeriodExtendedEventDecoder, getRevealPeriodExtendedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardClaimedEventCodec, getRewardClaimedEventDecoder, getRewardClaimedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getSelectWinningOptionsDiscriminatorBytes, getSelectWinningOptionsInstruction, getSelectWinningOptionsInstructionDataCodec, getSelectWinningOptionsInstructionDataDecoder, getSelectWinningOptionsInstructionDataEncoder, getStakeAccountAddress, 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, getStakeReclaimedEventCodec, getStakeReclaimedEventDecoder, getStakeReclaimedEventEncoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTallyIncrementedEventCodec, getTallyIncrementedEventDecoder, getTallyIncrementedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getTokenVaultAddress, getTokenVaultCodec, getTokenVaultDecoder, getTokenVaultDiscriminatorBytes, getTokenVaultEncoder, getTransferCentralStateAuthorityDiscriminatorBytes, getTransferCentralStateAuthorityInstruction, getTransferCentralStateAuthorityInstructionAsync, getTransferCentralStateAuthorityInstructionDataCodec, getTransferCentralStateAuthorityInstructionDataDecoder, getTransferCentralStateAuthorityInstructionDataEncoder, getUnstakeEarlyDiscriminatorBytes, getUnstakeEarlyInstruction, getUnstakeEarlyInstructionAsync, getUnstakeEarlyInstructionDataCodec, getUnstakeEarlyInstructionDataDecoder, getUnstakeEarlyInstructionDataEncoder, getUnstakeInitiatedEventCodec, getUnstakeInitiatedEventDecoder, getUnstakeInitiatedEventEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateCentralStateDiscriminatorBytes, getUpdateCentralStateInstruction, getUpdateCentralStateInstructionAsync, getUpdateCentralStateInstructionDataCodec, getUpdateCentralStateInstructionDataDecoder, getUpdateCentralStateInstructionDataEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionCodec, getWinningOptionDecoder, getWinningOptionEncoder, getWinningOptionsSelectedEventCodec, getWinningOptionsSelectedEventDecoder, getWinningOptionsSelectedEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, incrementOptionTally, initStakeAccount, initTokenVault, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimFeesInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCreateMarketInstruction, parseDoUnstakeEarlyInstruction, parseEndRevealPeriodInstruction, parseIncrementOptionTallyInstruction, parseInitCentralStateInstruction, parseInitStakeAccountInstruction, parseInitTokenVaultInstruction, parseOpenMarketInstruction, parseReclaimStakeInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSelectWinningOptionsInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseTransferCentralStateAuthorityInstruction, parseUnstakeEarlyInstruction, parseUpdateCentralStateInstruction, parseWithdrawRewardInstruction, randomComputationOffset, randomStateNonce, reclaimStake, revealStake, selectWinningOptions, stake, toNumberArray, unstakeEarly, withdrawReward };