@bench.games/opportunity-markets 0.2.1 → 0.2.3
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 +83 -75
- package/dist/index.cjs +14 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -9
- package/dist/index.d.ts +17 -9
- package/dist/index.js +83 -75
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -255,6 +255,7 @@ type MarketCreatedEvent = {
|
|
|
255
255
|
rewardAmount: bigint;
|
|
256
256
|
timeToStake: bigint;
|
|
257
257
|
timeToReveal: bigint;
|
|
258
|
+
earlinessCutoffSeconds: bigint;
|
|
258
259
|
marketAuthority: Option<Address>;
|
|
259
260
|
authorizedReaderPubkey: Array<number>;
|
|
260
261
|
unstakeDelaySeconds: bigint;
|
|
@@ -269,6 +270,7 @@ type MarketCreatedEventArgs = {
|
|
|
269
270
|
rewardAmount: number | bigint;
|
|
270
271
|
timeToStake: number | bigint;
|
|
271
272
|
timeToReveal: number | bigint;
|
|
273
|
+
earlinessCutoffSeconds: number | bigint;
|
|
272
274
|
marketAuthority: OptionOrNullable<Address>;
|
|
273
275
|
authorizedReaderPubkey: Array<number>;
|
|
274
276
|
unstakeDelaySeconds: number | bigint;
|
|
@@ -647,12 +649,14 @@ type StakeAccountInitializedEvent = {
|
|
|
647
649
|
stakeAccount: Address;
|
|
648
650
|
owner: Address;
|
|
649
651
|
market: Address;
|
|
652
|
+
accountId: number;
|
|
650
653
|
timestamp: bigint;
|
|
651
654
|
};
|
|
652
655
|
type StakeAccountInitializedEventArgs = {
|
|
653
656
|
stakeAccount: Address;
|
|
654
657
|
owner: Address;
|
|
655
658
|
market: Address;
|
|
659
|
+
accountId: number;
|
|
656
660
|
timestamp: number | bigint;
|
|
657
661
|
};
|
|
658
662
|
declare function getStakeAccountInitializedEventEncoder(): FixedSizeEncoder<StakeAccountInitializedEventArgs>;
|
|
@@ -858,8 +862,10 @@ type TallyIncrementedEvent = {
|
|
|
858
862
|
market: Address;
|
|
859
863
|
stakeAccount: Address;
|
|
860
864
|
optionId: bigint;
|
|
861
|
-
|
|
865
|
+
userStake: bigint;
|
|
862
866
|
userScore: bigint;
|
|
867
|
+
totalScore: bigint;
|
|
868
|
+
totalStake: bigint;
|
|
863
869
|
timestamp: bigint;
|
|
864
870
|
};
|
|
865
871
|
type TallyIncrementedEventArgs = {
|
|
@@ -867,8 +873,10 @@ type TallyIncrementedEventArgs = {
|
|
|
867
873
|
market: Address;
|
|
868
874
|
stakeAccount: Address;
|
|
869
875
|
optionId: number | bigint;
|
|
870
|
-
|
|
876
|
+
userStake: number | bigint;
|
|
871
877
|
userScore: number | bigint;
|
|
878
|
+
totalScore: number | bigint;
|
|
879
|
+
totalStake: number | bigint;
|
|
872
880
|
timestamp: number | bigint;
|
|
873
881
|
};
|
|
874
882
|
declare function getTallyIncrementedEventEncoder(): FixedSizeEncoder<TallyIncrementedEventArgs>;
|
|
@@ -1291,19 +1299,19 @@ type OpportunityMarketOption = {
|
|
|
1291
1299
|
bump: number;
|
|
1292
1300
|
id: bigint;
|
|
1293
1301
|
/** Total staked for this option (tally) */
|
|
1294
|
-
totalStaked:
|
|
1295
|
-
totalScore:
|
|
1302
|
+
totalStaked: bigint;
|
|
1303
|
+
totalScore: bigint;
|
|
1296
1304
|
};
|
|
1297
1305
|
type OpportunityMarketOptionArgs = {
|
|
1298
1306
|
bump: number;
|
|
1299
1307
|
id: number | bigint;
|
|
1300
1308
|
/** Total staked for this option (tally) */
|
|
1301
|
-
totalStaked:
|
|
1302
|
-
totalScore:
|
|
1309
|
+
totalStaked: number | bigint;
|
|
1310
|
+
totalScore: number | bigint;
|
|
1303
1311
|
};
|
|
1304
|
-
declare function getOpportunityMarketOptionEncoder():
|
|
1305
|
-
declare function getOpportunityMarketOptionDecoder():
|
|
1306
|
-
declare function getOpportunityMarketOptionCodec():
|
|
1312
|
+
declare function getOpportunityMarketOptionEncoder(): FixedSizeEncoder<OpportunityMarketOptionArgs>;
|
|
1313
|
+
declare function getOpportunityMarketOptionDecoder(): FixedSizeDecoder<OpportunityMarketOption>;
|
|
1314
|
+
declare function getOpportunityMarketOptionCodec(): FixedSizeCodec<OpportunityMarketOptionArgs, OpportunityMarketOption>;
|
|
1307
1315
|
declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OpportunityMarketOption, TAddress>;
|
|
1308
1316
|
declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OpportunityMarketOption, TAddress>;
|
|
1309
1317
|
declare function fetchOpportunityMarketOption<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OpportunityMarketOption, TAddress>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -255,6 +255,7 @@ type MarketCreatedEvent = {
|
|
|
255
255
|
rewardAmount: bigint;
|
|
256
256
|
timeToStake: bigint;
|
|
257
257
|
timeToReveal: bigint;
|
|
258
|
+
earlinessCutoffSeconds: bigint;
|
|
258
259
|
marketAuthority: Option<Address>;
|
|
259
260
|
authorizedReaderPubkey: Array<number>;
|
|
260
261
|
unstakeDelaySeconds: bigint;
|
|
@@ -269,6 +270,7 @@ type MarketCreatedEventArgs = {
|
|
|
269
270
|
rewardAmount: number | bigint;
|
|
270
271
|
timeToStake: number | bigint;
|
|
271
272
|
timeToReveal: number | bigint;
|
|
273
|
+
earlinessCutoffSeconds: number | bigint;
|
|
272
274
|
marketAuthority: OptionOrNullable<Address>;
|
|
273
275
|
authorizedReaderPubkey: Array<number>;
|
|
274
276
|
unstakeDelaySeconds: number | bigint;
|
|
@@ -647,12 +649,14 @@ type StakeAccountInitializedEvent = {
|
|
|
647
649
|
stakeAccount: Address;
|
|
648
650
|
owner: Address;
|
|
649
651
|
market: Address;
|
|
652
|
+
accountId: number;
|
|
650
653
|
timestamp: bigint;
|
|
651
654
|
};
|
|
652
655
|
type StakeAccountInitializedEventArgs = {
|
|
653
656
|
stakeAccount: Address;
|
|
654
657
|
owner: Address;
|
|
655
658
|
market: Address;
|
|
659
|
+
accountId: number;
|
|
656
660
|
timestamp: number | bigint;
|
|
657
661
|
};
|
|
658
662
|
declare function getStakeAccountInitializedEventEncoder(): FixedSizeEncoder<StakeAccountInitializedEventArgs>;
|
|
@@ -858,8 +862,10 @@ type TallyIncrementedEvent = {
|
|
|
858
862
|
market: Address;
|
|
859
863
|
stakeAccount: Address;
|
|
860
864
|
optionId: bigint;
|
|
861
|
-
|
|
865
|
+
userStake: bigint;
|
|
862
866
|
userScore: bigint;
|
|
867
|
+
totalScore: bigint;
|
|
868
|
+
totalStake: bigint;
|
|
863
869
|
timestamp: bigint;
|
|
864
870
|
};
|
|
865
871
|
type TallyIncrementedEventArgs = {
|
|
@@ -867,8 +873,10 @@ type TallyIncrementedEventArgs = {
|
|
|
867
873
|
market: Address;
|
|
868
874
|
stakeAccount: Address;
|
|
869
875
|
optionId: number | bigint;
|
|
870
|
-
|
|
876
|
+
userStake: number | bigint;
|
|
871
877
|
userScore: number | bigint;
|
|
878
|
+
totalScore: number | bigint;
|
|
879
|
+
totalStake: number | bigint;
|
|
872
880
|
timestamp: number | bigint;
|
|
873
881
|
};
|
|
874
882
|
declare function getTallyIncrementedEventEncoder(): FixedSizeEncoder<TallyIncrementedEventArgs>;
|
|
@@ -1291,19 +1299,19 @@ type OpportunityMarketOption = {
|
|
|
1291
1299
|
bump: number;
|
|
1292
1300
|
id: bigint;
|
|
1293
1301
|
/** Total staked for this option (tally) */
|
|
1294
|
-
totalStaked:
|
|
1295
|
-
totalScore:
|
|
1302
|
+
totalStaked: bigint;
|
|
1303
|
+
totalScore: bigint;
|
|
1296
1304
|
};
|
|
1297
1305
|
type OpportunityMarketOptionArgs = {
|
|
1298
1306
|
bump: number;
|
|
1299
1307
|
id: number | bigint;
|
|
1300
1308
|
/** Total staked for this option (tally) */
|
|
1301
|
-
totalStaked:
|
|
1302
|
-
totalScore:
|
|
1309
|
+
totalStaked: number | bigint;
|
|
1310
|
+
totalScore: number | bigint;
|
|
1303
1311
|
};
|
|
1304
|
-
declare function getOpportunityMarketOptionEncoder():
|
|
1305
|
-
declare function getOpportunityMarketOptionDecoder():
|
|
1306
|
-
declare function getOpportunityMarketOptionCodec():
|
|
1312
|
+
declare function getOpportunityMarketOptionEncoder(): FixedSizeEncoder<OpportunityMarketOptionArgs>;
|
|
1313
|
+
declare function getOpportunityMarketOptionDecoder(): FixedSizeDecoder<OpportunityMarketOption>;
|
|
1314
|
+
declare function getOpportunityMarketOptionCodec(): FixedSizeCodec<OpportunityMarketOptionArgs, OpportunityMarketOption>;
|
|
1307
1315
|
declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OpportunityMarketOption, TAddress>;
|
|
1308
1316
|
declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OpportunityMarketOption, TAddress>;
|
|
1309
1317
|
declare function fetchOpportunityMarketOption<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OpportunityMarketOption, TAddress>>;
|