@bench.games/opportunity-markets 0.3.2 → 0.3.4
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 +2225 -1873
- package/dist/index.cjs +1884 -1549
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +423 -260
- package/dist/index.d.ts +423 -260
- package/dist/index.js +2225 -1873
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -325,6 +325,36 @@ declare function getComputationSignatureEncoder(): Encoder<ComputationSignatureA
|
|
|
325
325
|
declare function getComputationSignatureDecoder(): Decoder<ComputationSignature>;
|
|
326
326
|
declare function getComputationSignatureCodec(): Codec<ComputationSignatureArgs, ComputationSignature>;
|
|
327
327
|
|
|
328
|
+
/**
|
|
329
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
330
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
331
|
+
* to add features, then rerun Codama to update it.
|
|
332
|
+
*
|
|
333
|
+
* @see https://github.com/codama-idl/codama
|
|
334
|
+
*/
|
|
335
|
+
|
|
336
|
+
type CreateMarketParameters = {
|
|
337
|
+
marketIndex: bigint;
|
|
338
|
+
marketAuthority: Address;
|
|
339
|
+
authorizedReaderPubkey: Array<number>;
|
|
340
|
+
earlinessCutoffSeconds: bigint;
|
|
341
|
+
earlinessMultiplier: number;
|
|
342
|
+
minStakeAmount: bigint;
|
|
343
|
+
creatorFeeClaimer: Address;
|
|
344
|
+
};
|
|
345
|
+
type CreateMarketParametersArgs = {
|
|
346
|
+
marketIndex: number | bigint;
|
|
347
|
+
marketAuthority: Address;
|
|
348
|
+
authorizedReaderPubkey: Array<number>;
|
|
349
|
+
earlinessCutoffSeconds: number | bigint;
|
|
350
|
+
earlinessMultiplier: number;
|
|
351
|
+
minStakeAmount: number | bigint;
|
|
352
|
+
creatorFeeClaimer: Address;
|
|
353
|
+
};
|
|
354
|
+
declare function getCreateMarketParametersEncoder(): FixedSizeEncoder<CreateMarketParametersArgs>;
|
|
355
|
+
declare function getCreateMarketParametersDecoder(): FixedSizeDecoder<CreateMarketParameters>;
|
|
356
|
+
declare function getCreateMarketParametersCodec(): FixedSizeCodec<CreateMarketParametersArgs, CreateMarketParameters>;
|
|
357
|
+
|
|
328
358
|
/**
|
|
329
359
|
* This code was AUTOGENERATED using the Codama library.
|
|
330
360
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -454,6 +484,40 @@ declare function getFeesClaimedEventEncoder(): FixedSizeEncoder<FeesClaimedEvent
|
|
|
454
484
|
declare function getFeesClaimedEventDecoder(): FixedSizeDecoder<FeesClaimedEvent>;
|
|
455
485
|
declare function getFeesClaimedEventCodec(): FixedSizeCodec<FeesClaimedEventArgs, FeesClaimedEvent>;
|
|
456
486
|
|
|
487
|
+
/**
|
|
488
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
489
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
490
|
+
* to add features, then rerun Codama to update it.
|
|
491
|
+
*
|
|
492
|
+
* @see https://github.com/codama-idl/codama
|
|
493
|
+
*/
|
|
494
|
+
|
|
495
|
+
type InitPlatformParameters = {
|
|
496
|
+
name: string;
|
|
497
|
+
platformFeeBp: number;
|
|
498
|
+
rewardPoolFeeBp: number;
|
|
499
|
+
creatorFeeBp: number;
|
|
500
|
+
feeClaimAuthority: Address;
|
|
501
|
+
revealAuthority: Address;
|
|
502
|
+
minTimeToStakeSeconds: bigint;
|
|
503
|
+
revealPeriodSeconds: bigint;
|
|
504
|
+
marketResolutionDeadlineSeconds: bigint;
|
|
505
|
+
};
|
|
506
|
+
type InitPlatformParametersArgs = {
|
|
507
|
+
name: string;
|
|
508
|
+
platformFeeBp: number;
|
|
509
|
+
rewardPoolFeeBp: number;
|
|
510
|
+
creatorFeeBp: number;
|
|
511
|
+
feeClaimAuthority: Address;
|
|
512
|
+
revealAuthority: Address;
|
|
513
|
+
minTimeToStakeSeconds: number | bigint;
|
|
514
|
+
revealPeriodSeconds: number | bigint;
|
|
515
|
+
marketResolutionDeadlineSeconds: number | bigint;
|
|
516
|
+
};
|
|
517
|
+
declare function getInitPlatformParametersEncoder(): Encoder<InitPlatformParametersArgs>;
|
|
518
|
+
declare function getInitPlatformParametersDecoder(): Decoder<InitPlatformParameters>;
|
|
519
|
+
declare function getInitPlatformParametersCodec(): Codec<InitPlatformParametersArgs, InitPlatformParameters>;
|
|
520
|
+
|
|
457
521
|
/**
|
|
458
522
|
* This code was AUTOGENERATED using the Codama library.
|
|
459
523
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -490,7 +554,6 @@ type MarketCreatedEvent = {
|
|
|
490
554
|
earlinessMultiplier: number;
|
|
491
555
|
marketAuthority: Address;
|
|
492
556
|
authorizedReaderPubkey: Array<number>;
|
|
493
|
-
allowUnstakingEarly: boolean;
|
|
494
557
|
minStakeAmount: bigint;
|
|
495
558
|
feeRates: FeeRates;
|
|
496
559
|
creatorFeeClaimer: Address;
|
|
@@ -508,7 +571,6 @@ type MarketCreatedEventArgs = {
|
|
|
508
571
|
earlinessMultiplier: number;
|
|
509
572
|
marketAuthority: Address;
|
|
510
573
|
authorizedReaderPubkey: Array<number>;
|
|
511
|
-
allowUnstakingEarly: boolean;
|
|
512
574
|
minStakeAmount: number | bigint;
|
|
513
575
|
feeRates: FeeRatesArgs;
|
|
514
576
|
creatorFeeClaimer: Address;
|
|
@@ -531,13 +593,13 @@ declare function getMarketCreatedEventCodec(): FixedSizeCodec<MarketCreatedEvent
|
|
|
531
593
|
type MarketOpenedEvent = {
|
|
532
594
|
market: Address;
|
|
533
595
|
creator: Address;
|
|
534
|
-
|
|
596
|
+
stakingWindowEnd: bigint;
|
|
535
597
|
timestamp: bigint;
|
|
536
598
|
};
|
|
537
599
|
type MarketOpenedEventArgs = {
|
|
538
600
|
market: Address;
|
|
539
601
|
creator: Address;
|
|
540
|
-
|
|
602
|
+
stakingWindowEnd: number | bigint;
|
|
541
603
|
timestamp: number | bigint;
|
|
542
604
|
};
|
|
543
605
|
declare function getMarketOpenedEventEncoder(): FixedSizeEncoder<MarketOpenedEventArgs>;
|
|
@@ -936,7 +998,6 @@ type RewardAddedEvent = {
|
|
|
936
998
|
sponsor: Address;
|
|
937
999
|
amount: bigint;
|
|
938
1000
|
totalRewardAmount: bigint;
|
|
939
|
-
locked: boolean;
|
|
940
1001
|
timestamp: bigint;
|
|
941
1002
|
};
|
|
942
1003
|
type RewardAddedEventArgs = {
|
|
@@ -944,13 +1005,44 @@ type RewardAddedEventArgs = {
|
|
|
944
1005
|
sponsor: Address;
|
|
945
1006
|
amount: number | bigint;
|
|
946
1007
|
totalRewardAmount: number | bigint;
|
|
947
|
-
locked: boolean;
|
|
948
1008
|
timestamp: number | bigint;
|
|
949
1009
|
};
|
|
950
1010
|
declare function getRewardAddedEventEncoder(): FixedSizeEncoder<RewardAddedEventArgs>;
|
|
951
1011
|
declare function getRewardAddedEventDecoder(): FixedSizeDecoder<RewardAddedEvent>;
|
|
952
1012
|
declare function getRewardAddedEventCodec(): FixedSizeCodec<RewardAddedEventArgs, RewardAddedEvent>;
|
|
953
1013
|
|
|
1014
|
+
/**
|
|
1015
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1016
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1017
|
+
* to add features, then rerun Codama to update it.
|
|
1018
|
+
*
|
|
1019
|
+
* @see https://github.com/codama-idl/codama
|
|
1020
|
+
*/
|
|
1021
|
+
|
|
1022
|
+
type RewardsClaimedEvent = {
|
|
1023
|
+
owner: Address;
|
|
1024
|
+
market: Address;
|
|
1025
|
+
stakeAccount: Address;
|
|
1026
|
+
stakeAccountId: number;
|
|
1027
|
+
optionId: bigint;
|
|
1028
|
+
rewardAmount: bigint;
|
|
1029
|
+
score: bigint;
|
|
1030
|
+
timestamp: bigint;
|
|
1031
|
+
};
|
|
1032
|
+
type RewardsClaimedEventArgs = {
|
|
1033
|
+
owner: Address;
|
|
1034
|
+
market: Address;
|
|
1035
|
+
stakeAccount: Address;
|
|
1036
|
+
stakeAccountId: number;
|
|
1037
|
+
optionId: number | bigint;
|
|
1038
|
+
rewardAmount: number | bigint;
|
|
1039
|
+
score: number | bigint;
|
|
1040
|
+
timestamp: number | bigint;
|
|
1041
|
+
};
|
|
1042
|
+
declare function getRewardsClaimedEventEncoder(): FixedSizeEncoder<RewardsClaimedEventArgs>;
|
|
1043
|
+
declare function getRewardsClaimedEventDecoder(): FixedSizeDecoder<RewardsClaimedEvent>;
|
|
1044
|
+
declare function getRewardsClaimedEventCodec(): FixedSizeCodec<RewardsClaimedEventArgs, RewardsClaimedEvent>;
|
|
1045
|
+
|
|
954
1046
|
/**
|
|
955
1047
|
* This code was AUTOGENERATED using the Codama library.
|
|
956
1048
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -990,11 +1082,11 @@ type StakeAccountClosedEvent = {
|
|
|
990
1082
|
market: Address;
|
|
991
1083
|
stakeAccount: Address;
|
|
992
1084
|
stakeAccountId: number;
|
|
993
|
-
optionId: bigint
|
|
994
|
-
rewardAmount: bigint;
|
|
995
|
-
stakedAtTimestamp: bigint;
|
|
996
|
-
stakeEndTimestamp: bigint;
|
|
1085
|
+
optionId: Option<bigint>;
|
|
997
1086
|
stakeAmount: bigint;
|
|
1087
|
+
feeRefund: bigint;
|
|
1088
|
+
stakedAtTimestamp: bigint;
|
|
1089
|
+
stakingWindowEnd: bigint;
|
|
998
1090
|
score: bigint;
|
|
999
1091
|
timestamp: bigint;
|
|
1000
1092
|
};
|
|
@@ -1003,17 +1095,17 @@ type StakeAccountClosedEventArgs = {
|
|
|
1003
1095
|
market: Address;
|
|
1004
1096
|
stakeAccount: Address;
|
|
1005
1097
|
stakeAccountId: number;
|
|
1006
|
-
optionId: number | bigint
|
|
1007
|
-
rewardAmount: number | bigint;
|
|
1008
|
-
stakedAtTimestamp: number | bigint;
|
|
1009
|
-
stakeEndTimestamp: number | bigint;
|
|
1098
|
+
optionId: OptionOrNullable<number | bigint>;
|
|
1010
1099
|
stakeAmount: number | bigint;
|
|
1100
|
+
feeRefund: number | bigint;
|
|
1101
|
+
stakedAtTimestamp: number | bigint;
|
|
1102
|
+
stakingWindowEnd: number | bigint;
|
|
1011
1103
|
score: number | bigint;
|
|
1012
1104
|
timestamp: number | bigint;
|
|
1013
1105
|
};
|
|
1014
|
-
declare function getStakeAccountClosedEventEncoder():
|
|
1015
|
-
declare function getStakeAccountClosedEventDecoder():
|
|
1016
|
-
declare function getStakeAccountClosedEventCodec():
|
|
1106
|
+
declare function getStakeAccountClosedEventEncoder(): Encoder<StakeAccountClosedEventArgs>;
|
|
1107
|
+
declare function getStakeAccountClosedEventDecoder(): Decoder<StakeAccountClosedEvent>;
|
|
1108
|
+
declare function getStakeAccountClosedEventCodec(): Codec<StakeAccountClosedEventArgs, StakeAccountClosedEvent>;
|
|
1017
1109
|
|
|
1018
1110
|
/**
|
|
1019
1111
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1135,6 +1227,38 @@ declare function getStakeOutputStruct0Encoder(): FixedSizeEncoder<StakeOutputStr
|
|
|
1135
1227
|
declare function getStakeOutputStruct0Decoder(): FixedSizeDecoder<StakeOutputStruct0>;
|
|
1136
1228
|
declare function getStakeOutputStruct0Codec(): FixedSizeCodec<StakeOutputStruct0Args, StakeOutputStruct0>;
|
|
1137
1229
|
|
|
1230
|
+
/**
|
|
1231
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1232
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1233
|
+
* to add features, then rerun Codama to update it.
|
|
1234
|
+
*
|
|
1235
|
+
* @see https://github.com/codama-idl/codama
|
|
1236
|
+
*/
|
|
1237
|
+
|
|
1238
|
+
type StakeParameters = {
|
|
1239
|
+
computationOffset: bigint;
|
|
1240
|
+
stakeAccountId: number;
|
|
1241
|
+
amount: bigint;
|
|
1242
|
+
selectedOptionCiphertext: Array<number>;
|
|
1243
|
+
inputNonce: bigint;
|
|
1244
|
+
authorizedReaderNonce: bigint;
|
|
1245
|
+
userPubkey: Array<number>;
|
|
1246
|
+
stateNonce: bigint;
|
|
1247
|
+
};
|
|
1248
|
+
type StakeParametersArgs = {
|
|
1249
|
+
computationOffset: number | bigint;
|
|
1250
|
+
stakeAccountId: number;
|
|
1251
|
+
amount: number | bigint;
|
|
1252
|
+
selectedOptionCiphertext: Array<number>;
|
|
1253
|
+
inputNonce: number | bigint;
|
|
1254
|
+
authorizedReaderNonce: number | bigint;
|
|
1255
|
+
userPubkey: Array<number>;
|
|
1256
|
+
stateNonce: number | bigint;
|
|
1257
|
+
};
|
|
1258
|
+
declare function getStakeParametersEncoder(): FixedSizeEncoder<StakeParametersArgs>;
|
|
1259
|
+
declare function getStakeParametersDecoder(): FixedSizeDecoder<StakeParameters>;
|
|
1260
|
+
declare function getStakeParametersCodec(): FixedSizeCodec<StakeParametersArgs, StakeParameters>;
|
|
1261
|
+
|
|
1138
1262
|
/**
|
|
1139
1263
|
* This code was AUTOGENERATED using the Codama library.
|
|
1140
1264
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1269,6 +1393,36 @@ declare function getUpdateAuthorityChangedEventEncoder(): FixedSizeEncoder<Updat
|
|
|
1269
1393
|
declare function getUpdateAuthorityChangedEventDecoder(): FixedSizeDecoder<UpdateAuthorityChangedEvent>;
|
|
1270
1394
|
declare function getUpdateAuthorityChangedEventCodec(): FixedSizeCodec<UpdateAuthorityChangedEventArgs, UpdateAuthorityChangedEvent>;
|
|
1271
1395
|
|
|
1396
|
+
/**
|
|
1397
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1398
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1399
|
+
* to add features, then rerun Codama to update it.
|
|
1400
|
+
*
|
|
1401
|
+
* @see https://github.com/codama-idl/codama
|
|
1402
|
+
*/
|
|
1403
|
+
|
|
1404
|
+
type UpdatePlatformParameters = {
|
|
1405
|
+
platformFeeBp: Option<number>;
|
|
1406
|
+
rewardPoolFeeBp: Option<number>;
|
|
1407
|
+
creatorFeeBp: Option<number>;
|
|
1408
|
+
revealAuthority: Option<Address>;
|
|
1409
|
+
minTimeToStakeSeconds: Option<bigint>;
|
|
1410
|
+
revealPeriodSeconds: Option<bigint>;
|
|
1411
|
+
marketResolutionDeadlineSeconds: Option<bigint>;
|
|
1412
|
+
};
|
|
1413
|
+
type UpdatePlatformParametersArgs = {
|
|
1414
|
+
platformFeeBp: OptionOrNullable<number>;
|
|
1415
|
+
rewardPoolFeeBp: OptionOrNullable<number>;
|
|
1416
|
+
creatorFeeBp: OptionOrNullable<number>;
|
|
1417
|
+
revealAuthority: OptionOrNullable<Address>;
|
|
1418
|
+
minTimeToStakeSeconds: OptionOrNullable<number | bigint>;
|
|
1419
|
+
revealPeriodSeconds: OptionOrNullable<number | bigint>;
|
|
1420
|
+
marketResolutionDeadlineSeconds: OptionOrNullable<number | bigint>;
|
|
1421
|
+
};
|
|
1422
|
+
declare function getUpdatePlatformParametersEncoder(): Encoder<UpdatePlatformParametersArgs>;
|
|
1423
|
+
declare function getUpdatePlatformParametersDecoder(): Decoder<UpdatePlatformParameters>;
|
|
1424
|
+
declare function getUpdatePlatformParametersCodec(): Codec<UpdatePlatformParametersArgs, UpdatePlatformParameters>;
|
|
1425
|
+
|
|
1272
1426
|
/**
|
|
1273
1427
|
* This code was AUTOGENERATED using the Codama library.
|
|
1274
1428
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1335,7 +1489,7 @@ type OpportunityMarket = {
|
|
|
1335
1489
|
index: bigint;
|
|
1336
1490
|
totalOptions: bigint;
|
|
1337
1491
|
platform: Address;
|
|
1338
|
-
|
|
1492
|
+
stakingWindowEnd: Option<bigint>;
|
|
1339
1493
|
resolvedAtTimestamp: Option<bigint>;
|
|
1340
1494
|
winningOptionAllocation: number;
|
|
1341
1495
|
winningOptionActiveBp: number;
|
|
@@ -1344,7 +1498,6 @@ type OpportunityMarket = {
|
|
|
1344
1498
|
mint: Address;
|
|
1345
1499
|
earlinessCutoffSeconds: bigint;
|
|
1346
1500
|
earlinessMultiplier: number;
|
|
1347
|
-
allowUnstakingEarly: boolean;
|
|
1348
1501
|
authorizedReaderPubkey: Array<number>;
|
|
1349
1502
|
feeRates: FeeRates;
|
|
1350
1503
|
collectedPlatformFees: bigint;
|
|
@@ -1361,7 +1514,7 @@ type OpportunityMarketArgs = {
|
|
|
1361
1514
|
index: number | bigint;
|
|
1362
1515
|
totalOptions: number | bigint;
|
|
1363
1516
|
platform: Address;
|
|
1364
|
-
|
|
1517
|
+
stakingWindowEnd: OptionOrNullable<number | bigint>;
|
|
1365
1518
|
resolvedAtTimestamp: OptionOrNullable<number | bigint>;
|
|
1366
1519
|
winningOptionAllocation: number;
|
|
1367
1520
|
winningOptionActiveBp: number;
|
|
@@ -1370,7 +1523,6 @@ type OpportunityMarketArgs = {
|
|
|
1370
1523
|
mint: Address;
|
|
1371
1524
|
earlinessCutoffSeconds: number | bigint;
|
|
1372
1525
|
earlinessMultiplier: number;
|
|
1373
|
-
allowUnstakingEarly: boolean;
|
|
1374
1526
|
authorizedReaderPubkey: Array<number>;
|
|
1375
1527
|
feeRates: FeeRatesArgs;
|
|
1376
1528
|
collectedPlatformFees: number | bigint;
|
|
@@ -1407,7 +1559,7 @@ type OpportunityMarketOption = {
|
|
|
1407
1559
|
id: bigint;
|
|
1408
1560
|
creator: Address;
|
|
1409
1561
|
createdAt: bigint;
|
|
1410
|
-
|
|
1562
|
+
unclaimedStake: bigint;
|
|
1411
1563
|
totalScore: bigint;
|
|
1412
1564
|
/** Non-zero iff this option is a winner; share of pool in basis points (0–10_000). */
|
|
1413
1565
|
rewardBp: number;
|
|
@@ -1419,7 +1571,7 @@ type OpportunityMarketOptionArgs = {
|
|
|
1419
1571
|
id: number | bigint;
|
|
1420
1572
|
creator: Address;
|
|
1421
1573
|
createdAt: number | bigint;
|
|
1422
|
-
|
|
1574
|
+
unclaimedStake: number | bigint;
|
|
1423
1575
|
totalScore: number | bigint;
|
|
1424
1576
|
/** Non-zero iff this option is a winner; share of pool in basis points (0–10_000). */
|
|
1425
1577
|
rewardBp: number;
|
|
@@ -1452,14 +1604,12 @@ type OpportunityMarketSponsor = {
|
|
|
1452
1604
|
sponsor: Address;
|
|
1453
1605
|
market: Address;
|
|
1454
1606
|
rewardDeposited: bigint;
|
|
1455
|
-
rewardLocked: boolean;
|
|
1456
1607
|
};
|
|
1457
1608
|
type OpportunityMarketSponsorArgs = {
|
|
1458
1609
|
bump: number;
|
|
1459
1610
|
sponsor: Address;
|
|
1460
1611
|
market: Address;
|
|
1461
1612
|
rewardDeposited: number | bigint;
|
|
1462
|
-
rewardLocked: boolean;
|
|
1463
1613
|
};
|
|
1464
1614
|
declare function getOpportunityMarketSponsorEncoder(): FixedSizeEncoder<OpportunityMarketSponsorArgs>;
|
|
1465
1615
|
declare function getOpportunityMarketSponsorDecoder(): FixedSizeDecoder<OpportunityMarketSponsor>;
|
|
@@ -1540,10 +1690,10 @@ type StakeAccount = {
|
|
|
1540
1690
|
collectedFees: CollectedFees;
|
|
1541
1691
|
revealedOption: Option<bigint>;
|
|
1542
1692
|
score: Option<bigint>;
|
|
1543
|
-
|
|
1693
|
+
rewardsClaimed: boolean;
|
|
1544
1694
|
id: number;
|
|
1545
1695
|
pendingStakeComputation: Option<Address>;
|
|
1546
|
-
|
|
1696
|
+
pendingRevealComputation: Option<Address>;
|
|
1547
1697
|
};
|
|
1548
1698
|
type StakeAccountArgs = {
|
|
1549
1699
|
encryptedOption: Array<number>;
|
|
@@ -1560,10 +1710,10 @@ type StakeAccountArgs = {
|
|
|
1560
1710
|
collectedFees: CollectedFeesArgs;
|
|
1561
1711
|
revealedOption: OptionOrNullable<number | bigint>;
|
|
1562
1712
|
score: OptionOrNullable<number | bigint>;
|
|
1563
|
-
|
|
1713
|
+
rewardsClaimed: boolean;
|
|
1564
1714
|
id: number;
|
|
1565
1715
|
pendingStakeComputation: OptionOrNullable<Address>;
|
|
1566
|
-
|
|
1716
|
+
pendingRevealComputation: OptionOrNullable<Address>;
|
|
1567
1717
|
};
|
|
1568
1718
|
declare function getStakeAccountEncoder(): Encoder<StakeAccountArgs>;
|
|
1569
1719
|
declare function getStakeAccountDecoder(): Decoder<StakeAccount>;
|
|
@@ -1583,77 +1733,59 @@ declare function fetchAllMaybeStakeAccount(rpc: Parameters<typeof fetchEncodedAc
|
|
|
1583
1733
|
* @see https://github.com/codama-idl/codama
|
|
1584
1734
|
*/
|
|
1585
1735
|
|
|
1586
|
-
/** AbortedComputation: Computation aborted */
|
|
1587
|
-
declare const OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION = 6000;
|
|
1588
1736
|
/** Unauthorized: Unauthorized */
|
|
1589
|
-
declare const OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED =
|
|
1737
|
+
declare const OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED = 6000;
|
|
1590
1738
|
/** InsufficientBalance: Insufficient balance */
|
|
1591
|
-
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE =
|
|
1739
|
+
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE = 6001;
|
|
1592
1740
|
/** InsufficientRewardFunding: Insufficient reward funding */
|
|
1593
|
-
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING =
|
|
1741
|
+
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING = 6002;
|
|
1594
1742
|
/** InvalidParameters: Invalid parameters */
|
|
1595
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS =
|
|
1596
|
-
/** MarketAlreadyOpen: Market is already open */
|
|
1597
|
-
declare const OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN = 6005;
|
|
1743
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS = 6003;
|
|
1598
1744
|
/** InvalidOptionId: Invalid option ID */
|
|
1599
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID =
|
|
1600
|
-
/** MarketNotOpen: Market is not open */
|
|
1601
|
-
declare const OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN = 6007;
|
|
1602
|
-
/** TimeWindowMismatch: Operation called outside its permitted time window */
|
|
1603
|
-
declare const OPPORTUNITY_MARKET_ERROR__TIME_WINDOW_MISMATCH = 6008;
|
|
1745
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID = 6004;
|
|
1604
1746
|
/** NoStake: Stake account has no recorded stake */
|
|
1605
|
-
declare const OPPORTUNITY_MARKET_ERROR__NO_STAKE =
|
|
1747
|
+
declare const OPPORTUNITY_MARKET_ERROR__NO_STAKE = 6005;
|
|
1606
1748
|
/** WinnerAlreadySelected: Market winner already selected */
|
|
1607
|
-
declare const OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED =
|
|
1749
|
+
declare const OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED = 6006;
|
|
1608
1750
|
/** AlreadyRevealed: Stake already revealed */
|
|
1609
|
-
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED =
|
|
1610
|
-
/** MarketNotResolved: Market not yet resolved */
|
|
1611
|
-
declare const OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED = 6012;
|
|
1751
|
+
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED = 6007;
|
|
1612
1752
|
/** NotRevealed: Stake not yet revealed */
|
|
1613
|
-
declare const OPPORTUNITY_MARKET_ERROR__NOT_REVEALED =
|
|
1753
|
+
declare const OPPORTUNITY_MARKET_ERROR__NOT_REVEALED = 6008;
|
|
1614
1754
|
/** TallyAlreadyIncremented: Tally already incremented for this stake account */
|
|
1615
|
-
declare const OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED =
|
|
1755
|
+
declare const OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED = 6009;
|
|
1616
1756
|
/** Overflow: Arithmetic overflow */
|
|
1617
|
-
declare const OPPORTUNITY_MARKET_ERROR__OVERFLOW =
|
|
1618
|
-
/** RevealPeriodEnded: Reveal period has already ended */
|
|
1619
|
-
declare const OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED = 6016;
|
|
1757
|
+
declare const OPPORTUNITY_MARKET_ERROR__OVERFLOW = 6010;
|
|
1620
1758
|
/** InvalidMint: Token mint does not match account mint */
|
|
1621
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_MINT =
|
|
1759
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_MINT = 6011;
|
|
1622
1760
|
/** AlreadyUnstaked: Already unstaked */
|
|
1623
|
-
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED =
|
|
1761
|
+
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED = 6012;
|
|
1624
1762
|
/** AlreadyStaked: Already staked for this stake account */
|
|
1625
|
-
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED =
|
|
1626
|
-
/** DepositBelowMinimum: Deposit amount below minimum required for option creation */
|
|
1627
|
-
declare const OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM = 6020;
|
|
1628
|
-
/** AddOptionStakeFailed: Add option stake failed: insufficient balance or below minimum deposit */
|
|
1629
|
-
declare const OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED = 6021;
|
|
1763
|
+
declare const OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED = 6013;
|
|
1630
1764
|
/** Locked: Account is locked */
|
|
1631
|
-
declare const OPPORTUNITY_MARKET_ERROR__LOCKED =
|
|
1765
|
+
declare const OPPORTUNITY_MARKET_ERROR__LOCKED = 6014;
|
|
1632
1766
|
/** InvalidAccountState: Invalid account state */
|
|
1633
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE =
|
|
1767
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE = 6015;
|
|
1634
1768
|
/** NoFeesToClaim: No fees to claim */
|
|
1635
|
-
declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM =
|
|
1769
|
+
declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM = 6016;
|
|
1636
1770
|
/** StakeNotStuck: Stake account is not in a stuck or failed state */
|
|
1637
|
-
declare const OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK =
|
|
1771
|
+
declare const OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK = 6017;
|
|
1638
1772
|
/** StakeBelowMinimum: Stake amount is below the market minimum */
|
|
1639
|
-
declare const OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM =
|
|
1640
|
-
/** SelectOptionsDeadlinePassed: Deadline for selecting winning options has passed */
|
|
1641
|
-
declare const OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED = 6027;
|
|
1773
|
+
declare const OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM = 6018;
|
|
1642
1774
|
/** InvalidFeeRates: Invalid fee rates */
|
|
1643
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES =
|
|
1775
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES = 6019;
|
|
1644
1776
|
/** OptionStillNeeded: Option still needed */
|
|
1645
|
-
declare const OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED =
|
|
1777
|
+
declare const OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED = 6020;
|
|
1646
1778
|
/** CreatorMismatch: Creator mismatch */
|
|
1647
|
-
declare const OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH =
|
|
1648
|
-
/** RevealPeriodNotOver: Reveal period not over */
|
|
1649
|
-
declare const OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER = 6031;
|
|
1779
|
+
declare const OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH = 6021;
|
|
1650
1780
|
/** NoFinalizedWinningOption: No winning option has a finalized stake */
|
|
1651
|
-
declare const OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION =
|
|
1781
|
+
declare const OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION = 6022;
|
|
1652
1782
|
/** NoRewardToClaim: No reward to claim */
|
|
1653
|
-
declare const OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM =
|
|
1783
|
+
declare const OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6023;
|
|
1654
1784
|
/** RewardAlreadyClaimed: Reward already claimed */
|
|
1655
|
-
declare const OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED =
|
|
1656
|
-
|
|
1785
|
+
declare const OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED = 6024;
|
|
1786
|
+
/** WrongMarketPhase: Operation is not permitted in the current market phase */
|
|
1787
|
+
declare const OPPORTUNITY_MARKET_ERROR__WRONG_MARKET_PHASE = 6025;
|
|
1788
|
+
type OpportunityMarketError = typeof OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED | typeof OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING | typeof OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE | typeof OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES | typeof OPPORTUNITY_MARKET_ERROR__INVALID_MINT | typeof OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID | typeof OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS | typeof OPPORTUNITY_MARKET_ERROR__LOCKED | typeof OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION | typeof OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_STAKE | typeof OPPORTUNITY_MARKET_ERROR__NOT_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED | typeof OPPORTUNITY_MARKET_ERROR__OVERFLOW | typeof OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED | typeof OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK | typeof OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED | typeof OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED | typeof OPPORTUNITY_MARKET_ERROR__WRONG_MARKET_PHASE;
|
|
1657
1789
|
declare function getOpportunityMarketErrorMessage(code: OpportunityMarketError): string;
|
|
1658
1790
|
declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityMarketError>(error: unknown, transactionMessage: {
|
|
1659
1791
|
instructions: Record<number, {
|
|
@@ -1673,7 +1805,7 @@ declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityM
|
|
|
1673
1805
|
* @see https://github.com/codama-idl/codama
|
|
1674
1806
|
*/
|
|
1675
1807
|
|
|
1676
|
-
declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"
|
|
1808
|
+
declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"bncqApu6NkUibDwnbfXR5oRPCLiYjwHgVuCdHRTD6rp">;
|
|
1677
1809
|
declare enum OpportunityMarketAccount {
|
|
1678
1810
|
AllowedMint = 0,
|
|
1679
1811
|
ArciumSignerAccount = 1,
|
|
@@ -1691,34 +1823,36 @@ declare enum OpportunityMarketInstruction {
|
|
|
1691
1823
|
AddReward = 1,
|
|
1692
1824
|
ClaimCreatorFees = 2,
|
|
1693
1825
|
ClaimFees = 3,
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1826
|
+
ClaimRewards = 4,
|
|
1827
|
+
CloseOptionAccount = 5,
|
|
1828
|
+
CloseStakeAccount = 6,
|
|
1829
|
+
CloseStuckStakeAccount = 7,
|
|
1830
|
+
CloseUnrevealedStakeAccount = 8,
|
|
1831
|
+
CreateMarket = 9,
|
|
1832
|
+
EndRevealPeriod = 10,
|
|
1833
|
+
FinalizeRevealStake = 11,
|
|
1834
|
+
InitAllowedMint = 12,
|
|
1835
|
+
InitPlatformConfig = 13,
|
|
1836
|
+
InitStakeAccount = 14,
|
|
1837
|
+
OpenMarket = 15,
|
|
1838
|
+
ResolveMarket = 16,
|
|
1839
|
+
RevealStake = 17,
|
|
1840
|
+
RevealStakeCallback = 18,
|
|
1841
|
+
RevealStakeCompDef = 19,
|
|
1842
|
+
SetFeeClaimAuthority = 20,
|
|
1843
|
+
SetUpdateAuthority = 21,
|
|
1844
|
+
SetWinningOption = 22,
|
|
1845
|
+
Stake = 23,
|
|
1846
|
+
StakeCallback = 24,
|
|
1847
|
+
StakeCompDef = 25,
|
|
1848
|
+
Unstake = 26,
|
|
1849
|
+
UpdatePlatformConfig = 27,
|
|
1850
|
+
WithdrawReward = 28
|
|
1717
1851
|
}
|
|
1718
1852
|
declare function identifyOpportunityMarketInstruction(instruction: {
|
|
1719
1853
|
data: ReadonlyUint8Array;
|
|
1720
1854
|
} | ReadonlyUint8Array): OpportunityMarketInstruction;
|
|
1721
|
-
type ParsedOpportunityMarketInstruction<TProgram extends string = '
|
|
1855
|
+
type ParsedOpportunityMarketInstruction<TProgram extends string = 'bncqApu6NkUibDwnbfXR5oRPCLiYjwHgVuCdHRTD6rp'> = ({
|
|
1722
1856
|
instructionType: OpportunityMarketInstruction.AddMarketOption;
|
|
1723
1857
|
} & ParsedAddMarketOptionInstruction<TProgram>) | ({
|
|
1724
1858
|
instructionType: OpportunityMarketInstruction.AddReward;
|
|
@@ -1727,12 +1861,16 @@ type ParsedOpportunityMarketInstruction<TProgram extends string = 'B3NCHsGBkdZrP
|
|
|
1727
1861
|
} & ParsedClaimCreatorFeesInstruction<TProgram>) | ({
|
|
1728
1862
|
instructionType: OpportunityMarketInstruction.ClaimFees;
|
|
1729
1863
|
} & ParsedClaimFeesInstruction<TProgram>) | ({
|
|
1864
|
+
instructionType: OpportunityMarketInstruction.ClaimRewards;
|
|
1865
|
+
} & ParsedClaimRewardsInstruction<TProgram>) | ({
|
|
1730
1866
|
instructionType: OpportunityMarketInstruction.CloseOptionAccount;
|
|
1731
1867
|
} & ParsedCloseOptionAccountInstruction<TProgram>) | ({
|
|
1732
1868
|
instructionType: OpportunityMarketInstruction.CloseStakeAccount;
|
|
1733
1869
|
} & ParsedCloseStakeAccountInstruction<TProgram>) | ({
|
|
1734
1870
|
instructionType: OpportunityMarketInstruction.CloseStuckStakeAccount;
|
|
1735
1871
|
} & ParsedCloseStuckStakeAccountInstruction<TProgram>) | ({
|
|
1872
|
+
instructionType: OpportunityMarketInstruction.CloseUnrevealedStakeAccount;
|
|
1873
|
+
} & ParsedCloseUnrevealedStakeAccountInstruction<TProgram>) | ({
|
|
1736
1874
|
instructionType: OpportunityMarketInstruction.CreateMarket;
|
|
1737
1875
|
} & ParsedCreateMarketInstruction<TProgram>) | ({
|
|
1738
1876
|
instructionType: OpportunityMarketInstruction.EndRevealPeriod;
|
|
@@ -1857,11 +1995,9 @@ type AddRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PR
|
|
|
1857
1995
|
type AddRewardInstructionData = {
|
|
1858
1996
|
discriminator: ReadonlyUint8Array;
|
|
1859
1997
|
amount: bigint;
|
|
1860
|
-
lock: boolean;
|
|
1861
1998
|
};
|
|
1862
1999
|
type AddRewardInstructionDataArgs = {
|
|
1863
2000
|
amount: number | bigint;
|
|
1864
|
-
lock: boolean;
|
|
1865
2001
|
};
|
|
1866
2002
|
declare function getAddRewardInstructionDataEncoder(): FixedSizeEncoder<AddRewardInstructionDataArgs>;
|
|
1867
2003
|
declare function getAddRewardInstructionDataDecoder(): FixedSizeDecoder<AddRewardInstructionData>;
|
|
@@ -1877,7 +2013,6 @@ type AddRewardAsyncInput<TAccountSponsor extends string = string, TAccountMarket
|
|
|
1877
2013
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
1878
2014
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1879
2015
|
amount: AddRewardInstructionDataArgs['amount'];
|
|
1880
|
-
lock: AddRewardInstructionDataArgs['lock'];
|
|
1881
2016
|
};
|
|
1882
2017
|
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?: {
|
|
1883
2018
|
programAddress?: TProgramAddress;
|
|
@@ -1893,7 +2028,6 @@ type AddRewardInput<TAccountSponsor extends string = string, TAccountMarket exte
|
|
|
1893
2028
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
1894
2029
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1895
2030
|
amount: AddRewardInstructionDataArgs['amount'];
|
|
1896
|
-
lock: AddRewardInstructionDataArgs['lock'];
|
|
1897
2031
|
};
|
|
1898
2032
|
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?: {
|
|
1899
2033
|
programAddress?: TProgramAddress;
|
|
@@ -2043,6 +2177,76 @@ type ParsedClaimFeesInstruction<TProgram extends string = typeof OPPORTUNITY_MAR
|
|
|
2043
2177
|
};
|
|
2044
2178
|
declare function parseClaimFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimFeesInstruction<TProgram, TAccountMetas>;
|
|
2045
2179
|
|
|
2180
|
+
/**
|
|
2181
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2182
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2183
|
+
* to add features, then rerun Codama to update it.
|
|
2184
|
+
*
|
|
2185
|
+
* @see https://github.com/codama-idl/codama
|
|
2186
|
+
*/
|
|
2187
|
+
|
|
2188
|
+
declare const CLAIM_REWARDS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2189
|
+
declare function getClaimRewardsDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2190
|
+
type ClaimRewardsInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountOption extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountOwnerTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2191
|
+
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
2192
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2193
|
+
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
2194
|
+
TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
|
|
2195
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2196
|
+
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2197
|
+
TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
|
|
2198
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2199
|
+
...TRemainingAccounts
|
|
2200
|
+
]>;
|
|
2201
|
+
type ClaimRewardsInstructionData = {
|
|
2202
|
+
discriminator: ReadonlyUint8Array;
|
|
2203
|
+
};
|
|
2204
|
+
type ClaimRewardsInstructionDataArgs = {};
|
|
2205
|
+
declare function getClaimRewardsInstructionDataEncoder(): FixedSizeEncoder<ClaimRewardsInstructionDataArgs>;
|
|
2206
|
+
declare function getClaimRewardsInstructionDataDecoder(): FixedSizeDecoder<ClaimRewardsInstructionData>;
|
|
2207
|
+
declare function getClaimRewardsInstructionDataCodec(): FixedSizeCodec<ClaimRewardsInstructionDataArgs, ClaimRewardsInstructionData>;
|
|
2208
|
+
type ClaimRewardsAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
|
|
2209
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
2210
|
+
market: Address<TAccountMarket>;
|
|
2211
|
+
stakeAccount: Address<TAccountStakeAccount>;
|
|
2212
|
+
option: Address<TAccountOption>;
|
|
2213
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2214
|
+
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2215
|
+
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
2216
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2217
|
+
};
|
|
2218
|
+
declare function getClaimRewardsInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimRewardsAsyncInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>, config?: {
|
|
2219
|
+
programAddress?: TProgramAddress;
|
|
2220
|
+
}): Promise<ClaimRewardsInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>>;
|
|
2221
|
+
type ClaimRewardsInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
|
|
2222
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
2223
|
+
market: Address<TAccountMarket>;
|
|
2224
|
+
stakeAccount: Address<TAccountStakeAccount>;
|
|
2225
|
+
option: Address<TAccountOption>;
|
|
2226
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2227
|
+
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2228
|
+
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
2229
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2230
|
+
};
|
|
2231
|
+
declare function getClaimRewardsInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimRewardsInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>, config?: {
|
|
2232
|
+
programAddress?: TProgramAddress;
|
|
2233
|
+
}): ClaimRewardsInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>;
|
|
2234
|
+
type ParsedClaimRewardsInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2235
|
+
programAddress: Address<TProgram>;
|
|
2236
|
+
accounts: {
|
|
2237
|
+
owner: TAccountMetas[0];
|
|
2238
|
+
market: TAccountMetas[1];
|
|
2239
|
+
stakeAccount: TAccountMetas[2];
|
|
2240
|
+
option: TAccountMetas[3];
|
|
2241
|
+
tokenMint: TAccountMetas[4];
|
|
2242
|
+
marketTokenAta: TAccountMetas[5];
|
|
2243
|
+
ownerTokenAccount: TAccountMetas[6];
|
|
2244
|
+
tokenProgram: TAccountMetas[7];
|
|
2245
|
+
};
|
|
2246
|
+
data: ClaimRewardsInstructionData;
|
|
2247
|
+
};
|
|
2248
|
+
declare function parseClaimRewardsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimRewardsInstruction<TProgram, TAccountMetas>;
|
|
2249
|
+
|
|
2046
2250
|
/**
|
|
2047
2251
|
* This code was AUTOGENERATED using the Codama library.
|
|
2048
2252
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -2130,30 +2334,21 @@ type CloseStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_M
|
|
|
2130
2334
|
]>;
|
|
2131
2335
|
type CloseStakeAccountInstructionData = {
|
|
2132
2336
|
discriminator: ReadonlyUint8Array;
|
|
2133
|
-
optionId: bigint;
|
|
2134
|
-
stakeAccountId: number;
|
|
2135
|
-
};
|
|
2136
|
-
type CloseStakeAccountInstructionDataArgs = {
|
|
2137
|
-
optionId: number | bigint;
|
|
2138
|
-
stakeAccountId: number;
|
|
2139
2337
|
};
|
|
2338
|
+
type CloseStakeAccountInstructionDataArgs = {};
|
|
2140
2339
|
declare function getCloseStakeAccountInstructionDataEncoder(): FixedSizeEncoder<CloseStakeAccountInstructionDataArgs>;
|
|
2141
2340
|
declare function getCloseStakeAccountInstructionDataDecoder(): FixedSizeDecoder<CloseStakeAccountInstructionData>;
|
|
2142
2341
|
declare function getCloseStakeAccountInstructionDataCodec(): FixedSizeCodec<CloseStakeAccountInstructionDataArgs, CloseStakeAccountInstructionData>;
|
|
2143
2342
|
type CloseStakeAccountAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2144
2343
|
owner: TransactionSigner<TAccountOwner>;
|
|
2145
2344
|
market: Address<TAccountMarket>;
|
|
2146
|
-
stakeAccount
|
|
2147
|
-
option
|
|
2345
|
+
stakeAccount: Address<TAccountStakeAccount>;
|
|
2346
|
+
option: Address<TAccountOption>;
|
|
2148
2347
|
tokenMint: Address<TAccountTokenMint>;
|
|
2149
|
-
/** Market-owned ATA holding all program-held tokens for this market */
|
|
2150
2348
|
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2151
|
-
/** Owner's token account to receive rewards */
|
|
2152
2349
|
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
2153
2350
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
2154
2351
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2155
|
-
optionId: CloseStakeAccountInstructionDataArgs['optionId'];
|
|
2156
|
-
stakeAccountId: CloseStakeAccountInstructionDataArgs['stakeAccountId'];
|
|
2157
2352
|
};
|
|
2158
2353
|
declare function getCloseStakeAccountInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStakeAccountAsyncInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2159
2354
|
programAddress?: TProgramAddress;
|
|
@@ -2164,14 +2359,10 @@ type CloseStakeAccountInput<TAccountOwner extends string = string, TAccountMarke
|
|
|
2164
2359
|
stakeAccount: Address<TAccountStakeAccount>;
|
|
2165
2360
|
option: Address<TAccountOption>;
|
|
2166
2361
|
tokenMint: Address<TAccountTokenMint>;
|
|
2167
|
-
/** Market-owned ATA holding all program-held tokens for this market */
|
|
2168
2362
|
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2169
|
-
/** Owner's token account to receive rewards */
|
|
2170
2363
|
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
2171
2364
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
2172
2365
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2173
|
-
optionId: CloseStakeAccountInstructionDataArgs['optionId'];
|
|
2174
|
-
stakeAccountId: CloseStakeAccountInstructionDataArgs['stakeAccountId'];
|
|
2175
2366
|
};
|
|
2176
2367
|
declare function getCloseStakeAccountInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStakeAccountInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2177
2368
|
programAddress?: TProgramAddress;
|
|
@@ -2184,9 +2375,7 @@ type ParsedCloseStakeAccountInstruction<TProgram extends string = typeof OPPORTU
|
|
|
2184
2375
|
stakeAccount: TAccountMetas[2];
|
|
2185
2376
|
option: TAccountMetas[3];
|
|
2186
2377
|
tokenMint: TAccountMetas[4];
|
|
2187
|
-
/** Market-owned ATA holding all program-held tokens for this market */
|
|
2188
2378
|
marketTokenAta: TAccountMetas[5];
|
|
2189
|
-
/** Owner's token account to receive rewards */
|
|
2190
2379
|
ownerTokenAccount: TAccountMetas[6];
|
|
2191
2380
|
tokenProgram: TAccountMetas[7];
|
|
2192
2381
|
systemProgram: TAccountMetas[8];
|
|
@@ -2273,6 +2462,76 @@ type ParsedCloseStuckStakeAccountInstruction<TProgram extends string = typeof OP
|
|
|
2273
2462
|
};
|
|
2274
2463
|
declare function parseCloseStuckStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseStuckStakeAccountInstruction<TProgram, TAccountMetas>;
|
|
2275
2464
|
|
|
2465
|
+
/**
|
|
2466
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2467
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2468
|
+
* to add features, then rerun Codama to update it.
|
|
2469
|
+
*
|
|
2470
|
+
* @see https://github.com/codama-idl/codama
|
|
2471
|
+
*/
|
|
2472
|
+
|
|
2473
|
+
declare const CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2474
|
+
declare function getCloseUnrevealedStakeAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2475
|
+
type CloseUnrevealedStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountOwner 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, TAccountOwnerTokenAccount 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<[
|
|
2476
|
+
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
2477
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2478
|
+
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
2479
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2480
|
+
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2481
|
+
TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
|
|
2482
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2483
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2484
|
+
...TRemainingAccounts
|
|
2485
|
+
]>;
|
|
2486
|
+
type CloseUnrevealedStakeAccountInstructionData = {
|
|
2487
|
+
discriminator: ReadonlyUint8Array;
|
|
2488
|
+
};
|
|
2489
|
+
type CloseUnrevealedStakeAccountInstructionDataArgs = {};
|
|
2490
|
+
declare function getCloseUnrevealedStakeAccountInstructionDataEncoder(): FixedSizeEncoder<CloseUnrevealedStakeAccountInstructionDataArgs>;
|
|
2491
|
+
declare function getCloseUnrevealedStakeAccountInstructionDataDecoder(): FixedSizeDecoder<CloseUnrevealedStakeAccountInstructionData>;
|
|
2492
|
+
declare function getCloseUnrevealedStakeAccountInstructionDataCodec(): FixedSizeCodec<CloseUnrevealedStakeAccountInstructionDataArgs, CloseUnrevealedStakeAccountInstructionData>;
|
|
2493
|
+
type CloseUnrevealedStakeAccountAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2494
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
2495
|
+
market: Address<TAccountMarket>;
|
|
2496
|
+
stakeAccount: Address<TAccountStakeAccount>;
|
|
2497
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2498
|
+
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2499
|
+
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
2500
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2501
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2502
|
+
};
|
|
2503
|
+
declare function getCloseUnrevealedStakeAccountInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseUnrevealedStakeAccountAsyncInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2504
|
+
programAddress?: TProgramAddress;
|
|
2505
|
+
}): Promise<CloseUnrevealedStakeAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>>;
|
|
2506
|
+
type CloseUnrevealedStakeAccountInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2507
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
2508
|
+
market: Address<TAccountMarket>;
|
|
2509
|
+
stakeAccount: Address<TAccountStakeAccount>;
|
|
2510
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2511
|
+
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2512
|
+
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
2513
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2514
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2515
|
+
};
|
|
2516
|
+
declare function getCloseUnrevealedStakeAccountInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseUnrevealedStakeAccountInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2517
|
+
programAddress?: TProgramAddress;
|
|
2518
|
+
}): CloseUnrevealedStakeAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>;
|
|
2519
|
+
type ParsedCloseUnrevealedStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2520
|
+
programAddress: Address<TProgram>;
|
|
2521
|
+
accounts: {
|
|
2522
|
+
owner: TAccountMetas[0];
|
|
2523
|
+
market: TAccountMetas[1];
|
|
2524
|
+
stakeAccount: TAccountMetas[2];
|
|
2525
|
+
tokenMint: TAccountMetas[3];
|
|
2526
|
+
marketTokenAta: TAccountMetas[4];
|
|
2527
|
+
ownerTokenAccount: TAccountMetas[5];
|
|
2528
|
+
tokenProgram: TAccountMetas[6];
|
|
2529
|
+
systemProgram: TAccountMetas[7];
|
|
2530
|
+
};
|
|
2531
|
+
data: CloseUnrevealedStakeAccountInstructionData;
|
|
2532
|
+
};
|
|
2533
|
+
declare function parseCloseUnrevealedStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseUnrevealedStakeAccountInstruction<TProgram, TAccountMetas>;
|
|
2534
|
+
|
|
2276
2535
|
/**
|
|
2277
2536
|
* This code was AUTOGENERATED using the Codama library.
|
|
2278
2537
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -2297,24 +2556,10 @@ type CreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET
|
|
|
2297
2556
|
]>;
|
|
2298
2557
|
type CreateMarketInstructionData = {
|
|
2299
2558
|
discriminator: ReadonlyUint8Array;
|
|
2300
|
-
|
|
2301
|
-
marketAuthority: Address;
|
|
2302
|
-
allowUnstakingEarly: boolean;
|
|
2303
|
-
authorizedReaderPubkey: Array<number>;
|
|
2304
|
-
earlinessCutoffSeconds: bigint;
|
|
2305
|
-
earlinessMultiplier: number;
|
|
2306
|
-
minStakeAmount: bigint;
|
|
2307
|
-
creatorFeeClaimer: Address;
|
|
2559
|
+
params: CreateMarketParameters;
|
|
2308
2560
|
};
|
|
2309
2561
|
type CreateMarketInstructionDataArgs = {
|
|
2310
|
-
|
|
2311
|
-
marketAuthority: Address;
|
|
2312
|
-
allowUnstakingEarly: boolean;
|
|
2313
|
-
authorizedReaderPubkey: Array<number>;
|
|
2314
|
-
earlinessCutoffSeconds: number | bigint;
|
|
2315
|
-
earlinessMultiplier: number;
|
|
2316
|
-
minStakeAmount: number | bigint;
|
|
2317
|
-
creatorFeeClaimer: Address;
|
|
2562
|
+
params: CreateMarketParametersArgs;
|
|
2318
2563
|
};
|
|
2319
2564
|
declare function getCreateMarketInstructionDataEncoder(): FixedSizeEncoder<CreateMarketInstructionDataArgs>;
|
|
2320
2565
|
declare function getCreateMarketInstructionDataDecoder(): FixedSizeDecoder<CreateMarketInstructionData>;
|
|
@@ -2323,21 +2568,14 @@ type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountPla
|
|
|
2323
2568
|
creator: TransactionSigner<TAccountCreator>;
|
|
2324
2569
|
platformConfig: Address<TAccountPlatformConfig>;
|
|
2325
2570
|
tokenMint: Address<TAccountTokenMint>;
|
|
2326
|
-
market
|
|
2571
|
+
market: Address<TAccountMarket>;
|
|
2327
2572
|
/** This ATA holds all of the market's program-held tokens (stakes, rewards, fees). */
|
|
2328
2573
|
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2329
2574
|
allowedMint?: Address<TAccountAllowedMint>;
|
|
2330
2575
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
2331
2576
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2332
2577
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2333
|
-
|
|
2334
|
-
marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
|
|
2335
|
-
allowUnstakingEarly: CreateMarketInstructionDataArgs['allowUnstakingEarly'];
|
|
2336
|
-
authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
|
|
2337
|
-
earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
|
|
2338
|
-
earlinessMultiplier: CreateMarketInstructionDataArgs['earlinessMultiplier'];
|
|
2339
|
-
minStakeAmount: CreateMarketInstructionDataArgs['minStakeAmount'];
|
|
2340
|
-
creatorFeeClaimer: CreateMarketInstructionDataArgs['creatorFeeClaimer'];
|
|
2578
|
+
params: CreateMarketInstructionDataArgs['params'];
|
|
2341
2579
|
};
|
|
2342
2580
|
declare function getCreateMarketInstructionAsync<TAccountCreator extends string, TAccountPlatformConfig extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountAllowedMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketAsyncInput<TAccountCreator, TAccountPlatformConfig, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountAllowedMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2343
2581
|
programAddress?: TProgramAddress;
|
|
@@ -2353,14 +2591,7 @@ type CreateMarketInput<TAccountCreator extends string = string, TAccountPlatform
|
|
|
2353
2591
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
2354
2592
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2355
2593
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2356
|
-
|
|
2357
|
-
marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
|
|
2358
|
-
allowUnstakingEarly: CreateMarketInstructionDataArgs['allowUnstakingEarly'];
|
|
2359
|
-
authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
|
|
2360
|
-
earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
|
|
2361
|
-
earlinessMultiplier: CreateMarketInstructionDataArgs['earlinessMultiplier'];
|
|
2362
|
-
minStakeAmount: CreateMarketInstructionDataArgs['minStakeAmount'];
|
|
2363
|
-
creatorFeeClaimer: CreateMarketInstructionDataArgs['creatorFeeClaimer'];
|
|
2594
|
+
params: CreateMarketInstructionDataArgs['params'];
|
|
2364
2595
|
};
|
|
2365
2596
|
declare function getCreateMarketInstruction<TAccountCreator extends string, TAccountPlatformConfig extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountAllowedMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketInput<TAccountCreator, TAccountPlatformConfig, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountAllowedMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2366
2597
|
programAddress?: TProgramAddress;
|
|
@@ -2572,60 +2803,19 @@ type InitPlatformConfigInstruction<TProgram extends string = typeof OPPORTUNITY_
|
|
|
2572
2803
|
]>;
|
|
2573
2804
|
type InitPlatformConfigInstructionData = {
|
|
2574
2805
|
discriminator: ReadonlyUint8Array;
|
|
2575
|
-
|
|
2576
|
-
platformFeeBp: number;
|
|
2577
|
-
rewardPoolFeeBp: number;
|
|
2578
|
-
creatorFeeBp: number;
|
|
2579
|
-
feeClaimAuthority: Address;
|
|
2580
|
-
revealAuthority: Address;
|
|
2581
|
-
minTimeToStakeSeconds: bigint;
|
|
2582
|
-
revealPeriodSeconds: bigint;
|
|
2583
|
-
marketResolutionDeadlineSeconds: bigint;
|
|
2806
|
+
params: InitPlatformParameters;
|
|
2584
2807
|
};
|
|
2585
2808
|
type InitPlatformConfigInstructionDataArgs = {
|
|
2586
|
-
|
|
2587
|
-
platformFeeBp: number;
|
|
2588
|
-
rewardPoolFeeBp: number;
|
|
2589
|
-
creatorFeeBp: number;
|
|
2590
|
-
feeClaimAuthority: Address;
|
|
2591
|
-
revealAuthority: Address;
|
|
2592
|
-
minTimeToStakeSeconds: number | bigint;
|
|
2593
|
-
revealPeriodSeconds: number | bigint;
|
|
2594
|
-
marketResolutionDeadlineSeconds: number | bigint;
|
|
2809
|
+
params: InitPlatformParametersArgs;
|
|
2595
2810
|
};
|
|
2596
2811
|
declare function getInitPlatformConfigInstructionDataEncoder(): Encoder<InitPlatformConfigInstructionDataArgs>;
|
|
2597
2812
|
declare function getInitPlatformConfigInstructionDataDecoder(): Decoder<InitPlatformConfigInstructionData>;
|
|
2598
2813
|
declare function getInitPlatformConfigInstructionDataCodec(): Codec<InitPlatformConfigInstructionDataArgs, InitPlatformConfigInstructionData>;
|
|
2599
|
-
type InitPlatformConfigAsyncInput<TAccountPayer extends string = string, TAccountPlatformConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2600
|
-
payer: TransactionSigner<TAccountPayer>;
|
|
2601
|
-
platformConfig?: Address<TAccountPlatformConfig>;
|
|
2602
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
2603
|
-
name: InitPlatformConfigInstructionDataArgs['name'];
|
|
2604
|
-
platformFeeBp: InitPlatformConfigInstructionDataArgs['platformFeeBp'];
|
|
2605
|
-
rewardPoolFeeBp: InitPlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
|
|
2606
|
-
creatorFeeBp: InitPlatformConfigInstructionDataArgs['creatorFeeBp'];
|
|
2607
|
-
feeClaimAuthority: InitPlatformConfigInstructionDataArgs['feeClaimAuthority'];
|
|
2608
|
-
revealAuthority: InitPlatformConfigInstructionDataArgs['revealAuthority'];
|
|
2609
|
-
minTimeToStakeSeconds: InitPlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
|
|
2610
|
-
revealPeriodSeconds: InitPlatformConfigInstructionDataArgs['revealPeriodSeconds'];
|
|
2611
|
-
marketResolutionDeadlineSeconds: InitPlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
|
|
2612
|
-
};
|
|
2613
|
-
declare function getInitPlatformConfigInstructionAsync<TAccountPayer extends string, TAccountPlatformConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitPlatformConfigAsyncInput<TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>, config?: {
|
|
2614
|
-
programAddress?: TProgramAddress;
|
|
2615
|
-
}): Promise<InitPlatformConfigInstruction<TProgramAddress, TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>>;
|
|
2616
2814
|
type InitPlatformConfigInput<TAccountPayer extends string = string, TAccountPlatformConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2617
2815
|
payer: TransactionSigner<TAccountPayer>;
|
|
2618
2816
|
platformConfig: Address<TAccountPlatformConfig>;
|
|
2619
2817
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2620
|
-
|
|
2621
|
-
platformFeeBp: InitPlatformConfigInstructionDataArgs['platformFeeBp'];
|
|
2622
|
-
rewardPoolFeeBp: InitPlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
|
|
2623
|
-
creatorFeeBp: InitPlatformConfigInstructionDataArgs['creatorFeeBp'];
|
|
2624
|
-
feeClaimAuthority: InitPlatformConfigInstructionDataArgs['feeClaimAuthority'];
|
|
2625
|
-
revealAuthority: InitPlatformConfigInstructionDataArgs['revealAuthority'];
|
|
2626
|
-
minTimeToStakeSeconds: InitPlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
|
|
2627
|
-
revealPeriodSeconds: InitPlatformConfigInstructionDataArgs['revealPeriodSeconds'];
|
|
2628
|
-
marketResolutionDeadlineSeconds: InitPlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
|
|
2818
|
+
params: InitPlatformConfigInstructionDataArgs['params'];
|
|
2629
2819
|
};
|
|
2630
2820
|
declare function getInitPlatformConfigInstruction<TAccountPayer extends string, TAccountPlatformConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitPlatformConfigInput<TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>, config?: {
|
|
2631
2821
|
programAddress?: TProgramAddress;
|
|
@@ -3204,24 +3394,10 @@ type StakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRA
|
|
|
3204
3394
|
]>;
|
|
3205
3395
|
type StakeInstructionData = {
|
|
3206
3396
|
discriminator: ReadonlyUint8Array;
|
|
3207
|
-
|
|
3208
|
-
stakeAccountId: number;
|
|
3209
|
-
amount: bigint;
|
|
3210
|
-
selectedOptionCiphertext: Array<number>;
|
|
3211
|
-
inputNonce: bigint;
|
|
3212
|
-
authorizedReaderNonce: bigint;
|
|
3213
|
-
userPubkey: Array<number>;
|
|
3214
|
-
stateNonce: bigint;
|
|
3397
|
+
params: StakeParameters;
|
|
3215
3398
|
};
|
|
3216
3399
|
type StakeInstructionDataArgs = {
|
|
3217
|
-
|
|
3218
|
-
stakeAccountId: number;
|
|
3219
|
-
amount: number | bigint;
|
|
3220
|
-
selectedOptionCiphertext: Array<number>;
|
|
3221
|
-
inputNonce: number | bigint;
|
|
3222
|
-
authorizedReaderNonce: number | bigint;
|
|
3223
|
-
userPubkey: Array<number>;
|
|
3224
|
-
stateNonce: number | bigint;
|
|
3400
|
+
params: StakeParametersArgs;
|
|
3225
3401
|
};
|
|
3226
3402
|
declare function getStakeInstructionDataEncoder(): FixedSizeEncoder<StakeInstructionDataArgs>;
|
|
3227
3403
|
declare function getStakeInstructionDataDecoder(): FixedSizeDecoder<StakeInstructionData>;
|
|
@@ -3247,14 +3423,7 @@ type StakeAsyncInput<TAccountSigner extends string = string, TAccountPayer exten
|
|
|
3247
3423
|
clockAccount?: Address<TAccountClockAccount>;
|
|
3248
3424
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
3249
3425
|
arciumProgram?: Address<TAccountArciumProgram>;
|
|
3250
|
-
|
|
3251
|
-
stakeAccountId: StakeInstructionDataArgs['stakeAccountId'];
|
|
3252
|
-
amount: StakeInstructionDataArgs['amount'];
|
|
3253
|
-
selectedOptionCiphertext: StakeInstructionDataArgs['selectedOptionCiphertext'];
|
|
3254
|
-
inputNonce: StakeInstructionDataArgs['inputNonce'];
|
|
3255
|
-
authorizedReaderNonce: StakeInstructionDataArgs['authorizedReaderNonce'];
|
|
3256
|
-
userPubkey: StakeInstructionDataArgs['userPubkey'];
|
|
3257
|
-
stateNonce: StakeInstructionDataArgs['stateNonce'];
|
|
3426
|
+
params: StakeInstructionDataArgs['params'];
|
|
3258
3427
|
};
|
|
3259
3428
|
declare function getStakeInstructionAsync<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeAsyncInput<TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
3260
3429
|
programAddress?: TProgramAddress;
|
|
@@ -3280,14 +3449,7 @@ type StakeInput<TAccountSigner extends string = string, TAccountPayer extends st
|
|
|
3280
3449
|
clockAccount?: Address<TAccountClockAccount>;
|
|
3281
3450
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
3282
3451
|
arciumProgram?: Address<TAccountArciumProgram>;
|
|
3283
|
-
|
|
3284
|
-
stakeAccountId: StakeInstructionDataArgs['stakeAccountId'];
|
|
3285
|
-
amount: StakeInstructionDataArgs['amount'];
|
|
3286
|
-
selectedOptionCiphertext: StakeInstructionDataArgs['selectedOptionCiphertext'];
|
|
3287
|
-
inputNonce: StakeInstructionDataArgs['inputNonce'];
|
|
3288
|
-
authorizedReaderNonce: StakeInstructionDataArgs['authorizedReaderNonce'];
|
|
3289
|
-
userPubkey: StakeInstructionDataArgs['userPubkey'];
|
|
3290
|
-
stateNonce: StakeInstructionDataArgs['stateNonce'];
|
|
3452
|
+
params: StakeInstructionDataArgs['params'];
|
|
3291
3453
|
};
|
|
3292
3454
|
declare function getStakeInstruction<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeInput<TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
3293
3455
|
programAddress?: TProgramAddress;
|
|
@@ -3550,36 +3712,18 @@ type UpdatePlatformConfigInstruction<TProgram extends string = typeof OPPORTUNIT
|
|
|
3550
3712
|
]>;
|
|
3551
3713
|
type UpdatePlatformConfigInstructionData = {
|
|
3552
3714
|
discriminator: ReadonlyUint8Array;
|
|
3553
|
-
|
|
3554
|
-
rewardPoolFeeBp: number;
|
|
3555
|
-
creatorFeeBp: number;
|
|
3556
|
-
revealAuthority: Address;
|
|
3557
|
-
minTimeToStakeSeconds: bigint;
|
|
3558
|
-
revealPeriodSeconds: bigint;
|
|
3559
|
-
marketResolutionDeadlineSeconds: bigint;
|
|
3715
|
+
params: UpdatePlatformParameters;
|
|
3560
3716
|
};
|
|
3561
3717
|
type UpdatePlatformConfigInstructionDataArgs = {
|
|
3562
|
-
|
|
3563
|
-
rewardPoolFeeBp: number;
|
|
3564
|
-
creatorFeeBp: number;
|
|
3565
|
-
revealAuthority: Address;
|
|
3566
|
-
minTimeToStakeSeconds: number | bigint;
|
|
3567
|
-
revealPeriodSeconds: number | bigint;
|
|
3568
|
-
marketResolutionDeadlineSeconds: number | bigint;
|
|
3718
|
+
params: UpdatePlatformParametersArgs;
|
|
3569
3719
|
};
|
|
3570
|
-
declare function getUpdatePlatformConfigInstructionDataEncoder():
|
|
3571
|
-
declare function getUpdatePlatformConfigInstructionDataDecoder():
|
|
3572
|
-
declare function getUpdatePlatformConfigInstructionDataCodec():
|
|
3720
|
+
declare function getUpdatePlatformConfigInstructionDataEncoder(): Encoder<UpdatePlatformConfigInstructionDataArgs>;
|
|
3721
|
+
declare function getUpdatePlatformConfigInstructionDataDecoder(): Decoder<UpdatePlatformConfigInstructionData>;
|
|
3722
|
+
declare function getUpdatePlatformConfigInstructionDataCodec(): Codec<UpdatePlatformConfigInstructionDataArgs, UpdatePlatformConfigInstructionData>;
|
|
3573
3723
|
type UpdatePlatformConfigInput<TAccountUpdateAuthority extends string = string, TAccountPlatformConfig extends string = string> = {
|
|
3574
3724
|
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
3575
3725
|
platformConfig: Address<TAccountPlatformConfig>;
|
|
3576
|
-
|
|
3577
|
-
rewardPoolFeeBp: UpdatePlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
|
|
3578
|
-
creatorFeeBp: UpdatePlatformConfigInstructionDataArgs['creatorFeeBp'];
|
|
3579
|
-
revealAuthority: UpdatePlatformConfigInstructionDataArgs['revealAuthority'];
|
|
3580
|
-
minTimeToStakeSeconds: UpdatePlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
|
|
3581
|
-
revealPeriodSeconds: UpdatePlatformConfigInstructionDataArgs['revealPeriodSeconds'];
|
|
3582
|
-
marketResolutionDeadlineSeconds: UpdatePlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
|
|
3726
|
+
params: UpdatePlatformConfigInstructionDataArgs['params'];
|
|
3583
3727
|
};
|
|
3584
3728
|
declare function getUpdatePlatformConfigInstruction<TAccountUpdateAuthority extends string, TAccountPlatformConfig extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdatePlatformConfigInput<TAccountUpdateAuthority, TAccountPlatformConfig>, config?: {
|
|
3585
3729
|
programAddress?: TProgramAddress;
|
|
@@ -3695,7 +3839,6 @@ interface CreateMarketParams extends BaseInstructionParams {
|
|
|
3695
3839
|
tokenProgram: Address;
|
|
3696
3840
|
marketIndex: bigint;
|
|
3697
3841
|
marketAuthority: Address;
|
|
3698
|
-
allowUnstakingEarly: boolean;
|
|
3699
3842
|
authorizedReaderPubkey: ByteArray;
|
|
3700
3843
|
earlinessCutoffSeconds: bigint;
|
|
3701
3844
|
earlinessMultiplier: number;
|
|
@@ -3807,7 +3950,6 @@ interface AddRewardParams extends BaseInstructionParams {
|
|
|
3807
3950
|
sponsorTokenAccount: Address;
|
|
3808
3951
|
tokenProgram: Address;
|
|
3809
3952
|
amount: bigint;
|
|
3810
|
-
lock: boolean;
|
|
3811
3953
|
}
|
|
3812
3954
|
declare function addReward(input: AddRewardParams): Promise<AddRewardInstruction<string>>;
|
|
3813
3955
|
|
|
@@ -3826,17 +3968,38 @@ interface InitAllowedMintParams extends BaseInstructionParams {
|
|
|
3826
3968
|
}
|
|
3827
3969
|
declare function initAllowedMint(input: InitAllowedMintParams): Promise<InitAllowedMintInstruction<string>>;
|
|
3828
3970
|
|
|
3971
|
+
interface ClaimRewardsParams extends BaseInstructionParams {
|
|
3972
|
+
owner: TransactionSigner;
|
|
3973
|
+
market: Address;
|
|
3974
|
+
stakeAccount: Address;
|
|
3975
|
+
option: Address;
|
|
3976
|
+
tokenMint: Address;
|
|
3977
|
+
ownerTokenAccount: Address;
|
|
3978
|
+
tokenProgram: Address;
|
|
3979
|
+
}
|
|
3980
|
+
declare function claimRewards(input: ClaimRewardsParams): Promise<ClaimRewardsInstruction<string>>;
|
|
3981
|
+
|
|
3829
3982
|
interface CloseStakeAccountParams extends BaseInstructionParams {
|
|
3830
3983
|
owner: TransactionSigner;
|
|
3831
3984
|
market: Address;
|
|
3985
|
+
stakeAccount: Address;
|
|
3986
|
+
option: Address;
|
|
3832
3987
|
tokenMint: Address;
|
|
3833
3988
|
ownerTokenAccount: Address;
|
|
3834
3989
|
tokenProgram: Address;
|
|
3835
|
-
optionId: number | bigint;
|
|
3836
|
-
stakeAccountId: number;
|
|
3837
3990
|
}
|
|
3838
3991
|
declare function closeStakeAccount(input: CloseStakeAccountParams): Promise<CloseStakeAccountInstruction<string>>;
|
|
3839
3992
|
|
|
3993
|
+
interface CloseUnrevealedStakeAccountParams extends BaseInstructionParams {
|
|
3994
|
+
owner: TransactionSigner;
|
|
3995
|
+
market: Address;
|
|
3996
|
+
stakeAccount: Address;
|
|
3997
|
+
tokenMint: Address;
|
|
3998
|
+
ownerTokenAccount: Address;
|
|
3999
|
+
tokenProgram: Address;
|
|
4000
|
+
}
|
|
4001
|
+
declare function closeUnrevealedStakeAccount(input: CloseUnrevealedStakeAccountParams): Promise<CloseUnrevealedStakeAccountInstruction<string>>;
|
|
4002
|
+
|
|
3840
4003
|
interface CloseStuckStakeAccountParams extends BaseInstructionParams {
|
|
3841
4004
|
signer: TransactionSigner;
|
|
3842
4005
|
market: Address;
|
|
@@ -3987,4 +4150,4 @@ declare function deriveSharedSecret(userSecretKey: Uint8Array, mxePublicKey: Uin
|
|
|
3987
4150
|
declare function createCipher(userSecretKey: Uint8Array, mxePublicKey: Uint8Array): RescueCipher;
|
|
3988
4151
|
declare function nonceToBytes(nonce: bigint): Uint8Array;
|
|
3989
4152
|
|
|
3990
|
-
export { ADD_MARKET_OPTION_DISCRIMINATOR, ADD_REWARD_DISCRIMINATOR, ALLOWED_MINT_DISCRIMINATOR, ALLOWED_MINT_SEED, ALL_COMP_DEF_CIRCUITS, ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR, type Activation, type ActivationArgs, type AddMarketOptionAsyncInput, type AddMarketOptionInput, type AddMarketOptionInstruction, type AddMarketOptionInstructionData, type AddMarketOptionInstructionDataArgs, type AddMarketOptionParams, type AddRewardAsyncInput, type AddRewardInput, type AddRewardInstruction, type AddRewardInstructionData, type AddRewardInstructionDataArgs, type AddRewardParams, type AllowedMint, type AllowedMintArgs, type AllowedMintInitializedEvent, type AllowedMintInitializedEventArgs, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CLAIM_CREATOR_FEES_DISCRIMINATOR, CLAIM_FEES_DISCRIMINATOR, CLOSE_OPTION_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CircuitSource, type CircuitSourceArgs, type ClaimCreatorFeesAsyncInput, type ClaimCreatorFeesInput, type ClaimCreatorFeesInstruction, type ClaimCreatorFeesInstructionData, type ClaimCreatorFeesInstructionDataArgs, type ClaimCreatorFeesParams, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClaimFeesParams, type ClockAccount, type ClockAccountArgs, type CloseOptionAccountAsyncInput, type CloseOptionAccountInput, type CloseOptionAccountInstruction, type CloseOptionAccountInstructionData, type CloseOptionAccountInstructionDataArgs, type CloseOptionAccountParams, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type CloseStuckStakeAccountAsyncInput, type CloseStuckStakeAccountInput, type CloseStuckStakeAccountInstruction, type CloseStuckStakeAccountInstructionData, type CloseStuckStakeAccountInstructionDataArgs, type CloseStuckStakeAccountParams, type Cluster, type ClusterArgs, type CollectedFees, type CollectedFeesArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParams, type CreatePlatformConfigParams, type CreatorFeesClaimedEvent, type CreatorFeesClaimedEventArgs, END_REVEAL_PERIOD_DISCRIMINATOR, type EndRevealPeriodInput, type EndRevealPeriodInstruction, type EndRevealPeriodInstructionData, type EndRevealPeriodInstructionDataArgs, type EndRevealPeriodParams, type Epoch, type EpochArgs, FINALIZE_REVEAL_STAKE_DISCRIMINATOR, type FeeClaimAuthorityChangedEvent, type FeeClaimAuthorityChangedEventArgs, type FeePool, type FeePoolArgs, type FeeRates, type FeeRatesArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, type FinalizeRevealStakeAsyncInput, type FinalizeRevealStakeInput, type FinalizeRevealStakeInstruction, type FinalizeRevealStakeInstructionData, type FinalizeRevealStakeInstructionDataArgs, type FinalizeRevealStakeParams, INIT_ALLOWED_MINT_DISCRIMINATOR, INIT_PLATFORM_CONFIG_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, type InitAllowedMintAsyncInput, type InitAllowedMintInput, type InitAllowedMintInstruction, type InitAllowedMintInstructionData, type InitAllowedMintInstructionDataArgs, type InitAllowedMintParams, type InitCompDefConfig, type InitPlatformConfigAsyncInput, type InitPlatformConfigInput, type InitPlatformConfigInstruction, type InitPlatformConfigInstructionData, type InitPlatformConfigInstructionDataArgs, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, type MarketResolvedEvent, type MarketResolvedEventArgs, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION, OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH, OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING, OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE, OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES, OPPORTUNITY_MARKET_ERROR__INVALID_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS, OPPORTUNITY_MARKET_ERROR__LOCKED, OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED, OPPORTUNITY_MARKET_ERROR__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION, OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_STAKE, OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER, OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED, OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED, OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__TIME_WINDOW_MISMATCH, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, type OpportunityMarketSponsor, type OpportunityMarketSponsorArgs, type OptionClosedEvent, type OptionClosedEventArgs, Output, type OutputArgs, PLATFORM_CONFIG_DISCRIMINATOR, PLATFORM_CONFIG_SEED, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimCreatorFeesInstruction, type ParsedClaimFeesInstruction, type ParsedCloseOptionAccountInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedEndRevealPeriodInstruction, type ParsedFinalizeRevealStakeInstruction, type ParsedInitAllowedMintInstruction, type ParsedInitPlatformConfigInstruction, type ParsedInitStakeAccountInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedResolveMarketInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSetFeeClaimAuthorityInstruction, type ParsedSetUpdateAuthorityInstruction, type ParsedSetWinningOptionInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedUnstakeInstruction, type ParsedUpdatePlatformConfigInstruction, type ParsedWithdrawRewardInstruction, type PlatformConfig, type PlatformConfigArgs, RESOLVE_MARKET_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ResolveMarketInput, type ResolveMarketInstruction, type ResolveMarketInstructionData, type ResolveMarketInstructionDataArgs, type ResolveMarketParams, type RevealPeriodEndedEvent, type RevealPeriodEndedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeFinalizedEvent, type RevealStakeFinalizedEventArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR, SET_UPDATE_AUTHORITY_DISCRIMINATOR, SET_WINNING_OPTION_DISCRIMINATOR, SPONSOR_SEED, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SetFeeClaimAuthorityInput, type SetFeeClaimAuthorityInstruction, type SetFeeClaimAuthorityInstructionData, type SetFeeClaimAuthorityInstructionDataArgs, type SetFeeClaimAuthorityParams, type SetUpdateAuthorityInput, type SetUpdateAuthorityInstruction, type SetUpdateAuthorityInstructionData, type SetUpdateAuthorityInstructionDataArgs, type SetUpdateAuthorityParams, type SetWinningOptionAsyncInput, type SetWinningOptionInput, type SetWinningOptionInstruction, type SetWinningOptionInstructionData, type SetWinningOptionInstructionDataArgs, type SetWinningOptionParams, type StakeAccount, type StakeAccountArgs, type StakeAccountClosedEvent, type StakeAccountClosedEventArgs, type StakeAccountInitializedEvent, type StakeAccountInitializedEventArgs, type StakeAsyncInput, type StakeCallbackInput, type StakeCallbackInstruction, type StakeCallbackInstructionData, type StakeCallbackInstructionDataArgs, type StakeCompDefInput, type StakeCompDefInstruction, type StakeCompDefInstructionData, type StakeCompDefInstructionDataArgs, type StakeInput, type StakeInstruction, type StakeInstructionData, type StakeInstructionDataArgs, type StakeOutput, type StakeOutputArgs, type StakeOutputStruct0, type StakeOutputStruct0Args, type StakeParams, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, type StuckStakeClosedEvent, type StuckStakeClosedEventArgs, type Timestamp, type TimestampArgs, UNSTAKE_DISCRIMINATOR, UPDATE_PLATFORM_CONFIG_DISCRIMINATOR, type UnstakeAsyncInput, type UnstakeInput, type UnstakeInstruction, type UnstakeInstructionData, type UnstakeInstructionDataArgs, type UnstakeParams, type UnstakedEvent, type UnstakedEventArgs, type UpdateAuthorityChangedEvent, type UpdateAuthorityChangedEventArgs, type UpdatePlatformConfigInput, type UpdatePlatformConfigInstruction, type UpdatePlatformConfigInstructionData, type UpdatePlatformConfigInstructionDataArgs, type UpdatePlatformConfigParams, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOptionSetEvent, type WinningOptionSetEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, addReward, awaitComputationFinalization, awaitRevealStakeFinalization, awaitStakeFinalization, circuitSource, claimCreatorFees, claimFees, closeOptionAccount, closeStakeAccount, closeStuckStakeAccount, createCipher, createMarket, createPlatformConfig, decodeAllowedMint, decodeArciumSignerAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodePlatformConfig, decodeStakeAccount, deriveSharedSecret, deriveX25519KeypairFromSignature, endRevealPeriod, fetchAllAllowedMint, fetchAllArciumSignerAccount, fetchAllMaybeAllowedMint, fetchAllMaybeArciumSignerAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybePlatformConfig, fetchAllMaybeStakeAccount, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllPlatformConfig, fetchAllStakeAccount, fetchAllowedMint, fetchArciumSignerAccount, fetchMaybeAllowedMint, fetchMaybeArciumSignerAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybePlatformConfig, fetchMaybeStakeAccount, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchPlatformConfig, fetchStakeAccount, finalizeRevealStake, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getAddRewardDiscriminatorBytes, getAddRewardInstruction, getAddRewardInstructionAsync, getAddRewardInstructionDataCodec, getAddRewardInstructionDataDecoder, getAddRewardInstructionDataEncoder, getAllowedMintAddress, getAllowedMintCodec, getAllowedMintDecoder, getAllowedMintDiscriminatorBytes, getAllowedMintEncoder, getAllowedMintInitializedEventCodec, getAllowedMintInitializedEventDecoder, getAllowedMintInitializedEventEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimCreatorFeesDiscriminatorBytes, getClaimCreatorFeesInstruction, getClaimCreatorFeesInstructionAsync, getClaimCreatorFeesInstructionDataCodec, getClaimCreatorFeesInstructionDataDecoder, getClaimCreatorFeesInstructionDataEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountEncoder, getCloseOptionAccountDiscriminatorBytes, getCloseOptionAccountInstruction, getCloseOptionAccountInstructionAsync, getCloseOptionAccountInstructionDataCodec, getCloseOptionAccountInstructionDataDecoder, getCloseOptionAccountInstructionDataEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterEncoder, getCollectedFeesCodec, getCollectedFeesDecoder, getCollectedFeesEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreatorFeesClaimedEventCodec, getCreatorFeesClaimedEventDecoder, getCreatorFeesClaimedEventEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeeClaimAuthorityChangedEventCodec, getFeeClaimAuthorityChangedEventDecoder, getFeeClaimAuthorityChangedEventEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolEncoder, getFeeRatesCodec, getFeeRatesDecoder, getFeeRatesEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getFinalizeRevealStakeDiscriminatorBytes, getFinalizeRevealStakeInstruction, getFinalizeRevealStakeInstructionAsync, getFinalizeRevealStakeInstructionDataCodec, getFinalizeRevealStakeInstructionDataDecoder, getFinalizeRevealStakeInstructionDataEncoder, getInitAllowedMintDiscriminatorBytes, getInitAllowedMintInstruction, getInitAllowedMintInstructionAsync, getInitAllowedMintInstructionDataCodec, getInitAllowedMintInstructionDataDecoder, getInitAllowedMintInstructionDataEncoder, getInitCompDefInstruction, getInitPlatformConfigDiscriminatorBytes, getInitPlatformConfigInstruction, getInitPlatformConfigInstructionAsync, getInitPlatformConfigInstructionDataCodec, getInitPlatformConfigInstructionDataDecoder, getInitPlatformConfigInstructionDataEncoder, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMarketResolvedEventCodec, getMarketResolvedEventDecoder, getMarketResolvedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOpportunityMarketSponsorAddress, getOpportunityMarketSponsorCodec, getOpportunityMarketSponsorDecoder, getOpportunityMarketSponsorDiscriminatorBytes, getOpportunityMarketSponsorEncoder, getOptionClosedEventCodec, getOptionClosedEventDecoder, getOptionClosedEventEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getPlatformConfigAddress, getPlatformConfigCodec, getPlatformConfigDecoder, getPlatformConfigDiscriminatorBytes, getPlatformConfigEncoder, getResolveMarketDiscriminatorBytes, getResolveMarketInstruction, getResolveMarketInstructionDataCodec, getResolveMarketInstructionDataDecoder, getResolveMarketInstructionDataEncoder, getRevealPeriodEndedEventCodec, getRevealPeriodEndedEventDecoder, getRevealPeriodEndedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeFinalizedEventCodec, getRevealStakeFinalizedEventDecoder, getRevealStakeFinalizedEventEncoder, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getSetFeeClaimAuthorityDiscriminatorBytes, getSetFeeClaimAuthorityInstruction, getSetFeeClaimAuthorityInstructionDataCodec, getSetFeeClaimAuthorityInstructionDataDecoder, getSetFeeClaimAuthorityInstructionDataEncoder, getSetUpdateAuthorityDiscriminatorBytes, getSetUpdateAuthorityInstruction, getSetUpdateAuthorityInstructionDataCodec, getSetUpdateAuthorityInstructionDataDecoder, getSetUpdateAuthorityInstructionDataEncoder, getSetWinningOptionDiscriminatorBytes, getSetWinningOptionInstruction, getSetWinningOptionInstructionAsync, getSetWinningOptionInstructionDataCodec, getSetWinningOptionInstructionDataDecoder, getSetWinningOptionInstructionDataEncoder, getStakeAccountAddress, getStakeAccountClosedEventCodec, getStakeAccountClosedEventDecoder, getStakeAccountClosedEventEncoder, getStakeAccountCodec, getStakeAccountDecoder, getStakeAccountDiscriminatorBytes, getStakeAccountEncoder, getStakeAccountInitializedEventCodec, getStakeAccountInitializedEventDecoder, getStakeAccountInitializedEventEncoder, getStakeCallbackDiscriminatorBytes, getStakeCallbackInstruction, getStakeCallbackInstructionDataCodec, getStakeCallbackInstructionDataDecoder, getStakeCallbackInstructionDataEncoder, getStakeCompDefDiscriminatorBytes, getStakeCompDefInstruction, getStakeCompDefInstructionDataCodec, getStakeCompDefInstructionDataDecoder, getStakeCompDefInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getStakeOutputCodec, getStakeOutputDecoder, getStakeOutputEncoder, getStakeOutputStruct0Codec, getStakeOutputStruct0Decoder, getStakeOutputStruct0Encoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getUnstakeDiscriminatorBytes, getUnstakeInstruction, getUnstakeInstructionAsync, getUnstakeInstructionDataCodec, getUnstakeInstructionDataDecoder, getUnstakeInstructionDataEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateAuthorityChangedEventCodec, getUpdateAuthorityChangedEventDecoder, getUpdateAuthorityChangedEventEncoder, getUpdatePlatformConfigDiscriminatorBytes, getUpdatePlatformConfigInstruction, getUpdatePlatformConfigInstructionDataCodec, getUpdatePlatformConfigInstructionDataDecoder, getUpdatePlatformConfigInstructionDataEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionSetEventCodec, getWinningOptionSetEventDecoder, getWinningOptionSetEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, initAllowedMint, initStakeAccount, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimCreatorFeesInstruction, parseClaimFeesInstruction, parseCloseOptionAccountInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCreateMarketInstruction, parseEndRevealPeriodInstruction, parseFinalizeRevealStakeInstruction, parseInitAllowedMintInstruction, parseInitPlatformConfigInstruction, parseInitStakeAccountInstruction, parseOpenMarketInstruction, parseResolveMarketInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSetFeeClaimAuthorityInstruction, parseSetUpdateAuthorityInstruction, parseSetWinningOptionInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseUnstakeInstruction, parseUpdatePlatformConfigInstruction, parseWithdrawRewardInstruction, randomComputationOffset, randomStateNonce, resolveMarket, revealStake, setFeeClaimAuthority, setUpdateAuthority, setWinningOption, stake, toNumberArray, unstake, updatePlatformConfig, withdrawReward };
|
|
4153
|
+
export { ADD_MARKET_OPTION_DISCRIMINATOR, ADD_REWARD_DISCRIMINATOR, ALLOWED_MINT_DISCRIMINATOR, ALLOWED_MINT_SEED, ALL_COMP_DEF_CIRCUITS, ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR, type Activation, type ActivationArgs, type AddMarketOptionAsyncInput, type AddMarketOptionInput, type AddMarketOptionInstruction, type AddMarketOptionInstructionData, type AddMarketOptionInstructionDataArgs, type AddMarketOptionParams, type AddRewardAsyncInput, type AddRewardInput, type AddRewardInstruction, type AddRewardInstructionData, type AddRewardInstructionDataArgs, type AddRewardParams, type AllowedMint, type AllowedMintArgs, type AllowedMintInitializedEvent, type AllowedMintInitializedEventArgs, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CLAIM_CREATOR_FEES_DISCRIMINATOR, CLAIM_FEES_DISCRIMINATOR, CLAIM_REWARDS_DISCRIMINATOR, CLOSE_OPTION_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CircuitSource, type CircuitSourceArgs, type ClaimCreatorFeesAsyncInput, type ClaimCreatorFeesInput, type ClaimCreatorFeesInstruction, type ClaimCreatorFeesInstructionData, type ClaimCreatorFeesInstructionDataArgs, type ClaimCreatorFeesParams, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClaimFeesParams, type ClaimRewardsAsyncInput, type ClaimRewardsInput, type ClaimRewardsInstruction, type ClaimRewardsInstructionData, type ClaimRewardsInstructionDataArgs, type ClaimRewardsParams, type ClockAccount, type ClockAccountArgs, type CloseOptionAccountAsyncInput, type CloseOptionAccountInput, type CloseOptionAccountInstruction, type CloseOptionAccountInstructionData, type CloseOptionAccountInstructionDataArgs, type CloseOptionAccountParams, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type CloseStuckStakeAccountAsyncInput, type CloseStuckStakeAccountInput, type CloseStuckStakeAccountInstruction, type CloseStuckStakeAccountInstructionData, type CloseStuckStakeAccountInstructionDataArgs, type CloseStuckStakeAccountParams, type CloseUnrevealedStakeAccountAsyncInput, type CloseUnrevealedStakeAccountInput, type CloseUnrevealedStakeAccountInstruction, type CloseUnrevealedStakeAccountInstructionData, type CloseUnrevealedStakeAccountInstructionDataArgs, type CloseUnrevealedStakeAccountParams, type Cluster, type ClusterArgs, type CollectedFees, type CollectedFeesArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParameters, type CreateMarketParametersArgs, type CreateMarketParams, type CreatePlatformConfigParams, type CreatorFeesClaimedEvent, type CreatorFeesClaimedEventArgs, END_REVEAL_PERIOD_DISCRIMINATOR, type EndRevealPeriodInput, type EndRevealPeriodInstruction, type EndRevealPeriodInstructionData, type EndRevealPeriodInstructionDataArgs, type EndRevealPeriodParams, type Epoch, type EpochArgs, FINALIZE_REVEAL_STAKE_DISCRIMINATOR, type FeeClaimAuthorityChangedEvent, type FeeClaimAuthorityChangedEventArgs, type FeePool, type FeePoolArgs, type FeeRates, type FeeRatesArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, type FinalizeRevealStakeAsyncInput, type FinalizeRevealStakeInput, type FinalizeRevealStakeInstruction, type FinalizeRevealStakeInstructionData, type FinalizeRevealStakeInstructionDataArgs, type FinalizeRevealStakeParams, INIT_ALLOWED_MINT_DISCRIMINATOR, INIT_PLATFORM_CONFIG_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, type InitAllowedMintAsyncInput, type InitAllowedMintInput, type InitAllowedMintInstruction, type InitAllowedMintInstructionData, type InitAllowedMintInstructionDataArgs, type InitAllowedMintParams, type InitCompDefConfig, type InitPlatformConfigInput, type InitPlatformConfigInstruction, type InitPlatformConfigInstructionData, type InitPlatformConfigInstructionDataArgs, type InitPlatformParameters, type InitPlatformParametersArgs, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, type MarketResolvedEvent, type MarketResolvedEventArgs, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING, OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE, OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES, OPPORTUNITY_MARKET_ERROR__INVALID_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS, OPPORTUNITY_MARKET_ERROR__LOCKED, OPPORTUNITY_MARKET_ERROR__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION, OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_STAKE, OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED, OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_ERROR__WRONG_MARKET_PHASE, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, type OpportunityMarketSponsor, type OpportunityMarketSponsorArgs, type OptionClosedEvent, type OptionClosedEventArgs, Output, type OutputArgs, PLATFORM_CONFIG_DISCRIMINATOR, PLATFORM_CONFIG_SEED, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimCreatorFeesInstruction, type ParsedClaimFeesInstruction, type ParsedClaimRewardsInstruction, type ParsedCloseOptionAccountInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCloseUnrevealedStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedEndRevealPeriodInstruction, type ParsedFinalizeRevealStakeInstruction, type ParsedInitAllowedMintInstruction, type ParsedInitPlatformConfigInstruction, type ParsedInitStakeAccountInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedResolveMarketInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSetFeeClaimAuthorityInstruction, type ParsedSetUpdateAuthorityInstruction, type ParsedSetWinningOptionInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedUnstakeInstruction, type ParsedUpdatePlatformConfigInstruction, type ParsedWithdrawRewardInstruction, type PlatformConfig, type PlatformConfigArgs, RESOLVE_MARKET_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ResolveMarketInput, type ResolveMarketInstruction, type ResolveMarketInstructionData, type ResolveMarketInstructionDataArgs, type ResolveMarketParams, type RevealPeriodEndedEvent, type RevealPeriodEndedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeFinalizedEvent, type RevealStakeFinalizedEventArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, type RewardsClaimedEvent, type RewardsClaimedEventArgs, SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR, SET_UPDATE_AUTHORITY_DISCRIMINATOR, SET_WINNING_OPTION_DISCRIMINATOR, SPONSOR_SEED, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SetFeeClaimAuthorityInput, type SetFeeClaimAuthorityInstruction, type SetFeeClaimAuthorityInstructionData, type SetFeeClaimAuthorityInstructionDataArgs, type SetFeeClaimAuthorityParams, type SetUpdateAuthorityInput, type SetUpdateAuthorityInstruction, type SetUpdateAuthorityInstructionData, type SetUpdateAuthorityInstructionDataArgs, type SetUpdateAuthorityParams, type SetWinningOptionAsyncInput, type SetWinningOptionInput, type SetWinningOptionInstruction, type SetWinningOptionInstructionData, type SetWinningOptionInstructionDataArgs, type SetWinningOptionParams, type StakeAccount, type StakeAccountArgs, type StakeAccountClosedEvent, type StakeAccountClosedEventArgs, type StakeAccountInitializedEvent, type StakeAccountInitializedEventArgs, type StakeAsyncInput, type StakeCallbackInput, type StakeCallbackInstruction, type StakeCallbackInstructionData, type StakeCallbackInstructionDataArgs, type StakeCompDefInput, type StakeCompDefInstruction, type StakeCompDefInstructionData, type StakeCompDefInstructionDataArgs, type StakeInput, type StakeInstruction, type StakeInstructionData, type StakeInstructionDataArgs, type StakeOutput, type StakeOutputArgs, type StakeOutputStruct0, type StakeOutputStruct0Args, type StakeParameters, type StakeParametersArgs, type StakeParams, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, type StuckStakeClosedEvent, type StuckStakeClosedEventArgs, type Timestamp, type TimestampArgs, UNSTAKE_DISCRIMINATOR, UPDATE_PLATFORM_CONFIG_DISCRIMINATOR, type UnstakeAsyncInput, type UnstakeInput, type UnstakeInstruction, type UnstakeInstructionData, type UnstakeInstructionDataArgs, type UnstakeParams, type UnstakedEvent, type UnstakedEventArgs, type UpdateAuthorityChangedEvent, type UpdateAuthorityChangedEventArgs, type UpdatePlatformConfigInput, type UpdatePlatformConfigInstruction, type UpdatePlatformConfigInstructionData, type UpdatePlatformConfigInstructionDataArgs, type UpdatePlatformConfigParams, type UpdatePlatformParameters, type UpdatePlatformParametersArgs, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOptionSetEvent, type WinningOptionSetEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, addReward, awaitComputationFinalization, awaitRevealStakeFinalization, awaitStakeFinalization, circuitSource, claimCreatorFees, claimFees, claimRewards, closeOptionAccount, closeStakeAccount, closeStuckStakeAccount, closeUnrevealedStakeAccount, createCipher, createMarket, createPlatformConfig, decodeAllowedMint, decodeArciumSignerAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodePlatformConfig, decodeStakeAccount, deriveSharedSecret, deriveX25519KeypairFromSignature, endRevealPeriod, fetchAllAllowedMint, fetchAllArciumSignerAccount, fetchAllMaybeAllowedMint, fetchAllMaybeArciumSignerAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybePlatformConfig, fetchAllMaybeStakeAccount, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllPlatformConfig, fetchAllStakeAccount, fetchAllowedMint, fetchArciumSignerAccount, fetchMaybeAllowedMint, fetchMaybeArciumSignerAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybePlatformConfig, fetchMaybeStakeAccount, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchPlatformConfig, fetchStakeAccount, finalizeRevealStake, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getAddRewardDiscriminatorBytes, getAddRewardInstruction, getAddRewardInstructionAsync, getAddRewardInstructionDataCodec, getAddRewardInstructionDataDecoder, getAddRewardInstructionDataEncoder, getAllowedMintAddress, getAllowedMintCodec, getAllowedMintDecoder, getAllowedMintDiscriminatorBytes, getAllowedMintEncoder, getAllowedMintInitializedEventCodec, getAllowedMintInitializedEventDecoder, getAllowedMintInitializedEventEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimCreatorFeesDiscriminatorBytes, getClaimCreatorFeesInstruction, getClaimCreatorFeesInstructionAsync, getClaimCreatorFeesInstructionDataCodec, getClaimCreatorFeesInstructionDataDecoder, getClaimCreatorFeesInstructionDataEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClaimRewardsDiscriminatorBytes, getClaimRewardsInstruction, getClaimRewardsInstructionAsync, getClaimRewardsInstructionDataCodec, getClaimRewardsInstructionDataDecoder, getClaimRewardsInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountEncoder, getCloseOptionAccountDiscriminatorBytes, getCloseOptionAccountInstruction, getCloseOptionAccountInstructionAsync, getCloseOptionAccountInstructionDataCodec, getCloseOptionAccountInstructionDataDecoder, getCloseOptionAccountInstructionDataEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getCloseUnrevealedStakeAccountDiscriminatorBytes, getCloseUnrevealedStakeAccountInstruction, getCloseUnrevealedStakeAccountInstructionAsync, getCloseUnrevealedStakeAccountInstructionDataCodec, getCloseUnrevealedStakeAccountInstructionDataDecoder, getCloseUnrevealedStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterEncoder, getCollectedFeesCodec, getCollectedFeesDecoder, getCollectedFeesEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreateMarketParametersCodec, getCreateMarketParametersDecoder, getCreateMarketParametersEncoder, getCreatorFeesClaimedEventCodec, getCreatorFeesClaimedEventDecoder, getCreatorFeesClaimedEventEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeeClaimAuthorityChangedEventCodec, getFeeClaimAuthorityChangedEventDecoder, getFeeClaimAuthorityChangedEventEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolEncoder, getFeeRatesCodec, getFeeRatesDecoder, getFeeRatesEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getFinalizeRevealStakeDiscriminatorBytes, getFinalizeRevealStakeInstruction, getFinalizeRevealStakeInstructionAsync, getFinalizeRevealStakeInstructionDataCodec, getFinalizeRevealStakeInstructionDataDecoder, getFinalizeRevealStakeInstructionDataEncoder, getInitAllowedMintDiscriminatorBytes, getInitAllowedMintInstruction, getInitAllowedMintInstructionAsync, getInitAllowedMintInstructionDataCodec, getInitAllowedMintInstructionDataDecoder, getInitAllowedMintInstructionDataEncoder, getInitCompDefInstruction, getInitPlatformConfigDiscriminatorBytes, getInitPlatformConfigInstruction, getInitPlatformConfigInstructionDataCodec, getInitPlatformConfigInstructionDataDecoder, getInitPlatformConfigInstructionDataEncoder, getInitPlatformParametersCodec, getInitPlatformParametersDecoder, getInitPlatformParametersEncoder, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMarketResolvedEventCodec, getMarketResolvedEventDecoder, getMarketResolvedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOpportunityMarketSponsorAddress, getOpportunityMarketSponsorCodec, getOpportunityMarketSponsorDecoder, getOpportunityMarketSponsorDiscriminatorBytes, getOpportunityMarketSponsorEncoder, getOptionClosedEventCodec, getOptionClosedEventDecoder, getOptionClosedEventEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getPlatformConfigAddress, getPlatformConfigCodec, getPlatformConfigDecoder, getPlatformConfigDiscriminatorBytes, getPlatformConfigEncoder, getResolveMarketDiscriminatorBytes, getResolveMarketInstruction, getResolveMarketInstructionDataCodec, getResolveMarketInstructionDataDecoder, getResolveMarketInstructionDataEncoder, getRevealPeriodEndedEventCodec, getRevealPeriodEndedEventDecoder, getRevealPeriodEndedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeFinalizedEventCodec, getRevealStakeFinalizedEventDecoder, getRevealStakeFinalizedEventEncoder, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getRewardsClaimedEventCodec, getRewardsClaimedEventDecoder, getRewardsClaimedEventEncoder, getSetFeeClaimAuthorityDiscriminatorBytes, getSetFeeClaimAuthorityInstruction, getSetFeeClaimAuthorityInstructionDataCodec, getSetFeeClaimAuthorityInstructionDataDecoder, getSetFeeClaimAuthorityInstructionDataEncoder, getSetUpdateAuthorityDiscriminatorBytes, getSetUpdateAuthorityInstruction, getSetUpdateAuthorityInstructionDataCodec, getSetUpdateAuthorityInstructionDataDecoder, getSetUpdateAuthorityInstructionDataEncoder, getSetWinningOptionDiscriminatorBytes, getSetWinningOptionInstruction, getSetWinningOptionInstructionAsync, getSetWinningOptionInstructionDataCodec, getSetWinningOptionInstructionDataDecoder, getSetWinningOptionInstructionDataEncoder, getStakeAccountAddress, getStakeAccountClosedEventCodec, getStakeAccountClosedEventDecoder, getStakeAccountClosedEventEncoder, getStakeAccountCodec, getStakeAccountDecoder, getStakeAccountDiscriminatorBytes, getStakeAccountEncoder, getStakeAccountInitializedEventCodec, getStakeAccountInitializedEventDecoder, getStakeAccountInitializedEventEncoder, getStakeCallbackDiscriminatorBytes, getStakeCallbackInstruction, getStakeCallbackInstructionDataCodec, getStakeCallbackInstructionDataDecoder, getStakeCallbackInstructionDataEncoder, getStakeCompDefDiscriminatorBytes, getStakeCompDefInstruction, getStakeCompDefInstructionDataCodec, getStakeCompDefInstructionDataDecoder, getStakeCompDefInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getStakeOutputCodec, getStakeOutputDecoder, getStakeOutputEncoder, getStakeOutputStruct0Codec, getStakeOutputStruct0Decoder, getStakeOutputStruct0Encoder, getStakeParametersCodec, getStakeParametersDecoder, getStakeParametersEncoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getUnstakeDiscriminatorBytes, getUnstakeInstruction, getUnstakeInstructionAsync, getUnstakeInstructionDataCodec, getUnstakeInstructionDataDecoder, getUnstakeInstructionDataEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateAuthorityChangedEventCodec, getUpdateAuthorityChangedEventDecoder, getUpdateAuthorityChangedEventEncoder, getUpdatePlatformConfigDiscriminatorBytes, getUpdatePlatformConfigInstruction, getUpdatePlatformConfigInstructionDataCodec, getUpdatePlatformConfigInstructionDataDecoder, getUpdatePlatformConfigInstructionDataEncoder, getUpdatePlatformParametersCodec, getUpdatePlatformParametersDecoder, getUpdatePlatformParametersEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionSetEventCodec, getWinningOptionSetEventDecoder, getWinningOptionSetEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, initAllowedMint, initStakeAccount, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimCreatorFeesInstruction, parseClaimFeesInstruction, parseClaimRewardsInstruction, parseCloseOptionAccountInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCloseUnrevealedStakeAccountInstruction, parseCreateMarketInstruction, parseEndRevealPeriodInstruction, parseFinalizeRevealStakeInstruction, parseInitAllowedMintInstruction, parseInitPlatformConfigInstruction, parseInitStakeAccountInstruction, parseOpenMarketInstruction, parseResolveMarketInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSetFeeClaimAuthorityInstruction, parseSetUpdateAuthorityInstruction, parseSetWinningOptionInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseUnstakeInstruction, parseUpdatePlatformConfigInstruction, parseWithdrawRewardInstruction, randomComputationOffset, randomStateNonce, resolveMarket, revealStake, setFeeClaimAuthority, setUpdateAuthority, setWinningOption, stake, toNumberArray, unstake, updatePlatformConfig, withdrawReward };
|