@bench.games/opportunity-markets 0.2.8 → 0.2.11
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 +1435 -1168
- package/dist/index.cjs +1518 -1267
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +202 -72
- package/dist/index.d.ts +202 -72
- package/dist/index.js +1435 -1168
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -42,23 +42,17 @@ declare function getCentralStateDiscriminatorBytes(): ReadonlyUint8Array<ArrayBu
|
|
|
42
42
|
type CentralState = {
|
|
43
43
|
discriminator: ReadonlyUint8Array;
|
|
44
44
|
bump: number;
|
|
45
|
-
earlinessCutoffSeconds: bigint;
|
|
46
45
|
authority: Address;
|
|
47
|
-
minOptionDeposit: bigint;
|
|
48
46
|
protocolFeeBp: number;
|
|
49
47
|
feeRecipient: Address;
|
|
50
|
-
minimumInitialRevealPeriod: bigint;
|
|
51
48
|
/** Reserved for future use */
|
|
52
49
|
reserved: Array<number>;
|
|
53
50
|
};
|
|
54
51
|
type CentralStateArgs = {
|
|
55
52
|
bump: number;
|
|
56
|
-
earlinessCutoffSeconds: number | bigint;
|
|
57
53
|
authority: Address;
|
|
58
|
-
minOptionDeposit: number | bigint;
|
|
59
54
|
protocolFeeBp: number;
|
|
60
55
|
feeRecipient: Address;
|
|
61
|
-
minimumInitialRevealPeriod: number | bigint;
|
|
62
56
|
/** Reserved for future use */
|
|
63
57
|
reserved: Array<number>;
|
|
64
58
|
};
|
|
@@ -335,6 +329,46 @@ declare function getMarketOptionCreatedEventEncoder(): FixedSizeEncoder<MarketOp
|
|
|
335
329
|
declare function getMarketOptionCreatedEventDecoder(): FixedSizeDecoder<MarketOptionCreatedEvent>;
|
|
336
330
|
declare function getMarketOptionCreatedEventCodec(): FixedSizeCodec<MarketOptionCreatedEventArgs, MarketOptionCreatedEvent>;
|
|
337
331
|
|
|
332
|
+
/**
|
|
333
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
334
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
335
|
+
* to add features, then rerun Codama to update it.
|
|
336
|
+
*
|
|
337
|
+
* @see https://github.com/codama-idl/codama
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
type MarketPausedEvent = {
|
|
341
|
+
market: Address;
|
|
342
|
+
timestamp: bigint;
|
|
343
|
+
};
|
|
344
|
+
type MarketPausedEventArgs = {
|
|
345
|
+
market: Address;
|
|
346
|
+
timestamp: number | bigint;
|
|
347
|
+
};
|
|
348
|
+
declare function getMarketPausedEventEncoder(): FixedSizeEncoder<MarketPausedEventArgs>;
|
|
349
|
+
declare function getMarketPausedEventDecoder(): FixedSizeDecoder<MarketPausedEvent>;
|
|
350
|
+
declare function getMarketPausedEventCodec(): FixedSizeCodec<MarketPausedEventArgs, MarketPausedEvent>;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
354
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
355
|
+
* to add features, then rerun Codama to update it.
|
|
356
|
+
*
|
|
357
|
+
* @see https://github.com/codama-idl/codama
|
|
358
|
+
*/
|
|
359
|
+
|
|
360
|
+
type MarketResumedEvent = {
|
|
361
|
+
market: Address;
|
|
362
|
+
timestamp: bigint;
|
|
363
|
+
};
|
|
364
|
+
type MarketResumedEventArgs = {
|
|
365
|
+
market: Address;
|
|
366
|
+
timestamp: number | bigint;
|
|
367
|
+
};
|
|
368
|
+
declare function getMarketResumedEventEncoder(): FixedSizeEncoder<MarketResumedEventArgs>;
|
|
369
|
+
declare function getMarketResumedEventDecoder(): FixedSizeDecoder<MarketResumedEvent>;
|
|
370
|
+
declare function getMarketResumedEventCodec(): FixedSizeCodec<MarketResumedEventArgs, MarketResumedEvent>;
|
|
371
|
+
|
|
338
372
|
/**
|
|
339
373
|
* This code was AUTOGENERATED using the Codama library.
|
|
340
374
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -515,21 +549,19 @@ declare function getParameterCodec(): FixedSizeCodec<ParameterArgs, Parameter>;
|
|
|
515
549
|
* @see https://github.com/codama-idl/codama
|
|
516
550
|
*/
|
|
517
551
|
|
|
518
|
-
type
|
|
552
|
+
type RevealPeriodEndedEvent = {
|
|
519
553
|
market: Address;
|
|
520
554
|
authority: Address;
|
|
521
|
-
newTimeToReveal: bigint;
|
|
522
555
|
timestamp: bigint;
|
|
523
556
|
};
|
|
524
|
-
type
|
|
557
|
+
type RevealPeriodEndedEventArgs = {
|
|
525
558
|
market: Address;
|
|
526
559
|
authority: Address;
|
|
527
|
-
newTimeToReveal: number | bigint;
|
|
528
560
|
timestamp: number | bigint;
|
|
529
561
|
};
|
|
530
|
-
declare function
|
|
531
|
-
declare function
|
|
532
|
-
declare function
|
|
562
|
+
declare function getRevealPeriodEndedEventEncoder(): FixedSizeEncoder<RevealPeriodEndedEventArgs>;
|
|
563
|
+
declare function getRevealPeriodEndedEventDecoder(): FixedSizeDecoder<RevealPeriodEndedEvent>;
|
|
564
|
+
declare function getRevealPeriodEndedEventCodec(): FixedSizeCodec<RevealPeriodEndedEventArgs, RevealPeriodEndedEvent>;
|
|
533
565
|
|
|
534
566
|
/**
|
|
535
567
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -593,6 +625,7 @@ type RewardClaimedEvent = {
|
|
|
593
625
|
owner: Address;
|
|
594
626
|
market: Address;
|
|
595
627
|
stakeAccount: Address;
|
|
628
|
+
stakeAccountId: number;
|
|
596
629
|
optionId: bigint;
|
|
597
630
|
rewardAmount: bigint;
|
|
598
631
|
stakedAtTimestamp: bigint;
|
|
@@ -605,6 +638,7 @@ type RewardClaimedEventArgs = {
|
|
|
605
638
|
owner: Address;
|
|
606
639
|
market: Address;
|
|
607
640
|
stakeAccount: Address;
|
|
641
|
+
stakeAccountId: number;
|
|
608
642
|
optionId: number | bigint;
|
|
609
643
|
rewardAmount: number | bigint;
|
|
610
644
|
stakedAtTimestamp: number | bigint;
|
|
@@ -681,6 +715,7 @@ type StakedEvent = {
|
|
|
681
715
|
user: Address;
|
|
682
716
|
market: Address;
|
|
683
717
|
stakeAccount: Address;
|
|
718
|
+
stakeAccountId: number;
|
|
684
719
|
stakeEncryptedOption: Array<number>;
|
|
685
720
|
stakeStateNonce: bigint;
|
|
686
721
|
stakeEncryptedOptionDisclosure: Array<number>;
|
|
@@ -692,6 +727,7 @@ type StakedEventArgs = {
|
|
|
692
727
|
user: Address;
|
|
693
728
|
market: Address;
|
|
694
729
|
stakeAccount: Address;
|
|
730
|
+
stakeAccountId: number;
|
|
695
731
|
stakeEncryptedOption: Array<number>;
|
|
696
732
|
stakeStateNonce: number | bigint;
|
|
697
733
|
stakeEncryptedOptionDisclosure: Array<number>;
|
|
@@ -773,6 +809,7 @@ type StakeReclaimedEvent = {
|
|
|
773
809
|
owner: Address;
|
|
774
810
|
market: Address;
|
|
775
811
|
stakeAccount: Address;
|
|
812
|
+
stakeAccountId: number;
|
|
776
813
|
amount: bigint;
|
|
777
814
|
timestamp: bigint;
|
|
778
815
|
};
|
|
@@ -780,6 +817,7 @@ type StakeReclaimedEventArgs = {
|
|
|
780
817
|
owner: Address;
|
|
781
818
|
market: Address;
|
|
782
819
|
stakeAccount: Address;
|
|
820
|
+
stakeAccountId: number;
|
|
783
821
|
amount: number | bigint;
|
|
784
822
|
timestamp: number | bigint;
|
|
785
823
|
};
|
|
@@ -799,6 +837,7 @@ type StakeRevealedEvent = {
|
|
|
799
837
|
user: Address;
|
|
800
838
|
market: Address;
|
|
801
839
|
stakeAccount: Address;
|
|
840
|
+
stakeAccountId: number;
|
|
802
841
|
stakeAmount: bigint;
|
|
803
842
|
selectedOption: bigint;
|
|
804
843
|
timestamp: bigint;
|
|
@@ -807,6 +846,7 @@ type StakeRevealedEventArgs = {
|
|
|
807
846
|
user: Address;
|
|
808
847
|
market: Address;
|
|
809
848
|
stakeAccount: Address;
|
|
849
|
+
stakeAccountId: number;
|
|
810
850
|
stakeAmount: number | bigint;
|
|
811
851
|
selectedOption: number | bigint;
|
|
812
852
|
timestamp: number | bigint;
|
|
@@ -826,6 +866,7 @@ declare function getStakeRevealedEventCodec(): FixedSizeCodec<StakeRevealedEvent
|
|
|
826
866
|
type StuckStakeClosedEvent = {
|
|
827
867
|
owner: Address;
|
|
828
868
|
market: Address;
|
|
869
|
+
stakeAccount: Address;
|
|
829
870
|
stakeAccountId: number;
|
|
830
871
|
refundedAmount: bigint;
|
|
831
872
|
refundedFee: bigint;
|
|
@@ -834,6 +875,7 @@ type StuckStakeClosedEvent = {
|
|
|
834
875
|
type StuckStakeClosedEventArgs = {
|
|
835
876
|
owner: Address;
|
|
836
877
|
market: Address;
|
|
878
|
+
stakeAccount: Address;
|
|
837
879
|
stakeAccountId: number;
|
|
838
880
|
refundedAmount: number | bigint;
|
|
839
881
|
refundedFee: number | bigint;
|
|
@@ -855,6 +897,7 @@ type TallyIncrementedEvent = {
|
|
|
855
897
|
owner: Address;
|
|
856
898
|
market: Address;
|
|
857
899
|
stakeAccount: Address;
|
|
900
|
+
stakeAccountId: number;
|
|
858
901
|
optionId: bigint;
|
|
859
902
|
userStake: bigint;
|
|
860
903
|
userScore: bigint;
|
|
@@ -866,6 +909,7 @@ type TallyIncrementedEventArgs = {
|
|
|
866
909
|
owner: Address;
|
|
867
910
|
market: Address;
|
|
868
911
|
stakeAccount: Address;
|
|
912
|
+
stakeAccountId: number;
|
|
869
913
|
optionId: number | bigint;
|
|
870
914
|
userStake: number | bigint;
|
|
871
915
|
userScore: number | bigint;
|
|
@@ -907,12 +951,14 @@ type UnstakedEvent = {
|
|
|
907
951
|
user: Address;
|
|
908
952
|
market: Address;
|
|
909
953
|
stakeAccount: Address;
|
|
954
|
+
stakeAccountId: number;
|
|
910
955
|
timestamp: bigint;
|
|
911
956
|
};
|
|
912
957
|
type UnstakedEventArgs = {
|
|
913
958
|
user: Address;
|
|
914
959
|
market: Address;
|
|
915
960
|
stakeAccount: Address;
|
|
961
|
+
stakeAccountId: number;
|
|
916
962
|
timestamp: number | bigint;
|
|
917
963
|
};
|
|
918
964
|
declare function getUnstakedEventEncoder(): FixedSizeEncoder<UnstakedEventArgs>;
|
|
@@ -931,6 +977,7 @@ type UnstakeInitiatedEvent = {
|
|
|
931
977
|
user: Address;
|
|
932
978
|
market: Address;
|
|
933
979
|
stakeAccount: Address;
|
|
980
|
+
stakeAccountId: number;
|
|
934
981
|
unstakeableAtTimestamp: bigint;
|
|
935
982
|
timestamp: bigint;
|
|
936
983
|
};
|
|
@@ -938,6 +985,7 @@ type UnstakeInitiatedEventArgs = {
|
|
|
938
985
|
user: Address;
|
|
939
986
|
market: Address;
|
|
940
987
|
stakeAccount: Address;
|
|
988
|
+
stakeAccountId: number;
|
|
941
989
|
unstakeableAtTimestamp: number | bigint;
|
|
942
990
|
timestamp: number | bigint;
|
|
943
991
|
};
|
|
@@ -1249,6 +1297,7 @@ type OpportunityMarket = {
|
|
|
1249
1297
|
unstakeDelaySeconds: bigint;
|
|
1250
1298
|
authorizedReaderPubkey: Array<number>;
|
|
1251
1299
|
allowClosingEarly: boolean;
|
|
1300
|
+
paused: boolean;
|
|
1252
1301
|
};
|
|
1253
1302
|
type OpportunityMarketArgs = {
|
|
1254
1303
|
bump: number;
|
|
@@ -1267,6 +1316,7 @@ type OpportunityMarketArgs = {
|
|
|
1267
1316
|
unstakeDelaySeconds: number | bigint;
|
|
1268
1317
|
authorizedReaderPubkey: Array<number>;
|
|
1269
1318
|
allowClosingEarly: boolean;
|
|
1319
|
+
paused: boolean;
|
|
1270
1320
|
};
|
|
1271
1321
|
declare function getOpportunityMarketEncoder(): Encoder<OpportunityMarketArgs>;
|
|
1272
1322
|
declare function getOpportunityMarketDecoder(): Decoder<OpportunityMarket>;
|
|
@@ -1378,6 +1428,7 @@ type StakeAccount = {
|
|
|
1378
1428
|
stakeReclaimed: boolean;
|
|
1379
1429
|
pendingStake: boolean;
|
|
1380
1430
|
pendingReveal: boolean;
|
|
1431
|
+
id: number;
|
|
1381
1432
|
};
|
|
1382
1433
|
type StakeAccountArgs = {
|
|
1383
1434
|
encryptedOption: Array<number>;
|
|
@@ -1400,6 +1451,7 @@ type StakeAccountArgs = {
|
|
|
1400
1451
|
stakeReclaimed: boolean;
|
|
1401
1452
|
pendingStake: boolean;
|
|
1402
1453
|
pendingReveal: boolean;
|
|
1454
|
+
id: number;
|
|
1403
1455
|
};
|
|
1404
1456
|
declare function getStakeAccountEncoder(): Encoder<StakeAccountArgs>;
|
|
1405
1457
|
declare function getStakeAccountDecoder(): Decoder<StakeAccount>;
|
|
@@ -1516,7 +1568,15 @@ declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM = 6027;
|
|
|
1516
1568
|
declare const OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT = 6028;
|
|
1517
1569
|
/** StakeNotStuck: Stake account is not in a stuck or failed state */
|
|
1518
1570
|
declare const OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK = 6029;
|
|
1519
|
-
|
|
1571
|
+
/** ProtocolFeeTooHigh: Protocol fee exceeds maximum 500 bp */
|
|
1572
|
+
declare const OPPORTUNITY_MARKET_ERROR__PROTOCOL_FEE_TOO_HIGH = 6030;
|
|
1573
|
+
/** MarketPaused: Market staking is currently paused */
|
|
1574
|
+
declare const OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED = 6031;
|
|
1575
|
+
/** MarketNotPaused: Market is not paused */
|
|
1576
|
+
declare const OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED = 6032;
|
|
1577
|
+
/** EarlinessCutoffTooLarge: Earliness cutoff exceeds staking period */
|
|
1578
|
+
declare const OPPORTUNITY_MARKET_ERROR__EARLINESS_CUTOFF_TOO_LARGE = 6033;
|
|
1579
|
+
type OpportunityMarketError = typeof OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION | typeof OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED | typeof OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED | typeof OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET | typeof OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__EARLINESS_CUTOFF_TOO_LARGE | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING | typeof OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE | typeof OPPORTUNITY_MARKET_ERROR__INVALID_MINT | typeof OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID | typeof OPPORTUNITY_MARKET_ERROR__INVALID_TIMESTAMP | typeof OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT | typeof OPPORTUNITY_MARKET_ERROR__LOCKED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED | typeof OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NOT_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__OVERFLOW | typeof OPPORTUNITY_MARKET_ERROR__PROTOCOL_FEE_TOO_HIGH | typeof OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED | typeof OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK | typeof OPPORTUNITY_MARKET_ERROR__STAKING_NOT_ACTIVE | typeof OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED | typeof OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET | typeof OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED;
|
|
1520
1580
|
declare function getOpportunityMarketErrorMessage(code: OpportunityMarketError): string;
|
|
1521
1581
|
declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityMarketError>(error: unknown, transactionMessage: {
|
|
1522
1582
|
instructions: Record<number, {
|
|
@@ -1536,7 +1596,7 @@ declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityM
|
|
|
1536
1596
|
* @see https://github.com/codama-idl/codama
|
|
1537
1597
|
*/
|
|
1538
1598
|
|
|
1539
|
-
declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"
|
|
1599
|
+
declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"BenchJHrXbW61EU6RXxrqnrL73gLBywENegfX3MANxe8">;
|
|
1540
1600
|
declare enum OpportunityMarketAccount {
|
|
1541
1601
|
ArciumSignerAccount = 0,
|
|
1542
1602
|
CentralState = 1,
|
|
@@ -1568,23 +1628,25 @@ declare enum OpportunityMarketInstruction {
|
|
|
1568
1628
|
InitStakeAccount = 10,
|
|
1569
1629
|
InitTokenVault = 11,
|
|
1570
1630
|
OpenMarket = 12,
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1631
|
+
PauseMarket = 13,
|
|
1632
|
+
ReclaimStake = 14,
|
|
1633
|
+
ResumeMarket = 15,
|
|
1634
|
+
RevealStake = 16,
|
|
1635
|
+
RevealStakeCallback = 17,
|
|
1636
|
+
RevealStakeCompDef = 18,
|
|
1637
|
+
SelectWinningOptions = 19,
|
|
1638
|
+
Stake = 20,
|
|
1639
|
+
StakeCallback = 21,
|
|
1640
|
+
StakeCompDef = 22,
|
|
1641
|
+
TransferCentralStateAuthority = 23,
|
|
1642
|
+
UnstakeEarly = 24,
|
|
1643
|
+
UpdateCentralState = 25,
|
|
1644
|
+
WithdrawReward = 26
|
|
1583
1645
|
}
|
|
1584
1646
|
declare function identifyOpportunityMarketInstruction(instruction: {
|
|
1585
1647
|
data: ReadonlyUint8Array;
|
|
1586
1648
|
} | ReadonlyUint8Array): OpportunityMarketInstruction;
|
|
1587
|
-
type ParsedOpportunityMarketInstruction<TProgram extends string = '
|
|
1649
|
+
type ParsedOpportunityMarketInstruction<TProgram extends string = 'BenchJHrXbW61EU6RXxrqnrL73gLBywENegfX3MANxe8'> = ({
|
|
1588
1650
|
instructionType: OpportunityMarketInstruction.AddMarketOption;
|
|
1589
1651
|
} & ParsedAddMarketOptionInstruction<TProgram>) | ({
|
|
1590
1652
|
instructionType: OpportunityMarketInstruction.AddReward;
|
|
@@ -1611,8 +1673,12 @@ type ParsedOpportunityMarketInstruction<TProgram extends string = 'BencHEXKYZ8HJ
|
|
|
1611
1673
|
} & ParsedInitTokenVaultInstruction<TProgram>) | ({
|
|
1612
1674
|
instructionType: OpportunityMarketInstruction.OpenMarket;
|
|
1613
1675
|
} & ParsedOpenMarketInstruction<TProgram>) | ({
|
|
1676
|
+
instructionType: OpportunityMarketInstruction.PauseMarket;
|
|
1677
|
+
} & ParsedPauseMarketInstruction<TProgram>) | ({
|
|
1614
1678
|
instructionType: OpportunityMarketInstruction.ReclaimStake;
|
|
1615
1679
|
} & ParsedReclaimStakeInstruction<TProgram>) | ({
|
|
1680
|
+
instructionType: OpportunityMarketInstruction.ResumeMarket;
|
|
1681
|
+
} & ParsedResumeMarketInstruction<TProgram>) | ({
|
|
1616
1682
|
instructionType: OpportunityMarketInstruction.RevealStake;
|
|
1617
1683
|
} & ParsedRevealStakeInstruction<TProgram>) | ({
|
|
1618
1684
|
instructionType: OpportunityMarketInstruction.RevealStakeCallback;
|
|
@@ -2034,10 +2100,9 @@ declare function parseCloseStuckStakeAccountInstruction<TProgram extends string,
|
|
|
2034
2100
|
|
|
2035
2101
|
declare const CREATE_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2036
2102
|
declare function getCreateMarketDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2037
|
-
type CreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string,
|
|
2103
|
+
type CreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2038
2104
|
TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
|
|
2039
2105
|
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2040
|
-
TAccountCentralState extends string ? ReadonlyAccount<TAccountCentralState> : TAccountCentralState,
|
|
2041
2106
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2042
2107
|
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2043
2108
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
@@ -2055,6 +2120,7 @@ type CreateMarketInstructionData = {
|
|
|
2055
2120
|
authorizedReaderPubkey: Array<number>;
|
|
2056
2121
|
allowClosingEarly: boolean;
|
|
2057
2122
|
revealPeriodAuthority: Address;
|
|
2123
|
+
earlinessCutoffSeconds: bigint;
|
|
2058
2124
|
};
|
|
2059
2125
|
type CreateMarketInstructionDataArgs = {
|
|
2060
2126
|
marketIndex: number | bigint;
|
|
@@ -2065,14 +2131,14 @@ type CreateMarketInstructionDataArgs = {
|
|
|
2065
2131
|
authorizedReaderPubkey: Array<number>;
|
|
2066
2132
|
allowClosingEarly: boolean;
|
|
2067
2133
|
revealPeriodAuthority: Address;
|
|
2134
|
+
earlinessCutoffSeconds: number | bigint;
|
|
2068
2135
|
};
|
|
2069
2136
|
declare function getCreateMarketInstructionDataEncoder(): Encoder<CreateMarketInstructionDataArgs>;
|
|
2070
2137
|
declare function getCreateMarketInstructionDataDecoder(): Decoder<CreateMarketInstructionData>;
|
|
2071
2138
|
declare function getCreateMarketInstructionDataCodec(): Codec<CreateMarketInstructionDataArgs, CreateMarketInstructionData>;
|
|
2072
|
-
type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountTokenMint extends string = string,
|
|
2139
|
+
type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountTokenMint extends string = string, TAccountMarket extends string = string, TAccountMarketTokenAta extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string> = {
|
|
2073
2140
|
creator: TransactionSigner<TAccountCreator>;
|
|
2074
2141
|
tokenMint: Address<TAccountTokenMint>;
|
|
2075
|
-
centralState?: Address<TAccountCentralState>;
|
|
2076
2142
|
market?: Address<TAccountMarket>;
|
|
2077
2143
|
/** ATA owned by market PDA, holds reward tokens */
|
|
2078
2144
|
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
@@ -2087,14 +2153,14 @@ type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountTok
|
|
|
2087
2153
|
authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
|
|
2088
2154
|
allowClosingEarly: CreateMarketInstructionDataArgs['allowClosingEarly'];
|
|
2089
2155
|
revealPeriodAuthority: CreateMarketInstructionDataArgs['revealPeriodAuthority'];
|
|
2156
|
+
earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
|
|
2090
2157
|
};
|
|
2091
|
-
declare function getCreateMarketInstructionAsync<TAccountCreator extends string, TAccountTokenMint extends string,
|
|
2158
|
+
declare function getCreateMarketInstructionAsync<TAccountCreator extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketAsyncInput<TAccountCreator, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram>, config?: {
|
|
2092
2159
|
programAddress?: TProgramAddress;
|
|
2093
|
-
}): Promise<CreateMarketInstruction<TProgramAddress, TAccountCreator, TAccountTokenMint,
|
|
2094
|
-
type CreateMarketInput<TAccountCreator extends string = string, TAccountTokenMint extends string = string,
|
|
2160
|
+
}): Promise<CreateMarketInstruction<TProgramAddress, TAccountCreator, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram>>;
|
|
2161
|
+
type CreateMarketInput<TAccountCreator extends string = string, TAccountTokenMint extends string = string, TAccountMarket extends string = string, TAccountMarketTokenAta extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string> = {
|
|
2095
2162
|
creator: TransactionSigner<TAccountCreator>;
|
|
2096
2163
|
tokenMint: Address<TAccountTokenMint>;
|
|
2097
|
-
centralState: Address<TAccountCentralState>;
|
|
2098
2164
|
market: Address<TAccountMarket>;
|
|
2099
2165
|
/** ATA owned by market PDA, holds reward tokens */
|
|
2100
2166
|
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
@@ -2109,22 +2175,22 @@ type CreateMarketInput<TAccountCreator extends string = string, TAccountTokenMin
|
|
|
2109
2175
|
authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
|
|
2110
2176
|
allowClosingEarly: CreateMarketInstructionDataArgs['allowClosingEarly'];
|
|
2111
2177
|
revealPeriodAuthority: CreateMarketInstructionDataArgs['revealPeriodAuthority'];
|
|
2178
|
+
earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
|
|
2112
2179
|
};
|
|
2113
|
-
declare function getCreateMarketInstruction<TAccountCreator extends string, TAccountTokenMint extends string,
|
|
2180
|
+
declare function getCreateMarketInstruction<TAccountCreator extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketInput<TAccountCreator, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram>, config?: {
|
|
2114
2181
|
programAddress?: TProgramAddress;
|
|
2115
|
-
}): CreateMarketInstruction<TProgramAddress, TAccountCreator, TAccountTokenMint,
|
|
2182
|
+
}): CreateMarketInstruction<TProgramAddress, TAccountCreator, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram>;
|
|
2116
2183
|
type ParsedCreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2117
2184
|
programAddress: Address<TProgram>;
|
|
2118
2185
|
accounts: {
|
|
2119
2186
|
creator: TAccountMetas[0];
|
|
2120
2187
|
tokenMint: TAccountMetas[1];
|
|
2121
|
-
|
|
2122
|
-
market: TAccountMetas[3];
|
|
2188
|
+
market: TAccountMetas[2];
|
|
2123
2189
|
/** ATA owned by market PDA, holds reward tokens */
|
|
2124
|
-
marketTokenAta: TAccountMetas[
|
|
2125
|
-
systemProgram: TAccountMetas[
|
|
2126
|
-
tokenProgram: TAccountMetas[
|
|
2127
|
-
associatedTokenProgram: TAccountMetas[
|
|
2190
|
+
marketTokenAta: TAccountMetas[3];
|
|
2191
|
+
systemProgram: TAccountMetas[4];
|
|
2192
|
+
tokenProgram: TAccountMetas[5];
|
|
2193
|
+
associatedTokenProgram: TAccountMetas[6];
|
|
2128
2194
|
};
|
|
2129
2195
|
data: CreateMarketInstructionData;
|
|
2130
2196
|
};
|
|
@@ -2343,18 +2409,12 @@ type InitCentralStateInstruction<TProgram extends string = typeof OPPORTUNITY_MA
|
|
|
2343
2409
|
]>;
|
|
2344
2410
|
type InitCentralStateInstructionData = {
|
|
2345
2411
|
discriminator: ReadonlyUint8Array;
|
|
2346
|
-
earlinessCutoffSeconds: bigint;
|
|
2347
|
-
minOptionDeposit: bigint;
|
|
2348
2412
|
protocolFeeBp: number;
|
|
2349
2413
|
feeRecipient: Address;
|
|
2350
|
-
minimumInitialRevealPeriod: bigint;
|
|
2351
2414
|
};
|
|
2352
2415
|
type InitCentralStateInstructionDataArgs = {
|
|
2353
|
-
earlinessCutoffSeconds: number | bigint;
|
|
2354
|
-
minOptionDeposit: number | bigint;
|
|
2355
2416
|
protocolFeeBp: number;
|
|
2356
2417
|
feeRecipient: Address;
|
|
2357
|
-
minimumInitialRevealPeriod: number | bigint;
|
|
2358
2418
|
};
|
|
2359
2419
|
declare function getInitCentralStateInstructionDataEncoder(): FixedSizeEncoder<InitCentralStateInstructionDataArgs>;
|
|
2360
2420
|
declare function getInitCentralStateInstructionDataDecoder(): FixedSizeDecoder<InitCentralStateInstructionData>;
|
|
@@ -2363,11 +2423,8 @@ type InitCentralStateAsyncInput<TAccountPayer extends string = string, TAccountC
|
|
|
2363
2423
|
payer: TransactionSigner<TAccountPayer>;
|
|
2364
2424
|
centralState?: Address<TAccountCentralState>;
|
|
2365
2425
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2366
|
-
earlinessCutoffSeconds: InitCentralStateInstructionDataArgs['earlinessCutoffSeconds'];
|
|
2367
|
-
minOptionDeposit: InitCentralStateInstructionDataArgs['minOptionDeposit'];
|
|
2368
2426
|
protocolFeeBp: InitCentralStateInstructionDataArgs['protocolFeeBp'];
|
|
2369
2427
|
feeRecipient: InitCentralStateInstructionDataArgs['feeRecipient'];
|
|
2370
|
-
minimumInitialRevealPeriod: InitCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
|
|
2371
2428
|
};
|
|
2372
2429
|
declare function getInitCentralStateInstructionAsync<TAccountPayer extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitCentralStateAsyncInput<TAccountPayer, TAccountCentralState, TAccountSystemProgram>, config?: {
|
|
2373
2430
|
programAddress?: TProgramAddress;
|
|
@@ -2376,11 +2433,8 @@ type InitCentralStateInput<TAccountPayer extends string = string, TAccountCentra
|
|
|
2376
2433
|
payer: TransactionSigner<TAccountPayer>;
|
|
2377
2434
|
centralState: Address<TAccountCentralState>;
|
|
2378
2435
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2379
|
-
earlinessCutoffSeconds: InitCentralStateInstructionDataArgs['earlinessCutoffSeconds'];
|
|
2380
|
-
minOptionDeposit: InitCentralStateInstructionDataArgs['minOptionDeposit'];
|
|
2381
2436
|
protocolFeeBp: InitCentralStateInstructionDataArgs['protocolFeeBp'];
|
|
2382
2437
|
feeRecipient: InitCentralStateInstructionDataArgs['feeRecipient'];
|
|
2383
|
-
minimumInitialRevealPeriod: InitCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
|
|
2384
2438
|
};
|
|
2385
2439
|
declare function getInitCentralStateInstruction<TAccountPayer extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitCentralStateInput<TAccountPayer, TAccountCentralState, TAccountSystemProgram>, config?: {
|
|
2386
2440
|
programAddress?: TProgramAddress;
|
|
@@ -2560,6 +2614,45 @@ type ParsedOpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MA
|
|
|
2560
2614
|
};
|
|
2561
2615
|
declare function parseOpenMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedOpenMarketInstruction<TProgram, TAccountMetas>;
|
|
2562
2616
|
|
|
2617
|
+
/**
|
|
2618
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2619
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2620
|
+
* to add features, then rerun Codama to update it.
|
|
2621
|
+
*
|
|
2622
|
+
* @see https://github.com/codama-idl/codama
|
|
2623
|
+
*/
|
|
2624
|
+
|
|
2625
|
+
declare const PAUSE_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2626
|
+
declare function getPauseMarketDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2627
|
+
type PauseMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2628
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2629
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2630
|
+
...TRemainingAccounts
|
|
2631
|
+
]>;
|
|
2632
|
+
type PauseMarketInstructionData = {
|
|
2633
|
+
discriminator: ReadonlyUint8Array;
|
|
2634
|
+
};
|
|
2635
|
+
type PauseMarketInstructionDataArgs = {};
|
|
2636
|
+
declare function getPauseMarketInstructionDataEncoder(): FixedSizeEncoder<PauseMarketInstructionDataArgs>;
|
|
2637
|
+
declare function getPauseMarketInstructionDataDecoder(): FixedSizeDecoder<PauseMarketInstructionData>;
|
|
2638
|
+
declare function getPauseMarketInstructionDataCodec(): FixedSizeCodec<PauseMarketInstructionDataArgs, PauseMarketInstructionData>;
|
|
2639
|
+
type PauseMarketInput<TAccountAuthority extends string = string, TAccountMarket extends string = string> = {
|
|
2640
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2641
|
+
market: Address<TAccountMarket>;
|
|
2642
|
+
};
|
|
2643
|
+
declare function getPauseMarketInstruction<TAccountAuthority extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: PauseMarketInput<TAccountAuthority, TAccountMarket>, config?: {
|
|
2644
|
+
programAddress?: TProgramAddress;
|
|
2645
|
+
}): PauseMarketInstruction<TProgramAddress, TAccountAuthority, TAccountMarket>;
|
|
2646
|
+
type ParsedPauseMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2647
|
+
programAddress: Address<TProgram>;
|
|
2648
|
+
accounts: {
|
|
2649
|
+
authority: TAccountMetas[0];
|
|
2650
|
+
market: TAccountMetas[1];
|
|
2651
|
+
};
|
|
2652
|
+
data: PauseMarketInstructionData;
|
|
2653
|
+
};
|
|
2654
|
+
declare function parsePauseMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedPauseMarketInstruction<TProgram, TAccountMetas>;
|
|
2655
|
+
|
|
2563
2656
|
/**
|
|
2564
2657
|
* This code was AUTOGENERATED using the Codama library.
|
|
2565
2658
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -2645,6 +2738,45 @@ type ParsedReclaimStakeInstruction<TProgram extends string = typeof OPPORTUNITY_
|
|
|
2645
2738
|
};
|
|
2646
2739
|
declare function parseReclaimStakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedReclaimStakeInstruction<TProgram, TAccountMetas>;
|
|
2647
2740
|
|
|
2741
|
+
/**
|
|
2742
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2743
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2744
|
+
* to add features, then rerun Codama to update it.
|
|
2745
|
+
*
|
|
2746
|
+
* @see https://github.com/codama-idl/codama
|
|
2747
|
+
*/
|
|
2748
|
+
|
|
2749
|
+
declare const RESUME_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2750
|
+
declare function getResumeMarketDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2751
|
+
type ResumeMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2752
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2753
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2754
|
+
...TRemainingAccounts
|
|
2755
|
+
]>;
|
|
2756
|
+
type ResumeMarketInstructionData = {
|
|
2757
|
+
discriminator: ReadonlyUint8Array;
|
|
2758
|
+
};
|
|
2759
|
+
type ResumeMarketInstructionDataArgs = {};
|
|
2760
|
+
declare function getResumeMarketInstructionDataEncoder(): FixedSizeEncoder<ResumeMarketInstructionDataArgs>;
|
|
2761
|
+
declare function getResumeMarketInstructionDataDecoder(): FixedSizeDecoder<ResumeMarketInstructionData>;
|
|
2762
|
+
declare function getResumeMarketInstructionDataCodec(): FixedSizeCodec<ResumeMarketInstructionDataArgs, ResumeMarketInstructionData>;
|
|
2763
|
+
type ResumeMarketInput<TAccountAuthority extends string = string, TAccountMarket extends string = string> = {
|
|
2764
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2765
|
+
market: Address<TAccountMarket>;
|
|
2766
|
+
};
|
|
2767
|
+
declare function getResumeMarketInstruction<TAccountAuthority extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ResumeMarketInput<TAccountAuthority, TAccountMarket>, config?: {
|
|
2768
|
+
programAddress?: TProgramAddress;
|
|
2769
|
+
}): ResumeMarketInstruction<TProgramAddress, TAccountAuthority, TAccountMarket>;
|
|
2770
|
+
type ParsedResumeMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2771
|
+
programAddress: Address<TProgram>;
|
|
2772
|
+
accounts: {
|
|
2773
|
+
authority: TAccountMetas[0];
|
|
2774
|
+
market: TAccountMetas[1];
|
|
2775
|
+
};
|
|
2776
|
+
data: ResumeMarketInstructionData;
|
|
2777
|
+
};
|
|
2778
|
+
declare function parseResumeMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedResumeMarketInstruction<TProgram, TAccountMetas>;
|
|
2779
|
+
|
|
2648
2780
|
/**
|
|
2649
2781
|
* This code was AUTOGENERATED using the Codama library.
|
|
2650
2782
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -3340,18 +3472,12 @@ type UpdateCentralStateInstruction<TProgram extends string = typeof OPPORTUNITY_
|
|
|
3340
3472
|
]>;
|
|
3341
3473
|
type UpdateCentralStateInstructionData = {
|
|
3342
3474
|
discriminator: ReadonlyUint8Array;
|
|
3343
|
-
earlinessCutoffSeconds: bigint;
|
|
3344
|
-
minOptionDeposit: bigint;
|
|
3345
3475
|
protocolFeeBp: number;
|
|
3346
3476
|
feeRecipient: Address;
|
|
3347
|
-
minimumInitialRevealPeriod: bigint;
|
|
3348
3477
|
};
|
|
3349
3478
|
type UpdateCentralStateInstructionDataArgs = {
|
|
3350
|
-
earlinessCutoffSeconds: number | bigint;
|
|
3351
|
-
minOptionDeposit: number | bigint;
|
|
3352
3479
|
protocolFeeBp: number;
|
|
3353
3480
|
feeRecipient: Address;
|
|
3354
|
-
minimumInitialRevealPeriod: number | bigint;
|
|
3355
3481
|
};
|
|
3356
3482
|
declare function getUpdateCentralStateInstructionDataEncoder(): FixedSizeEncoder<UpdateCentralStateInstructionDataArgs>;
|
|
3357
3483
|
declare function getUpdateCentralStateInstructionDataDecoder(): FixedSizeDecoder<UpdateCentralStateInstructionData>;
|
|
@@ -3359,11 +3485,8 @@ declare function getUpdateCentralStateInstructionDataCodec(): FixedSizeCodec<Upd
|
|
|
3359
3485
|
type UpdateCentralStateAsyncInput<TAccountAuthority extends string = string, TAccountCentralState extends string = string> = {
|
|
3360
3486
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3361
3487
|
centralState?: Address<TAccountCentralState>;
|
|
3362
|
-
earlinessCutoffSeconds: UpdateCentralStateInstructionDataArgs['earlinessCutoffSeconds'];
|
|
3363
|
-
minOptionDeposit: UpdateCentralStateInstructionDataArgs['minOptionDeposit'];
|
|
3364
3488
|
protocolFeeBp: UpdateCentralStateInstructionDataArgs['protocolFeeBp'];
|
|
3365
3489
|
feeRecipient: UpdateCentralStateInstructionDataArgs['feeRecipient'];
|
|
3366
|
-
minimumInitialRevealPeriod: UpdateCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
|
|
3367
3490
|
};
|
|
3368
3491
|
declare function getUpdateCentralStateInstructionAsync<TAccountAuthority extends string, TAccountCentralState extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdateCentralStateAsyncInput<TAccountAuthority, TAccountCentralState>, config?: {
|
|
3369
3492
|
programAddress?: TProgramAddress;
|
|
@@ -3371,11 +3494,8 @@ declare function getUpdateCentralStateInstructionAsync<TAccountAuthority extends
|
|
|
3371
3494
|
type UpdateCentralStateInput<TAccountAuthority extends string = string, TAccountCentralState extends string = string> = {
|
|
3372
3495
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3373
3496
|
centralState: Address<TAccountCentralState>;
|
|
3374
|
-
earlinessCutoffSeconds: UpdateCentralStateInstructionDataArgs['earlinessCutoffSeconds'];
|
|
3375
|
-
minOptionDeposit: UpdateCentralStateInstructionDataArgs['minOptionDeposit'];
|
|
3376
3497
|
protocolFeeBp: UpdateCentralStateInstructionDataArgs['protocolFeeBp'];
|
|
3377
3498
|
feeRecipient: UpdateCentralStateInstructionDataArgs['feeRecipient'];
|
|
3378
|
-
minimumInitialRevealPeriod: UpdateCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
|
|
3379
3499
|
};
|
|
3380
3500
|
declare function getUpdateCentralStateInstruction<TAccountAuthority extends string, TAccountCentralState extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdateCentralStateInput<TAccountAuthority, TAccountCentralState>, config?: {
|
|
3381
3501
|
programAddress?: TProgramAddress;
|
|
@@ -3505,6 +3625,7 @@ interface CreateMarketParams extends BaseInstructionParams {
|
|
|
3505
3625
|
authorizedReaderPubkey: ByteArray;
|
|
3506
3626
|
allowClosingEarly: boolean;
|
|
3507
3627
|
revealPeriodAuthority: Address;
|
|
3628
|
+
earlinessCutoffSeconds: bigint;
|
|
3508
3629
|
}
|
|
3509
3630
|
declare function createMarket(input: CreateMarketParams): Promise<CreateMarketInstruction<string>>;
|
|
3510
3631
|
|
|
@@ -3564,6 +3685,18 @@ interface OpenMarketParams extends BaseInstructionParams {
|
|
|
3564
3685
|
}
|
|
3565
3686
|
declare function openMarket(input: OpenMarketParams): OpenMarketInstruction<string>;
|
|
3566
3687
|
|
|
3688
|
+
interface PauseMarketParams extends BaseInstructionParams {
|
|
3689
|
+
authority: TransactionSigner;
|
|
3690
|
+
market: Address;
|
|
3691
|
+
}
|
|
3692
|
+
declare function pauseMarket(input: PauseMarketParams): PauseMarketInstruction<string>;
|
|
3693
|
+
|
|
3694
|
+
interface ResumeMarketParams extends BaseInstructionParams {
|
|
3695
|
+
authority: TransactionSigner;
|
|
3696
|
+
market: Address;
|
|
3697
|
+
}
|
|
3698
|
+
declare function resumeMarket(input: ResumeMarketParams): ResumeMarketInstruction<string>;
|
|
3699
|
+
|
|
3567
3700
|
interface SelectWinningOptionsParams extends BaseInstructionParams {
|
|
3568
3701
|
authority: TransactionSigner;
|
|
3569
3702
|
market: Address;
|
|
@@ -3659,11 +3792,8 @@ declare function doUnstakeEarly(input: DoUnstakeEarlyParams): Promise<DoUnstakeE
|
|
|
3659
3792
|
|
|
3660
3793
|
interface EnsureCentralStateParams extends BaseInstructionParams {
|
|
3661
3794
|
signer: TransactionSigner;
|
|
3662
|
-
earlinessCutoffSeconds: bigint | number;
|
|
3663
|
-
minOptionDeposit: bigint | number;
|
|
3664
3795
|
protocolFeeBp: number;
|
|
3665
3796
|
feeRecipient: Address;
|
|
3666
|
-
minimumInitialRevealPeriod: bigint | number;
|
|
3667
3797
|
}
|
|
3668
3798
|
declare function ensureCentralState(rpc: Parameters<typeof fetchMaybeCentralState>[0], params: EnsureCentralStateParams): Promise<Instruction | null>;
|
|
3669
3799
|
|
|
@@ -3742,4 +3872,4 @@ declare function deriveSharedSecret(userSecretKey: Uint8Array, mxePublicKey: Uin
|
|
|
3742
3872
|
declare function createCipher(userSecretKey: Uint8Array, mxePublicKey: Uint8Array): RescueCipher;
|
|
3743
3873
|
declare function nonceToBytes(nonce: bigint): Uint8Array;
|
|
3744
3874
|
|
|
3745
|
-
export { ADD_MARKET_OPTION_DISCRIMINATOR, ADD_REWARD_DISCRIMINATOR, ALL_COMP_DEF_CIRCUITS, ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR, type Activation, type ActivationArgs, type AddMarketOptionAsyncInput, type AddMarketOptionInput, type AddMarketOptionInstruction, type AddMarketOptionInstructionData, type AddMarketOptionInstructionDataArgs, type AddMarketOptionParams, type AddRewardAsyncInput, type AddRewardInput, type AddRewardInstruction, type AddRewardInstructionData, type AddRewardInstructionDataArgs, type AddRewardParams, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CENTRAL_STATE_DISCRIMINATOR, CENTRAL_STATE_SEED, CLAIM_FEES_DISCRIMINATOR, CLOCK_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CLUSTER_DISCRIMINATOR, COMPUTATION_DEFINITION_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CentralState, type CentralStateArgs, type CircuitSource, type CircuitSourceArgs, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClockAccount, type ClockAccountArgs, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type CloseStuckStakeAccountAsyncInput, type CloseStuckStakeAccountInput, type CloseStuckStakeAccountInstruction, type CloseStuckStakeAccountInstructionData, type CloseStuckStakeAccountInstructionDataArgs, type CloseStuckStakeAccountParams, type Cluster, type ClusterArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationResult, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParams, DO_UNSTAKE_EARLY_DISCRIMINATOR, type DoUnstakeEarlyAsyncInput, type DoUnstakeEarlyInput, type DoUnstakeEarlyInstruction, type DoUnstakeEarlyInstructionData, type DoUnstakeEarlyInstructionDataArgs, type DoUnstakeEarlyParams, END_REVEAL_PERIOD_DISCRIMINATOR, type EndRevealPeriodInput, type EndRevealPeriodInstruction, type EndRevealPeriodInstructionData, type EndRevealPeriodInstructionDataArgs, type EndRevealPeriodParams, type EnsureCentralStateParams, type Epoch, type EpochArgs, FEE_POOL_DISCRIMINATOR, type FeePool, type FeePoolArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, INCREMENT_OPTION_TALLY_DISCRIMINATOR, INIT_CENTRAL_STATE_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, INIT_TOKEN_VAULT_DISCRIMINATOR, type IncrementOptionTallyAsyncInput, type IncrementOptionTallyInput, type IncrementOptionTallyInstruction, type IncrementOptionTallyInstructionData, type IncrementOptionTallyInstructionDataArgs, type IncrementOptionTallyParams, type InitCentralStateAsyncInput, type InitCentralStateInput, type InitCentralStateInstruction, type InitCentralStateInstructionData, type InitCentralStateInstructionDataArgs, type InitCompDefConfig, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, type InitTokenVaultAsyncInput, type InitTokenVaultInput, type InitTokenVaultInstruction, type InitTokenVaultInstructionData, type InitTokenVaultInstructionDataArgs, type InitTokenVaultParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, M_X_E_ACCOUNT_DISCRIMINATOR, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION, OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED, OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET, OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING, OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE, OPPORTUNITY_MARKET_ERROR__INVALID_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_TIMESTAMP, OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT, OPPORTUNITY_MARKET_ERROR__LOCKED, OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED, OPPORTUNITY_MARKET_ERROR__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__STAKING_NOT_ACTIVE, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET, OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, type OpportunityMarketSponsor, type OpportunityMarketSponsorArgs, Output, type OutputArgs, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimFeesInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedDoUnstakeEarlyInstruction, type ParsedEndRevealPeriodInstruction, type ParsedIncrementOptionTallyInstruction, type ParsedInitCentralStateInstruction, type ParsedInitStakeAccountInstruction, type ParsedInitTokenVaultInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedReclaimStakeInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSelectWinningOptionsInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedTransferCentralStateAuthorityInstruction, type ParsedUnstakeEarlyInstruction, type ParsedUpdateCentralStateInstruction, type ParsedWithdrawRewardInstruction, RECLAIM_STAKE_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ReclaimStakeAsyncInput, type ReclaimStakeInput, type ReclaimStakeInstruction, type ReclaimStakeInstructionData, type ReclaimStakeInstructionDataArgs, type ReclaimStakeParams, type RevealPeriodExtendedEvent, type RevealPeriodExtendedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardClaimedEvent, type RewardClaimedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, SELECT_WINNING_OPTIONS_DISCRIMINATOR, SPONSOR_SEED, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SelectWinningOptionsInput, type SelectWinningOptionsInstruction, type SelectWinningOptionsInstructionData, type SelectWinningOptionsInstructionDataArgs, type SelectWinningOptionsParams, type StakeAccount, type StakeAccountArgs, type StakeAccountInitializedEvent, type StakeAccountInitializedEventArgs, type StakeAsyncInput, type StakeCallbackInput, type StakeCallbackInstruction, type StakeCallbackInstructionData, type StakeCallbackInstructionDataArgs, type StakeCompDefInput, type StakeCompDefInstruction, type StakeCompDefInstructionData, type StakeCompDefInstructionDataArgs, type StakeInput, type StakeInstruction, type StakeInstructionData, type StakeInstructionDataArgs, type StakeOutput, type StakeOutputArgs, type StakeOutputStruct0, type StakeOutputStruct0Args, type StakeParams, type StakeReclaimedEvent, type StakeReclaimedEventArgs, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, type StuckStakeClosedEvent, type StuckStakeClosedEventArgs, TOKEN_VAULT_DISCRIMINATOR, TOKEN_VAULT_SEED, TRANSFER_CENTRAL_STATE_AUTHORITY_DISCRIMINATOR, type TallyIncrementedEvent, type TallyIncrementedEventArgs, type Timestamp, type TimestampArgs, type TokenVault, type TokenVaultArgs, type TransferCentralStateAuthorityAsyncInput, type TransferCentralStateAuthorityInput, type TransferCentralStateAuthorityInstruction, type TransferCentralStateAuthorityInstructionData, type TransferCentralStateAuthorityInstructionDataArgs, UNSTAKE_EARLY_DISCRIMINATOR, UPDATE_CENTRAL_STATE_DISCRIMINATOR, type UnstakeEarlyAsyncInput, type UnstakeEarlyInput, type UnstakeEarlyInstruction, type UnstakeEarlyInstructionData, type UnstakeEarlyInstructionDataArgs, type UnstakeEarlyParams, type UnstakeInitiatedEvent, type UnstakeInitiatedEventArgs, type UnstakedEvent, type UnstakedEventArgs, type UpdateCentralStateAsyncInput, type UpdateCentralStateInput, type UpdateCentralStateInstruction, type UpdateCentralStateInstructionData, type UpdateCentralStateInstructionDataArgs, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOption, type WinningOptionArgs, type WinningOptionsSelectedEvent, type WinningOptionsSelectedEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, addReward, awaitBatchComputationFinalization, awaitComputationFinalization, circuitSource, closeStakeAccount, closeStuckStakeAccount, createCipher, createMarket, decodeArciumSignerAccount, decodeCentralState, decodeClockAccount, decodeCluster, decodeComputationDefinitionAccount, decodeFeePool, decodeMXEAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodeStakeAccount, decodeTokenVault, deriveSharedSecret, deriveX25519KeypairFromSignature, doUnstakeEarly, endRevealPeriod, ensureCentralState, fetchAllArciumSignerAccount, fetchAllCentralState, fetchAllClockAccount, fetchAllCluster, fetchAllComputationDefinitionAccount, fetchAllFeePool, fetchAllMXEAccount, fetchAllMaybeArciumSignerAccount, fetchAllMaybeCentralState, fetchAllMaybeClockAccount, fetchAllMaybeCluster, fetchAllMaybeComputationDefinitionAccount, fetchAllMaybeFeePool, fetchAllMaybeMXEAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybeStakeAccount, fetchAllMaybeTokenVault, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllStakeAccount, fetchAllTokenVault, fetchArciumSignerAccount, fetchCentralState, fetchClockAccount, fetchCluster, fetchComputationDefinitionAccount, fetchFeePool, fetchMXEAccount, fetchMaybeArciumSignerAccount, fetchMaybeCentralState, fetchMaybeClockAccount, fetchMaybeCluster, fetchMaybeComputationDefinitionAccount, fetchMaybeFeePool, fetchMaybeMXEAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybeStakeAccount, fetchMaybeTokenVault, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchStakeAccount, fetchTokenVault, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getAddRewardDiscriminatorBytes, getAddRewardInstruction, getAddRewardInstructionAsync, getAddRewardInstructionDataCodec, getAddRewardInstructionDataDecoder, getAddRewardInstructionDataEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCentralStateAddress, getCentralStateCodec, getCentralStateDecoder, getCentralStateDiscriminatorBytes, getCentralStateEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountDiscriminatorBytes, getClockAccountEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterDiscriminatorBytes, getClusterEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountDiscriminatorBytes, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getDoUnstakeEarlyDiscriminatorBytes, getDoUnstakeEarlyInstruction, getDoUnstakeEarlyInstructionAsync, getDoUnstakeEarlyInstructionDataCodec, getDoUnstakeEarlyInstructionDataDecoder, getDoUnstakeEarlyInstructionDataEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolDiscriminatorBytes, getFeePoolEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getIncrementOptionTallyDiscriminatorBytes, getIncrementOptionTallyInstruction, getIncrementOptionTallyInstructionAsync, getIncrementOptionTallyInstructionDataCodec, getIncrementOptionTallyInstructionDataDecoder, getIncrementOptionTallyInstructionDataEncoder, getInitCentralStateDiscriminatorBytes, getInitCentralStateInstruction, getInitCentralStateInstructionAsync, getInitCentralStateInstructionDataCodec, getInitCentralStateInstructionDataDecoder, getInitCentralStateInstructionDataEncoder, getInitCompDefInstruction, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getInitTokenVaultDiscriminatorBytes, getInitTokenVaultInstruction, getInitTokenVaultInstructionAsync, getInitTokenVaultInstructionDataCodec, getInitTokenVaultInstructionDataDecoder, getInitTokenVaultInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountDiscriminatorBytes, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOpportunityMarketSponsorAddress, getOpportunityMarketSponsorCodec, getOpportunityMarketSponsorDecoder, getOpportunityMarketSponsorDiscriminatorBytes, getOpportunityMarketSponsorEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getReclaimStakeDiscriminatorBytes, getReclaimStakeInstruction, getReclaimStakeInstructionAsync, getReclaimStakeInstructionDataCodec, getReclaimStakeInstructionDataDecoder, getReclaimStakeInstructionDataEncoder, getRevealPeriodExtendedEventCodec, getRevealPeriodExtendedEventDecoder, getRevealPeriodExtendedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardClaimedEventCodec, getRewardClaimedEventDecoder, getRewardClaimedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getSelectWinningOptionsDiscriminatorBytes, getSelectWinningOptionsInstruction, getSelectWinningOptionsInstructionDataCodec, getSelectWinningOptionsInstructionDataDecoder, getSelectWinningOptionsInstructionDataEncoder, getStakeAccountAddress, getStakeAccountCodec, getStakeAccountDecoder, getStakeAccountDiscriminatorBytes, getStakeAccountEncoder, getStakeAccountInitializedEventCodec, getStakeAccountInitializedEventDecoder, getStakeAccountInitializedEventEncoder, getStakeCallbackDiscriminatorBytes, getStakeCallbackInstruction, getStakeCallbackInstructionDataCodec, getStakeCallbackInstructionDataDecoder, getStakeCallbackInstructionDataEncoder, getStakeCompDefDiscriminatorBytes, getStakeCompDefInstruction, getStakeCompDefInstructionDataCodec, getStakeCompDefInstructionDataDecoder, getStakeCompDefInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getStakeOutputCodec, getStakeOutputDecoder, getStakeOutputEncoder, getStakeOutputStruct0Codec, getStakeOutputStruct0Decoder, getStakeOutputStruct0Encoder, getStakeReclaimedEventCodec, getStakeReclaimedEventDecoder, getStakeReclaimedEventEncoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTallyIncrementedEventCodec, getTallyIncrementedEventDecoder, getTallyIncrementedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getTokenVaultAddress, getTokenVaultCodec, getTokenVaultDecoder, getTokenVaultDiscriminatorBytes, getTokenVaultEncoder, getTransferCentralStateAuthorityDiscriminatorBytes, getTransferCentralStateAuthorityInstruction, getTransferCentralStateAuthorityInstructionAsync, getTransferCentralStateAuthorityInstructionDataCodec, getTransferCentralStateAuthorityInstructionDataDecoder, getTransferCentralStateAuthorityInstructionDataEncoder, getUnstakeEarlyDiscriminatorBytes, getUnstakeEarlyInstruction, getUnstakeEarlyInstructionAsync, getUnstakeEarlyInstructionDataCodec, getUnstakeEarlyInstructionDataDecoder, getUnstakeEarlyInstructionDataEncoder, getUnstakeInitiatedEventCodec, getUnstakeInitiatedEventDecoder, getUnstakeInitiatedEventEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateCentralStateDiscriminatorBytes, getUpdateCentralStateInstruction, getUpdateCentralStateInstructionAsync, getUpdateCentralStateInstructionDataCodec, getUpdateCentralStateInstructionDataDecoder, getUpdateCentralStateInstructionDataEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionCodec, getWinningOptionDecoder, getWinningOptionEncoder, getWinningOptionsSelectedEventCodec, getWinningOptionsSelectedEventDecoder, getWinningOptionsSelectedEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, incrementOptionTally, initStakeAccount, initTokenVault, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimFeesInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCreateMarketInstruction, parseDoUnstakeEarlyInstruction, parseEndRevealPeriodInstruction, parseIncrementOptionTallyInstruction, parseInitCentralStateInstruction, parseInitStakeAccountInstruction, parseInitTokenVaultInstruction, parseOpenMarketInstruction, parseReclaimStakeInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSelectWinningOptionsInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseTransferCentralStateAuthorityInstruction, parseUnstakeEarlyInstruction, parseUpdateCentralStateInstruction, parseWithdrawRewardInstruction, randomComputationOffset, randomStateNonce, reclaimStake, revealStake, selectWinningOptions, stake, toNumberArray, unstakeEarly, withdrawReward };
|
|
3875
|
+
export { ADD_MARKET_OPTION_DISCRIMINATOR, ADD_REWARD_DISCRIMINATOR, ALL_COMP_DEF_CIRCUITS, ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR, type Activation, type ActivationArgs, type AddMarketOptionAsyncInput, type AddMarketOptionInput, type AddMarketOptionInstruction, type AddMarketOptionInstructionData, type AddMarketOptionInstructionDataArgs, type AddMarketOptionParams, type AddRewardAsyncInput, type AddRewardInput, type AddRewardInstruction, type AddRewardInstructionData, type AddRewardInstructionDataArgs, type AddRewardParams, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CENTRAL_STATE_DISCRIMINATOR, CENTRAL_STATE_SEED, CLAIM_FEES_DISCRIMINATOR, CLOCK_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CLUSTER_DISCRIMINATOR, COMPUTATION_DEFINITION_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CentralState, type CentralStateArgs, type CircuitSource, type CircuitSourceArgs, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClockAccount, type ClockAccountArgs, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type CloseStuckStakeAccountAsyncInput, type CloseStuckStakeAccountInput, type CloseStuckStakeAccountInstruction, type CloseStuckStakeAccountInstructionData, type CloseStuckStakeAccountInstructionDataArgs, type CloseStuckStakeAccountParams, type Cluster, type ClusterArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationResult, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParams, DO_UNSTAKE_EARLY_DISCRIMINATOR, type DoUnstakeEarlyAsyncInput, type DoUnstakeEarlyInput, type DoUnstakeEarlyInstruction, type DoUnstakeEarlyInstructionData, type DoUnstakeEarlyInstructionDataArgs, type DoUnstakeEarlyParams, END_REVEAL_PERIOD_DISCRIMINATOR, type EndRevealPeriodInput, type EndRevealPeriodInstruction, type EndRevealPeriodInstructionData, type EndRevealPeriodInstructionDataArgs, type EndRevealPeriodParams, type EnsureCentralStateParams, type Epoch, type EpochArgs, FEE_POOL_DISCRIMINATOR, type FeePool, type FeePoolArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, INCREMENT_OPTION_TALLY_DISCRIMINATOR, INIT_CENTRAL_STATE_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, INIT_TOKEN_VAULT_DISCRIMINATOR, type IncrementOptionTallyAsyncInput, type IncrementOptionTallyInput, type IncrementOptionTallyInstruction, type IncrementOptionTallyInstructionData, type IncrementOptionTallyInstructionDataArgs, type IncrementOptionTallyParams, type InitCentralStateAsyncInput, type InitCentralStateInput, type InitCentralStateInstruction, type InitCentralStateInstructionData, type InitCentralStateInstructionDataArgs, type InitCompDefConfig, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, type InitTokenVaultAsyncInput, type InitTokenVaultInput, type InitTokenVaultInstruction, type InitTokenVaultInstructionData, type InitTokenVaultInstructionDataArgs, type InitTokenVaultParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, M_X_E_ACCOUNT_DISCRIMINATOR, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, type MarketPausedEvent, type MarketPausedEventArgs, type MarketResumedEvent, type MarketResumedEventArgs, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION, OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED, OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET, OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__EARLINESS_CUTOFF_TOO_LARGE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING, OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE, OPPORTUNITY_MARKET_ERROR__INVALID_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_TIMESTAMP, OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT, OPPORTUNITY_MARKET_ERROR__LOCKED, OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED, OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED, OPPORTUNITY_MARKET_ERROR__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__PROTOCOL_FEE_TOO_HIGH, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__STAKING_NOT_ACTIVE, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET, OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, type OpportunityMarketSponsor, type OpportunityMarketSponsorArgs, Output, type OutputArgs, PAUSE_MARKET_DISCRIMINATOR, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimFeesInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedDoUnstakeEarlyInstruction, type ParsedEndRevealPeriodInstruction, type ParsedIncrementOptionTallyInstruction, type ParsedInitCentralStateInstruction, type ParsedInitStakeAccountInstruction, type ParsedInitTokenVaultInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedPauseMarketInstruction, type ParsedReclaimStakeInstruction, type ParsedResumeMarketInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSelectWinningOptionsInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedTransferCentralStateAuthorityInstruction, type ParsedUnstakeEarlyInstruction, type ParsedUpdateCentralStateInstruction, type ParsedWithdrawRewardInstruction, type PauseMarketInput, type PauseMarketInstruction, type PauseMarketInstructionData, type PauseMarketInstructionDataArgs, type PauseMarketParams, RECLAIM_STAKE_DISCRIMINATOR, RESUME_MARKET_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ReclaimStakeAsyncInput, type ReclaimStakeInput, type ReclaimStakeInstruction, type ReclaimStakeInstructionData, type ReclaimStakeInstructionDataArgs, type ReclaimStakeParams, type ResumeMarketInput, type ResumeMarketInstruction, type ResumeMarketInstructionData, type ResumeMarketInstructionDataArgs, type ResumeMarketParams, type RevealPeriodEndedEvent, type RevealPeriodEndedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardClaimedEvent, type RewardClaimedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, SELECT_WINNING_OPTIONS_DISCRIMINATOR, SPONSOR_SEED, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SelectWinningOptionsInput, type SelectWinningOptionsInstruction, type SelectWinningOptionsInstructionData, type SelectWinningOptionsInstructionDataArgs, type SelectWinningOptionsParams, type StakeAccount, type StakeAccountArgs, type StakeAccountInitializedEvent, type StakeAccountInitializedEventArgs, type StakeAsyncInput, type StakeCallbackInput, type StakeCallbackInstruction, type StakeCallbackInstructionData, type StakeCallbackInstructionDataArgs, type StakeCompDefInput, type StakeCompDefInstruction, type StakeCompDefInstructionData, type StakeCompDefInstructionDataArgs, type StakeInput, type StakeInstruction, type StakeInstructionData, type StakeInstructionDataArgs, type StakeOutput, type StakeOutputArgs, type StakeOutputStruct0, type StakeOutputStruct0Args, type StakeParams, type StakeReclaimedEvent, type StakeReclaimedEventArgs, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, type StuckStakeClosedEvent, type StuckStakeClosedEventArgs, TOKEN_VAULT_DISCRIMINATOR, TOKEN_VAULT_SEED, TRANSFER_CENTRAL_STATE_AUTHORITY_DISCRIMINATOR, type TallyIncrementedEvent, type TallyIncrementedEventArgs, type Timestamp, type TimestampArgs, type TokenVault, type TokenVaultArgs, type TransferCentralStateAuthorityAsyncInput, type TransferCentralStateAuthorityInput, type TransferCentralStateAuthorityInstruction, type TransferCentralStateAuthorityInstructionData, type TransferCentralStateAuthorityInstructionDataArgs, UNSTAKE_EARLY_DISCRIMINATOR, UPDATE_CENTRAL_STATE_DISCRIMINATOR, type UnstakeEarlyAsyncInput, type UnstakeEarlyInput, type UnstakeEarlyInstruction, type UnstakeEarlyInstructionData, type UnstakeEarlyInstructionDataArgs, type UnstakeEarlyParams, type UnstakeInitiatedEvent, type UnstakeInitiatedEventArgs, type UnstakedEvent, type UnstakedEventArgs, type UpdateCentralStateAsyncInput, type UpdateCentralStateInput, type UpdateCentralStateInstruction, type UpdateCentralStateInstructionData, type UpdateCentralStateInstructionDataArgs, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOption, type WinningOptionArgs, type WinningOptionsSelectedEvent, type WinningOptionsSelectedEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, addReward, awaitBatchComputationFinalization, awaitComputationFinalization, circuitSource, closeStakeAccount, closeStuckStakeAccount, createCipher, createMarket, decodeArciumSignerAccount, decodeCentralState, decodeClockAccount, decodeCluster, decodeComputationDefinitionAccount, decodeFeePool, decodeMXEAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodeStakeAccount, decodeTokenVault, deriveSharedSecret, deriveX25519KeypairFromSignature, doUnstakeEarly, endRevealPeriod, ensureCentralState, fetchAllArciumSignerAccount, fetchAllCentralState, fetchAllClockAccount, fetchAllCluster, fetchAllComputationDefinitionAccount, fetchAllFeePool, fetchAllMXEAccount, fetchAllMaybeArciumSignerAccount, fetchAllMaybeCentralState, fetchAllMaybeClockAccount, fetchAllMaybeCluster, fetchAllMaybeComputationDefinitionAccount, fetchAllMaybeFeePool, fetchAllMaybeMXEAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybeStakeAccount, fetchAllMaybeTokenVault, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllStakeAccount, fetchAllTokenVault, fetchArciumSignerAccount, fetchCentralState, fetchClockAccount, fetchCluster, fetchComputationDefinitionAccount, fetchFeePool, fetchMXEAccount, fetchMaybeArciumSignerAccount, fetchMaybeCentralState, fetchMaybeClockAccount, fetchMaybeCluster, fetchMaybeComputationDefinitionAccount, fetchMaybeFeePool, fetchMaybeMXEAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybeStakeAccount, fetchMaybeTokenVault, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchStakeAccount, fetchTokenVault, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getAddRewardDiscriminatorBytes, getAddRewardInstruction, getAddRewardInstructionAsync, getAddRewardInstructionDataCodec, getAddRewardInstructionDataDecoder, getAddRewardInstructionDataEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCentralStateAddress, getCentralStateCodec, getCentralStateDecoder, getCentralStateDiscriminatorBytes, getCentralStateEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountDiscriminatorBytes, getClockAccountEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterDiscriminatorBytes, getClusterEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountDiscriminatorBytes, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getDoUnstakeEarlyDiscriminatorBytes, getDoUnstakeEarlyInstruction, getDoUnstakeEarlyInstructionAsync, getDoUnstakeEarlyInstructionDataCodec, getDoUnstakeEarlyInstructionDataDecoder, getDoUnstakeEarlyInstructionDataEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolDiscriminatorBytes, getFeePoolEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getIncrementOptionTallyDiscriminatorBytes, getIncrementOptionTallyInstruction, getIncrementOptionTallyInstructionAsync, getIncrementOptionTallyInstructionDataCodec, getIncrementOptionTallyInstructionDataDecoder, getIncrementOptionTallyInstructionDataEncoder, getInitCentralStateDiscriminatorBytes, getInitCentralStateInstruction, getInitCentralStateInstructionAsync, getInitCentralStateInstructionDataCodec, getInitCentralStateInstructionDataDecoder, getInitCentralStateInstructionDataEncoder, getInitCompDefInstruction, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getInitTokenVaultDiscriminatorBytes, getInitTokenVaultInstruction, getInitTokenVaultInstructionAsync, getInitTokenVaultInstructionDataCodec, getInitTokenVaultInstructionDataDecoder, getInitTokenVaultInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountDiscriminatorBytes, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMarketPausedEventCodec, getMarketPausedEventDecoder, getMarketPausedEventEncoder, getMarketResumedEventCodec, getMarketResumedEventDecoder, getMarketResumedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOpportunityMarketSponsorAddress, getOpportunityMarketSponsorCodec, getOpportunityMarketSponsorDecoder, getOpportunityMarketSponsorDiscriminatorBytes, getOpportunityMarketSponsorEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getPauseMarketDiscriminatorBytes, getPauseMarketInstruction, getPauseMarketInstructionDataCodec, getPauseMarketInstructionDataDecoder, getPauseMarketInstructionDataEncoder, getReclaimStakeDiscriminatorBytes, getReclaimStakeInstruction, getReclaimStakeInstructionAsync, getReclaimStakeInstructionDataCodec, getReclaimStakeInstructionDataDecoder, getReclaimStakeInstructionDataEncoder, getResumeMarketDiscriminatorBytes, getResumeMarketInstruction, getResumeMarketInstructionDataCodec, getResumeMarketInstructionDataDecoder, getResumeMarketInstructionDataEncoder, getRevealPeriodEndedEventCodec, getRevealPeriodEndedEventDecoder, getRevealPeriodEndedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardClaimedEventCodec, getRewardClaimedEventDecoder, getRewardClaimedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getSelectWinningOptionsDiscriminatorBytes, getSelectWinningOptionsInstruction, getSelectWinningOptionsInstructionDataCodec, getSelectWinningOptionsInstructionDataDecoder, getSelectWinningOptionsInstructionDataEncoder, getStakeAccountAddress, getStakeAccountCodec, getStakeAccountDecoder, getStakeAccountDiscriminatorBytes, getStakeAccountEncoder, getStakeAccountInitializedEventCodec, getStakeAccountInitializedEventDecoder, getStakeAccountInitializedEventEncoder, getStakeCallbackDiscriminatorBytes, getStakeCallbackInstruction, getStakeCallbackInstructionDataCodec, getStakeCallbackInstructionDataDecoder, getStakeCallbackInstructionDataEncoder, getStakeCompDefDiscriminatorBytes, getStakeCompDefInstruction, getStakeCompDefInstructionDataCodec, getStakeCompDefInstructionDataDecoder, getStakeCompDefInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getStakeOutputCodec, getStakeOutputDecoder, getStakeOutputEncoder, getStakeOutputStruct0Codec, getStakeOutputStruct0Decoder, getStakeOutputStruct0Encoder, getStakeReclaimedEventCodec, getStakeReclaimedEventDecoder, getStakeReclaimedEventEncoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTallyIncrementedEventCodec, getTallyIncrementedEventDecoder, getTallyIncrementedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getTokenVaultAddress, getTokenVaultCodec, getTokenVaultDecoder, getTokenVaultDiscriminatorBytes, getTokenVaultEncoder, getTransferCentralStateAuthorityDiscriminatorBytes, getTransferCentralStateAuthorityInstruction, getTransferCentralStateAuthorityInstructionAsync, getTransferCentralStateAuthorityInstructionDataCodec, getTransferCentralStateAuthorityInstructionDataDecoder, getTransferCentralStateAuthorityInstructionDataEncoder, getUnstakeEarlyDiscriminatorBytes, getUnstakeEarlyInstruction, getUnstakeEarlyInstructionAsync, getUnstakeEarlyInstructionDataCodec, getUnstakeEarlyInstructionDataDecoder, getUnstakeEarlyInstructionDataEncoder, getUnstakeInitiatedEventCodec, getUnstakeInitiatedEventDecoder, getUnstakeInitiatedEventEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateCentralStateDiscriminatorBytes, getUpdateCentralStateInstruction, getUpdateCentralStateInstructionAsync, getUpdateCentralStateInstructionDataCodec, getUpdateCentralStateInstructionDataDecoder, getUpdateCentralStateInstructionDataEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionCodec, getWinningOptionDecoder, getWinningOptionEncoder, getWinningOptionsSelectedEventCodec, getWinningOptionsSelectedEventDecoder, getWinningOptionsSelectedEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, incrementOptionTally, initStakeAccount, initTokenVault, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimFeesInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCreateMarketInstruction, parseDoUnstakeEarlyInstruction, parseEndRevealPeriodInstruction, parseIncrementOptionTallyInstruction, parseInitCentralStateInstruction, parseInitStakeAccountInstruction, parseInitTokenVaultInstruction, parseOpenMarketInstruction, parsePauseMarketInstruction, parseReclaimStakeInstruction, parseResumeMarketInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSelectWinningOptionsInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseTransferCentralStateAuthorityInstruction, parseUnstakeEarlyInstruction, parseUpdateCentralStateInstruction, parseWithdrawRewardInstruction, pauseMarket, randomComputationOffset, randomStateNonce, reclaimStake, resumeMarket, revealStake, selectWinningOptions, stake, toNumberArray, unstakeEarly, withdrawReward };
|