@bench.games/opportunity-markets 0.3.3 → 0.3.5
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/browser/index.js +1521 -1501
- package/dist/index.cjs +1466 -1462
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +183 -188
- package/dist/index.d.ts +183 -188
- package/dist/index.js +1521 -1501
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -325,6 +325,36 @@ declare function getComputationSignatureEncoder(): Encoder<ComputationSignatureA
|
|
|
325
325
|
declare function getComputationSignatureDecoder(): Decoder<ComputationSignature>;
|
|
326
326
|
declare function getComputationSignatureCodec(): Codec<ComputationSignatureArgs, ComputationSignature>;
|
|
327
327
|
|
|
328
|
+
/**
|
|
329
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
330
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
331
|
+
* to add features, then rerun Codama to update it.
|
|
332
|
+
*
|
|
333
|
+
* @see https://github.com/codama-idl/codama
|
|
334
|
+
*/
|
|
335
|
+
|
|
336
|
+
type CreateMarketParameters = {
|
|
337
|
+
marketIndex: bigint;
|
|
338
|
+
marketAuthority: Address;
|
|
339
|
+
authorizedReaderPubkey: Array<number>;
|
|
340
|
+
earlinessCutoffSeconds: bigint;
|
|
341
|
+
earlinessMultiplier: number;
|
|
342
|
+
minStakeAmount: bigint;
|
|
343
|
+
creatorFeeClaimer: Address;
|
|
344
|
+
};
|
|
345
|
+
type CreateMarketParametersArgs = {
|
|
346
|
+
marketIndex: number | bigint;
|
|
347
|
+
marketAuthority: Address;
|
|
348
|
+
authorizedReaderPubkey: Array<number>;
|
|
349
|
+
earlinessCutoffSeconds: number | bigint;
|
|
350
|
+
earlinessMultiplier: number;
|
|
351
|
+
minStakeAmount: number | bigint;
|
|
352
|
+
creatorFeeClaimer: Address;
|
|
353
|
+
};
|
|
354
|
+
declare function getCreateMarketParametersEncoder(): FixedSizeEncoder<CreateMarketParametersArgs>;
|
|
355
|
+
declare function getCreateMarketParametersDecoder(): FixedSizeDecoder<CreateMarketParameters>;
|
|
356
|
+
declare function getCreateMarketParametersCodec(): FixedSizeCodec<CreateMarketParametersArgs, CreateMarketParameters>;
|
|
357
|
+
|
|
328
358
|
/**
|
|
329
359
|
* This code was AUTOGENERATED using the Codama library.
|
|
330
360
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -454,6 +484,40 @@ declare function getFeesClaimedEventEncoder(): FixedSizeEncoder<FeesClaimedEvent
|
|
|
454
484
|
declare function getFeesClaimedEventDecoder(): FixedSizeDecoder<FeesClaimedEvent>;
|
|
455
485
|
declare function getFeesClaimedEventCodec(): FixedSizeCodec<FeesClaimedEventArgs, FeesClaimedEvent>;
|
|
456
486
|
|
|
487
|
+
/**
|
|
488
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
489
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
490
|
+
* to add features, then rerun Codama to update it.
|
|
491
|
+
*
|
|
492
|
+
* @see https://github.com/codama-idl/codama
|
|
493
|
+
*/
|
|
494
|
+
|
|
495
|
+
type InitPlatformParameters = {
|
|
496
|
+
name: string;
|
|
497
|
+
platformFeeBp: number;
|
|
498
|
+
rewardPoolFeeBp: number;
|
|
499
|
+
creatorFeeBp: number;
|
|
500
|
+
feeClaimAuthority: Address;
|
|
501
|
+
revealAuthority: Address;
|
|
502
|
+
minTimeToStakeSeconds: bigint;
|
|
503
|
+
revealPeriodSeconds: bigint;
|
|
504
|
+
marketResolutionDeadlineSeconds: bigint;
|
|
505
|
+
};
|
|
506
|
+
type InitPlatformParametersArgs = {
|
|
507
|
+
name: string;
|
|
508
|
+
platformFeeBp: number;
|
|
509
|
+
rewardPoolFeeBp: number;
|
|
510
|
+
creatorFeeBp: number;
|
|
511
|
+
feeClaimAuthority: Address;
|
|
512
|
+
revealAuthority: Address;
|
|
513
|
+
minTimeToStakeSeconds: number | bigint;
|
|
514
|
+
revealPeriodSeconds: number | bigint;
|
|
515
|
+
marketResolutionDeadlineSeconds: number | bigint;
|
|
516
|
+
};
|
|
517
|
+
declare function getInitPlatformParametersEncoder(): Encoder<InitPlatformParametersArgs>;
|
|
518
|
+
declare function getInitPlatformParametersDecoder(): Decoder<InitPlatformParameters>;
|
|
519
|
+
declare function getInitPlatformParametersCodec(): Codec<InitPlatformParametersArgs, InitPlatformParameters>;
|
|
520
|
+
|
|
457
521
|
/**
|
|
458
522
|
* This code was AUTOGENERATED using the Codama library.
|
|
459
523
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -529,13 +593,13 @@ declare function getMarketCreatedEventCodec(): FixedSizeCodec<MarketCreatedEvent
|
|
|
529
593
|
type MarketOpenedEvent = {
|
|
530
594
|
market: Address;
|
|
531
595
|
creator: Address;
|
|
532
|
-
|
|
596
|
+
stakingWindowEnd: bigint;
|
|
533
597
|
timestamp: bigint;
|
|
534
598
|
};
|
|
535
599
|
type MarketOpenedEventArgs = {
|
|
536
600
|
market: Address;
|
|
537
601
|
creator: Address;
|
|
538
|
-
|
|
602
|
+
stakingWindowEnd: number | bigint;
|
|
539
603
|
timestamp: number | bigint;
|
|
540
604
|
};
|
|
541
605
|
declare function getMarketOpenedEventEncoder(): FixedSizeEncoder<MarketOpenedEventArgs>;
|
|
@@ -1022,7 +1086,7 @@ type StakeAccountClosedEvent = {
|
|
|
1022
1086
|
stakeAmount: bigint;
|
|
1023
1087
|
feeRefund: bigint;
|
|
1024
1088
|
stakedAtTimestamp: bigint;
|
|
1025
|
-
|
|
1089
|
+
stakingWindowEnd: bigint;
|
|
1026
1090
|
score: bigint;
|
|
1027
1091
|
timestamp: bigint;
|
|
1028
1092
|
};
|
|
@@ -1035,7 +1099,7 @@ type StakeAccountClosedEventArgs = {
|
|
|
1035
1099
|
stakeAmount: number | bigint;
|
|
1036
1100
|
feeRefund: number | bigint;
|
|
1037
1101
|
stakedAtTimestamp: number | bigint;
|
|
1038
|
-
|
|
1102
|
+
stakingWindowEnd: number | bigint;
|
|
1039
1103
|
score: number | bigint;
|
|
1040
1104
|
timestamp: number | bigint;
|
|
1041
1105
|
};
|
|
@@ -1163,6 +1227,38 @@ declare function getStakeOutputStruct0Encoder(): FixedSizeEncoder<StakeOutputStr
|
|
|
1163
1227
|
declare function getStakeOutputStruct0Decoder(): FixedSizeDecoder<StakeOutputStruct0>;
|
|
1164
1228
|
declare function getStakeOutputStruct0Codec(): FixedSizeCodec<StakeOutputStruct0Args, StakeOutputStruct0>;
|
|
1165
1229
|
|
|
1230
|
+
/**
|
|
1231
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1232
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1233
|
+
* to add features, then rerun Codama to update it.
|
|
1234
|
+
*
|
|
1235
|
+
* @see https://github.com/codama-idl/codama
|
|
1236
|
+
*/
|
|
1237
|
+
|
|
1238
|
+
type StakeParameters = {
|
|
1239
|
+
computationOffset: bigint;
|
|
1240
|
+
stakeAccountId: number;
|
|
1241
|
+
amount: bigint;
|
|
1242
|
+
selectedOptionCiphertext: Array<number>;
|
|
1243
|
+
inputNonce: bigint;
|
|
1244
|
+
authorizedReaderNonce: bigint;
|
|
1245
|
+
userPubkey: Array<number>;
|
|
1246
|
+
stateNonce: bigint;
|
|
1247
|
+
};
|
|
1248
|
+
type StakeParametersArgs = {
|
|
1249
|
+
computationOffset: number | bigint;
|
|
1250
|
+
stakeAccountId: number;
|
|
1251
|
+
amount: number | bigint;
|
|
1252
|
+
selectedOptionCiphertext: Array<number>;
|
|
1253
|
+
inputNonce: number | bigint;
|
|
1254
|
+
authorizedReaderNonce: number | bigint;
|
|
1255
|
+
userPubkey: Array<number>;
|
|
1256
|
+
stateNonce: number | bigint;
|
|
1257
|
+
};
|
|
1258
|
+
declare function getStakeParametersEncoder(): FixedSizeEncoder<StakeParametersArgs>;
|
|
1259
|
+
declare function getStakeParametersDecoder(): FixedSizeDecoder<StakeParameters>;
|
|
1260
|
+
declare function getStakeParametersCodec(): FixedSizeCodec<StakeParametersArgs, StakeParameters>;
|
|
1261
|
+
|
|
1166
1262
|
/**
|
|
1167
1263
|
* This code was AUTOGENERATED using the Codama library.
|
|
1168
1264
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1297,6 +1393,36 @@ declare function getUpdateAuthorityChangedEventEncoder(): FixedSizeEncoder<Updat
|
|
|
1297
1393
|
declare function getUpdateAuthorityChangedEventDecoder(): FixedSizeDecoder<UpdateAuthorityChangedEvent>;
|
|
1298
1394
|
declare function getUpdateAuthorityChangedEventCodec(): FixedSizeCodec<UpdateAuthorityChangedEventArgs, UpdateAuthorityChangedEvent>;
|
|
1299
1395
|
|
|
1396
|
+
/**
|
|
1397
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1398
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1399
|
+
* to add features, then rerun Codama to update it.
|
|
1400
|
+
*
|
|
1401
|
+
* @see https://github.com/codama-idl/codama
|
|
1402
|
+
*/
|
|
1403
|
+
|
|
1404
|
+
type UpdatePlatformParameters = {
|
|
1405
|
+
platformFeeBp: Option<number>;
|
|
1406
|
+
rewardPoolFeeBp: Option<number>;
|
|
1407
|
+
creatorFeeBp: Option<number>;
|
|
1408
|
+
revealAuthority: Option<Address>;
|
|
1409
|
+
minTimeToStakeSeconds: Option<bigint>;
|
|
1410
|
+
revealPeriodSeconds: Option<bigint>;
|
|
1411
|
+
marketResolutionDeadlineSeconds: Option<bigint>;
|
|
1412
|
+
};
|
|
1413
|
+
type UpdatePlatformParametersArgs = {
|
|
1414
|
+
platformFeeBp: OptionOrNullable<number>;
|
|
1415
|
+
rewardPoolFeeBp: OptionOrNullable<number>;
|
|
1416
|
+
creatorFeeBp: OptionOrNullable<number>;
|
|
1417
|
+
revealAuthority: OptionOrNullable<Address>;
|
|
1418
|
+
minTimeToStakeSeconds: OptionOrNullable<number | bigint>;
|
|
1419
|
+
revealPeriodSeconds: OptionOrNullable<number | bigint>;
|
|
1420
|
+
marketResolutionDeadlineSeconds: OptionOrNullable<number | bigint>;
|
|
1421
|
+
};
|
|
1422
|
+
declare function getUpdatePlatformParametersEncoder(): Encoder<UpdatePlatformParametersArgs>;
|
|
1423
|
+
declare function getUpdatePlatformParametersDecoder(): Decoder<UpdatePlatformParameters>;
|
|
1424
|
+
declare function getUpdatePlatformParametersCodec(): Codec<UpdatePlatformParametersArgs, UpdatePlatformParameters>;
|
|
1425
|
+
|
|
1300
1426
|
/**
|
|
1301
1427
|
* This code was AUTOGENERATED using the Codama library.
|
|
1302
1428
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1363,7 +1489,7 @@ type OpportunityMarket = {
|
|
|
1363
1489
|
index: bigint;
|
|
1364
1490
|
totalOptions: bigint;
|
|
1365
1491
|
platform: Address;
|
|
1366
|
-
|
|
1492
|
+
stakingWindowEnd: Option<bigint>;
|
|
1367
1493
|
resolvedAtTimestamp: Option<bigint>;
|
|
1368
1494
|
winningOptionAllocation: number;
|
|
1369
1495
|
winningOptionActiveBp: number;
|
|
@@ -1388,7 +1514,7 @@ type OpportunityMarketArgs = {
|
|
|
1388
1514
|
index: number | bigint;
|
|
1389
1515
|
totalOptions: number | bigint;
|
|
1390
1516
|
platform: Address;
|
|
1391
|
-
|
|
1517
|
+
stakingWindowEnd: OptionOrNullable<number | bigint>;
|
|
1392
1518
|
resolvedAtTimestamp: OptionOrNullable<number | bigint>;
|
|
1393
1519
|
winningOptionAllocation: number;
|
|
1394
1520
|
winningOptionActiveBp: number;
|
|
@@ -1564,11 +1690,10 @@ type StakeAccount = {
|
|
|
1564
1690
|
collectedFees: CollectedFees;
|
|
1565
1691
|
revealedOption: Option<bigint>;
|
|
1566
1692
|
score: Option<bigint>;
|
|
1567
|
-
unstaked: boolean;
|
|
1568
1693
|
rewardsClaimed: boolean;
|
|
1569
1694
|
id: number;
|
|
1570
1695
|
pendingStakeComputation: Option<Address>;
|
|
1571
|
-
|
|
1696
|
+
pendingRevealComputation: Option<Address>;
|
|
1572
1697
|
};
|
|
1573
1698
|
type StakeAccountArgs = {
|
|
1574
1699
|
encryptedOption: Array<number>;
|
|
@@ -1585,11 +1710,10 @@ type StakeAccountArgs = {
|
|
|
1585
1710
|
collectedFees: CollectedFeesArgs;
|
|
1586
1711
|
revealedOption: OptionOrNullable<number | bigint>;
|
|
1587
1712
|
score: OptionOrNullable<number | bigint>;
|
|
1588
|
-
unstaked: boolean;
|
|
1589
1713
|
rewardsClaimed: boolean;
|
|
1590
1714
|
id: number;
|
|
1591
1715
|
pendingStakeComputation: OptionOrNullable<Address>;
|
|
1592
|
-
|
|
1716
|
+
pendingRevealComputation: OptionOrNullable<Address>;
|
|
1593
1717
|
};
|
|
1594
1718
|
declare function getStakeAccountEncoder(): Encoder<StakeAccountArgs>;
|
|
1595
1719
|
declare function getStakeAccountDecoder(): Decoder<StakeAccount>;
|
|
@@ -1609,77 +1733,59 @@ declare function fetchAllMaybeStakeAccount(rpc: Parameters<typeof fetchEncodedAc
|
|
|
1609
1733
|
* @see https://github.com/codama-idl/codama
|
|
1610
1734
|
*/
|
|
1611
1735
|
|
|
1612
|
-
/** AbortedComputation: Computation aborted */
|
|
1613
|
-
declare const OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION = 6000;
|
|
1614
1736
|
/** Unauthorized: Unauthorized */
|
|
1615
|
-
declare const OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED =
|
|
1737
|
+
declare const OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED = 6000;
|
|
1616
1738
|
/** InsufficientBalance: Insufficient balance */
|
|
1617
|
-
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE =
|
|
1739
|
+
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE = 6001;
|
|
1618
1740
|
/** InsufficientRewardFunding: Insufficient reward funding */
|
|
1619
|
-
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING =
|
|
1741
|
+
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING = 6002;
|
|
1620
1742
|
/** InvalidParameters: Invalid parameters */
|
|
1621
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS =
|
|
1622
|
-
/** MarketAlreadyOpen: Market is already open */
|
|
1623
|
-
declare const OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN = 6005;
|
|
1743
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS = 6003;
|
|
1624
1744
|
/** InvalidOptionId: Invalid option ID */
|
|
1625
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID =
|
|
1626
|
-
/** MarketNotOpen: Market is not open */
|
|
1627
|
-
declare const OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN = 6007;
|
|
1628
|
-
/** TimeWindowMismatch: Operation called outside its permitted time window */
|
|
1629
|
-
declare const OPPORTUNITY_MARKET_ERROR__TIME_WINDOW_MISMATCH = 6008;
|
|
1745
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID = 6004;
|
|
1630
1746
|
/** NoStake: Stake account has no recorded stake */
|
|
1631
|
-
declare const OPPORTUNITY_MARKET_ERROR__NO_STAKE =
|
|
1747
|
+
declare const OPPORTUNITY_MARKET_ERROR__NO_STAKE = 6005;
|
|
1632
1748
|
/** WinnerAlreadySelected: Market winner already selected */
|
|
1633
|
-
declare const OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED =
|
|
1749
|
+
declare const OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED = 6006;
|
|
1634
1750
|
/** AlreadyRevealed: Stake already revealed */
|
|
1635
|
-
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED =
|
|
1636
|
-
/** MarketNotResolved: Market not yet resolved */
|
|
1637
|
-
declare const OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED = 6012;
|
|
1751
|
+
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED = 6007;
|
|
1638
1752
|
/** NotRevealed: Stake not yet revealed */
|
|
1639
|
-
declare const OPPORTUNITY_MARKET_ERROR__NOT_REVEALED =
|
|
1753
|
+
declare const OPPORTUNITY_MARKET_ERROR__NOT_REVEALED = 6008;
|
|
1640
1754
|
/** TallyAlreadyIncremented: Tally already incremented for this stake account */
|
|
1641
|
-
declare const OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED =
|
|
1755
|
+
declare const OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED = 6009;
|
|
1642
1756
|
/** Overflow: Arithmetic overflow */
|
|
1643
|
-
declare const OPPORTUNITY_MARKET_ERROR__OVERFLOW =
|
|
1644
|
-
/** RevealPeriodEnded: Reveal period has already ended */
|
|
1645
|
-
declare const OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED = 6016;
|
|
1757
|
+
declare const OPPORTUNITY_MARKET_ERROR__OVERFLOW = 6010;
|
|
1646
1758
|
/** InvalidMint: Token mint does not match account mint */
|
|
1647
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_MINT =
|
|
1759
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_MINT = 6011;
|
|
1648
1760
|
/** AlreadyUnstaked: Already unstaked */
|
|
1649
|
-
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED =
|
|
1761
|
+
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED = 6012;
|
|
1650
1762
|
/** AlreadyStaked: Already staked for this stake account */
|
|
1651
|
-
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED =
|
|
1652
|
-
/** DepositBelowMinimum: Deposit amount below minimum required for option creation */
|
|
1653
|
-
declare const OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM = 6020;
|
|
1654
|
-
/** AddOptionStakeFailed: Add option stake failed: insufficient balance or below minimum deposit */
|
|
1655
|
-
declare const OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED = 6021;
|
|
1763
|
+
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED = 6013;
|
|
1656
1764
|
/** Locked: Account is locked */
|
|
1657
|
-
declare const OPPORTUNITY_MARKET_ERROR__LOCKED =
|
|
1765
|
+
declare const OPPORTUNITY_MARKET_ERROR__LOCKED = 6014;
|
|
1658
1766
|
/** InvalidAccountState: Invalid account state */
|
|
1659
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE =
|
|
1767
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE = 6015;
|
|
1660
1768
|
/** NoFeesToClaim: No fees to claim */
|
|
1661
|
-
declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM =
|
|
1769
|
+
declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM = 6016;
|
|
1662
1770
|
/** StakeNotStuck: Stake account is not in a stuck or failed state */
|
|
1663
|
-
declare const OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK =
|
|
1771
|
+
declare const OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK = 6017;
|
|
1664
1772
|
/** StakeBelowMinimum: Stake amount is below the market minimum */
|
|
1665
|
-
declare const OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM =
|
|
1666
|
-
/** SelectOptionsDeadlinePassed: Deadline for selecting winning options has passed */
|
|
1667
|
-
declare const OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED = 6027;
|
|
1773
|
+
declare const OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM = 6018;
|
|
1668
1774
|
/** InvalidFeeRates: Invalid fee rates */
|
|
1669
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES =
|
|
1775
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES = 6019;
|
|
1670
1776
|
/** OptionStillNeeded: Option still needed */
|
|
1671
|
-
declare const OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED =
|
|
1777
|
+
declare const OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED = 6020;
|
|
1672
1778
|
/** CreatorMismatch: Creator mismatch */
|
|
1673
|
-
declare const OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH =
|
|
1674
|
-
/** RevealPeriodNotOver: Reveal period not over */
|
|
1675
|
-
declare const OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER = 6031;
|
|
1779
|
+
declare const OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH = 6021;
|
|
1676
1780
|
/** NoFinalizedWinningOption: No winning option has a finalized stake */
|
|
1677
|
-
declare const OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION =
|
|
1781
|
+
declare const OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION = 6022;
|
|
1678
1782
|
/** NoRewardToClaim: No reward to claim */
|
|
1679
|
-
declare const OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM =
|
|
1783
|
+
declare const OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6023;
|
|
1680
1784
|
/** RewardAlreadyClaimed: Reward already claimed */
|
|
1681
|
-
declare const OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED =
|
|
1682
|
-
|
|
1785
|
+
declare const OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED = 6024;
|
|
1786
|
+
/** WrongMarketPhase: Operation is not permitted in the current market phase */
|
|
1787
|
+
declare const OPPORTUNITY_MARKET_ERROR__WRONG_MARKET_PHASE = 6025;
|
|
1788
|
+
type OpportunityMarketError = typeof OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED | typeof OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING | typeof OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE | typeof OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES | typeof OPPORTUNITY_MARKET_ERROR__INVALID_MINT | typeof OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID | typeof OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS | typeof OPPORTUNITY_MARKET_ERROR__LOCKED | typeof OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION | typeof OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_STAKE | typeof OPPORTUNITY_MARKET_ERROR__NOT_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED | typeof OPPORTUNITY_MARKET_ERROR__OVERFLOW | typeof OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED | typeof OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK | typeof OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED | typeof OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED | typeof OPPORTUNITY_MARKET_ERROR__WRONG_MARKET_PHASE;
|
|
1683
1789
|
declare function getOpportunityMarketErrorMessage(code: OpportunityMarketError): string;
|
|
1684
1790
|
declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityMarketError>(error: unknown, transactionMessage: {
|
|
1685
1791
|
instructions: Record<number, {
|
|
@@ -1699,7 +1805,7 @@ declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityM
|
|
|
1699
1805
|
* @see https://github.com/codama-idl/codama
|
|
1700
1806
|
*/
|
|
1701
1807
|
|
|
1702
|
-
declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"
|
|
1808
|
+
declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"BENCLZWw5m2xTr3Mtb5nzWMLcBJFw6DNDtNAuhjNPgAe">;
|
|
1703
1809
|
declare enum OpportunityMarketAccount {
|
|
1704
1810
|
AllowedMint = 0,
|
|
1705
1811
|
ArciumSignerAccount = 1,
|
|
@@ -1746,7 +1852,7 @@ declare enum OpportunityMarketInstruction {
|
|
|
1746
1852
|
declare function identifyOpportunityMarketInstruction(instruction: {
|
|
1747
1853
|
data: ReadonlyUint8Array;
|
|
1748
1854
|
} | ReadonlyUint8Array): OpportunityMarketInstruction;
|
|
1749
|
-
type ParsedOpportunityMarketInstruction<TProgram extends string = '
|
|
1855
|
+
type ParsedOpportunityMarketInstruction<TProgram extends string = 'BENCLZWw5m2xTr3Mtb5nzWMLcBJFw6DNDtNAuhjNPgAe'> = ({
|
|
1750
1856
|
instructionType: OpportunityMarketInstruction.AddMarketOption;
|
|
1751
1857
|
} & ParsedAddMarketOptionInstruction<TProgram>) | ({
|
|
1752
1858
|
instructionType: OpportunityMarketInstruction.AddReward;
|
|
@@ -2450,22 +2556,10 @@ type CreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET
|
|
|
2450
2556
|
]>;
|
|
2451
2557
|
type CreateMarketInstructionData = {
|
|
2452
2558
|
discriminator: ReadonlyUint8Array;
|
|
2453
|
-
|
|
2454
|
-
marketAuthority: Address;
|
|
2455
|
-
authorizedReaderPubkey: Array<number>;
|
|
2456
|
-
earlinessCutoffSeconds: bigint;
|
|
2457
|
-
earlinessMultiplier: number;
|
|
2458
|
-
minStakeAmount: bigint;
|
|
2459
|
-
creatorFeeClaimer: Address;
|
|
2559
|
+
params: CreateMarketParameters;
|
|
2460
2560
|
};
|
|
2461
2561
|
type CreateMarketInstructionDataArgs = {
|
|
2462
|
-
|
|
2463
|
-
marketAuthority: Address;
|
|
2464
|
-
authorizedReaderPubkey: Array<number>;
|
|
2465
|
-
earlinessCutoffSeconds: number | bigint;
|
|
2466
|
-
earlinessMultiplier: number;
|
|
2467
|
-
minStakeAmount: number | bigint;
|
|
2468
|
-
creatorFeeClaimer: Address;
|
|
2562
|
+
params: CreateMarketParametersArgs;
|
|
2469
2563
|
};
|
|
2470
2564
|
declare function getCreateMarketInstructionDataEncoder(): FixedSizeEncoder<CreateMarketInstructionDataArgs>;
|
|
2471
2565
|
declare function getCreateMarketInstructionDataDecoder(): FixedSizeDecoder<CreateMarketInstructionData>;
|
|
@@ -2474,20 +2568,14 @@ type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountPla
|
|
|
2474
2568
|
creator: TransactionSigner<TAccountCreator>;
|
|
2475
2569
|
platformConfig: Address<TAccountPlatformConfig>;
|
|
2476
2570
|
tokenMint: Address<TAccountTokenMint>;
|
|
2477
|
-
market
|
|
2571
|
+
market: Address<TAccountMarket>;
|
|
2478
2572
|
/** This ATA holds all of the market's program-held tokens (stakes, rewards, fees). */
|
|
2479
2573
|
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2480
2574
|
allowedMint?: Address<TAccountAllowedMint>;
|
|
2481
2575
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
2482
2576
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2483
2577
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2484
|
-
|
|
2485
|
-
marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
|
|
2486
|
-
authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
|
|
2487
|
-
earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
|
|
2488
|
-
earlinessMultiplier: CreateMarketInstructionDataArgs['earlinessMultiplier'];
|
|
2489
|
-
minStakeAmount: CreateMarketInstructionDataArgs['minStakeAmount'];
|
|
2490
|
-
creatorFeeClaimer: CreateMarketInstructionDataArgs['creatorFeeClaimer'];
|
|
2578
|
+
params: CreateMarketInstructionDataArgs['params'];
|
|
2491
2579
|
};
|
|
2492
2580
|
declare function getCreateMarketInstructionAsync<TAccountCreator extends string, TAccountPlatformConfig extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountAllowedMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketAsyncInput<TAccountCreator, TAccountPlatformConfig, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountAllowedMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2493
2581
|
programAddress?: TProgramAddress;
|
|
@@ -2503,13 +2591,7 @@ type CreateMarketInput<TAccountCreator extends string = string, TAccountPlatform
|
|
|
2503
2591
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
2504
2592
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2505
2593
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2506
|
-
|
|
2507
|
-
marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
|
|
2508
|
-
authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
|
|
2509
|
-
earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
|
|
2510
|
-
earlinessMultiplier: CreateMarketInstructionDataArgs['earlinessMultiplier'];
|
|
2511
|
-
minStakeAmount: CreateMarketInstructionDataArgs['minStakeAmount'];
|
|
2512
|
-
creatorFeeClaimer: CreateMarketInstructionDataArgs['creatorFeeClaimer'];
|
|
2594
|
+
params: CreateMarketInstructionDataArgs['params'];
|
|
2513
2595
|
};
|
|
2514
2596
|
declare function getCreateMarketInstruction<TAccountCreator extends string, TAccountPlatformConfig extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountAllowedMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketInput<TAccountCreator, TAccountPlatformConfig, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountAllowedMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2515
2597
|
programAddress?: TProgramAddress;
|
|
@@ -2721,60 +2803,19 @@ type InitPlatformConfigInstruction<TProgram extends string = typeof OPPORTUNITY_
|
|
|
2721
2803
|
]>;
|
|
2722
2804
|
type InitPlatformConfigInstructionData = {
|
|
2723
2805
|
discriminator: ReadonlyUint8Array;
|
|
2724
|
-
|
|
2725
|
-
platformFeeBp: number;
|
|
2726
|
-
rewardPoolFeeBp: number;
|
|
2727
|
-
creatorFeeBp: number;
|
|
2728
|
-
feeClaimAuthority: Address;
|
|
2729
|
-
revealAuthority: Address;
|
|
2730
|
-
minTimeToStakeSeconds: bigint;
|
|
2731
|
-
revealPeriodSeconds: bigint;
|
|
2732
|
-
marketResolutionDeadlineSeconds: bigint;
|
|
2806
|
+
params: InitPlatformParameters;
|
|
2733
2807
|
};
|
|
2734
2808
|
type InitPlatformConfigInstructionDataArgs = {
|
|
2735
|
-
|
|
2736
|
-
platformFeeBp: number;
|
|
2737
|
-
rewardPoolFeeBp: number;
|
|
2738
|
-
creatorFeeBp: number;
|
|
2739
|
-
feeClaimAuthority: Address;
|
|
2740
|
-
revealAuthority: Address;
|
|
2741
|
-
minTimeToStakeSeconds: number | bigint;
|
|
2742
|
-
revealPeriodSeconds: number | bigint;
|
|
2743
|
-
marketResolutionDeadlineSeconds: number | bigint;
|
|
2809
|
+
params: InitPlatformParametersArgs;
|
|
2744
2810
|
};
|
|
2745
2811
|
declare function getInitPlatformConfigInstructionDataEncoder(): Encoder<InitPlatformConfigInstructionDataArgs>;
|
|
2746
2812
|
declare function getInitPlatformConfigInstructionDataDecoder(): Decoder<InitPlatformConfigInstructionData>;
|
|
2747
2813
|
declare function getInitPlatformConfigInstructionDataCodec(): Codec<InitPlatformConfigInstructionDataArgs, InitPlatformConfigInstructionData>;
|
|
2748
|
-
type InitPlatformConfigAsyncInput<TAccountPayer extends string = string, TAccountPlatformConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2749
|
-
payer: TransactionSigner<TAccountPayer>;
|
|
2750
|
-
platformConfig?: Address<TAccountPlatformConfig>;
|
|
2751
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
2752
|
-
name: InitPlatformConfigInstructionDataArgs['name'];
|
|
2753
|
-
platformFeeBp: InitPlatformConfigInstructionDataArgs['platformFeeBp'];
|
|
2754
|
-
rewardPoolFeeBp: InitPlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
|
|
2755
|
-
creatorFeeBp: InitPlatformConfigInstructionDataArgs['creatorFeeBp'];
|
|
2756
|
-
feeClaimAuthority: InitPlatformConfigInstructionDataArgs['feeClaimAuthority'];
|
|
2757
|
-
revealAuthority: InitPlatformConfigInstructionDataArgs['revealAuthority'];
|
|
2758
|
-
minTimeToStakeSeconds: InitPlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
|
|
2759
|
-
revealPeriodSeconds: InitPlatformConfigInstructionDataArgs['revealPeriodSeconds'];
|
|
2760
|
-
marketResolutionDeadlineSeconds: InitPlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
|
|
2761
|
-
};
|
|
2762
|
-
declare function getInitPlatformConfigInstructionAsync<TAccountPayer extends string, TAccountPlatformConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitPlatformConfigAsyncInput<TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>, config?: {
|
|
2763
|
-
programAddress?: TProgramAddress;
|
|
2764
|
-
}): Promise<InitPlatformConfigInstruction<TProgramAddress, TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>>;
|
|
2765
2814
|
type InitPlatformConfigInput<TAccountPayer extends string = string, TAccountPlatformConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2766
2815
|
payer: TransactionSigner<TAccountPayer>;
|
|
2767
2816
|
platformConfig: Address<TAccountPlatformConfig>;
|
|
2768
2817
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2769
|
-
|
|
2770
|
-
platformFeeBp: InitPlatformConfigInstructionDataArgs['platformFeeBp'];
|
|
2771
|
-
rewardPoolFeeBp: InitPlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
|
|
2772
|
-
creatorFeeBp: InitPlatformConfigInstructionDataArgs['creatorFeeBp'];
|
|
2773
|
-
feeClaimAuthority: InitPlatformConfigInstructionDataArgs['feeClaimAuthority'];
|
|
2774
|
-
revealAuthority: InitPlatformConfigInstructionDataArgs['revealAuthority'];
|
|
2775
|
-
minTimeToStakeSeconds: InitPlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
|
|
2776
|
-
revealPeriodSeconds: InitPlatformConfigInstructionDataArgs['revealPeriodSeconds'];
|
|
2777
|
-
marketResolutionDeadlineSeconds: InitPlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
|
|
2818
|
+
params: InitPlatformConfigInstructionDataArgs['params'];
|
|
2778
2819
|
};
|
|
2779
2820
|
declare function getInitPlatformConfigInstruction<TAccountPayer extends string, TAccountPlatformConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitPlatformConfigInput<TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>, config?: {
|
|
2780
2821
|
programAddress?: TProgramAddress;
|
|
@@ -3353,24 +3394,10 @@ type StakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRA
|
|
|
3353
3394
|
]>;
|
|
3354
3395
|
type StakeInstructionData = {
|
|
3355
3396
|
discriminator: ReadonlyUint8Array;
|
|
3356
|
-
|
|
3357
|
-
stakeAccountId: number;
|
|
3358
|
-
amount: bigint;
|
|
3359
|
-
selectedOptionCiphertext: Array<number>;
|
|
3360
|
-
inputNonce: bigint;
|
|
3361
|
-
authorizedReaderNonce: bigint;
|
|
3362
|
-
userPubkey: Array<number>;
|
|
3363
|
-
stateNonce: bigint;
|
|
3397
|
+
params: StakeParameters;
|
|
3364
3398
|
};
|
|
3365
3399
|
type StakeInstructionDataArgs = {
|
|
3366
|
-
|
|
3367
|
-
stakeAccountId: number;
|
|
3368
|
-
amount: number | bigint;
|
|
3369
|
-
selectedOptionCiphertext: Array<number>;
|
|
3370
|
-
inputNonce: number | bigint;
|
|
3371
|
-
authorizedReaderNonce: number | bigint;
|
|
3372
|
-
userPubkey: Array<number>;
|
|
3373
|
-
stateNonce: number | bigint;
|
|
3400
|
+
params: StakeParametersArgs;
|
|
3374
3401
|
};
|
|
3375
3402
|
declare function getStakeInstructionDataEncoder(): FixedSizeEncoder<StakeInstructionDataArgs>;
|
|
3376
3403
|
declare function getStakeInstructionDataDecoder(): FixedSizeDecoder<StakeInstructionData>;
|
|
@@ -3396,14 +3423,7 @@ type StakeAsyncInput<TAccountSigner extends string = string, TAccountPayer exten
|
|
|
3396
3423
|
clockAccount?: Address<TAccountClockAccount>;
|
|
3397
3424
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
3398
3425
|
arciumProgram?: Address<TAccountArciumProgram>;
|
|
3399
|
-
|
|
3400
|
-
stakeAccountId: StakeInstructionDataArgs['stakeAccountId'];
|
|
3401
|
-
amount: StakeInstructionDataArgs['amount'];
|
|
3402
|
-
selectedOptionCiphertext: StakeInstructionDataArgs['selectedOptionCiphertext'];
|
|
3403
|
-
inputNonce: StakeInstructionDataArgs['inputNonce'];
|
|
3404
|
-
authorizedReaderNonce: StakeInstructionDataArgs['authorizedReaderNonce'];
|
|
3405
|
-
userPubkey: StakeInstructionDataArgs['userPubkey'];
|
|
3406
|
-
stateNonce: StakeInstructionDataArgs['stateNonce'];
|
|
3426
|
+
params: StakeInstructionDataArgs['params'];
|
|
3407
3427
|
};
|
|
3408
3428
|
declare function getStakeInstructionAsync<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta 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, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
3409
3429
|
programAddress?: TProgramAddress;
|
|
@@ -3429,14 +3449,7 @@ type StakeInput<TAccountSigner extends string = string, TAccountPayer extends st
|
|
|
3429
3449
|
clockAccount?: Address<TAccountClockAccount>;
|
|
3430
3450
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
3431
3451
|
arciumProgram?: Address<TAccountArciumProgram>;
|
|
3432
|
-
|
|
3433
|
-
stakeAccountId: StakeInstructionDataArgs['stakeAccountId'];
|
|
3434
|
-
amount: StakeInstructionDataArgs['amount'];
|
|
3435
|
-
selectedOptionCiphertext: StakeInstructionDataArgs['selectedOptionCiphertext'];
|
|
3436
|
-
inputNonce: StakeInstructionDataArgs['inputNonce'];
|
|
3437
|
-
authorizedReaderNonce: StakeInstructionDataArgs['authorizedReaderNonce'];
|
|
3438
|
-
userPubkey: StakeInstructionDataArgs['userPubkey'];
|
|
3439
|
-
stateNonce: StakeInstructionDataArgs['stateNonce'];
|
|
3452
|
+
params: StakeInstructionDataArgs['params'];
|
|
3440
3453
|
};
|
|
3441
3454
|
declare function getStakeInstruction<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta 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, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
3442
3455
|
programAddress?: TProgramAddress;
|
|
@@ -3699,36 +3712,18 @@ type UpdatePlatformConfigInstruction<TProgram extends string = typeof OPPORTUNIT
|
|
|
3699
3712
|
]>;
|
|
3700
3713
|
type UpdatePlatformConfigInstructionData = {
|
|
3701
3714
|
discriminator: ReadonlyUint8Array;
|
|
3702
|
-
|
|
3703
|
-
rewardPoolFeeBp: number;
|
|
3704
|
-
creatorFeeBp: number;
|
|
3705
|
-
revealAuthority: Address;
|
|
3706
|
-
minTimeToStakeSeconds: bigint;
|
|
3707
|
-
revealPeriodSeconds: bigint;
|
|
3708
|
-
marketResolutionDeadlineSeconds: bigint;
|
|
3715
|
+
params: UpdatePlatformParameters;
|
|
3709
3716
|
};
|
|
3710
3717
|
type UpdatePlatformConfigInstructionDataArgs = {
|
|
3711
|
-
|
|
3712
|
-
rewardPoolFeeBp: number;
|
|
3713
|
-
creatorFeeBp: number;
|
|
3714
|
-
revealAuthority: Address;
|
|
3715
|
-
minTimeToStakeSeconds: number | bigint;
|
|
3716
|
-
revealPeriodSeconds: number | bigint;
|
|
3717
|
-
marketResolutionDeadlineSeconds: number | bigint;
|
|
3718
|
+
params: UpdatePlatformParametersArgs;
|
|
3718
3719
|
};
|
|
3719
|
-
declare function getUpdatePlatformConfigInstructionDataEncoder():
|
|
3720
|
-
declare function getUpdatePlatformConfigInstructionDataDecoder():
|
|
3721
|
-
declare function getUpdatePlatformConfigInstructionDataCodec():
|
|
3720
|
+
declare function getUpdatePlatformConfigInstructionDataEncoder(): Encoder<UpdatePlatformConfigInstructionDataArgs>;
|
|
3721
|
+
declare function getUpdatePlatformConfigInstructionDataDecoder(): Decoder<UpdatePlatformConfigInstructionData>;
|
|
3722
|
+
declare function getUpdatePlatformConfigInstructionDataCodec(): Codec<UpdatePlatformConfigInstructionDataArgs, UpdatePlatformConfigInstructionData>;
|
|
3722
3723
|
type UpdatePlatformConfigInput<TAccountUpdateAuthority extends string = string, TAccountPlatformConfig extends string = string> = {
|
|
3723
3724
|
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
3724
3725
|
platformConfig: Address<TAccountPlatformConfig>;
|
|
3725
|
-
|
|
3726
|
-
rewardPoolFeeBp: UpdatePlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
|
|
3727
|
-
creatorFeeBp: UpdatePlatformConfigInstructionDataArgs['creatorFeeBp'];
|
|
3728
|
-
revealAuthority: UpdatePlatformConfigInstructionDataArgs['revealAuthority'];
|
|
3729
|
-
minTimeToStakeSeconds: UpdatePlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
|
|
3730
|
-
revealPeriodSeconds: UpdatePlatformConfigInstructionDataArgs['revealPeriodSeconds'];
|
|
3731
|
-
marketResolutionDeadlineSeconds: UpdatePlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
|
|
3726
|
+
params: UpdatePlatformConfigInstructionDataArgs['params'];
|
|
3732
3727
|
};
|
|
3733
3728
|
declare function getUpdatePlatformConfigInstruction<TAccountUpdateAuthority extends string, TAccountPlatformConfig extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdatePlatformConfigInput<TAccountUpdateAuthority, TAccountPlatformConfig>, config?: {
|
|
3734
3729
|
programAddress?: TProgramAddress;
|
|
@@ -4155,4 +4150,4 @@ declare function deriveSharedSecret(userSecretKey: Uint8Array, mxePublicKey: Uin
|
|
|
4155
4150
|
declare function createCipher(userSecretKey: Uint8Array, mxePublicKey: Uint8Array): RescueCipher;
|
|
4156
4151
|
declare function nonceToBytes(nonce: bigint): Uint8Array;
|
|
4157
4152
|
|
|
4158
|
-
export { ADD_MARKET_OPTION_DISCRIMINATOR, ADD_REWARD_DISCRIMINATOR, ALLOWED_MINT_DISCRIMINATOR, ALLOWED_MINT_SEED, ALL_COMP_DEF_CIRCUITS, ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR, type Activation, type ActivationArgs, type AddMarketOptionAsyncInput, type AddMarketOptionInput, type AddMarketOptionInstruction, type AddMarketOptionInstructionData, type AddMarketOptionInstructionDataArgs, type AddMarketOptionParams, type AddRewardAsyncInput, type AddRewardInput, type AddRewardInstruction, type AddRewardInstructionData, type AddRewardInstructionDataArgs, type AddRewardParams, type AllowedMint, type AllowedMintArgs, type AllowedMintInitializedEvent, type AllowedMintInitializedEventArgs, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CLAIM_CREATOR_FEES_DISCRIMINATOR, CLAIM_FEES_DISCRIMINATOR, CLAIM_REWARDS_DISCRIMINATOR, CLOSE_OPTION_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CircuitSource, type CircuitSourceArgs, type ClaimCreatorFeesAsyncInput, type ClaimCreatorFeesInput, type ClaimCreatorFeesInstruction, type ClaimCreatorFeesInstructionData, type ClaimCreatorFeesInstructionDataArgs, type ClaimCreatorFeesParams, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClaimFeesParams, type ClaimRewardsAsyncInput, type ClaimRewardsInput, type ClaimRewardsInstruction, type ClaimRewardsInstructionData, type ClaimRewardsInstructionDataArgs, type ClaimRewardsParams, type ClockAccount, type ClockAccountArgs, type CloseOptionAccountAsyncInput, type CloseOptionAccountInput, type CloseOptionAccountInstruction, type CloseOptionAccountInstructionData, type CloseOptionAccountInstructionDataArgs, type CloseOptionAccountParams, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type CloseStuckStakeAccountAsyncInput, type CloseStuckStakeAccountInput, type CloseStuckStakeAccountInstruction, type CloseStuckStakeAccountInstructionData, type CloseStuckStakeAccountInstructionDataArgs, type CloseStuckStakeAccountParams, type CloseUnrevealedStakeAccountAsyncInput, type CloseUnrevealedStakeAccountInput, type CloseUnrevealedStakeAccountInstruction, type CloseUnrevealedStakeAccountInstructionData, type CloseUnrevealedStakeAccountInstructionDataArgs, type CloseUnrevealedStakeAccountParams, type Cluster, type ClusterArgs, type CollectedFees, type CollectedFeesArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParams, type CreatePlatformConfigParams, type CreatorFeesClaimedEvent, type CreatorFeesClaimedEventArgs, END_REVEAL_PERIOD_DISCRIMINATOR, type EndRevealPeriodInput, type EndRevealPeriodInstruction, type EndRevealPeriodInstructionData, type EndRevealPeriodInstructionDataArgs, type EndRevealPeriodParams, type Epoch, type EpochArgs, FINALIZE_REVEAL_STAKE_DISCRIMINATOR, type FeeClaimAuthorityChangedEvent, type FeeClaimAuthorityChangedEventArgs, type FeePool, type FeePoolArgs, type FeeRates, type FeeRatesArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, type FinalizeRevealStakeAsyncInput, type FinalizeRevealStakeInput, type FinalizeRevealStakeInstruction, type FinalizeRevealStakeInstructionData, type FinalizeRevealStakeInstructionDataArgs, type FinalizeRevealStakeParams, INIT_ALLOWED_MINT_DISCRIMINATOR, INIT_PLATFORM_CONFIG_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, type InitAllowedMintAsyncInput, type InitAllowedMintInput, type InitAllowedMintInstruction, type InitAllowedMintInstructionData, type InitAllowedMintInstructionDataArgs, type InitAllowedMintParams, type InitCompDefConfig, type InitPlatformConfigAsyncInput, type InitPlatformConfigInput, type InitPlatformConfigInstruction, type InitPlatformConfigInstructionData, type InitPlatformConfigInstructionDataArgs, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, type MarketResolvedEvent, type MarketResolvedEventArgs, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION, OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH, OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING, OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE, OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES, OPPORTUNITY_MARKET_ERROR__INVALID_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS, OPPORTUNITY_MARKET_ERROR__LOCKED, OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED, OPPORTUNITY_MARKET_ERROR__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION, OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_STAKE, OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER, OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED, OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED, OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__TIME_WINDOW_MISMATCH, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, type OpportunityMarketSponsor, type OpportunityMarketSponsorArgs, type OptionClosedEvent, type OptionClosedEventArgs, Output, type OutputArgs, PLATFORM_CONFIG_DISCRIMINATOR, PLATFORM_CONFIG_SEED, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimCreatorFeesInstruction, type ParsedClaimFeesInstruction, type ParsedClaimRewardsInstruction, type ParsedCloseOptionAccountInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCloseUnrevealedStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedEndRevealPeriodInstruction, type ParsedFinalizeRevealStakeInstruction, type ParsedInitAllowedMintInstruction, type ParsedInitPlatformConfigInstruction, type ParsedInitStakeAccountInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedResolveMarketInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSetFeeClaimAuthorityInstruction, type ParsedSetUpdateAuthorityInstruction, type ParsedSetWinningOptionInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedUnstakeInstruction, type ParsedUpdatePlatformConfigInstruction, type ParsedWithdrawRewardInstruction, type PlatformConfig, type PlatformConfigArgs, RESOLVE_MARKET_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ResolveMarketInput, type ResolveMarketInstruction, type ResolveMarketInstructionData, type ResolveMarketInstructionDataArgs, type ResolveMarketParams, type RevealPeriodEndedEvent, type RevealPeriodEndedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeFinalizedEvent, type RevealStakeFinalizedEventArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, type RewardsClaimedEvent, type RewardsClaimedEventArgs, SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR, SET_UPDATE_AUTHORITY_DISCRIMINATOR, SET_WINNING_OPTION_DISCRIMINATOR, SPONSOR_SEED, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SetFeeClaimAuthorityInput, type SetFeeClaimAuthorityInstruction, type SetFeeClaimAuthorityInstructionData, type SetFeeClaimAuthorityInstructionDataArgs, type SetFeeClaimAuthorityParams, type SetUpdateAuthorityInput, type SetUpdateAuthorityInstruction, type SetUpdateAuthorityInstructionData, type SetUpdateAuthorityInstructionDataArgs, type SetUpdateAuthorityParams, type SetWinningOptionAsyncInput, type SetWinningOptionInput, type SetWinningOptionInstruction, type SetWinningOptionInstructionData, type SetWinningOptionInstructionDataArgs, type SetWinningOptionParams, type StakeAccount, type StakeAccountArgs, type StakeAccountClosedEvent, type StakeAccountClosedEventArgs, type StakeAccountInitializedEvent, type StakeAccountInitializedEventArgs, type StakeAsyncInput, type StakeCallbackInput, type StakeCallbackInstruction, type StakeCallbackInstructionData, type StakeCallbackInstructionDataArgs, type StakeCompDefInput, type StakeCompDefInstruction, type StakeCompDefInstructionData, type StakeCompDefInstructionDataArgs, type StakeInput, type StakeInstruction, type StakeInstructionData, type StakeInstructionDataArgs, type StakeOutput, type StakeOutputArgs, type StakeOutputStruct0, type StakeOutputStruct0Args, type StakeParams, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, type StuckStakeClosedEvent, type StuckStakeClosedEventArgs, type Timestamp, type TimestampArgs, UNSTAKE_DISCRIMINATOR, UPDATE_PLATFORM_CONFIG_DISCRIMINATOR, type UnstakeAsyncInput, type UnstakeInput, type UnstakeInstruction, type UnstakeInstructionData, type UnstakeInstructionDataArgs, type UnstakeParams, type UnstakedEvent, type UnstakedEventArgs, type UpdateAuthorityChangedEvent, type UpdateAuthorityChangedEventArgs, type UpdatePlatformConfigInput, type UpdatePlatformConfigInstruction, type UpdatePlatformConfigInstructionData, type UpdatePlatformConfigInstructionDataArgs, type UpdatePlatformConfigParams, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOptionSetEvent, type WinningOptionSetEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, addReward, awaitComputationFinalization, awaitRevealStakeFinalization, awaitStakeFinalization, circuitSource, claimCreatorFees, claimFees, claimRewards, closeOptionAccount, closeStakeAccount, closeStuckStakeAccount, closeUnrevealedStakeAccount, createCipher, createMarket, createPlatformConfig, decodeAllowedMint, decodeArciumSignerAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodePlatformConfig, decodeStakeAccount, deriveSharedSecret, deriveX25519KeypairFromSignature, endRevealPeriod, fetchAllAllowedMint, fetchAllArciumSignerAccount, fetchAllMaybeAllowedMint, fetchAllMaybeArciumSignerAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybePlatformConfig, fetchAllMaybeStakeAccount, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllPlatformConfig, fetchAllStakeAccount, fetchAllowedMint, fetchArciumSignerAccount, fetchMaybeAllowedMint, fetchMaybeArciumSignerAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybePlatformConfig, fetchMaybeStakeAccount, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchPlatformConfig, fetchStakeAccount, finalizeRevealStake, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getAddRewardDiscriminatorBytes, getAddRewardInstruction, getAddRewardInstructionAsync, getAddRewardInstructionDataCodec, getAddRewardInstructionDataDecoder, getAddRewardInstructionDataEncoder, getAllowedMintAddress, getAllowedMintCodec, getAllowedMintDecoder, getAllowedMintDiscriminatorBytes, getAllowedMintEncoder, getAllowedMintInitializedEventCodec, getAllowedMintInitializedEventDecoder, getAllowedMintInitializedEventEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimCreatorFeesDiscriminatorBytes, getClaimCreatorFeesInstruction, getClaimCreatorFeesInstructionAsync, getClaimCreatorFeesInstructionDataCodec, getClaimCreatorFeesInstructionDataDecoder, getClaimCreatorFeesInstructionDataEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClaimRewardsDiscriminatorBytes, getClaimRewardsInstruction, getClaimRewardsInstructionAsync, getClaimRewardsInstructionDataCodec, getClaimRewardsInstructionDataDecoder, getClaimRewardsInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountEncoder, getCloseOptionAccountDiscriminatorBytes, getCloseOptionAccountInstruction, getCloseOptionAccountInstructionAsync, getCloseOptionAccountInstructionDataCodec, getCloseOptionAccountInstructionDataDecoder, getCloseOptionAccountInstructionDataEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getCloseUnrevealedStakeAccountDiscriminatorBytes, getCloseUnrevealedStakeAccountInstruction, getCloseUnrevealedStakeAccountInstructionAsync, getCloseUnrevealedStakeAccountInstructionDataCodec, getCloseUnrevealedStakeAccountInstructionDataDecoder, getCloseUnrevealedStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterEncoder, getCollectedFeesCodec, getCollectedFeesDecoder, getCollectedFeesEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreatorFeesClaimedEventCodec, getCreatorFeesClaimedEventDecoder, getCreatorFeesClaimedEventEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeeClaimAuthorityChangedEventCodec, getFeeClaimAuthorityChangedEventDecoder, getFeeClaimAuthorityChangedEventEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolEncoder, getFeeRatesCodec, getFeeRatesDecoder, getFeeRatesEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getFinalizeRevealStakeDiscriminatorBytes, getFinalizeRevealStakeInstruction, getFinalizeRevealStakeInstructionAsync, getFinalizeRevealStakeInstructionDataCodec, getFinalizeRevealStakeInstructionDataDecoder, getFinalizeRevealStakeInstructionDataEncoder, getInitAllowedMintDiscriminatorBytes, getInitAllowedMintInstruction, getInitAllowedMintInstructionAsync, getInitAllowedMintInstructionDataCodec, getInitAllowedMintInstructionDataDecoder, getInitAllowedMintInstructionDataEncoder, getInitCompDefInstruction, getInitPlatformConfigDiscriminatorBytes, getInitPlatformConfigInstruction, getInitPlatformConfigInstructionAsync, getInitPlatformConfigInstructionDataCodec, getInitPlatformConfigInstructionDataDecoder, getInitPlatformConfigInstructionDataEncoder, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMarketResolvedEventCodec, getMarketResolvedEventDecoder, getMarketResolvedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOpportunityMarketSponsorAddress, getOpportunityMarketSponsorCodec, getOpportunityMarketSponsorDecoder, getOpportunityMarketSponsorDiscriminatorBytes, getOpportunityMarketSponsorEncoder, getOptionClosedEventCodec, getOptionClosedEventDecoder, getOptionClosedEventEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getPlatformConfigAddress, getPlatformConfigCodec, getPlatformConfigDecoder, getPlatformConfigDiscriminatorBytes, getPlatformConfigEncoder, getResolveMarketDiscriminatorBytes, getResolveMarketInstruction, getResolveMarketInstructionDataCodec, getResolveMarketInstructionDataDecoder, getResolveMarketInstructionDataEncoder, getRevealPeriodEndedEventCodec, getRevealPeriodEndedEventDecoder, getRevealPeriodEndedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeFinalizedEventCodec, getRevealStakeFinalizedEventDecoder, getRevealStakeFinalizedEventEncoder, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getRewardsClaimedEventCodec, getRewardsClaimedEventDecoder, getRewardsClaimedEventEncoder, getSetFeeClaimAuthorityDiscriminatorBytes, getSetFeeClaimAuthorityInstruction, getSetFeeClaimAuthorityInstructionDataCodec, getSetFeeClaimAuthorityInstructionDataDecoder, getSetFeeClaimAuthorityInstructionDataEncoder, getSetUpdateAuthorityDiscriminatorBytes, getSetUpdateAuthorityInstruction, getSetUpdateAuthorityInstructionDataCodec, getSetUpdateAuthorityInstructionDataDecoder, getSetUpdateAuthorityInstructionDataEncoder, getSetWinningOptionDiscriminatorBytes, getSetWinningOptionInstruction, getSetWinningOptionInstructionAsync, getSetWinningOptionInstructionDataCodec, getSetWinningOptionInstructionDataDecoder, getSetWinningOptionInstructionDataEncoder, getStakeAccountAddress, getStakeAccountClosedEventCodec, getStakeAccountClosedEventDecoder, getStakeAccountClosedEventEncoder, getStakeAccountCodec, getStakeAccountDecoder, getStakeAccountDiscriminatorBytes, getStakeAccountEncoder, getStakeAccountInitializedEventCodec, getStakeAccountInitializedEventDecoder, getStakeAccountInitializedEventEncoder, getStakeCallbackDiscriminatorBytes, getStakeCallbackInstruction, getStakeCallbackInstructionDataCodec, getStakeCallbackInstructionDataDecoder, getStakeCallbackInstructionDataEncoder, getStakeCompDefDiscriminatorBytes, getStakeCompDefInstruction, getStakeCompDefInstructionDataCodec, getStakeCompDefInstructionDataDecoder, getStakeCompDefInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getStakeOutputCodec, getStakeOutputDecoder, getStakeOutputEncoder, getStakeOutputStruct0Codec, getStakeOutputStruct0Decoder, getStakeOutputStruct0Encoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getUnstakeDiscriminatorBytes, getUnstakeInstruction, getUnstakeInstructionAsync, getUnstakeInstructionDataCodec, getUnstakeInstructionDataDecoder, getUnstakeInstructionDataEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateAuthorityChangedEventCodec, getUpdateAuthorityChangedEventDecoder, getUpdateAuthorityChangedEventEncoder, getUpdatePlatformConfigDiscriminatorBytes, getUpdatePlatformConfigInstruction, getUpdatePlatformConfigInstructionDataCodec, getUpdatePlatformConfigInstructionDataDecoder, getUpdatePlatformConfigInstructionDataEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionSetEventCodec, getWinningOptionSetEventDecoder, getWinningOptionSetEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, initAllowedMint, initStakeAccount, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimCreatorFeesInstruction, parseClaimFeesInstruction, parseClaimRewardsInstruction, parseCloseOptionAccountInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCloseUnrevealedStakeAccountInstruction, parseCreateMarketInstruction, parseEndRevealPeriodInstruction, parseFinalizeRevealStakeInstruction, parseInitAllowedMintInstruction, parseInitPlatformConfigInstruction, parseInitStakeAccountInstruction, parseOpenMarketInstruction, parseResolveMarketInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSetFeeClaimAuthorityInstruction, parseSetUpdateAuthorityInstruction, parseSetWinningOptionInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseUnstakeInstruction, parseUpdatePlatformConfigInstruction, parseWithdrawRewardInstruction, randomComputationOffset, randomStateNonce, resolveMarket, revealStake, setFeeClaimAuthority, setUpdateAuthority, setWinningOption, stake, toNumberArray, unstake, updatePlatformConfig, withdrawReward };
|
|
4153
|
+
export { ADD_MARKET_OPTION_DISCRIMINATOR, ADD_REWARD_DISCRIMINATOR, ALLOWED_MINT_DISCRIMINATOR, ALLOWED_MINT_SEED, ALL_COMP_DEF_CIRCUITS, ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR, type Activation, type ActivationArgs, type AddMarketOptionAsyncInput, type AddMarketOptionInput, type AddMarketOptionInstruction, type AddMarketOptionInstructionData, type AddMarketOptionInstructionDataArgs, type AddMarketOptionParams, type AddRewardAsyncInput, type AddRewardInput, type AddRewardInstruction, type AddRewardInstructionData, type AddRewardInstructionDataArgs, type AddRewardParams, type AllowedMint, type AllowedMintArgs, type AllowedMintInitializedEvent, type AllowedMintInitializedEventArgs, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CLAIM_CREATOR_FEES_DISCRIMINATOR, CLAIM_FEES_DISCRIMINATOR, CLAIM_REWARDS_DISCRIMINATOR, CLOSE_OPTION_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CircuitSource, type CircuitSourceArgs, type ClaimCreatorFeesAsyncInput, type ClaimCreatorFeesInput, type ClaimCreatorFeesInstruction, type ClaimCreatorFeesInstructionData, type ClaimCreatorFeesInstructionDataArgs, type ClaimCreatorFeesParams, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClaimFeesParams, type ClaimRewardsAsyncInput, type ClaimRewardsInput, type ClaimRewardsInstruction, type ClaimRewardsInstructionData, type ClaimRewardsInstructionDataArgs, type ClaimRewardsParams, type ClockAccount, type ClockAccountArgs, type CloseOptionAccountAsyncInput, type CloseOptionAccountInput, type CloseOptionAccountInstruction, type CloseOptionAccountInstructionData, type CloseOptionAccountInstructionDataArgs, type CloseOptionAccountParams, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type CloseStuckStakeAccountAsyncInput, type CloseStuckStakeAccountInput, type CloseStuckStakeAccountInstruction, type CloseStuckStakeAccountInstructionData, type CloseStuckStakeAccountInstructionDataArgs, type CloseStuckStakeAccountParams, type CloseUnrevealedStakeAccountAsyncInput, type CloseUnrevealedStakeAccountInput, type CloseUnrevealedStakeAccountInstruction, type CloseUnrevealedStakeAccountInstructionData, type CloseUnrevealedStakeAccountInstructionDataArgs, type CloseUnrevealedStakeAccountParams, type Cluster, type ClusterArgs, type CollectedFees, type CollectedFeesArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParameters, type CreateMarketParametersArgs, type CreateMarketParams, type CreatePlatformConfigParams, type CreatorFeesClaimedEvent, type CreatorFeesClaimedEventArgs, END_REVEAL_PERIOD_DISCRIMINATOR, type EndRevealPeriodInput, type EndRevealPeriodInstruction, type EndRevealPeriodInstructionData, type EndRevealPeriodInstructionDataArgs, type EndRevealPeriodParams, type Epoch, type EpochArgs, FINALIZE_REVEAL_STAKE_DISCRIMINATOR, type FeeClaimAuthorityChangedEvent, type FeeClaimAuthorityChangedEventArgs, type FeePool, type FeePoolArgs, type FeeRates, type FeeRatesArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, type FinalizeRevealStakeAsyncInput, type FinalizeRevealStakeInput, type FinalizeRevealStakeInstruction, type FinalizeRevealStakeInstructionData, type FinalizeRevealStakeInstructionDataArgs, type FinalizeRevealStakeParams, INIT_ALLOWED_MINT_DISCRIMINATOR, INIT_PLATFORM_CONFIG_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, type InitAllowedMintAsyncInput, type InitAllowedMintInput, type InitAllowedMintInstruction, type InitAllowedMintInstructionData, type InitAllowedMintInstructionDataArgs, type InitAllowedMintParams, type InitCompDefConfig, type InitPlatformConfigInput, type InitPlatformConfigInstruction, type InitPlatformConfigInstructionData, type InitPlatformConfigInstructionDataArgs, type InitPlatformParameters, type InitPlatformParametersArgs, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, type MarketResolvedEvent, type MarketResolvedEventArgs, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING, OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE, OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES, OPPORTUNITY_MARKET_ERROR__INVALID_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS, OPPORTUNITY_MARKET_ERROR__LOCKED, OPPORTUNITY_MARKET_ERROR__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION, OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_STAKE, OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED, OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_ERROR__WRONG_MARKET_PHASE, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, type OpportunityMarketSponsor, type OpportunityMarketSponsorArgs, type OptionClosedEvent, type OptionClosedEventArgs, Output, type OutputArgs, PLATFORM_CONFIG_DISCRIMINATOR, PLATFORM_CONFIG_SEED, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimCreatorFeesInstruction, type ParsedClaimFeesInstruction, type ParsedClaimRewardsInstruction, type ParsedCloseOptionAccountInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCloseUnrevealedStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedEndRevealPeriodInstruction, type ParsedFinalizeRevealStakeInstruction, type ParsedInitAllowedMintInstruction, type ParsedInitPlatformConfigInstruction, type ParsedInitStakeAccountInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedResolveMarketInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSetFeeClaimAuthorityInstruction, type ParsedSetUpdateAuthorityInstruction, type ParsedSetWinningOptionInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedUnstakeInstruction, type ParsedUpdatePlatformConfigInstruction, type ParsedWithdrawRewardInstruction, type PlatformConfig, type PlatformConfigArgs, RESOLVE_MARKET_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ResolveMarketInput, type ResolveMarketInstruction, type ResolveMarketInstructionData, type ResolveMarketInstructionDataArgs, type ResolveMarketParams, type RevealPeriodEndedEvent, type RevealPeriodEndedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeFinalizedEvent, type RevealStakeFinalizedEventArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, type RewardsClaimedEvent, type RewardsClaimedEventArgs, SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR, SET_UPDATE_AUTHORITY_DISCRIMINATOR, SET_WINNING_OPTION_DISCRIMINATOR, SPONSOR_SEED, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SetFeeClaimAuthorityInput, type SetFeeClaimAuthorityInstruction, type SetFeeClaimAuthorityInstructionData, type SetFeeClaimAuthorityInstructionDataArgs, type SetFeeClaimAuthorityParams, type SetUpdateAuthorityInput, type SetUpdateAuthorityInstruction, type SetUpdateAuthorityInstructionData, type SetUpdateAuthorityInstructionDataArgs, type SetUpdateAuthorityParams, type SetWinningOptionAsyncInput, type SetWinningOptionInput, type SetWinningOptionInstruction, type SetWinningOptionInstructionData, type SetWinningOptionInstructionDataArgs, type SetWinningOptionParams, type StakeAccount, type StakeAccountArgs, type StakeAccountClosedEvent, type StakeAccountClosedEventArgs, type StakeAccountInitializedEvent, type StakeAccountInitializedEventArgs, type StakeAsyncInput, type StakeCallbackInput, type StakeCallbackInstruction, type StakeCallbackInstructionData, type StakeCallbackInstructionDataArgs, type StakeCompDefInput, type StakeCompDefInstruction, type StakeCompDefInstructionData, type StakeCompDefInstructionDataArgs, type StakeInput, type StakeInstruction, type StakeInstructionData, type StakeInstructionDataArgs, type StakeOutput, type StakeOutputArgs, type StakeOutputStruct0, type StakeOutputStruct0Args, type StakeParameters, type StakeParametersArgs, type StakeParams, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, type StuckStakeClosedEvent, type StuckStakeClosedEventArgs, type Timestamp, type TimestampArgs, UNSTAKE_DISCRIMINATOR, UPDATE_PLATFORM_CONFIG_DISCRIMINATOR, type UnstakeAsyncInput, type UnstakeInput, type UnstakeInstruction, type UnstakeInstructionData, type UnstakeInstructionDataArgs, type UnstakeParams, type UnstakedEvent, type UnstakedEventArgs, type UpdateAuthorityChangedEvent, type UpdateAuthorityChangedEventArgs, type UpdatePlatformConfigInput, type UpdatePlatformConfigInstruction, type UpdatePlatformConfigInstructionData, type UpdatePlatformConfigInstructionDataArgs, type UpdatePlatformConfigParams, type UpdatePlatformParameters, type UpdatePlatformParametersArgs, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOptionSetEvent, type WinningOptionSetEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, addReward, awaitComputationFinalization, awaitRevealStakeFinalization, awaitStakeFinalization, circuitSource, claimCreatorFees, claimFees, claimRewards, closeOptionAccount, closeStakeAccount, closeStuckStakeAccount, closeUnrevealedStakeAccount, createCipher, createMarket, createPlatformConfig, decodeAllowedMint, decodeArciumSignerAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodePlatformConfig, decodeStakeAccount, deriveSharedSecret, deriveX25519KeypairFromSignature, endRevealPeriod, fetchAllAllowedMint, fetchAllArciumSignerAccount, fetchAllMaybeAllowedMint, fetchAllMaybeArciumSignerAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybePlatformConfig, fetchAllMaybeStakeAccount, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllPlatformConfig, fetchAllStakeAccount, fetchAllowedMint, fetchArciumSignerAccount, fetchMaybeAllowedMint, fetchMaybeArciumSignerAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybePlatformConfig, fetchMaybeStakeAccount, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchPlatformConfig, fetchStakeAccount, finalizeRevealStake, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getAddRewardDiscriminatorBytes, getAddRewardInstruction, getAddRewardInstructionAsync, getAddRewardInstructionDataCodec, getAddRewardInstructionDataDecoder, getAddRewardInstructionDataEncoder, getAllowedMintAddress, getAllowedMintCodec, getAllowedMintDecoder, getAllowedMintDiscriminatorBytes, getAllowedMintEncoder, getAllowedMintInitializedEventCodec, getAllowedMintInitializedEventDecoder, getAllowedMintInitializedEventEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimCreatorFeesDiscriminatorBytes, getClaimCreatorFeesInstruction, getClaimCreatorFeesInstructionAsync, getClaimCreatorFeesInstructionDataCodec, getClaimCreatorFeesInstructionDataDecoder, getClaimCreatorFeesInstructionDataEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClaimRewardsDiscriminatorBytes, getClaimRewardsInstruction, getClaimRewardsInstructionAsync, getClaimRewardsInstructionDataCodec, getClaimRewardsInstructionDataDecoder, getClaimRewardsInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountEncoder, getCloseOptionAccountDiscriminatorBytes, getCloseOptionAccountInstruction, getCloseOptionAccountInstructionAsync, getCloseOptionAccountInstructionDataCodec, getCloseOptionAccountInstructionDataDecoder, getCloseOptionAccountInstructionDataEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getCloseUnrevealedStakeAccountDiscriminatorBytes, getCloseUnrevealedStakeAccountInstruction, getCloseUnrevealedStakeAccountInstructionAsync, getCloseUnrevealedStakeAccountInstructionDataCodec, getCloseUnrevealedStakeAccountInstructionDataDecoder, getCloseUnrevealedStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterEncoder, getCollectedFeesCodec, getCollectedFeesDecoder, getCollectedFeesEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreateMarketParametersCodec, getCreateMarketParametersDecoder, getCreateMarketParametersEncoder, getCreatorFeesClaimedEventCodec, getCreatorFeesClaimedEventDecoder, getCreatorFeesClaimedEventEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeeClaimAuthorityChangedEventCodec, getFeeClaimAuthorityChangedEventDecoder, getFeeClaimAuthorityChangedEventEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolEncoder, getFeeRatesCodec, getFeeRatesDecoder, getFeeRatesEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getFinalizeRevealStakeDiscriminatorBytes, getFinalizeRevealStakeInstruction, getFinalizeRevealStakeInstructionAsync, getFinalizeRevealStakeInstructionDataCodec, getFinalizeRevealStakeInstructionDataDecoder, getFinalizeRevealStakeInstructionDataEncoder, getInitAllowedMintDiscriminatorBytes, getInitAllowedMintInstruction, getInitAllowedMintInstructionAsync, getInitAllowedMintInstructionDataCodec, getInitAllowedMintInstructionDataDecoder, getInitAllowedMintInstructionDataEncoder, getInitCompDefInstruction, getInitPlatformConfigDiscriminatorBytes, getInitPlatformConfigInstruction, getInitPlatformConfigInstructionDataCodec, getInitPlatformConfigInstructionDataDecoder, getInitPlatformConfigInstructionDataEncoder, getInitPlatformParametersCodec, getInitPlatformParametersDecoder, getInitPlatformParametersEncoder, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMarketResolvedEventCodec, getMarketResolvedEventDecoder, getMarketResolvedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOpportunityMarketSponsorAddress, getOpportunityMarketSponsorCodec, getOpportunityMarketSponsorDecoder, getOpportunityMarketSponsorDiscriminatorBytes, getOpportunityMarketSponsorEncoder, getOptionClosedEventCodec, getOptionClosedEventDecoder, getOptionClosedEventEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getPlatformConfigAddress, getPlatformConfigCodec, getPlatformConfigDecoder, getPlatformConfigDiscriminatorBytes, getPlatformConfigEncoder, getResolveMarketDiscriminatorBytes, getResolveMarketInstruction, getResolveMarketInstructionDataCodec, getResolveMarketInstructionDataDecoder, getResolveMarketInstructionDataEncoder, getRevealPeriodEndedEventCodec, getRevealPeriodEndedEventDecoder, getRevealPeriodEndedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeFinalizedEventCodec, getRevealStakeFinalizedEventDecoder, getRevealStakeFinalizedEventEncoder, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getRewardsClaimedEventCodec, getRewardsClaimedEventDecoder, getRewardsClaimedEventEncoder, getSetFeeClaimAuthorityDiscriminatorBytes, getSetFeeClaimAuthorityInstruction, getSetFeeClaimAuthorityInstructionDataCodec, getSetFeeClaimAuthorityInstructionDataDecoder, getSetFeeClaimAuthorityInstructionDataEncoder, getSetUpdateAuthorityDiscriminatorBytes, getSetUpdateAuthorityInstruction, getSetUpdateAuthorityInstructionDataCodec, getSetUpdateAuthorityInstructionDataDecoder, getSetUpdateAuthorityInstructionDataEncoder, getSetWinningOptionDiscriminatorBytes, getSetWinningOptionInstruction, getSetWinningOptionInstructionAsync, getSetWinningOptionInstructionDataCodec, getSetWinningOptionInstructionDataDecoder, getSetWinningOptionInstructionDataEncoder, getStakeAccountAddress, getStakeAccountClosedEventCodec, getStakeAccountClosedEventDecoder, getStakeAccountClosedEventEncoder, getStakeAccountCodec, getStakeAccountDecoder, getStakeAccountDiscriminatorBytes, getStakeAccountEncoder, getStakeAccountInitializedEventCodec, getStakeAccountInitializedEventDecoder, getStakeAccountInitializedEventEncoder, getStakeCallbackDiscriminatorBytes, getStakeCallbackInstruction, getStakeCallbackInstructionDataCodec, getStakeCallbackInstructionDataDecoder, getStakeCallbackInstructionDataEncoder, getStakeCompDefDiscriminatorBytes, getStakeCompDefInstruction, getStakeCompDefInstructionDataCodec, getStakeCompDefInstructionDataDecoder, getStakeCompDefInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getStakeOutputCodec, getStakeOutputDecoder, getStakeOutputEncoder, getStakeOutputStruct0Codec, getStakeOutputStruct0Decoder, getStakeOutputStruct0Encoder, getStakeParametersCodec, getStakeParametersDecoder, getStakeParametersEncoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getUnstakeDiscriminatorBytes, getUnstakeInstruction, getUnstakeInstructionAsync, getUnstakeInstructionDataCodec, getUnstakeInstructionDataDecoder, getUnstakeInstructionDataEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateAuthorityChangedEventCodec, getUpdateAuthorityChangedEventDecoder, getUpdateAuthorityChangedEventEncoder, getUpdatePlatformConfigDiscriminatorBytes, getUpdatePlatformConfigInstruction, getUpdatePlatformConfigInstructionDataCodec, getUpdatePlatformConfigInstructionDataDecoder, getUpdatePlatformConfigInstructionDataEncoder, getUpdatePlatformParametersCodec, getUpdatePlatformParametersDecoder, getUpdatePlatformParametersEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionSetEventCodec, getWinningOptionSetEventDecoder, getWinningOptionSetEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, initAllowedMint, initStakeAccount, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimCreatorFeesInstruction, parseClaimFeesInstruction, parseClaimRewardsInstruction, parseCloseOptionAccountInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCloseUnrevealedStakeAccountInstruction, parseCreateMarketInstruction, parseEndRevealPeriodInstruction, parseFinalizeRevealStakeInstruction, parseInitAllowedMintInstruction, parseInitPlatformConfigInstruction, parseInitStakeAccountInstruction, parseOpenMarketInstruction, parseResolveMarketInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSetFeeClaimAuthorityInstruction, parseSetUpdateAuthorityInstruction, parseSetWinningOptionInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseUnstakeInstruction, parseUpdatePlatformConfigInstruction, parseWithdrawRewardInstruction, randomComputationOffset, randomStateNonce, resolveMarket, revealStake, setFeeClaimAuthority, setUpdateAuthority, setWinningOption, stake, toNumberArray, unstake, updatePlatformConfig, withdrawReward };
|