@bench.games/opportunity-markets 0.2.5 → 0.2.7
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 +1954 -1613
- package/dist/index.cjs +1518 -1194
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +369 -264
- package/dist/index.d.ts +369 -264
- package/dist/index.js +1954 -1613
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -47,8 +47,9 @@ type CentralState = {
|
|
|
47
47
|
minOptionDeposit: bigint;
|
|
48
48
|
protocolFeeBp: number;
|
|
49
49
|
feeRecipient: Address;
|
|
50
|
-
rewardWithdrawStakedLimit: number;
|
|
51
50
|
minimumInitialRevealPeriod: bigint;
|
|
51
|
+
/** Reserved for future use */
|
|
52
|
+
reserved: Array<number>;
|
|
52
53
|
};
|
|
53
54
|
type CentralStateArgs = {
|
|
54
55
|
bump: number;
|
|
@@ -57,8 +58,9 @@ type CentralStateArgs = {
|
|
|
57
58
|
minOptionDeposit: number | bigint;
|
|
58
59
|
protocolFeeBp: number;
|
|
59
60
|
feeRecipient: Address;
|
|
60
|
-
rewardWithdrawStakedLimit: number;
|
|
61
61
|
minimumInitialRevealPeriod: number | bigint;
|
|
62
|
+
/** Reserved for future use */
|
|
63
|
+
reserved: Array<number>;
|
|
62
64
|
};
|
|
63
65
|
declare function getCentralStateEncoder(): FixedSizeEncoder<CentralStateArgs>;
|
|
64
66
|
declare function getCentralStateDecoder(): FixedSizeDecoder<CentralState>;
|
|
@@ -256,7 +258,6 @@ type MarketCreatedEvent = {
|
|
|
256
258
|
creator: Address;
|
|
257
259
|
index: bigint;
|
|
258
260
|
mint: Address;
|
|
259
|
-
rewardAmount: bigint;
|
|
260
261
|
timeToStake: bigint;
|
|
261
262
|
timeToReveal: bigint;
|
|
262
263
|
earlinessCutoffSeconds: bigint;
|
|
@@ -271,7 +272,6 @@ type MarketCreatedEventArgs = {
|
|
|
271
272
|
creator: Address;
|
|
272
273
|
index: number | bigint;
|
|
273
274
|
mint: Address;
|
|
274
|
-
rewardAmount: number | bigint;
|
|
275
275
|
timeToStake: number | bigint;
|
|
276
276
|
timeToReveal: number | bigint;
|
|
277
277
|
earlinessCutoffSeconds: number | bigint;
|
|
@@ -553,6 +553,34 @@ declare function getRevealStakeOutputEncoder(): FixedSizeEncoder<RevealStakeOutp
|
|
|
553
553
|
declare function getRevealStakeOutputDecoder(): FixedSizeDecoder<RevealStakeOutput>;
|
|
554
554
|
declare function getRevealStakeOutputCodec(): FixedSizeCodec<RevealStakeOutputArgs, RevealStakeOutput>;
|
|
555
555
|
|
|
556
|
+
/**
|
|
557
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
558
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
559
|
+
* to add features, then rerun Codama to update it.
|
|
560
|
+
*
|
|
561
|
+
* @see https://github.com/codama-idl/codama
|
|
562
|
+
*/
|
|
563
|
+
|
|
564
|
+
type RewardAddedEvent = {
|
|
565
|
+
market: Address;
|
|
566
|
+
sponsor: Address;
|
|
567
|
+
amount: bigint;
|
|
568
|
+
totalRewardAmount: bigint;
|
|
569
|
+
locked: boolean;
|
|
570
|
+
timestamp: bigint;
|
|
571
|
+
};
|
|
572
|
+
type RewardAddedEventArgs = {
|
|
573
|
+
market: Address;
|
|
574
|
+
sponsor: Address;
|
|
575
|
+
amount: number | bigint;
|
|
576
|
+
totalRewardAmount: number | bigint;
|
|
577
|
+
locked: boolean;
|
|
578
|
+
timestamp: number | bigint;
|
|
579
|
+
};
|
|
580
|
+
declare function getRewardAddedEventEncoder(): FixedSizeEncoder<RewardAddedEventArgs>;
|
|
581
|
+
declare function getRewardAddedEventDecoder(): FixedSizeDecoder<RewardAddedEvent>;
|
|
582
|
+
declare function getRewardAddedEventCodec(): FixedSizeCodec<RewardAddedEventArgs, RewardAddedEvent>;
|
|
583
|
+
|
|
556
584
|
/**
|
|
557
585
|
* This code was AUTOGENERATED using the Codama library.
|
|
558
586
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -589,32 +617,6 @@ declare function getRewardClaimedEventEncoder(): FixedSizeEncoder<RewardClaimedE
|
|
|
589
617
|
declare function getRewardClaimedEventDecoder(): FixedSizeDecoder<RewardClaimedEvent>;
|
|
590
618
|
declare function getRewardClaimedEventCodec(): FixedSizeCodec<RewardClaimedEventArgs, RewardClaimedEvent>;
|
|
591
619
|
|
|
592
|
-
/**
|
|
593
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
594
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
595
|
-
* to add features, then rerun Codama to update it.
|
|
596
|
-
*
|
|
597
|
-
* @see https://github.com/codama-idl/codama
|
|
598
|
-
*/
|
|
599
|
-
|
|
600
|
-
type RewardPoolIncreasedEvent = {
|
|
601
|
-
market: Address;
|
|
602
|
-
authority: Address;
|
|
603
|
-
oldRewardAmount: bigint;
|
|
604
|
-
newRewardAmount: bigint;
|
|
605
|
-
timestamp: bigint;
|
|
606
|
-
};
|
|
607
|
-
type RewardPoolIncreasedEventArgs = {
|
|
608
|
-
market: Address;
|
|
609
|
-
authority: Address;
|
|
610
|
-
oldRewardAmount: number | bigint;
|
|
611
|
-
newRewardAmount: number | bigint;
|
|
612
|
-
timestamp: number | bigint;
|
|
613
|
-
};
|
|
614
|
-
declare function getRewardPoolIncreasedEventEncoder(): FixedSizeEncoder<RewardPoolIncreasedEventArgs>;
|
|
615
|
-
declare function getRewardPoolIncreasedEventDecoder(): FixedSizeDecoder<RewardPoolIncreasedEvent>;
|
|
616
|
-
declare function getRewardPoolIncreasedEventCodec(): FixedSizeCodec<RewardPoolIncreasedEventArgs, RewardPoolIncreasedEvent>;
|
|
617
|
-
|
|
618
620
|
/**
|
|
619
621
|
* This code was AUTOGENERATED using the Codama library.
|
|
620
622
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -625,14 +627,14 @@ declare function getRewardPoolIncreasedEventCodec(): FixedSizeCodec<RewardPoolIn
|
|
|
625
627
|
|
|
626
628
|
type RewardWithdrawnEvent = {
|
|
627
629
|
market: Address;
|
|
628
|
-
|
|
630
|
+
sponsor: Address;
|
|
629
631
|
rewardAmount: bigint;
|
|
630
632
|
refundTokenAccount: Address;
|
|
631
633
|
timestamp: bigint;
|
|
632
634
|
};
|
|
633
635
|
type RewardWithdrawnEventArgs = {
|
|
634
636
|
market: Address;
|
|
635
|
-
|
|
637
|
+
sponsor: Address;
|
|
636
638
|
rewardAmount: number | bigint;
|
|
637
639
|
refundTokenAccount: Address;
|
|
638
640
|
timestamp: number | bigint;
|
|
@@ -667,26 +669,6 @@ declare function getStakeAccountInitializedEventEncoder(): FixedSizeEncoder<Stak
|
|
|
667
669
|
declare function getStakeAccountInitializedEventDecoder(): FixedSizeDecoder<StakeAccountInitializedEvent>;
|
|
668
670
|
declare function getStakeAccountInitializedEventCodec(): FixedSizeCodec<StakeAccountInitializedEventArgs, StakeAccountInitializedEvent>;
|
|
669
671
|
|
|
670
|
-
/**
|
|
671
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
672
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
673
|
-
* to add features, then rerun Codama to update it.
|
|
674
|
-
*
|
|
675
|
-
* @see https://github.com/codama-idl/codama
|
|
676
|
-
*/
|
|
677
|
-
|
|
678
|
-
type StakedError = {
|
|
679
|
-
user: Address;
|
|
680
|
-
timestamp: bigint;
|
|
681
|
-
};
|
|
682
|
-
type StakedErrorArgs = {
|
|
683
|
-
user: Address;
|
|
684
|
-
timestamp: number | bigint;
|
|
685
|
-
};
|
|
686
|
-
declare function getStakedErrorEncoder(): FixedSizeEncoder<StakedErrorArgs>;
|
|
687
|
-
declare function getStakedErrorDecoder(): FixedSizeDecoder<StakedError>;
|
|
688
|
-
declare function getStakedErrorCodec(): FixedSizeCodec<StakedErrorArgs, StakedError>;
|
|
689
|
-
|
|
690
672
|
/**
|
|
691
673
|
* This code was AUTOGENERATED using the Codama library.
|
|
692
674
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -813,17 +795,25 @@ declare function getStakeReclaimedEventCodec(): FixedSizeCodec<StakeReclaimedEve
|
|
|
813
795
|
* @see https://github.com/codama-idl/codama
|
|
814
796
|
*/
|
|
815
797
|
|
|
816
|
-
type
|
|
798
|
+
type StakeRevealedEvent = {
|
|
817
799
|
user: Address;
|
|
800
|
+
market: Address;
|
|
801
|
+
stakeAccount: Address;
|
|
802
|
+
stakeAmount: bigint;
|
|
803
|
+
selectedOption: bigint;
|
|
818
804
|
timestamp: bigint;
|
|
819
805
|
};
|
|
820
|
-
type
|
|
806
|
+
type StakeRevealedEventArgs = {
|
|
821
807
|
user: Address;
|
|
808
|
+
market: Address;
|
|
809
|
+
stakeAccount: Address;
|
|
810
|
+
stakeAmount: number | bigint;
|
|
811
|
+
selectedOption: number | bigint;
|
|
822
812
|
timestamp: number | bigint;
|
|
823
813
|
};
|
|
824
|
-
declare function
|
|
825
|
-
declare function
|
|
826
|
-
declare function
|
|
814
|
+
declare function getStakeRevealedEventEncoder(): FixedSizeEncoder<StakeRevealedEventArgs>;
|
|
815
|
+
declare function getStakeRevealedEventDecoder(): FixedSizeDecoder<StakeRevealedEvent>;
|
|
816
|
+
declare function getStakeRevealedEventCodec(): FixedSizeCodec<StakeRevealedEventArgs, StakeRevealedEvent>;
|
|
827
817
|
|
|
828
818
|
/**
|
|
829
819
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -833,25 +823,25 @@ declare function getStakeRevealedErrorCodec(): FixedSizeCodec<StakeRevealedError
|
|
|
833
823
|
* @see https://github.com/codama-idl/codama
|
|
834
824
|
*/
|
|
835
825
|
|
|
836
|
-
type
|
|
837
|
-
|
|
826
|
+
type StuckStakeClosedEvent = {
|
|
827
|
+
owner: Address;
|
|
838
828
|
market: Address;
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
829
|
+
stakeAccountId: number;
|
|
830
|
+
refundedAmount: bigint;
|
|
831
|
+
refundedFee: bigint;
|
|
842
832
|
timestamp: bigint;
|
|
843
833
|
};
|
|
844
|
-
type
|
|
845
|
-
|
|
834
|
+
type StuckStakeClosedEventArgs = {
|
|
835
|
+
owner: Address;
|
|
846
836
|
market: Address;
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
837
|
+
stakeAccountId: number;
|
|
838
|
+
refundedAmount: number | bigint;
|
|
839
|
+
refundedFee: number | bigint;
|
|
850
840
|
timestamp: number | bigint;
|
|
851
841
|
};
|
|
852
|
-
declare function
|
|
853
|
-
declare function
|
|
854
|
-
declare function
|
|
842
|
+
declare function getStuckStakeClosedEventEncoder(): FixedSizeEncoder<StuckStakeClosedEventArgs>;
|
|
843
|
+
declare function getStuckStakeClosedEventDecoder(): FixedSizeDecoder<StuckStakeClosedEvent>;
|
|
844
|
+
declare function getStuckStakeClosedEventCodec(): FixedSizeCodec<StuckStakeClosedEventArgs, StuckStakeClosedEvent>;
|
|
855
845
|
|
|
856
846
|
/**
|
|
857
847
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1259,8 +1249,6 @@ type OpportunityMarket = {
|
|
|
1259
1249
|
unstakeDelaySeconds: bigint;
|
|
1260
1250
|
authorizedReaderPubkey: Array<number>;
|
|
1261
1251
|
allowClosingEarly: boolean;
|
|
1262
|
-
rewardWithdrawn: boolean;
|
|
1263
|
-
totalStakedCount: bigint;
|
|
1264
1252
|
};
|
|
1265
1253
|
type OpportunityMarketArgs = {
|
|
1266
1254
|
bump: number;
|
|
@@ -1279,8 +1267,6 @@ type OpportunityMarketArgs = {
|
|
|
1279
1267
|
unstakeDelaySeconds: number | bigint;
|
|
1280
1268
|
authorizedReaderPubkey: Array<number>;
|
|
1281
1269
|
allowClosingEarly: boolean;
|
|
1282
|
-
rewardWithdrawn: boolean;
|
|
1283
|
-
totalStakedCount: number | bigint;
|
|
1284
1270
|
};
|
|
1285
1271
|
declare function getOpportunityMarketEncoder(): Encoder<OpportunityMarketArgs>;
|
|
1286
1272
|
declare function getOpportunityMarketDecoder(): Decoder<OpportunityMarket>;
|
|
@@ -1306,14 +1292,12 @@ type OpportunityMarketOption = {
|
|
|
1306
1292
|
discriminator: ReadonlyUint8Array;
|
|
1307
1293
|
bump: number;
|
|
1308
1294
|
id: bigint;
|
|
1309
|
-
/** Total staked for this option (tally) */
|
|
1310
1295
|
totalStaked: bigint;
|
|
1311
1296
|
totalScore: bigint;
|
|
1312
1297
|
};
|
|
1313
1298
|
type OpportunityMarketOptionArgs = {
|
|
1314
1299
|
bump: number;
|
|
1315
1300
|
id: number | bigint;
|
|
1316
|
-
/** Total staked for this option (tally) */
|
|
1317
1301
|
totalStaked: number | bigint;
|
|
1318
1302
|
totalScore: number | bigint;
|
|
1319
1303
|
};
|
|
@@ -1327,6 +1311,41 @@ declare function fetchMaybeOpportunityMarketOption<TAddress extends string = str
|
|
|
1327
1311
|
declare function fetchAllOpportunityMarketOption(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<OpportunityMarketOption>[]>;
|
|
1328
1312
|
declare function fetchAllMaybeOpportunityMarketOption(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<OpportunityMarketOption>[]>;
|
|
1329
1313
|
|
|
1314
|
+
/**
|
|
1315
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1316
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1317
|
+
* to add features, then rerun Codama to update it.
|
|
1318
|
+
*
|
|
1319
|
+
* @see https://github.com/codama-idl/codama
|
|
1320
|
+
*/
|
|
1321
|
+
|
|
1322
|
+
declare const OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1323
|
+
declare function getOpportunityMarketSponsorDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
1324
|
+
type OpportunityMarketSponsor = {
|
|
1325
|
+
discriminator: ReadonlyUint8Array;
|
|
1326
|
+
bump: number;
|
|
1327
|
+
sponsor: Address;
|
|
1328
|
+
market: Address;
|
|
1329
|
+
rewardDeposited: bigint;
|
|
1330
|
+
rewardLocked: boolean;
|
|
1331
|
+
};
|
|
1332
|
+
type OpportunityMarketSponsorArgs = {
|
|
1333
|
+
bump: number;
|
|
1334
|
+
sponsor: Address;
|
|
1335
|
+
market: Address;
|
|
1336
|
+
rewardDeposited: number | bigint;
|
|
1337
|
+
rewardLocked: boolean;
|
|
1338
|
+
};
|
|
1339
|
+
declare function getOpportunityMarketSponsorEncoder(): FixedSizeEncoder<OpportunityMarketSponsorArgs>;
|
|
1340
|
+
declare function getOpportunityMarketSponsorDecoder(): FixedSizeDecoder<OpportunityMarketSponsor>;
|
|
1341
|
+
declare function getOpportunityMarketSponsorCodec(): FixedSizeCodec<OpportunityMarketSponsorArgs, OpportunityMarketSponsor>;
|
|
1342
|
+
declare function decodeOpportunityMarketSponsor<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OpportunityMarketSponsor, TAddress>;
|
|
1343
|
+
declare function decodeOpportunityMarketSponsor<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OpportunityMarketSponsor, TAddress>;
|
|
1344
|
+
declare function fetchOpportunityMarketSponsor<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OpportunityMarketSponsor, TAddress>>;
|
|
1345
|
+
declare function fetchMaybeOpportunityMarketSponsor<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<OpportunityMarketSponsor, TAddress>>;
|
|
1346
|
+
declare function fetchAllOpportunityMarketSponsor(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<OpportunityMarketSponsor>[]>;
|
|
1347
|
+
declare function fetchAllMaybeOpportunityMarketSponsor(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<OpportunityMarketSponsor>[]>;
|
|
1348
|
+
|
|
1330
1349
|
/**
|
|
1331
1350
|
* This code was AUTOGENERATED using the Codama library.
|
|
1332
1351
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1350,12 +1369,15 @@ type StakeAccount = {
|
|
|
1350
1369
|
stakedAtTimestamp: Option<bigint>;
|
|
1351
1370
|
unstakedAtTimestamp: Option<bigint>;
|
|
1352
1371
|
amount: bigint;
|
|
1372
|
+
fee: bigint;
|
|
1353
1373
|
revealedOption: Option<bigint>;
|
|
1354
1374
|
score: Option<bigint>;
|
|
1355
1375
|
totalIncremented: boolean;
|
|
1356
1376
|
unstakeableAtTimestamp: Option<bigint>;
|
|
1357
1377
|
locked: boolean;
|
|
1358
1378
|
stakeReclaimed: boolean;
|
|
1379
|
+
pendingStake: boolean;
|
|
1380
|
+
pendingReveal: boolean;
|
|
1359
1381
|
};
|
|
1360
1382
|
type StakeAccountArgs = {
|
|
1361
1383
|
encryptedOption: Array<number>;
|
|
@@ -1369,12 +1391,15 @@ type StakeAccountArgs = {
|
|
|
1369
1391
|
stakedAtTimestamp: OptionOrNullable<number | bigint>;
|
|
1370
1392
|
unstakedAtTimestamp: OptionOrNullable<number | bigint>;
|
|
1371
1393
|
amount: number | bigint;
|
|
1394
|
+
fee: number | bigint;
|
|
1372
1395
|
revealedOption: OptionOrNullable<number | bigint>;
|
|
1373
1396
|
score: OptionOrNullable<number | bigint>;
|
|
1374
1397
|
totalIncremented: boolean;
|
|
1375
1398
|
unstakeableAtTimestamp: OptionOrNullable<number | bigint>;
|
|
1376
1399
|
locked: boolean;
|
|
1377
1400
|
stakeReclaimed: boolean;
|
|
1401
|
+
pendingStake: boolean;
|
|
1402
|
+
pendingReveal: boolean;
|
|
1378
1403
|
};
|
|
1379
1404
|
declare function getStakeAccountEncoder(): Encoder<StakeAccountArgs>;
|
|
1380
1405
|
declare function getStakeAccountDecoder(): Decoder<StakeAccount>;
|
|
@@ -1399,17 +1424,19 @@ declare function getTokenVaultDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuff
|
|
|
1399
1424
|
type TokenVault = {
|
|
1400
1425
|
discriminator: ReadonlyUint8Array;
|
|
1401
1426
|
bump: number;
|
|
1402
|
-
fundManager: Address;
|
|
1403
1427
|
mint: Address;
|
|
1404
1428
|
collectedFees: bigint;
|
|
1405
1429
|
protocolFeeBp: number;
|
|
1430
|
+
/** Reserved for future use */
|
|
1431
|
+
reserved: Array<number>;
|
|
1406
1432
|
};
|
|
1407
1433
|
type TokenVaultArgs = {
|
|
1408
1434
|
bump: number;
|
|
1409
|
-
fundManager: Address;
|
|
1410
1435
|
mint: Address;
|
|
1411
1436
|
collectedFees: number | bigint;
|
|
1412
1437
|
protocolFeeBp: number;
|
|
1438
|
+
/** Reserved for future use */
|
|
1439
|
+
reserved: Array<number>;
|
|
1413
1440
|
};
|
|
1414
1441
|
declare function getTokenVaultEncoder(): FixedSizeEncoder<TokenVaultArgs>;
|
|
1415
1442
|
declare function getTokenVaultDecoder(): FixedSizeDecoder<TokenVault>;
|
|
@@ -1467,8 +1494,8 @@ declare const OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED = 6016;
|
|
|
1467
1494
|
declare const OPPORTUNITY_MARKET_ERROR__INVALID_MINT = 6017;
|
|
1468
1495
|
/** AlreadyUnstaked: Already unstaked */
|
|
1469
1496
|
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED = 6018;
|
|
1470
|
-
/**
|
|
1471
|
-
declare const
|
|
1497
|
+
/** AlreadyStaked: Already staked for this stake account */
|
|
1498
|
+
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED = 6019;
|
|
1472
1499
|
/** DepositBelowMinimum: Deposit amount below minimum required for option creation */
|
|
1473
1500
|
declare const OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM = 6020;
|
|
1474
1501
|
/** AddOptionStakeFailed: Add option stake failed: insufficient balance or below minimum deposit */
|
|
@@ -1487,11 +1514,9 @@ declare const OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED = 6026;
|
|
|
1487
1514
|
declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM = 6027;
|
|
1488
1515
|
/** InvalidWinningOptionsInput: Invalid winning options input */
|
|
1489
1516
|
declare const OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT = 6028;
|
|
1490
|
-
/**
|
|
1491
|
-
declare const
|
|
1492
|
-
|
|
1493
|
-
declare const OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_WITHDRAWN = 6030;
|
|
1494
|
-
type OpportunityMarketError = typeof OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION | typeof OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_PURCHASED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED | typeof OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED | typeof OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET | typeof OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING | typeof OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE | typeof OPPORTUNITY_MARKET_ERROR__INVALID_MINT | typeof OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID | typeof OPPORTUNITY_MARKET_ERROR__INVALID_TIMESTAMP | typeof OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT | typeof OPPORTUNITY_MARKET_ERROR__LOCKED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED | typeof OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NOT_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__OVERFLOW | typeof OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED | typeof OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_WITHDRAWN | typeof OPPORTUNITY_MARKET_ERROR__REWARD_AMOUNT_NOT_INCREASED | typeof OPPORTUNITY_MARKET_ERROR__STAKING_NOT_ACTIVE | typeof OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED | typeof OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET | typeof OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED;
|
|
1517
|
+
/** StakeNotStuck: Stake account is not in a stuck or failed state */
|
|
1518
|
+
declare const OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK = 6029;
|
|
1519
|
+
type OpportunityMarketError = typeof OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION | typeof OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED | typeof OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED | typeof OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET | typeof OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING | typeof OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE | typeof OPPORTUNITY_MARKET_ERROR__INVALID_MINT | typeof OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID | typeof OPPORTUNITY_MARKET_ERROR__INVALID_TIMESTAMP | typeof OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT | typeof OPPORTUNITY_MARKET_ERROR__LOCKED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED | typeof OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NOT_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__OVERFLOW | typeof OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED | typeof OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK | typeof OPPORTUNITY_MARKET_ERROR__STAKING_NOT_ACTIVE | typeof OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED | typeof OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET | typeof OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED;
|
|
1495
1520
|
declare function getOpportunityMarketErrorMessage(code: OpportunityMarketError): string;
|
|
1496
1521
|
declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityMarketError>(error: unknown, transactionMessage: {
|
|
1497
1522
|
instructions: Record<number, {
|
|
@@ -1522,37 +1547,39 @@ declare enum OpportunityMarketAccount {
|
|
|
1522
1547
|
MXEAccount = 6,
|
|
1523
1548
|
OpportunityMarket = 7,
|
|
1524
1549
|
OpportunityMarketOption = 8,
|
|
1525
|
-
|
|
1526
|
-
|
|
1550
|
+
OpportunityMarketSponsor = 9,
|
|
1551
|
+
StakeAccount = 10,
|
|
1552
|
+
TokenVault = 11
|
|
1527
1553
|
}
|
|
1528
1554
|
declare function identifyOpportunityMarketAccount(account: {
|
|
1529
1555
|
data: ReadonlyUint8Array;
|
|
1530
1556
|
} | ReadonlyUint8Array): OpportunityMarketAccount;
|
|
1531
1557
|
declare enum OpportunityMarketInstruction {
|
|
1532
1558
|
AddMarketOption = 0,
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1559
|
+
AddReward = 1,
|
|
1560
|
+
ClaimFees = 2,
|
|
1561
|
+
CloseStakeAccount = 3,
|
|
1562
|
+
CloseStuckStakeAccount = 4,
|
|
1563
|
+
CreateMarket = 5,
|
|
1564
|
+
DoUnstakeEarly = 6,
|
|
1565
|
+
EndRevealPeriod = 7,
|
|
1566
|
+
IncrementOptionTally = 8,
|
|
1567
|
+
InitCentralState = 9,
|
|
1568
|
+
InitStakeAccount = 10,
|
|
1569
|
+
InitTokenVault = 11,
|
|
1570
|
+
OpenMarket = 12,
|
|
1571
|
+
ReclaimStake = 13,
|
|
1572
|
+
RevealStake = 14,
|
|
1573
|
+
RevealStakeCallback = 15,
|
|
1574
|
+
RevealStakeCompDef = 16,
|
|
1575
|
+
SelectWinningOptions = 17,
|
|
1576
|
+
Stake = 18,
|
|
1577
|
+
StakeCallback = 19,
|
|
1578
|
+
StakeCompDef = 20,
|
|
1579
|
+
TransferCentralStateAuthority = 21,
|
|
1580
|
+
UnstakeEarly = 22,
|
|
1581
|
+
UpdateCentralState = 23,
|
|
1582
|
+
WithdrawReward = 24
|
|
1556
1583
|
}
|
|
1557
1584
|
declare function identifyOpportunityMarketInstruction(instruction: {
|
|
1558
1585
|
data: ReadonlyUint8Array;
|
|
@@ -1560,18 +1587,20 @@ declare function identifyOpportunityMarketInstruction(instruction: {
|
|
|
1560
1587
|
type ParsedOpportunityMarketInstruction<TProgram extends string = 'BencHEXKYZ8HJ9LCrihgCWAmnqBT1abpsa9FYRs8fK1D'> = ({
|
|
1561
1588
|
instructionType: OpportunityMarketInstruction.AddMarketOption;
|
|
1562
1589
|
} & ParsedAddMarketOptionInstruction<TProgram>) | ({
|
|
1590
|
+
instructionType: OpportunityMarketInstruction.AddReward;
|
|
1591
|
+
} & ParsedAddRewardInstruction<TProgram>) | ({
|
|
1563
1592
|
instructionType: OpportunityMarketInstruction.ClaimFees;
|
|
1564
1593
|
} & ParsedClaimFeesInstruction<TProgram>) | ({
|
|
1565
1594
|
instructionType: OpportunityMarketInstruction.CloseStakeAccount;
|
|
1566
1595
|
} & ParsedCloseStakeAccountInstruction<TProgram>) | ({
|
|
1596
|
+
instructionType: OpportunityMarketInstruction.CloseStuckStakeAccount;
|
|
1597
|
+
} & ParsedCloseStuckStakeAccountInstruction<TProgram>) | ({
|
|
1567
1598
|
instructionType: OpportunityMarketInstruction.CreateMarket;
|
|
1568
1599
|
} & ParsedCreateMarketInstruction<TProgram>) | ({
|
|
1569
1600
|
instructionType: OpportunityMarketInstruction.DoUnstakeEarly;
|
|
1570
1601
|
} & ParsedDoUnstakeEarlyInstruction<TProgram>) | ({
|
|
1571
1602
|
instructionType: OpportunityMarketInstruction.EndRevealPeriod;
|
|
1572
1603
|
} & ParsedEndRevealPeriodInstruction<TProgram>) | ({
|
|
1573
|
-
instructionType: OpportunityMarketInstruction.IncreaseRewardPool;
|
|
1574
|
-
} & ParsedIncreaseRewardPoolInstruction<TProgram>) | ({
|
|
1575
1604
|
instructionType: OpportunityMarketInstruction.IncrementOptionTally;
|
|
1576
1605
|
} & ParsedIncrementOptionTallyInstruction<TProgram>) | ({
|
|
1577
1606
|
instructionType: OpportunityMarketInstruction.InitCentralState;
|
|
@@ -1666,6 +1695,88 @@ type ParsedAddMarketOptionInstruction<TProgram extends string = typeof OPPORTUNI
|
|
|
1666
1695
|
};
|
|
1667
1696
|
declare function parseAddMarketOptionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddMarketOptionInstruction<TProgram, TAccountMetas>;
|
|
1668
1697
|
|
|
1698
|
+
/**
|
|
1699
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1700
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1701
|
+
* to add features, then rerun Codama to update it.
|
|
1702
|
+
*
|
|
1703
|
+
* @see https://github.com/codama-idl/codama
|
|
1704
|
+
*/
|
|
1705
|
+
|
|
1706
|
+
declare const ADD_REWARD_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1707
|
+
declare function getAddRewardDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
1708
|
+
type AddRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSponsor extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountSponsorAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountSponsorTokenAccount extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1709
|
+
TAccountSponsor extends string ? WritableSignerAccount<TAccountSponsor> & AccountSignerMeta<TAccountSponsor> : TAccountSponsor,
|
|
1710
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
1711
|
+
TAccountSponsorAccount extends string ? WritableAccount<TAccountSponsorAccount> : TAccountSponsorAccount,
|
|
1712
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1713
|
+
TAccountSponsorTokenAccount extends string ? WritableAccount<TAccountSponsorTokenAccount> : TAccountSponsorTokenAccount,
|
|
1714
|
+
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
1715
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1716
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1717
|
+
...TRemainingAccounts
|
|
1718
|
+
]>;
|
|
1719
|
+
type AddRewardInstructionData = {
|
|
1720
|
+
discriminator: ReadonlyUint8Array;
|
|
1721
|
+
amount: bigint;
|
|
1722
|
+
lock: boolean;
|
|
1723
|
+
};
|
|
1724
|
+
type AddRewardInstructionDataArgs = {
|
|
1725
|
+
amount: number | bigint;
|
|
1726
|
+
lock: boolean;
|
|
1727
|
+
};
|
|
1728
|
+
declare function getAddRewardInstructionDataEncoder(): FixedSizeEncoder<AddRewardInstructionDataArgs>;
|
|
1729
|
+
declare function getAddRewardInstructionDataDecoder(): FixedSizeDecoder<AddRewardInstructionData>;
|
|
1730
|
+
declare function getAddRewardInstructionDataCodec(): FixedSizeCodec<AddRewardInstructionDataArgs, AddRewardInstructionData>;
|
|
1731
|
+
type AddRewardAsyncInput<TAccountSponsor extends string = string, TAccountMarket extends string = string, TAccountSponsorAccount extends string = string, TAccountTokenMint extends string = string, TAccountSponsorTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1732
|
+
sponsor: TransactionSigner<TAccountSponsor>;
|
|
1733
|
+
market: Address<TAccountMarket>;
|
|
1734
|
+
sponsorAccount?: Address<TAccountSponsorAccount>;
|
|
1735
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1736
|
+
sponsorTokenAccount: Address<TAccountSponsorTokenAccount>;
|
|
1737
|
+
/** Market's ATA holding reward tokens */
|
|
1738
|
+
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
1739
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1740
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1741
|
+
amount: AddRewardInstructionDataArgs['amount'];
|
|
1742
|
+
lock: AddRewardInstructionDataArgs['lock'];
|
|
1743
|
+
};
|
|
1744
|
+
declare function getAddRewardInstructionAsync<TAccountSponsor extends string, TAccountMarket extends string, TAccountSponsorAccount extends string, TAccountTokenMint extends string, TAccountSponsorTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: AddRewardAsyncInput<TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountSponsorTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
1745
|
+
programAddress?: TProgramAddress;
|
|
1746
|
+
}): Promise<AddRewardInstruction<TProgramAddress, TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountSponsorTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>>;
|
|
1747
|
+
type AddRewardInput<TAccountSponsor extends string = string, TAccountMarket extends string = string, TAccountSponsorAccount extends string = string, TAccountTokenMint extends string = string, TAccountSponsorTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1748
|
+
sponsor: TransactionSigner<TAccountSponsor>;
|
|
1749
|
+
market: Address<TAccountMarket>;
|
|
1750
|
+
sponsorAccount: Address<TAccountSponsorAccount>;
|
|
1751
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1752
|
+
sponsorTokenAccount: Address<TAccountSponsorTokenAccount>;
|
|
1753
|
+
/** Market's ATA holding reward tokens */
|
|
1754
|
+
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
1755
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1756
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1757
|
+
amount: AddRewardInstructionDataArgs['amount'];
|
|
1758
|
+
lock: AddRewardInstructionDataArgs['lock'];
|
|
1759
|
+
};
|
|
1760
|
+
declare function getAddRewardInstruction<TAccountSponsor extends string, TAccountMarket extends string, TAccountSponsorAccount extends string, TAccountTokenMint extends string, TAccountSponsorTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: AddRewardInput<TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountSponsorTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
1761
|
+
programAddress?: TProgramAddress;
|
|
1762
|
+
}): AddRewardInstruction<TProgramAddress, TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountSponsorTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>;
|
|
1763
|
+
type ParsedAddRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1764
|
+
programAddress: Address<TProgram>;
|
|
1765
|
+
accounts: {
|
|
1766
|
+
sponsor: TAccountMetas[0];
|
|
1767
|
+
market: TAccountMetas[1];
|
|
1768
|
+
sponsorAccount: TAccountMetas[2];
|
|
1769
|
+
tokenMint: TAccountMetas[3];
|
|
1770
|
+
sponsorTokenAccount: TAccountMetas[4];
|
|
1771
|
+
/** Market's ATA holding reward tokens */
|
|
1772
|
+
marketTokenAta: TAccountMetas[5];
|
|
1773
|
+
tokenProgram: TAccountMetas[6];
|
|
1774
|
+
systemProgram: TAccountMetas[7];
|
|
1775
|
+
};
|
|
1776
|
+
data: AddRewardInstructionData;
|
|
1777
|
+
};
|
|
1778
|
+
declare function parseAddRewardInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddRewardInstruction<TProgram, TAccountMetas>;
|
|
1779
|
+
|
|
1669
1780
|
/**
|
|
1670
1781
|
* This code was AUTOGENERATED using the Codama library.
|
|
1671
1782
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1821,6 +1932,98 @@ type ParsedCloseStakeAccountInstruction<TProgram extends string = typeof OPPORTU
|
|
|
1821
1932
|
};
|
|
1822
1933
|
declare function parseCloseStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseStakeAccountInstruction<TProgram, TAccountMetas>;
|
|
1823
1934
|
|
|
1935
|
+
/**
|
|
1936
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1937
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1938
|
+
* to add features, then rerun Codama to update it.
|
|
1939
|
+
*
|
|
1940
|
+
* @see https://github.com/codama-idl/codama
|
|
1941
|
+
*/
|
|
1942
|
+
|
|
1943
|
+
declare const CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1944
|
+
declare function getCloseStuckStakeAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
1945
|
+
type CloseStuckStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountSignerTokenAccount extends string | AccountMeta<string> = string, TAccountTokenVault extends string | AccountMeta<string> = string, TAccountTokenVaultAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1946
|
+
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
1947
|
+
TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
|
|
1948
|
+
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
1949
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1950
|
+
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
1951
|
+
TAccountSignerTokenAccount extends string ? WritableAccount<TAccountSignerTokenAccount> : TAccountSignerTokenAccount,
|
|
1952
|
+
TAccountTokenVault extends string ? WritableAccount<TAccountTokenVault> : TAccountTokenVault,
|
|
1953
|
+
TAccountTokenVaultAta extends string ? WritableAccount<TAccountTokenVaultAta> : TAccountTokenVaultAta,
|
|
1954
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1955
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1956
|
+
...TRemainingAccounts
|
|
1957
|
+
]>;
|
|
1958
|
+
type CloseStuckStakeAccountInstructionData = {
|
|
1959
|
+
discriminator: ReadonlyUint8Array;
|
|
1960
|
+
stakeAccountId: number;
|
|
1961
|
+
};
|
|
1962
|
+
type CloseStuckStakeAccountInstructionDataArgs = {
|
|
1963
|
+
stakeAccountId: number;
|
|
1964
|
+
};
|
|
1965
|
+
declare function getCloseStuckStakeAccountInstructionDataEncoder(): FixedSizeEncoder<CloseStuckStakeAccountInstructionDataArgs>;
|
|
1966
|
+
declare function getCloseStuckStakeAccountInstructionDataDecoder(): FixedSizeDecoder<CloseStuckStakeAccountInstructionData>;
|
|
1967
|
+
declare function getCloseStuckStakeAccountInstructionDataCodec(): FixedSizeCodec<CloseStuckStakeAccountInstructionDataArgs, CloseStuckStakeAccountInstructionData>;
|
|
1968
|
+
type CloseStuckStakeAccountAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountSignerTokenAccount extends string = string, TAccountTokenVault extends string = string, TAccountTokenVaultAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1969
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
1970
|
+
market: Address<TAccountMarket>;
|
|
1971
|
+
stakeAccount?: Address<TAccountStakeAccount>;
|
|
1972
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1973
|
+
/** Market's ATA holding staked tokens */
|
|
1974
|
+
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
1975
|
+
/** Signer's token account to receive refund */
|
|
1976
|
+
signerTokenAccount: Address<TAccountSignerTokenAccount>;
|
|
1977
|
+
tokenVault?: Address<TAccountTokenVault>;
|
|
1978
|
+
/** Token vault ATA holding fee tokens */
|
|
1979
|
+
tokenVaultAta?: Address<TAccountTokenVaultAta>;
|
|
1980
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1981
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1982
|
+
stakeAccountId: CloseStuckStakeAccountInstructionDataArgs['stakeAccountId'];
|
|
1983
|
+
};
|
|
1984
|
+
declare function getCloseStuckStakeAccountInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountSignerTokenAccount extends string, TAccountTokenVault extends string, TAccountTokenVaultAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStuckStakeAccountAsyncInput<TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountSignerTokenAccount, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
1985
|
+
programAddress?: TProgramAddress;
|
|
1986
|
+
}): Promise<CloseStuckStakeAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountSignerTokenAccount, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSystemProgram>>;
|
|
1987
|
+
type CloseStuckStakeAccountInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountSignerTokenAccount extends string = string, TAccountTokenVault extends string = string, TAccountTokenVaultAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1988
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
1989
|
+
market: Address<TAccountMarket>;
|
|
1990
|
+
stakeAccount: Address<TAccountStakeAccount>;
|
|
1991
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1992
|
+
/** Market's ATA holding staked tokens */
|
|
1993
|
+
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
1994
|
+
/** Signer's token account to receive refund */
|
|
1995
|
+
signerTokenAccount: Address<TAccountSignerTokenAccount>;
|
|
1996
|
+
tokenVault: Address<TAccountTokenVault>;
|
|
1997
|
+
/** Token vault ATA holding fee tokens */
|
|
1998
|
+
tokenVaultAta: Address<TAccountTokenVaultAta>;
|
|
1999
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2000
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2001
|
+
stakeAccountId: CloseStuckStakeAccountInstructionDataArgs['stakeAccountId'];
|
|
2002
|
+
};
|
|
2003
|
+
declare function getCloseStuckStakeAccountInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountSignerTokenAccount extends string, TAccountTokenVault extends string, TAccountTokenVaultAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStuckStakeAccountInput<TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountSignerTokenAccount, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2004
|
+
programAddress?: TProgramAddress;
|
|
2005
|
+
}): CloseStuckStakeAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountSignerTokenAccount, TAccountTokenVault, TAccountTokenVaultAta, TAccountTokenProgram, TAccountSystemProgram>;
|
|
2006
|
+
type ParsedCloseStuckStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2007
|
+
programAddress: Address<TProgram>;
|
|
2008
|
+
accounts: {
|
|
2009
|
+
signer: TAccountMetas[0];
|
|
2010
|
+
market: TAccountMetas[1];
|
|
2011
|
+
stakeAccount: TAccountMetas[2];
|
|
2012
|
+
tokenMint: TAccountMetas[3];
|
|
2013
|
+
/** Market's ATA holding staked tokens */
|
|
2014
|
+
marketTokenAta: TAccountMetas[4];
|
|
2015
|
+
/** Signer's token account to receive refund */
|
|
2016
|
+
signerTokenAccount: TAccountMetas[5];
|
|
2017
|
+
tokenVault: TAccountMetas[6];
|
|
2018
|
+
/** Token vault ATA holding fee tokens */
|
|
2019
|
+
tokenVaultAta: TAccountMetas[7];
|
|
2020
|
+
tokenProgram: TAccountMetas[8];
|
|
2021
|
+
systemProgram: TAccountMetas[9];
|
|
2022
|
+
};
|
|
2023
|
+
data: CloseStuckStakeAccountInstructionData;
|
|
2024
|
+
};
|
|
2025
|
+
declare function parseCloseStuckStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseStuckStakeAccountInstruction<TProgram, TAccountMetas>;
|
|
2026
|
+
|
|
1824
2027
|
/**
|
|
1825
2028
|
* This code was AUTOGENERATED using the Codama library.
|
|
1826
2029
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1845,7 +2048,6 @@ type CreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET
|
|
|
1845
2048
|
type CreateMarketInstructionData = {
|
|
1846
2049
|
discriminator: ReadonlyUint8Array;
|
|
1847
2050
|
marketIndex: bigint;
|
|
1848
|
-
rewardAmount: bigint;
|
|
1849
2051
|
timeToStake: bigint;
|
|
1850
2052
|
timeToReveal: bigint;
|
|
1851
2053
|
marketAuthority: Option<Address>;
|
|
@@ -1856,7 +2058,6 @@ type CreateMarketInstructionData = {
|
|
|
1856
2058
|
};
|
|
1857
2059
|
type CreateMarketInstructionDataArgs = {
|
|
1858
2060
|
marketIndex: number | bigint;
|
|
1859
|
-
rewardAmount: number | bigint;
|
|
1860
2061
|
timeToStake: number | bigint;
|
|
1861
2062
|
timeToReveal: number | bigint;
|
|
1862
2063
|
marketAuthority: OptionOrNullable<Address>;
|
|
@@ -1879,7 +2080,6 @@ type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountTok
|
|
|
1879
2080
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
1880
2081
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1881
2082
|
marketIndex: CreateMarketInstructionDataArgs['marketIndex'];
|
|
1882
|
-
rewardAmount: CreateMarketInstructionDataArgs['rewardAmount'];
|
|
1883
2083
|
timeToStake: CreateMarketInstructionDataArgs['timeToStake'];
|
|
1884
2084
|
timeToReveal: CreateMarketInstructionDataArgs['timeToReveal'];
|
|
1885
2085
|
marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
|
|
@@ -1902,7 +2102,6 @@ type CreateMarketInput<TAccountCreator extends string = string, TAccountTokenMin
|
|
|
1902
2102
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
1903
2103
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1904
2104
|
marketIndex: CreateMarketInstructionDataArgs['marketIndex'];
|
|
1905
|
-
rewardAmount: CreateMarketInstructionDataArgs['rewardAmount'];
|
|
1906
2105
|
timeToStake: CreateMarketInstructionDataArgs['timeToStake'];
|
|
1907
2106
|
timeToReveal: CreateMarketInstructionDataArgs['timeToReveal'];
|
|
1908
2107
|
marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
|
|
@@ -2055,72 +2254,6 @@ type ParsedEndRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNI
|
|
|
2055
2254
|
};
|
|
2056
2255
|
declare function parseEndRevealPeriodInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedEndRevealPeriodInstruction<TProgram, TAccountMetas>;
|
|
2057
2256
|
|
|
2058
|
-
/**
|
|
2059
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
2060
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2061
|
-
* to add features, then rerun Codama to update it.
|
|
2062
|
-
*
|
|
2063
|
-
* @see https://github.com/codama-idl/codama
|
|
2064
|
-
*/
|
|
2065
|
-
|
|
2066
|
-
declare const INCREASE_REWARD_POOL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2067
|
-
declare function getIncreaseRewardPoolDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2068
|
-
type IncreaseRewardPoolInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2069
|
-
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2070
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2071
|
-
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2072
|
-
TAccountMarketTokenAta extends string ? ReadonlyAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2073
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2074
|
-
...TRemainingAccounts
|
|
2075
|
-
]>;
|
|
2076
|
-
type IncreaseRewardPoolInstructionData = {
|
|
2077
|
-
discriminator: ReadonlyUint8Array;
|
|
2078
|
-
newRewardAmount: bigint;
|
|
2079
|
-
};
|
|
2080
|
-
type IncreaseRewardPoolInstructionDataArgs = {
|
|
2081
|
-
newRewardAmount: number | bigint;
|
|
2082
|
-
};
|
|
2083
|
-
declare function getIncreaseRewardPoolInstructionDataEncoder(): FixedSizeEncoder<IncreaseRewardPoolInstructionDataArgs>;
|
|
2084
|
-
declare function getIncreaseRewardPoolInstructionDataDecoder(): FixedSizeDecoder<IncreaseRewardPoolInstructionData>;
|
|
2085
|
-
declare function getIncreaseRewardPoolInstructionDataCodec(): FixedSizeCodec<IncreaseRewardPoolInstructionDataArgs, IncreaseRewardPoolInstructionData>;
|
|
2086
|
-
type IncreaseRewardPoolAsyncInput<TAccountAuthority extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string> = {
|
|
2087
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
2088
|
-
market: Address<TAccountMarket>;
|
|
2089
|
-
tokenMint: Address<TAccountTokenMint>;
|
|
2090
|
-
/** Market's ATA holding reward tokens */
|
|
2091
|
-
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2092
|
-
tokenProgram: Address<TAccountTokenProgram>;
|
|
2093
|
-
newRewardAmount: IncreaseRewardPoolInstructionDataArgs['newRewardAmount'];
|
|
2094
|
-
};
|
|
2095
|
-
declare function getIncreaseRewardPoolInstructionAsync<TAccountAuthority extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: IncreaseRewardPoolAsyncInput<TAccountAuthority, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>, config?: {
|
|
2096
|
-
programAddress?: TProgramAddress;
|
|
2097
|
-
}): Promise<IncreaseRewardPoolInstruction<TProgramAddress, TAccountAuthority, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>>;
|
|
2098
|
-
type IncreaseRewardPoolInput<TAccountAuthority extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string> = {
|
|
2099
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
2100
|
-
market: Address<TAccountMarket>;
|
|
2101
|
-
tokenMint: Address<TAccountTokenMint>;
|
|
2102
|
-
/** Market's ATA holding reward tokens */
|
|
2103
|
-
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2104
|
-
tokenProgram: Address<TAccountTokenProgram>;
|
|
2105
|
-
newRewardAmount: IncreaseRewardPoolInstructionDataArgs['newRewardAmount'];
|
|
2106
|
-
};
|
|
2107
|
-
declare function getIncreaseRewardPoolInstruction<TAccountAuthority extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: IncreaseRewardPoolInput<TAccountAuthority, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>, config?: {
|
|
2108
|
-
programAddress?: TProgramAddress;
|
|
2109
|
-
}): IncreaseRewardPoolInstruction<TProgramAddress, TAccountAuthority, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>;
|
|
2110
|
-
type ParsedIncreaseRewardPoolInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2111
|
-
programAddress: Address<TProgram>;
|
|
2112
|
-
accounts: {
|
|
2113
|
-
authority: TAccountMetas[0];
|
|
2114
|
-
market: TAccountMetas[1];
|
|
2115
|
-
tokenMint: TAccountMetas[2];
|
|
2116
|
-
/** Market's ATA holding reward tokens */
|
|
2117
|
-
marketTokenAta: TAccountMetas[3];
|
|
2118
|
-
tokenProgram: TAccountMetas[4];
|
|
2119
|
-
};
|
|
2120
|
-
data: IncreaseRewardPoolInstructionData;
|
|
2121
|
-
};
|
|
2122
|
-
declare function parseIncreaseRewardPoolInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedIncreaseRewardPoolInstruction<TProgram, TAccountMetas>;
|
|
2123
|
-
|
|
2124
2257
|
/**
|
|
2125
2258
|
* This code was AUTOGENERATED using the Codama library.
|
|
2126
2259
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -2214,7 +2347,6 @@ type InitCentralStateInstructionData = {
|
|
|
2214
2347
|
minOptionDeposit: bigint;
|
|
2215
2348
|
protocolFeeBp: number;
|
|
2216
2349
|
feeRecipient: Address;
|
|
2217
|
-
rewardWithdrawStakedLimit: number;
|
|
2218
2350
|
minimumInitialRevealPeriod: bigint;
|
|
2219
2351
|
};
|
|
2220
2352
|
type InitCentralStateInstructionDataArgs = {
|
|
@@ -2222,7 +2354,6 @@ type InitCentralStateInstructionDataArgs = {
|
|
|
2222
2354
|
minOptionDeposit: number | bigint;
|
|
2223
2355
|
protocolFeeBp: number;
|
|
2224
2356
|
feeRecipient: Address;
|
|
2225
|
-
rewardWithdrawStakedLimit: number;
|
|
2226
2357
|
minimumInitialRevealPeriod: number | bigint;
|
|
2227
2358
|
};
|
|
2228
2359
|
declare function getInitCentralStateInstructionDataEncoder(): FixedSizeEncoder<InitCentralStateInstructionDataArgs>;
|
|
@@ -2236,7 +2367,6 @@ type InitCentralStateAsyncInput<TAccountPayer extends string = string, TAccountC
|
|
|
2236
2367
|
minOptionDeposit: InitCentralStateInstructionDataArgs['minOptionDeposit'];
|
|
2237
2368
|
protocolFeeBp: InitCentralStateInstructionDataArgs['protocolFeeBp'];
|
|
2238
2369
|
feeRecipient: InitCentralStateInstructionDataArgs['feeRecipient'];
|
|
2239
|
-
rewardWithdrawStakedLimit: InitCentralStateInstructionDataArgs['rewardWithdrawStakedLimit'];
|
|
2240
2370
|
minimumInitialRevealPeriod: InitCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
|
|
2241
2371
|
};
|
|
2242
2372
|
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?: {
|
|
@@ -2250,7 +2380,6 @@ type InitCentralStateInput<TAccountPayer extends string = string, TAccountCentra
|
|
|
2250
2380
|
minOptionDeposit: InitCentralStateInstructionDataArgs['minOptionDeposit'];
|
|
2251
2381
|
protocolFeeBp: InitCentralStateInstructionDataArgs['protocolFeeBp'];
|
|
2252
2382
|
feeRecipient: InitCentralStateInstructionDataArgs['feeRecipient'];
|
|
2253
|
-
rewardWithdrawStakedLimit: InitCentralStateInstructionDataArgs['rewardWithdrawStakedLimit'];
|
|
2254
2383
|
minimumInitialRevealPeriod: InitCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
|
|
2255
2384
|
};
|
|
2256
2385
|
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?: {
|
|
@@ -2350,11 +2479,8 @@ type InitTokenVaultInstruction<TProgram extends string = typeof OPPORTUNITY_MARK
|
|
|
2350
2479
|
]>;
|
|
2351
2480
|
type InitTokenVaultInstructionData = {
|
|
2352
2481
|
discriminator: ReadonlyUint8Array;
|
|
2353
|
-
fundManager: Address;
|
|
2354
|
-
};
|
|
2355
|
-
type InitTokenVaultInstructionDataArgs = {
|
|
2356
|
-
fundManager: Address;
|
|
2357
2482
|
};
|
|
2483
|
+
type InitTokenVaultInstructionDataArgs = {};
|
|
2358
2484
|
declare function getInitTokenVaultInstructionDataEncoder(): FixedSizeEncoder<InitTokenVaultInstructionDataArgs>;
|
|
2359
2485
|
declare function getInitTokenVaultInstructionDataDecoder(): FixedSizeDecoder<InitTokenVaultInstructionData>;
|
|
2360
2486
|
declare function getInitTokenVaultInstructionDataCodec(): FixedSizeCodec<InitTokenVaultInstructionDataArgs, InitTokenVaultInstructionData>;
|
|
@@ -2364,7 +2490,6 @@ type InitTokenVaultAsyncInput<TAccountPayer extends string = string, TAccountTok
|
|
|
2364
2490
|
tokenVault?: Address<TAccountTokenVault>;
|
|
2365
2491
|
centralState?: Address<TAccountCentralState>;
|
|
2366
2492
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2367
|
-
fundManager: InitTokenVaultInstructionDataArgs['fundManager'];
|
|
2368
2493
|
};
|
|
2369
2494
|
declare function getInitTokenVaultInstructionAsync<TAccountPayer extends string, TAccountTokenMint extends string, TAccountTokenVault extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitTokenVaultAsyncInput<TAccountPayer, TAccountTokenMint, TAccountTokenVault, TAccountCentralState, TAccountSystemProgram>, config?: {
|
|
2370
2495
|
programAddress?: TProgramAddress;
|
|
@@ -2375,7 +2500,6 @@ type InitTokenVaultInput<TAccountPayer extends string = string, TAccountTokenMin
|
|
|
2375
2500
|
tokenVault: Address<TAccountTokenVault>;
|
|
2376
2501
|
centralState: Address<TAccountCentralState>;
|
|
2377
2502
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2378
|
-
fundManager: InitTokenVaultInstructionDataArgs['fundManager'];
|
|
2379
2503
|
};
|
|
2380
2504
|
declare function getInitTokenVaultInstruction<TAccountPayer extends string, TAccountTokenMint extends string, TAccountTokenVault extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitTokenVaultInput<TAccountPayer, TAccountTokenMint, TAccountTokenVault, TAccountCentralState, TAccountSystemProgram>, config?: {
|
|
2381
2505
|
programAddress?: TProgramAddress;
|
|
@@ -2403,12 +2527,9 @@ declare function parseInitTokenVaultInstruction<TProgram extends string, TAccoun
|
|
|
2403
2527
|
|
|
2404
2528
|
declare const OPEN_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2405
2529
|
declare function getOpenMarketDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2406
|
-
type OpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string,
|
|
2530
|
+
type OpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2407
2531
|
TAccountCreator extends string ? ReadonlySignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
|
|
2408
2532
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2409
|
-
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2410
|
-
TAccountMarketTokenAta extends string ? ReadonlyAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2411
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2412
2533
|
...TRemainingAccounts
|
|
2413
2534
|
]>;
|
|
2414
2535
|
type OpenMarketInstructionData = {
|
|
@@ -2421,39 +2542,19 @@ type OpenMarketInstructionDataArgs = {
|
|
|
2421
2542
|
declare function getOpenMarketInstructionDataEncoder(): FixedSizeEncoder<OpenMarketInstructionDataArgs>;
|
|
2422
2543
|
declare function getOpenMarketInstructionDataDecoder(): FixedSizeDecoder<OpenMarketInstructionData>;
|
|
2423
2544
|
declare function getOpenMarketInstructionDataCodec(): FixedSizeCodec<OpenMarketInstructionDataArgs, OpenMarketInstructionData>;
|
|
2424
|
-
type
|
|
2545
|
+
type OpenMarketInput<TAccountCreator extends string = string, TAccountMarket extends string = string> = {
|
|
2425
2546
|
creator: TransactionSigner<TAccountCreator>;
|
|
2426
2547
|
market: Address<TAccountMarket>;
|
|
2427
|
-
tokenMint: Address<TAccountTokenMint>;
|
|
2428
|
-
/** Market's ATA holding reward tokens */
|
|
2429
|
-
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2430
|
-
tokenProgram: Address<TAccountTokenProgram>;
|
|
2431
2548
|
openTimestamp: OpenMarketInstructionDataArgs['openTimestamp'];
|
|
2432
2549
|
};
|
|
2433
|
-
declare function
|
|
2550
|
+
declare function getOpenMarketInstruction<TAccountCreator extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: OpenMarketInput<TAccountCreator, TAccountMarket>, config?: {
|
|
2434
2551
|
programAddress?: TProgramAddress;
|
|
2435
|
-
}):
|
|
2436
|
-
type OpenMarketInput<TAccountCreator extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string> = {
|
|
2437
|
-
creator: TransactionSigner<TAccountCreator>;
|
|
2438
|
-
market: Address<TAccountMarket>;
|
|
2439
|
-
tokenMint: Address<TAccountTokenMint>;
|
|
2440
|
-
/** Market's ATA holding reward tokens */
|
|
2441
|
-
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2442
|
-
tokenProgram: Address<TAccountTokenProgram>;
|
|
2443
|
-
openTimestamp: OpenMarketInstructionDataArgs['openTimestamp'];
|
|
2444
|
-
};
|
|
2445
|
-
declare function getOpenMarketInstruction<TAccountCreator extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: OpenMarketInput<TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>, config?: {
|
|
2446
|
-
programAddress?: TProgramAddress;
|
|
2447
|
-
}): OpenMarketInstruction<TProgramAddress, TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>;
|
|
2552
|
+
}): OpenMarketInstruction<TProgramAddress, TAccountCreator, TAccountMarket>;
|
|
2448
2553
|
type ParsedOpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2449
2554
|
programAddress: Address<TProgram>;
|
|
2450
2555
|
accounts: {
|
|
2451
2556
|
creator: TAccountMetas[0];
|
|
2452
2557
|
market: TAccountMetas[1];
|
|
2453
|
-
tokenMint: TAccountMetas[2];
|
|
2454
|
-
/** Market's ATA holding reward tokens */
|
|
2455
|
-
marketTokenAta: TAccountMetas[3];
|
|
2456
|
-
tokenProgram: TAccountMetas[4];
|
|
2457
2558
|
};
|
|
2458
2559
|
data: OpenMarketInstructionData;
|
|
2459
2560
|
};
|
|
@@ -2992,7 +3093,7 @@ declare function parseStakeInstruction<TProgram extends string, TAccountMetas ex
|
|
|
2992
3093
|
|
|
2993
3094
|
declare const STAKE_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2994
3095
|
declare function getStakeCallbackDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2995
|
-
type StakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountInstructionsSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3096
|
+
type StakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountInstructionsSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountTokenVault extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2996
3097
|
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
2997
3098
|
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
2998
3099
|
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
@@ -3001,6 +3102,7 @@ type StakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKE
|
|
|
3001
3102
|
TAccountInstructionsSysvar extends string ? ReadonlyAccount<TAccountInstructionsSysvar> : TAccountInstructionsSysvar,
|
|
3002
3103
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3003
3104
|
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
3105
|
+
TAccountTokenVault extends string ? WritableAccount<TAccountTokenVault> : TAccountTokenVault,
|
|
3004
3106
|
...TRemainingAccounts
|
|
3005
3107
|
]>;
|
|
3006
3108
|
type StakeCallbackInstructionData = {
|
|
@@ -3029,7 +3131,7 @@ type StakeCallbackInstructionDataArgs = {
|
|
|
3029
3131
|
declare function getStakeCallbackInstructionDataEncoder(): Encoder<StakeCallbackInstructionDataArgs>;
|
|
3030
3132
|
declare function getStakeCallbackInstructionDataDecoder(): Decoder<StakeCallbackInstructionData>;
|
|
3031
3133
|
declare function getStakeCallbackInstructionDataCodec(): Codec<StakeCallbackInstructionDataArgs, StakeCallbackInstructionData>;
|
|
3032
|
-
type StakeCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string> = {
|
|
3134
|
+
type StakeCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenVault extends string = string> = {
|
|
3033
3135
|
arciumProgram?: Address<TAccountArciumProgram>;
|
|
3034
3136
|
compDefAccount: Address<TAccountCompDefAccount>;
|
|
3035
3137
|
mxeAccount: Address<TAccountMxeAccount>;
|
|
@@ -3038,11 +3140,12 @@ type StakeCallbackInput<TAccountArciumProgram extends string = string, TAccountC
|
|
|
3038
3140
|
instructionsSysvar?: Address<TAccountInstructionsSysvar>;
|
|
3039
3141
|
market: Address<TAccountMarket>;
|
|
3040
3142
|
stakeAccount: Address<TAccountStakeAccount>;
|
|
3143
|
+
tokenVault: Address<TAccountTokenVault>;
|
|
3041
3144
|
output: StakeCallbackInstructionDataArgs['output'];
|
|
3042
3145
|
};
|
|
3043
|
-
declare function getStakeCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountMarket, TAccountStakeAccount>, config?: {
|
|
3146
|
+
declare function getStakeCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenVault extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountMarket, TAccountStakeAccount, TAccountTokenVault>, config?: {
|
|
3044
3147
|
programAddress?: TProgramAddress;
|
|
3045
|
-
}): StakeCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountMarket, TAccountStakeAccount>;
|
|
3148
|
+
}): StakeCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountMarket, TAccountStakeAccount, TAccountTokenVault>;
|
|
3046
3149
|
type ParsedStakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3047
3150
|
programAddress: Address<TProgram>;
|
|
3048
3151
|
accounts: {
|
|
@@ -3054,6 +3157,7 @@ type ParsedStakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY
|
|
|
3054
3157
|
instructionsSysvar: TAccountMetas[5];
|
|
3055
3158
|
market: TAccountMetas[6];
|
|
3056
3159
|
stakeAccount: TAccountMetas[7];
|
|
3160
|
+
tokenVault: TAccountMetas[8];
|
|
3057
3161
|
};
|
|
3058
3162
|
data: StakeCallbackInstructionData;
|
|
3059
3163
|
};
|
|
@@ -3240,7 +3344,6 @@ type UpdateCentralStateInstructionData = {
|
|
|
3240
3344
|
minOptionDeposit: bigint;
|
|
3241
3345
|
protocolFeeBp: number;
|
|
3242
3346
|
feeRecipient: Address;
|
|
3243
|
-
rewardWithdrawStakedLimit: number;
|
|
3244
3347
|
minimumInitialRevealPeriod: bigint;
|
|
3245
3348
|
};
|
|
3246
3349
|
type UpdateCentralStateInstructionDataArgs = {
|
|
@@ -3248,7 +3351,6 @@ type UpdateCentralStateInstructionDataArgs = {
|
|
|
3248
3351
|
minOptionDeposit: number | bigint;
|
|
3249
3352
|
protocolFeeBp: number;
|
|
3250
3353
|
feeRecipient: Address;
|
|
3251
|
-
rewardWithdrawStakedLimit: number;
|
|
3252
3354
|
minimumInitialRevealPeriod: number | bigint;
|
|
3253
3355
|
};
|
|
3254
3356
|
declare function getUpdateCentralStateInstructionDataEncoder(): FixedSizeEncoder<UpdateCentralStateInstructionDataArgs>;
|
|
@@ -3261,7 +3363,6 @@ type UpdateCentralStateAsyncInput<TAccountAuthority extends string = string, TAc
|
|
|
3261
3363
|
minOptionDeposit: UpdateCentralStateInstructionDataArgs['minOptionDeposit'];
|
|
3262
3364
|
protocolFeeBp: UpdateCentralStateInstructionDataArgs['protocolFeeBp'];
|
|
3263
3365
|
feeRecipient: UpdateCentralStateInstructionDataArgs['feeRecipient'];
|
|
3264
|
-
rewardWithdrawStakedLimit: UpdateCentralStateInstructionDataArgs['rewardWithdrawStakedLimit'];
|
|
3265
3366
|
minimumInitialRevealPeriod: UpdateCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
|
|
3266
3367
|
};
|
|
3267
3368
|
declare function getUpdateCentralStateInstructionAsync<TAccountAuthority extends string, TAccountCentralState extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdateCentralStateAsyncInput<TAccountAuthority, TAccountCentralState>, config?: {
|
|
@@ -3274,7 +3375,6 @@ type UpdateCentralStateInput<TAccountAuthority extends string = string, TAccount
|
|
|
3274
3375
|
minOptionDeposit: UpdateCentralStateInstructionDataArgs['minOptionDeposit'];
|
|
3275
3376
|
protocolFeeBp: UpdateCentralStateInstructionDataArgs['protocolFeeBp'];
|
|
3276
3377
|
feeRecipient: UpdateCentralStateInstructionDataArgs['feeRecipient'];
|
|
3277
|
-
rewardWithdrawStakedLimit: UpdateCentralStateInstructionDataArgs['rewardWithdrawStakedLimit'];
|
|
3278
3378
|
minimumInitialRevealPeriod: UpdateCentralStateInstructionDataArgs['minimumInitialRevealPeriod'];
|
|
3279
3379
|
};
|
|
3280
3380
|
declare function getUpdateCentralStateInstruction<TAccountAuthority extends string, TAccountCentralState extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdateCentralStateInput<TAccountAuthority, TAccountCentralState>, config?: {
|
|
@@ -3300,13 +3400,13 @@ declare function parseUpdateCentralStateInstruction<TProgram extends string, TAc
|
|
|
3300
3400
|
|
|
3301
3401
|
declare const WITHDRAW_REWARD_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3302
3402
|
declare function getWithdrawRewardDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3303
|
-
type WithdrawRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS,
|
|
3304
|
-
|
|
3403
|
+
type WithdrawRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSponsor extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountSponsorAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountRefundTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3404
|
+
TAccountSponsor extends string ? WritableSignerAccount<TAccountSponsor> & AccountSignerMeta<TAccountSponsor> : TAccountSponsor,
|
|
3305
3405
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3406
|
+
TAccountSponsorAccount extends string ? WritableAccount<TAccountSponsorAccount> : TAccountSponsorAccount,
|
|
3306
3407
|
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
3307
3408
|
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
3308
3409
|
TAccountRefundTokenAccount extends string ? WritableAccount<TAccountRefundTokenAccount> : TAccountRefundTokenAccount,
|
|
3309
|
-
TAccountCentralState extends string ? ReadonlyAccount<TAccountCentralState> : TAccountCentralState,
|
|
3310
3410
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3311
3411
|
...TRemainingAccounts
|
|
3312
3412
|
]>;
|
|
@@ -3317,45 +3417,45 @@ type WithdrawRewardInstructionDataArgs = {};
|
|
|
3317
3417
|
declare function getWithdrawRewardInstructionDataEncoder(): FixedSizeEncoder<WithdrawRewardInstructionDataArgs>;
|
|
3318
3418
|
declare function getWithdrawRewardInstructionDataDecoder(): FixedSizeDecoder<WithdrawRewardInstructionData>;
|
|
3319
3419
|
declare function getWithdrawRewardInstructionDataCodec(): FixedSizeCodec<WithdrawRewardInstructionDataArgs, WithdrawRewardInstructionData>;
|
|
3320
|
-
type WithdrawRewardAsyncInput<
|
|
3321
|
-
|
|
3420
|
+
type WithdrawRewardAsyncInput<TAccountSponsor extends string = string, TAccountMarket extends string = string, TAccountSponsorAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountRefundTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
|
|
3421
|
+
sponsor: TransactionSigner<TAccountSponsor>;
|
|
3322
3422
|
market: Address<TAccountMarket>;
|
|
3423
|
+
sponsorAccount?: Address<TAccountSponsorAccount>;
|
|
3323
3424
|
tokenMint: Address<TAccountTokenMint>;
|
|
3324
3425
|
/** Market's ATA holding reward tokens */
|
|
3325
3426
|
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
3326
|
-
/**
|
|
3427
|
+
/** Sponsor's destination for refunded reward tokens */
|
|
3327
3428
|
refundTokenAccount: Address<TAccountRefundTokenAccount>;
|
|
3328
|
-
centralState?: Address<TAccountCentralState>;
|
|
3329
3429
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
3330
3430
|
};
|
|
3331
|
-
declare function getWithdrawRewardInstructionAsync<
|
|
3431
|
+
declare function getWithdrawRewardInstructionAsync<TAccountSponsor extends string, TAccountMarket extends string, TAccountSponsorAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountRefundTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: WithdrawRewardAsyncInput<TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>, config?: {
|
|
3332
3432
|
programAddress?: TProgramAddress;
|
|
3333
|
-
}): Promise<WithdrawRewardInstruction<TProgramAddress,
|
|
3334
|
-
type WithdrawRewardInput<
|
|
3335
|
-
|
|
3433
|
+
}): Promise<WithdrawRewardInstruction<TProgramAddress, TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>>;
|
|
3434
|
+
type WithdrawRewardInput<TAccountSponsor extends string = string, TAccountMarket extends string = string, TAccountSponsorAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountRefundTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
|
|
3435
|
+
sponsor: TransactionSigner<TAccountSponsor>;
|
|
3336
3436
|
market: Address<TAccountMarket>;
|
|
3437
|
+
sponsorAccount: Address<TAccountSponsorAccount>;
|
|
3337
3438
|
tokenMint: Address<TAccountTokenMint>;
|
|
3338
3439
|
/** Market's ATA holding reward tokens */
|
|
3339
3440
|
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
3340
|
-
/**
|
|
3441
|
+
/** Sponsor's destination for refunded reward tokens */
|
|
3341
3442
|
refundTokenAccount: Address<TAccountRefundTokenAccount>;
|
|
3342
|
-
centralState: Address<TAccountCentralState>;
|
|
3343
3443
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
3344
3444
|
};
|
|
3345
|
-
declare function getWithdrawRewardInstruction<
|
|
3445
|
+
declare function getWithdrawRewardInstruction<TAccountSponsor extends string, TAccountMarket extends string, TAccountSponsorAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountRefundTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: WithdrawRewardInput<TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>, config?: {
|
|
3346
3446
|
programAddress?: TProgramAddress;
|
|
3347
|
-
}): WithdrawRewardInstruction<TProgramAddress,
|
|
3447
|
+
}): WithdrawRewardInstruction<TProgramAddress, TAccountSponsor, TAccountMarket, TAccountSponsorAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountRefundTokenAccount, TAccountTokenProgram>;
|
|
3348
3448
|
type ParsedWithdrawRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3349
3449
|
programAddress: Address<TProgram>;
|
|
3350
3450
|
accounts: {
|
|
3351
|
-
|
|
3451
|
+
sponsor: TAccountMetas[0];
|
|
3352
3452
|
market: TAccountMetas[1];
|
|
3353
|
-
|
|
3453
|
+
sponsorAccount: TAccountMetas[2];
|
|
3454
|
+
tokenMint: TAccountMetas[3];
|
|
3354
3455
|
/** Market's ATA holding reward tokens */
|
|
3355
|
-
marketTokenAta: TAccountMetas[
|
|
3356
|
-
/**
|
|
3357
|
-
refundTokenAccount: TAccountMetas[
|
|
3358
|
-
centralState: TAccountMetas[5];
|
|
3456
|
+
marketTokenAta: TAccountMetas[4];
|
|
3457
|
+
/** Sponsor's destination for refunded reward tokens */
|
|
3458
|
+
refundTokenAccount: TAccountMetas[5];
|
|
3359
3459
|
tokenProgram: TAccountMetas[6];
|
|
3360
3460
|
};
|
|
3361
3461
|
data: WithdrawRewardInstructionData;
|
|
@@ -3367,12 +3467,8 @@ interface BaseInstructionParams {
|
|
|
3367
3467
|
}
|
|
3368
3468
|
|
|
3369
3469
|
interface InitTokenVaultParams extends BaseInstructionParams {
|
|
3370
|
-
/** The signer/payer for the transaction */
|
|
3371
3470
|
payer: TransactionSigner;
|
|
3372
|
-
/** The token mint for this vault */
|
|
3373
3471
|
tokenMint: Address;
|
|
3374
|
-
/** Address that can withdraw tokens from the vault */
|
|
3375
|
-
fundManager: Address;
|
|
3376
3472
|
}
|
|
3377
3473
|
declare function initTokenVault(input: InitTokenVaultParams): Promise<InitTokenVaultInstruction<string>>;
|
|
3378
3474
|
|
|
@@ -3402,7 +3498,6 @@ interface CreateMarketParams extends BaseInstructionParams {
|
|
|
3402
3498
|
tokenMint: Address;
|
|
3403
3499
|
tokenProgram: Address;
|
|
3404
3500
|
marketIndex: bigint;
|
|
3405
|
-
rewardAmount: bigint;
|
|
3406
3501
|
timeToStake: bigint;
|
|
3407
3502
|
timeToReveal: bigint;
|
|
3408
3503
|
marketAuthority: Address | null;
|
|
@@ -3465,9 +3560,6 @@ declare function addMarketOption(input: AddMarketOptionParams): Promise<AddMarke
|
|
|
3465
3560
|
interface OpenMarketParams extends BaseInstructionParams {
|
|
3466
3561
|
creator: TransactionSigner;
|
|
3467
3562
|
market: Address;
|
|
3468
|
-
tokenMint: Address;
|
|
3469
|
-
marketTokenAta: Address;
|
|
3470
|
-
tokenProgram: Address;
|
|
3471
3563
|
openTimestamp: bigint;
|
|
3472
3564
|
}
|
|
3473
3565
|
declare function openMarket(input: OpenMarketParams): OpenMarketInstruction<string>;
|
|
@@ -3485,15 +3577,16 @@ interface EndRevealPeriodParams extends BaseInstructionParams {
|
|
|
3485
3577
|
}
|
|
3486
3578
|
declare function endRevealPeriod(input: EndRevealPeriodParams): EndRevealPeriodInstruction<string>;
|
|
3487
3579
|
|
|
3488
|
-
interface
|
|
3489
|
-
|
|
3580
|
+
interface AddRewardParams extends BaseInstructionParams {
|
|
3581
|
+
sponsor: TransactionSigner;
|
|
3490
3582
|
market: Address;
|
|
3491
3583
|
tokenMint: Address;
|
|
3492
|
-
|
|
3584
|
+
sponsorTokenAccount: Address;
|
|
3493
3585
|
tokenProgram: Address;
|
|
3494
|
-
|
|
3586
|
+
amount: bigint;
|
|
3587
|
+
lock: boolean;
|
|
3495
3588
|
}
|
|
3496
|
-
declare function
|
|
3589
|
+
declare function addReward(input: AddRewardParams): Promise<AddRewardInstruction<string>>;
|
|
3497
3590
|
|
|
3498
3591
|
interface InitStakeAccountParams extends BaseInstructionParams {
|
|
3499
3592
|
signer: TransactionSigner;
|
|
@@ -3514,6 +3607,16 @@ interface CloseStakeAccountParams extends BaseInstructionParams {
|
|
|
3514
3607
|
}
|
|
3515
3608
|
declare function closeStakeAccount(input: CloseStakeAccountParams): Promise<CloseStakeAccountInstruction<string>>;
|
|
3516
3609
|
|
|
3610
|
+
interface CloseStuckStakeAccountParams extends BaseInstructionParams {
|
|
3611
|
+
signer: TransactionSigner;
|
|
3612
|
+
market: Address;
|
|
3613
|
+
tokenMint: Address;
|
|
3614
|
+
signerTokenAccount: Address;
|
|
3615
|
+
tokenProgram: Address;
|
|
3616
|
+
stakeAccountId: number;
|
|
3617
|
+
}
|
|
3618
|
+
declare function closeStuckStakeAccount(input: CloseStuckStakeAccountParams): Promise<CloseStuckStakeAccountInstruction<string>>;
|
|
3619
|
+
|
|
3517
3620
|
interface ReclaimStakeParams extends BaseInstructionParams {
|
|
3518
3621
|
signer: TransactionSigner;
|
|
3519
3622
|
owner: Address;
|
|
@@ -3560,13 +3663,12 @@ interface EnsureCentralStateParams extends BaseInstructionParams {
|
|
|
3560
3663
|
minOptionDeposit: bigint | number;
|
|
3561
3664
|
protocolFeeBp: number;
|
|
3562
3665
|
feeRecipient: Address;
|
|
3563
|
-
rewardWithdrawStakedLimit: number;
|
|
3564
3666
|
minimumInitialRevealPeriod: bigint | number;
|
|
3565
3667
|
}
|
|
3566
3668
|
declare function ensureCentralState(rpc: Parameters<typeof fetchMaybeCentralState>[0], params: EnsureCentralStateParams): Promise<Instruction | null>;
|
|
3567
3669
|
|
|
3568
3670
|
interface WithdrawRewardParams extends BaseInstructionParams {
|
|
3569
|
-
|
|
3671
|
+
sponsor: TransactionSigner;
|
|
3570
3672
|
market: Address;
|
|
3571
3673
|
tokenMint: Address;
|
|
3572
3674
|
refundTokenAccount: Address;
|
|
@@ -3583,6 +3685,9 @@ declare function getOpportunityMarketAddress(creator: Address, marketIndex: bigi
|
|
|
3583
3685
|
declare const OPPORTUNITY_MARKET_OPTION_SEED = "option";
|
|
3584
3686
|
declare function getOpportunityMarketOptionAddress(market: Address, optionId: number | bigint, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
3585
3687
|
|
|
3688
|
+
declare const SPONSOR_SEED = "sponsor";
|
|
3689
|
+
declare function getOpportunityMarketSponsorAddress(sponsor: Address, market: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
3690
|
+
|
|
3586
3691
|
declare const STAKE_ACCOUNT_SEED = "stake_account";
|
|
3587
3692
|
declare function getStakeAccountAddress(owner: Address, market: Address, stakeAccountId: number, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
3588
3693
|
|
|
@@ -3637,4 +3742,4 @@ declare function deriveSharedSecret(userSecretKey: Uint8Array, mxePublicKey: Uin
|
|
|
3637
3742
|
declare function createCipher(userSecretKey: Uint8Array, mxePublicKey: Uint8Array): RescueCipher;
|
|
3638
3743
|
declare function nonceToBytes(nonce: bigint): Uint8Array;
|
|
3639
3744
|
|
|
3640
|
-
export { ADD_MARKET_OPTION_DISCRIMINATOR, ALL_COMP_DEF_CIRCUITS, ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR, type Activation, type ActivationArgs, type AddMarketOptionAsyncInput, type AddMarketOptionInput, type AddMarketOptionInstruction, type AddMarketOptionInstructionData, type AddMarketOptionInstructionDataArgs, type AddMarketOptionParams, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CENTRAL_STATE_DISCRIMINATOR, CENTRAL_STATE_SEED, CLAIM_FEES_DISCRIMINATOR, CLOCK_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLUSTER_DISCRIMINATOR, COMPUTATION_DEFINITION_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CentralState, type CentralStateArgs, type CircuitSource, type CircuitSourceArgs, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClockAccount, type ClockAccountArgs, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type Cluster, type ClusterArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationResult, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParams, DO_UNSTAKE_EARLY_DISCRIMINATOR, type DoUnstakeEarlyAsyncInput, type DoUnstakeEarlyInput, type DoUnstakeEarlyInstruction, type DoUnstakeEarlyInstructionData, type DoUnstakeEarlyInstructionDataArgs, type DoUnstakeEarlyParams, 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, INCREASE_REWARD_POOL_DISCRIMINATOR, INCREMENT_OPTION_TALLY_DISCRIMINATOR, INIT_CENTRAL_STATE_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, INIT_TOKEN_VAULT_DISCRIMINATOR, type IncreaseRewardPoolAsyncInput, type IncreaseRewardPoolInput, type IncreaseRewardPoolInstruction, type IncreaseRewardPoolInstructionData, type IncreaseRewardPoolInstructionDataArgs, type IncreaseRewardPoolParams, type IncrementOptionTallyAsyncInput, type IncrementOptionTallyInput, type IncrementOptionTallyInstruction, type IncrementOptionTallyInstructionData, type IncrementOptionTallyInstructionDataArgs, type IncrementOptionTallyParams, type InitCentralStateAsyncInput, type InitCentralStateInput, type InitCentralStateInstruction, type InitCentralStateInstructionData, type InitCentralStateInstructionDataArgs, type InitCompDefConfig, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, type InitTokenVaultAsyncInput, type InitTokenVaultInput, type InitTokenVaultInstruction, type InitTokenVaultInstructionData, type InitTokenVaultInstructionDataArgs, type InitTokenVaultParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, M_X_E_ACCOUNT_DISCRIMINATOR, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION, OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED, OPPORTUNITY_MARKET_ERROR__ALREADY_PURCHASED, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED, OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET, OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING, OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE, OPPORTUNITY_MARKET_ERROR__INVALID_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_TIMESTAMP, OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT, OPPORTUNITY_MARKET_ERROR__LOCKED, OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED, OPPORTUNITY_MARKET_ERROR__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED, OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_WITHDRAWN, OPPORTUNITY_MARKET_ERROR__REWARD_AMOUNT_NOT_INCREASED, OPPORTUNITY_MARKET_ERROR__STAKING_NOT_ACTIVE, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET, OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketAsyncInput, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, Output, type OutputArgs, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedClaimFeesInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedDoUnstakeEarlyInstruction, type ParsedEndRevealPeriodInstruction, type ParsedIncreaseRewardPoolInstruction, type ParsedIncrementOptionTallyInstruction, type ParsedInitCentralStateInstruction, type ParsedInitStakeAccountInstruction, type ParsedInitTokenVaultInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedReclaimStakeInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSelectWinningOptionsInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedTransferCentralStateAuthorityInstruction, type ParsedUnstakeEarlyInstruction, type ParsedUpdateCentralStateInstruction, type ParsedWithdrawRewardInstruction, RECLAIM_STAKE_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ReclaimStakeAsyncInput, type ReclaimStakeInput, type ReclaimStakeInstruction, type ReclaimStakeInstructionData, type ReclaimStakeInstructionDataArgs, type ReclaimStakeParams, type RevealPeriodExtendedEvent, type RevealPeriodExtendedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardClaimedEvent, type RewardClaimedEventArgs, type RewardPoolIncreasedEvent, type RewardPoolIncreasedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, SELECT_WINNING_OPTIONS_DISCRIMINATOR, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SelectWinningOptionsInput, type SelectWinningOptionsInstruction, type SelectWinningOptionsInstructionData, type SelectWinningOptionsInstructionDataArgs, type SelectWinningOptionsParams, type StakeAccount, type StakeAccountArgs, type StakeAccountInitializedEvent, type StakeAccountInitializedEventArgs, type StakeAsyncInput, type StakeCallbackInput, type StakeCallbackInstruction, type StakeCallbackInstructionData, type StakeCallbackInstructionDataArgs, type StakeCompDefInput, type StakeCompDefInstruction, type StakeCompDefInstructionData, type StakeCompDefInstructionDataArgs, type StakeInput, type StakeInstruction, type StakeInstructionData, type StakeInstructionDataArgs, type StakeOutput, type StakeOutputArgs, type StakeOutputStruct0, type StakeOutputStruct0Args, type StakeParams, type StakeReclaimedEvent, type StakeReclaimedEventArgs, type StakeRevealedError, type StakeRevealedErrorArgs, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedError, type StakedErrorArgs, type StakedEvent, type StakedEventArgs, TOKEN_VAULT_DISCRIMINATOR, TOKEN_VAULT_SEED, TRANSFER_CENTRAL_STATE_AUTHORITY_DISCRIMINATOR, type TallyIncrementedEvent, type TallyIncrementedEventArgs, type Timestamp, type TimestampArgs, type TokenVault, type TokenVaultArgs, type TransferCentralStateAuthorityAsyncInput, type TransferCentralStateAuthorityInput, type TransferCentralStateAuthorityInstruction, type TransferCentralStateAuthorityInstructionData, type TransferCentralStateAuthorityInstructionDataArgs, UNSTAKE_EARLY_DISCRIMINATOR, UPDATE_CENTRAL_STATE_DISCRIMINATOR, type UnstakeEarlyAsyncInput, type UnstakeEarlyInput, type UnstakeEarlyInstruction, type UnstakeEarlyInstructionData, type UnstakeEarlyInstructionDataArgs, type UnstakeEarlyParams, type UnstakeInitiatedEvent, type UnstakeInitiatedEventArgs, type UnstakedEvent, type UnstakedEventArgs, type UpdateCentralStateAsyncInput, type UpdateCentralStateInput, type UpdateCentralStateInstruction, type UpdateCentralStateInstructionData, type UpdateCentralStateInstructionDataArgs, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOption, type WinningOptionArgs, type WinningOptionsSelectedEvent, type WinningOptionsSelectedEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, awaitBatchComputationFinalization, awaitComputationFinalization, circuitSource, closeStakeAccount, createCipher, createMarket, decodeArciumSignerAccount, decodeCentralState, decodeClockAccount, decodeCluster, decodeComputationDefinitionAccount, decodeFeePool, decodeMXEAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeStakeAccount, decodeTokenVault, deriveSharedSecret, deriveX25519KeypairFromSignature, doUnstakeEarly, endRevealPeriod, ensureCentralState, fetchAllArciumSignerAccount, fetchAllCentralState, fetchAllClockAccount, fetchAllCluster, fetchAllComputationDefinitionAccount, fetchAllFeePool, fetchAllMXEAccount, fetchAllMaybeArciumSignerAccount, fetchAllMaybeCentralState, fetchAllMaybeClockAccount, fetchAllMaybeCluster, fetchAllMaybeComputationDefinitionAccount, fetchAllMaybeFeePool, fetchAllMaybeMXEAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeStakeAccount, fetchAllMaybeTokenVault, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllStakeAccount, fetchAllTokenVault, fetchArciumSignerAccount, fetchCentralState, fetchClockAccount, fetchCluster, fetchComputationDefinitionAccount, fetchFeePool, fetchMXEAccount, fetchMaybeArciumSignerAccount, fetchMaybeCentralState, fetchMaybeClockAccount, fetchMaybeCluster, fetchMaybeComputationDefinitionAccount, fetchMaybeFeePool, fetchMaybeMXEAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeStakeAccount, fetchMaybeTokenVault, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchStakeAccount, fetchTokenVault, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCentralStateAddress, getCentralStateCodec, getCentralStateDecoder, getCentralStateDiscriminatorBytes, getCentralStateEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountDiscriminatorBytes, getClockAccountEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterDiscriminatorBytes, getClusterEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountDiscriminatorBytes, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getDoUnstakeEarlyDiscriminatorBytes, getDoUnstakeEarlyInstruction, getDoUnstakeEarlyInstructionAsync, getDoUnstakeEarlyInstructionDataCodec, getDoUnstakeEarlyInstructionDataDecoder, getDoUnstakeEarlyInstructionDataEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolDiscriminatorBytes, getFeePoolEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getIncreaseRewardPoolDiscriminatorBytes, getIncreaseRewardPoolInstruction, getIncreaseRewardPoolInstructionAsync, getIncreaseRewardPoolInstructionDataCodec, getIncreaseRewardPoolInstructionDataDecoder, getIncreaseRewardPoolInstructionDataEncoder, getIncrementOptionTallyDiscriminatorBytes, getIncrementOptionTallyInstruction, getIncrementOptionTallyInstructionAsync, getIncrementOptionTallyInstructionDataCodec, getIncrementOptionTallyInstructionDataDecoder, getIncrementOptionTallyInstructionDataEncoder, getInitCentralStateDiscriminatorBytes, getInitCentralStateInstruction, getInitCentralStateInstructionAsync, getInitCentralStateInstructionDataCodec, getInitCentralStateInstructionDataDecoder, getInitCentralStateInstructionDataEncoder, getInitCompDefInstruction, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getInitTokenVaultDiscriminatorBytes, getInitTokenVaultInstruction, getInitTokenVaultInstructionAsync, getInitTokenVaultInstructionDataCodec, getInitTokenVaultInstructionDataDecoder, getInitTokenVaultInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountDiscriminatorBytes, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionAsync, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getReclaimStakeDiscriminatorBytes, getReclaimStakeInstruction, getReclaimStakeInstructionAsync, getReclaimStakeInstructionDataCodec, getReclaimStakeInstructionDataDecoder, getReclaimStakeInstructionDataEncoder, getRevealPeriodExtendedEventCodec, getRevealPeriodExtendedEventDecoder, getRevealPeriodExtendedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardClaimedEventCodec, getRewardClaimedEventDecoder, getRewardClaimedEventEncoder, getRewardPoolIncreasedEventCodec, getRewardPoolIncreasedEventDecoder, getRewardPoolIncreasedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getSelectWinningOptionsDiscriminatorBytes, getSelectWinningOptionsInstruction, getSelectWinningOptionsInstructionDataCodec, getSelectWinningOptionsInstructionDataDecoder, getSelectWinningOptionsInstructionDataEncoder, getStakeAccountAddress, getStakeAccountCodec, getStakeAccountDecoder, getStakeAccountDiscriminatorBytes, getStakeAccountEncoder, getStakeAccountInitializedEventCodec, getStakeAccountInitializedEventDecoder, getStakeAccountInitializedEventEncoder, getStakeCallbackDiscriminatorBytes, getStakeCallbackInstruction, getStakeCallbackInstructionDataCodec, getStakeCallbackInstructionDataDecoder, getStakeCallbackInstructionDataEncoder, getStakeCompDefDiscriminatorBytes, getStakeCompDefInstruction, getStakeCompDefInstructionDataCodec, getStakeCompDefInstructionDataDecoder, getStakeCompDefInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getStakeOutputCodec, getStakeOutputDecoder, getStakeOutputEncoder, getStakeOutputStruct0Codec, getStakeOutputStruct0Decoder, getStakeOutputStruct0Encoder, getStakeReclaimedEventCodec, getStakeReclaimedEventDecoder, getStakeReclaimedEventEncoder, getStakeRevealedErrorCodec, getStakeRevealedErrorDecoder, getStakeRevealedErrorEncoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedErrorCodec, getStakedErrorDecoder, getStakedErrorEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getTallyIncrementedEventCodec, getTallyIncrementedEventDecoder, getTallyIncrementedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getTokenVaultAddress, getTokenVaultCodec, getTokenVaultDecoder, getTokenVaultDiscriminatorBytes, getTokenVaultEncoder, getTransferCentralStateAuthorityDiscriminatorBytes, getTransferCentralStateAuthorityInstruction, getTransferCentralStateAuthorityInstructionAsync, getTransferCentralStateAuthorityInstructionDataCodec, getTransferCentralStateAuthorityInstructionDataDecoder, getTransferCentralStateAuthorityInstructionDataEncoder, getUnstakeEarlyDiscriminatorBytes, getUnstakeEarlyInstruction, getUnstakeEarlyInstructionAsync, getUnstakeEarlyInstructionDataCodec, getUnstakeEarlyInstructionDataDecoder, getUnstakeEarlyInstructionDataEncoder, getUnstakeInitiatedEventCodec, getUnstakeInitiatedEventDecoder, getUnstakeInitiatedEventEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateCentralStateDiscriminatorBytes, getUpdateCentralStateInstruction, getUpdateCentralStateInstructionAsync, getUpdateCentralStateInstructionDataCodec, getUpdateCentralStateInstructionDataDecoder, getUpdateCentralStateInstructionDataEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionCodec, getWinningOptionDecoder, getWinningOptionEncoder, getWinningOptionsSelectedEventCodec, getWinningOptionsSelectedEventDecoder, getWinningOptionsSelectedEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, increaseRewardPool, incrementOptionTally, initStakeAccount, initTokenVault, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseClaimFeesInstruction, parseCloseStakeAccountInstruction, parseCreateMarketInstruction, parseDoUnstakeEarlyInstruction, parseEndRevealPeriodInstruction, parseIncreaseRewardPoolInstruction, parseIncrementOptionTallyInstruction, parseInitCentralStateInstruction, parseInitStakeAccountInstruction, parseInitTokenVaultInstruction, parseOpenMarketInstruction, parseReclaimStakeInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSelectWinningOptionsInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseTransferCentralStateAuthorityInstruction, parseUnstakeEarlyInstruction, parseUpdateCentralStateInstruction, parseWithdrawRewardInstruction, randomComputationOffset, randomStateNonce, reclaimStake, revealStake, selectWinningOptions, stake, toNumberArray, unstakeEarly, withdrawReward };
|
|
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 };
|