@chainflip/rpc 1.8.13 → 1.8.15
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 +24 -10
- package/dist/common.d.ts +24 -10
- package/dist/parsers.cjs +7 -4
- package/dist/parsers.d.cts +24 -10
- package/dist/parsers.d.ts +24 -10
- package/dist/parsers.mjs +7 -4
- package/package.json +2 -2
package/dist/common.d.cts
CHANGED
|
@@ -13931,7 +13931,7 @@ declare const rpcResult: {
|
|
|
13931
13931
|
amount: string;
|
|
13932
13932
|
}>, "many">;
|
|
13933
13933
|
deposits_pending_finalization: z.ZodArray<z.ZodObject<{
|
|
13934
|
-
deposit_id: z.ZodEffects<z.ZodNumber, bigint, number>;
|
|
13934
|
+
deposit_id: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
13935
13935
|
owed_amounts: z.ZodArray<z.ZodObject<{
|
|
13936
13936
|
account_id: z.ZodString;
|
|
13937
13937
|
amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
@@ -13949,7 +13949,7 @@ declare const rpcResult: {
|
|
|
13949
13949
|
amount: bigint;
|
|
13950
13950
|
}[];
|
|
13951
13951
|
}, {
|
|
13952
|
-
deposit_id: number;
|
|
13952
|
+
deposit_id: string | number;
|
|
13953
13953
|
owed_amounts: {
|
|
13954
13954
|
account_id: string;
|
|
13955
13955
|
amount: string;
|
|
@@ -13957,13 +13957,13 @@ declare const rpcResult: {
|
|
|
13957
13957
|
}>, "many">;
|
|
13958
13958
|
pending_withdrawals: z.ZodArray<z.ZodObject<{
|
|
13959
13959
|
account_id: z.ZodString;
|
|
13960
|
-
pending_deposits: z.ZodArray<z.
|
|
13960
|
+
pending_deposits: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, "many">;
|
|
13961
13961
|
}, "strip", z.ZodTypeAny, {
|
|
13962
13962
|
account_id: string;
|
|
13963
13963
|
pending_deposits: bigint[];
|
|
13964
13964
|
}, {
|
|
13965
13965
|
account_id: string;
|
|
13966
|
-
pending_deposits:
|
|
13966
|
+
pending_deposits: (string | number)[];
|
|
13967
13967
|
}>, "many">;
|
|
13968
13968
|
network_fee_deduction_percent: z.ZodOptional<z.ZodNumber>;
|
|
13969
13969
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -13991,7 +13991,7 @@ declare const rpcResult: {
|
|
|
13991
13991
|
amount: string;
|
|
13992
13992
|
}[];
|
|
13993
13993
|
deposits_pending_finalization: {
|
|
13994
|
-
deposit_id: number;
|
|
13994
|
+
deposit_id: string | number;
|
|
13995
13995
|
owed_amounts: {
|
|
13996
13996
|
account_id: string;
|
|
13997
13997
|
amount: string;
|
|
@@ -13999,7 +13999,7 @@ declare const rpcResult: {
|
|
|
13999
13999
|
}[];
|
|
14000
14000
|
pending_withdrawals: {
|
|
14001
14001
|
account_id: string;
|
|
14002
|
-
pending_deposits:
|
|
14002
|
+
pending_deposits: (string | number)[];
|
|
14003
14003
|
}[];
|
|
14004
14004
|
network_fee_deduction_percent?: number | undefined;
|
|
14005
14005
|
}>>, "many">;
|
|
@@ -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
|
+
current_epoch_started_at: number;
|
|
14297
|
+
redemption_period_as_percentage: number;
|
|
14298
|
+
min_funding: bigint;
|
|
14299
|
+
auction_size_range: [number, number];
|
|
14300
|
+
min_active_bid: bigint;
|
|
14301
|
+
}, {
|
|
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
|
+
}>, {
|
|
14296
14309
|
current_epoch_started_at: number;
|
|
14297
14310
|
redemption_period_as_percentage: number;
|
|
14298
14311
|
min_funding: bigint;
|
|
14299
14312
|
auction_size_range: [number, number];
|
|
14300
14313
|
min_active_bid: bigint;
|
|
14314
|
+
epoch_duration_blocks: number;
|
|
14301
14315
|
}, {
|
|
14302
|
-
|
|
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
|
@@ -13931,7 +13931,7 @@ declare const rpcResult: {
|
|
|
13931
13931
|
amount: string;
|
|
13932
13932
|
}>, "many">;
|
|
13933
13933
|
deposits_pending_finalization: z.ZodArray<z.ZodObject<{
|
|
13934
|
-
deposit_id: z.ZodEffects<z.ZodNumber, bigint, number>;
|
|
13934
|
+
deposit_id: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
13935
13935
|
owed_amounts: z.ZodArray<z.ZodObject<{
|
|
13936
13936
|
account_id: z.ZodString;
|
|
13937
13937
|
amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
@@ -13949,7 +13949,7 @@ declare const rpcResult: {
|
|
|
13949
13949
|
amount: bigint;
|
|
13950
13950
|
}[];
|
|
13951
13951
|
}, {
|
|
13952
|
-
deposit_id: number;
|
|
13952
|
+
deposit_id: string | number;
|
|
13953
13953
|
owed_amounts: {
|
|
13954
13954
|
account_id: string;
|
|
13955
13955
|
amount: string;
|
|
@@ -13957,13 +13957,13 @@ declare const rpcResult: {
|
|
|
13957
13957
|
}>, "many">;
|
|
13958
13958
|
pending_withdrawals: z.ZodArray<z.ZodObject<{
|
|
13959
13959
|
account_id: z.ZodString;
|
|
13960
|
-
pending_deposits: z.ZodArray<z.
|
|
13960
|
+
pending_deposits: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, "many">;
|
|
13961
13961
|
}, "strip", z.ZodTypeAny, {
|
|
13962
13962
|
account_id: string;
|
|
13963
13963
|
pending_deposits: bigint[];
|
|
13964
13964
|
}, {
|
|
13965
13965
|
account_id: string;
|
|
13966
|
-
pending_deposits:
|
|
13966
|
+
pending_deposits: (string | number)[];
|
|
13967
13967
|
}>, "many">;
|
|
13968
13968
|
network_fee_deduction_percent: z.ZodOptional<z.ZodNumber>;
|
|
13969
13969
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -13991,7 +13991,7 @@ declare const rpcResult: {
|
|
|
13991
13991
|
amount: string;
|
|
13992
13992
|
}[];
|
|
13993
13993
|
deposits_pending_finalization: {
|
|
13994
|
-
deposit_id: number;
|
|
13994
|
+
deposit_id: string | number;
|
|
13995
13995
|
owed_amounts: {
|
|
13996
13996
|
account_id: string;
|
|
13997
13997
|
amount: string;
|
|
@@ -13999,7 +13999,7 @@ declare const rpcResult: {
|
|
|
13999
13999
|
}[];
|
|
14000
14000
|
pending_withdrawals: {
|
|
14001
14001
|
account_id: string;
|
|
14002
|
-
pending_deposits:
|
|
14002
|
+
pending_deposits: (string | number)[];
|
|
14003
14003
|
}[];
|
|
14004
14004
|
network_fee_deduction_percent?: number | undefined;
|
|
14005
14005
|
}>>, "many">;
|
|
@@ -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
|
+
current_epoch_started_at: number;
|
|
14297
|
+
redemption_period_as_percentage: number;
|
|
14298
|
+
min_funding: bigint;
|
|
14299
|
+
auction_size_range: [number, number];
|
|
14300
|
+
min_active_bid: bigint;
|
|
14301
|
+
}, {
|
|
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
|
+
}>, {
|
|
14296
14309
|
current_epoch_started_at: number;
|
|
14297
14310
|
redemption_period_as_percentage: number;
|
|
14298
14311
|
min_funding: bigint;
|
|
14299
14312
|
auction_size_range: [number, number];
|
|
14300
14313
|
min_active_bid: bigint;
|
|
14314
|
+
epoch_duration_blocks: number;
|
|
14301
14315
|
}, {
|
|
14302
|
-
|
|
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
|
@@ -289,14 +289,14 @@ var cfBoostPoolDetails = _zod.z.array(
|
|
|
289
289
|
available_amounts: _zod.z.array(boostPoolAmount),
|
|
290
290
|
deposits_pending_finalization: _zod.z.array(
|
|
291
291
|
_zod.z.object({
|
|
292
|
-
deposit_id:
|
|
292
|
+
deposit_id: numberOrHex,
|
|
293
293
|
owed_amounts: _zod.z.array(boostPoolAmount)
|
|
294
294
|
})
|
|
295
295
|
),
|
|
296
296
|
pending_withdrawals: _zod.z.array(
|
|
297
297
|
_zod.z.object({
|
|
298
298
|
account_id: _zod.z.string(),
|
|
299
|
-
pending_deposits: _zod.z.array(
|
|
299
|
+
pending_deposits: _zod.z.array(numberOrHex)
|
|
300
300
|
})
|
|
301
301
|
),
|
|
302
302
|
network_fee_deduction_percent: _zod.z.number().optional()
|
|
@@ -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
|
@@ -15333,7 +15333,7 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
|
|
|
15333
15333
|
amount: string;
|
|
15334
15334
|
}>, "many">;
|
|
15335
15335
|
deposits_pending_finalization: z.ZodArray<z.ZodObject<{
|
|
15336
|
-
deposit_id: z.ZodEffects<z.ZodNumber, bigint, number>;
|
|
15336
|
+
deposit_id: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
15337
15337
|
owed_amounts: z.ZodArray<z.ZodObject<{
|
|
15338
15338
|
account_id: z.ZodString;
|
|
15339
15339
|
amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
@@ -15351,7 +15351,7 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
|
|
|
15351
15351
|
amount: bigint;
|
|
15352
15352
|
}[];
|
|
15353
15353
|
}, {
|
|
15354
|
-
deposit_id: number;
|
|
15354
|
+
deposit_id: string | number;
|
|
15355
15355
|
owed_amounts: {
|
|
15356
15356
|
account_id: string;
|
|
15357
15357
|
amount: string;
|
|
@@ -15359,13 +15359,13 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
|
|
|
15359
15359
|
}>, "many">;
|
|
15360
15360
|
pending_withdrawals: z.ZodArray<z.ZodObject<{
|
|
15361
15361
|
account_id: z.ZodString;
|
|
15362
|
-
pending_deposits: z.ZodArray<z.
|
|
15362
|
+
pending_deposits: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, "many">;
|
|
15363
15363
|
}, "strip", z.ZodTypeAny, {
|
|
15364
15364
|
account_id: string;
|
|
15365
15365
|
pending_deposits: bigint[];
|
|
15366
15366
|
}, {
|
|
15367
15367
|
account_id: string;
|
|
15368
|
-
pending_deposits:
|
|
15368
|
+
pending_deposits: (string | number)[];
|
|
15369
15369
|
}>, "many">;
|
|
15370
15370
|
network_fee_deduction_percent: z.ZodOptional<z.ZodNumber>;
|
|
15371
15371
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -15393,7 +15393,7 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
|
|
|
15393
15393
|
amount: string;
|
|
15394
15394
|
}[];
|
|
15395
15395
|
deposits_pending_finalization: {
|
|
15396
|
-
deposit_id: number;
|
|
15396
|
+
deposit_id: string | number;
|
|
15397
15397
|
owed_amounts: {
|
|
15398
15398
|
account_id: string;
|
|
15399
15399
|
amount: string;
|
|
@@ -15401,7 +15401,7 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
|
|
|
15401
15401
|
}[];
|
|
15402
15402
|
pending_withdrawals: {
|
|
15403
15403
|
account_id: string;
|
|
15404
|
-
pending_deposits:
|
|
15404
|
+
pending_deposits: (string | number)[];
|
|
15405
15405
|
}[];
|
|
15406
15406
|
network_fee_deduction_percent?: number | undefined;
|
|
15407
15407
|
}>>, "many">;
|
|
@@ -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
|
+
current_epoch_started_at: number;
|
|
15658
|
+
redemption_period_as_percentage: number;
|
|
15659
|
+
min_funding: bigint;
|
|
15660
|
+
auction_size_range: [number, number];
|
|
15661
|
+
min_active_bid: bigint;
|
|
15662
|
+
}, {
|
|
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
|
+
}>, {
|
|
15657
15670
|
current_epoch_started_at: number;
|
|
15658
15671
|
redemption_period_as_percentage: number;
|
|
15659
15672
|
min_funding: bigint;
|
|
15660
15673
|
auction_size_range: [number, number];
|
|
15661
15674
|
min_active_bid: bigint;
|
|
15675
|
+
epoch_duration_blocks: number;
|
|
15662
15676
|
}, {
|
|
15663
|
-
|
|
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
|
@@ -15333,7 +15333,7 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
|
|
|
15333
15333
|
amount: string;
|
|
15334
15334
|
}>, "many">;
|
|
15335
15335
|
deposits_pending_finalization: z.ZodArray<z.ZodObject<{
|
|
15336
|
-
deposit_id: z.ZodEffects<z.ZodNumber, bigint, number>;
|
|
15336
|
+
deposit_id: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
15337
15337
|
owed_amounts: z.ZodArray<z.ZodObject<{
|
|
15338
15338
|
account_id: z.ZodString;
|
|
15339
15339
|
amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
@@ -15351,7 +15351,7 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
|
|
|
15351
15351
|
amount: bigint;
|
|
15352
15352
|
}[];
|
|
15353
15353
|
}, {
|
|
15354
|
-
deposit_id: number;
|
|
15354
|
+
deposit_id: string | number;
|
|
15355
15355
|
owed_amounts: {
|
|
15356
15356
|
account_id: string;
|
|
15357
15357
|
amount: string;
|
|
@@ -15359,13 +15359,13 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
|
|
|
15359
15359
|
}>, "many">;
|
|
15360
15360
|
pending_withdrawals: z.ZodArray<z.ZodObject<{
|
|
15361
15361
|
account_id: z.ZodString;
|
|
15362
|
-
pending_deposits: z.ZodArray<z.
|
|
15362
|
+
pending_deposits: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, "many">;
|
|
15363
15363
|
}, "strip", z.ZodTypeAny, {
|
|
15364
15364
|
account_id: string;
|
|
15365
15365
|
pending_deposits: bigint[];
|
|
15366
15366
|
}, {
|
|
15367
15367
|
account_id: string;
|
|
15368
|
-
pending_deposits:
|
|
15368
|
+
pending_deposits: (string | number)[];
|
|
15369
15369
|
}>, "many">;
|
|
15370
15370
|
network_fee_deduction_percent: z.ZodOptional<z.ZodNumber>;
|
|
15371
15371
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -15393,7 +15393,7 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
|
|
|
15393
15393
|
amount: string;
|
|
15394
15394
|
}[];
|
|
15395
15395
|
deposits_pending_finalization: {
|
|
15396
|
-
deposit_id: number;
|
|
15396
|
+
deposit_id: string | number;
|
|
15397
15397
|
owed_amounts: {
|
|
15398
15398
|
account_id: string;
|
|
15399
15399
|
amount: string;
|
|
@@ -15401,7 +15401,7 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
|
|
|
15401
15401
|
}[];
|
|
15402
15402
|
pending_withdrawals: {
|
|
15403
15403
|
account_id: string;
|
|
15404
|
-
pending_deposits:
|
|
15404
|
+
pending_deposits: (string | number)[];
|
|
15405
15405
|
}[];
|
|
15406
15406
|
network_fee_deduction_percent?: number | undefined;
|
|
15407
15407
|
}>>, "many">;
|
|
@@ -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
|
+
current_epoch_started_at: number;
|
|
15658
|
+
redemption_period_as_percentage: number;
|
|
15659
|
+
min_funding: bigint;
|
|
15660
|
+
auction_size_range: [number, number];
|
|
15661
|
+
min_active_bid: bigint;
|
|
15662
|
+
}, {
|
|
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
|
+
}>, {
|
|
15657
15670
|
current_epoch_started_at: number;
|
|
15658
15671
|
redemption_period_as_percentage: number;
|
|
15659
15672
|
min_funding: bigint;
|
|
15660
15673
|
auction_size_range: [number, number];
|
|
15661
15674
|
min_active_bid: bigint;
|
|
15675
|
+
epoch_duration_blocks: number;
|
|
15662
15676
|
}, {
|
|
15663
|
-
|
|
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
|
@@ -289,14 +289,14 @@ var cfBoostPoolDetails = z.array(
|
|
|
289
289
|
available_amounts: z.array(boostPoolAmount),
|
|
290
290
|
deposits_pending_finalization: z.array(
|
|
291
291
|
z.object({
|
|
292
|
-
deposit_id:
|
|
292
|
+
deposit_id: numberOrHex,
|
|
293
293
|
owed_amounts: z.array(boostPoolAmount)
|
|
294
294
|
})
|
|
295
295
|
),
|
|
296
296
|
pending_withdrawals: z.array(
|
|
297
297
|
z.object({
|
|
298
298
|
account_id: z.string(),
|
|
299
|
-
pending_deposits: z.array(
|
|
299
|
+
pending_deposits: z.array(numberOrHex)
|
|
300
300
|
})
|
|
301
301
|
),
|
|
302
302
|
network_fee_deduction_percent: z.number().optional()
|
|
@@ -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.15",
|
|
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
|
},
|