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