@chainflip/rpc 1.8.13 → 1.8.14
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/common.d.cts +18 -4
- package/dist/common.d.ts +18 -4
- package/dist/parsers.cjs +5 -2
- package/dist/parsers.d.cts +18 -4
- package/dist/parsers.d.ts +18 -4
- package/dist/parsers.mjs +5 -2
- package/package.json +2 -2
package/dist/common.d.cts
CHANGED
|
@@ -14284,22 +14284,36 @@ declare const rpcResult: {
|
|
|
14284
14284
|
}>>;
|
|
14285
14285
|
readonly cf_authority_emission_per_block: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14286
14286
|
readonly cf_epoch_duration: z.ZodNumber;
|
|
14287
|
-
readonly cf_auction_state: z.ZodObject<{
|
|
14288
|
-
|
|
14287
|
+
readonly cf_auction_state: z.ZodEffects<z.ZodObject<{
|
|
14288
|
+
epoch_duration: z.ZodNumber;
|
|
14289
14289
|
current_epoch_started_at: z.ZodNumber;
|
|
14290
14290
|
redemption_period_as_percentage: z.ZodNumber;
|
|
14291
14291
|
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14292
14292
|
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
14293
14293
|
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14294
14294
|
}, "strip", z.ZodTypeAny, {
|
|
14295
|
-
|
|
14295
|
+
epoch_duration: number;
|
|
14296
14296
|
current_epoch_started_at: number;
|
|
14297
14297
|
redemption_period_as_percentage: number;
|
|
14298
14298
|
min_funding: bigint;
|
|
14299
14299
|
auction_size_range: [number, number];
|
|
14300
14300
|
min_active_bid: bigint;
|
|
14301
14301
|
}, {
|
|
14302
|
-
|
|
14302
|
+
epoch_duration: number;
|
|
14303
|
+
current_epoch_started_at: number;
|
|
14304
|
+
redemption_period_as_percentage: number;
|
|
14305
|
+
min_funding: string | number;
|
|
14306
|
+
auction_size_range: [number, number];
|
|
14307
|
+
min_active_bid: string | number;
|
|
14308
|
+
}>, {
|
|
14309
|
+
current_epoch_started_at: number;
|
|
14310
|
+
redemption_period_as_percentage: number;
|
|
14311
|
+
min_funding: bigint;
|
|
14312
|
+
auction_size_range: [number, number];
|
|
14313
|
+
min_active_bid: bigint;
|
|
14314
|
+
epoch_duration_blocks: number;
|
|
14315
|
+
}, {
|
|
14316
|
+
epoch_duration: number;
|
|
14303
14317
|
current_epoch_started_at: number;
|
|
14304
14318
|
redemption_period_as_percentage: number;
|
|
14305
14319
|
min_funding: string | number;
|
package/dist/common.d.ts
CHANGED
|
@@ -14284,22 +14284,36 @@ declare const rpcResult: {
|
|
|
14284
14284
|
}>>;
|
|
14285
14285
|
readonly cf_authority_emission_per_block: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14286
14286
|
readonly cf_epoch_duration: z.ZodNumber;
|
|
14287
|
-
readonly cf_auction_state: z.ZodObject<{
|
|
14288
|
-
|
|
14287
|
+
readonly cf_auction_state: z.ZodEffects<z.ZodObject<{
|
|
14288
|
+
epoch_duration: z.ZodNumber;
|
|
14289
14289
|
current_epoch_started_at: z.ZodNumber;
|
|
14290
14290
|
redemption_period_as_percentage: z.ZodNumber;
|
|
14291
14291
|
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14292
14292
|
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
14293
14293
|
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14294
14294
|
}, "strip", z.ZodTypeAny, {
|
|
14295
|
-
|
|
14295
|
+
epoch_duration: number;
|
|
14296
14296
|
current_epoch_started_at: number;
|
|
14297
14297
|
redemption_period_as_percentage: number;
|
|
14298
14298
|
min_funding: bigint;
|
|
14299
14299
|
auction_size_range: [number, number];
|
|
14300
14300
|
min_active_bid: bigint;
|
|
14301
14301
|
}, {
|
|
14302
|
-
|
|
14302
|
+
epoch_duration: number;
|
|
14303
|
+
current_epoch_started_at: number;
|
|
14304
|
+
redemption_period_as_percentage: number;
|
|
14305
|
+
min_funding: string | number;
|
|
14306
|
+
auction_size_range: [number, number];
|
|
14307
|
+
min_active_bid: string | number;
|
|
14308
|
+
}>, {
|
|
14309
|
+
current_epoch_started_at: number;
|
|
14310
|
+
redemption_period_as_percentage: number;
|
|
14311
|
+
min_funding: bigint;
|
|
14312
|
+
auction_size_range: [number, number];
|
|
14313
|
+
min_active_bid: bigint;
|
|
14314
|
+
epoch_duration_blocks: number;
|
|
14315
|
+
}, {
|
|
14316
|
+
epoch_duration: number;
|
|
14303
14317
|
current_epoch_started_at: number;
|
|
14304
14318
|
redemption_period_as_percentage: number;
|
|
14305
14319
|
min_funding: string | number;
|
package/dist/parsers.cjs
CHANGED
|
@@ -324,13 +324,16 @@ var cfFailedCallEvm = _zod.z.object({
|
|
|
324
324
|
});
|
|
325
325
|
var range = (parser) => _zod.z.tuple([parser, parser]);
|
|
326
326
|
var cfAuctionState = _zod.z.object({
|
|
327
|
-
|
|
327
|
+
epoch_duration: _zod.z.number(),
|
|
328
328
|
current_epoch_started_at: _zod.z.number(),
|
|
329
329
|
redemption_period_as_percentage: _zod.z.number(),
|
|
330
330
|
min_funding: numberOrHex,
|
|
331
331
|
auction_size_range: range(_zod.z.number()),
|
|
332
332
|
min_active_bid: numberOrHex
|
|
333
|
-
})
|
|
333
|
+
}).transform(({ epoch_duration, ...state }) => ({
|
|
334
|
+
epoch_duration_blocks: epoch_duration,
|
|
335
|
+
...state
|
|
336
|
+
}));
|
|
334
337
|
var cfFlipSuppy = range(numberOrHex).transform(([totalIssuance, offchainFunds]) => ({
|
|
335
338
|
totalIssuance,
|
|
336
339
|
offchainFunds
|
package/dist/parsers.d.cts
CHANGED
|
@@ -15645,22 +15645,36 @@ declare const cfFailedCallEvm: z.ZodObject<{
|
|
|
15645
15645
|
data: string;
|
|
15646
15646
|
contract: string;
|
|
15647
15647
|
}>;
|
|
15648
|
-
declare const cfAuctionState: z.ZodObject<{
|
|
15649
|
-
|
|
15648
|
+
declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
15649
|
+
epoch_duration: z.ZodNumber;
|
|
15650
15650
|
current_epoch_started_at: z.ZodNumber;
|
|
15651
15651
|
redemption_period_as_percentage: z.ZodNumber;
|
|
15652
15652
|
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
15653
15653
|
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
15654
15654
|
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
15655
15655
|
}, "strip", z.ZodTypeAny, {
|
|
15656
|
-
|
|
15656
|
+
epoch_duration: number;
|
|
15657
15657
|
current_epoch_started_at: number;
|
|
15658
15658
|
redemption_period_as_percentage: number;
|
|
15659
15659
|
min_funding: bigint;
|
|
15660
15660
|
auction_size_range: [number, number];
|
|
15661
15661
|
min_active_bid: bigint;
|
|
15662
15662
|
}, {
|
|
15663
|
-
|
|
15663
|
+
epoch_duration: number;
|
|
15664
|
+
current_epoch_started_at: number;
|
|
15665
|
+
redemption_period_as_percentage: number;
|
|
15666
|
+
min_funding: string | number;
|
|
15667
|
+
auction_size_range: [number, number];
|
|
15668
|
+
min_active_bid: string | number;
|
|
15669
|
+
}>, {
|
|
15670
|
+
current_epoch_started_at: number;
|
|
15671
|
+
redemption_period_as_percentage: number;
|
|
15672
|
+
min_funding: bigint;
|
|
15673
|
+
auction_size_range: [number, number];
|
|
15674
|
+
min_active_bid: bigint;
|
|
15675
|
+
epoch_duration_blocks: number;
|
|
15676
|
+
}, {
|
|
15677
|
+
epoch_duration: number;
|
|
15664
15678
|
current_epoch_started_at: number;
|
|
15665
15679
|
redemption_period_as_percentage: number;
|
|
15666
15680
|
min_funding: string | number;
|
package/dist/parsers.d.ts
CHANGED
|
@@ -15645,22 +15645,36 @@ declare const cfFailedCallEvm: z.ZodObject<{
|
|
|
15645
15645
|
data: string;
|
|
15646
15646
|
contract: string;
|
|
15647
15647
|
}>;
|
|
15648
|
-
declare const cfAuctionState: z.ZodObject<{
|
|
15649
|
-
|
|
15648
|
+
declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
15649
|
+
epoch_duration: z.ZodNumber;
|
|
15650
15650
|
current_epoch_started_at: z.ZodNumber;
|
|
15651
15651
|
redemption_period_as_percentage: z.ZodNumber;
|
|
15652
15652
|
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
15653
15653
|
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
15654
15654
|
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
15655
15655
|
}, "strip", z.ZodTypeAny, {
|
|
15656
|
-
|
|
15656
|
+
epoch_duration: number;
|
|
15657
15657
|
current_epoch_started_at: number;
|
|
15658
15658
|
redemption_period_as_percentage: number;
|
|
15659
15659
|
min_funding: bigint;
|
|
15660
15660
|
auction_size_range: [number, number];
|
|
15661
15661
|
min_active_bid: bigint;
|
|
15662
15662
|
}, {
|
|
15663
|
-
|
|
15663
|
+
epoch_duration: number;
|
|
15664
|
+
current_epoch_started_at: number;
|
|
15665
|
+
redemption_period_as_percentage: number;
|
|
15666
|
+
min_funding: string | number;
|
|
15667
|
+
auction_size_range: [number, number];
|
|
15668
|
+
min_active_bid: string | number;
|
|
15669
|
+
}>, {
|
|
15670
|
+
current_epoch_started_at: number;
|
|
15671
|
+
redemption_period_as_percentage: number;
|
|
15672
|
+
min_funding: bigint;
|
|
15673
|
+
auction_size_range: [number, number];
|
|
15674
|
+
min_active_bid: bigint;
|
|
15675
|
+
epoch_duration_blocks: number;
|
|
15676
|
+
}, {
|
|
15677
|
+
epoch_duration: number;
|
|
15664
15678
|
current_epoch_started_at: number;
|
|
15665
15679
|
redemption_period_as_percentage: number;
|
|
15666
15680
|
min_funding: string | number;
|
package/dist/parsers.mjs
CHANGED
|
@@ -324,13 +324,16 @@ var cfFailedCallEvm = z.object({
|
|
|
324
324
|
});
|
|
325
325
|
var range = (parser) => z.tuple([parser, parser]);
|
|
326
326
|
var cfAuctionState = z.object({
|
|
327
|
-
|
|
327
|
+
epoch_duration: z.number(),
|
|
328
328
|
current_epoch_started_at: z.number(),
|
|
329
329
|
redemption_period_as_percentage: z.number(),
|
|
330
330
|
min_funding: numberOrHex,
|
|
331
331
|
auction_size_range: range(z.number()),
|
|
332
332
|
min_active_bid: numberOrHex
|
|
333
|
-
})
|
|
333
|
+
}).transform(({ epoch_duration, ...state }) => ({
|
|
334
|
+
epoch_duration_blocks: epoch_duration,
|
|
335
|
+
...state
|
|
336
|
+
}));
|
|
334
337
|
var cfFlipSuppy = range(numberOrHex).transform(([totalIssuance, offchainFunds]) => ({
|
|
335
338
|
totalIssuance,
|
|
336
339
|
offchainFunds
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainflip/rpc",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@chainflip/utils": "0.7.0",
|
|
7
7
|
"zod": "^3.24.2"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@types/node": "^22.13.
|
|
10
|
+
"@types/node": "^22.13.14",
|
|
11
11
|
"@types/ws": "^8.18.0",
|
|
12
12
|
"ws": "^8.18.1"
|
|
13
13
|
},
|