@chainflip/rpc 1.8.12 → 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 +23 -9
- package/dist/common.d.ts +23 -9
- package/dist/parsers.cjs +6 -3
- package/dist/parsers.d.cts +28 -14
- package/dist/parsers.d.ts +28 -14
- package/dist/parsers.mjs +6 -3
- package/package.json +2 -2
package/dist/common.d.cts
CHANGED
|
@@ -595,7 +595,7 @@ declare const rpcResult: {
|
|
|
595
595
|
};
|
|
596
596
|
}>;
|
|
597
597
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
598
|
-
affiliates: z.ZodArray<z.ZodObject<{
|
|
598
|
+
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
599
599
|
account_id: z.ZodString;
|
|
600
600
|
short_id: z.ZodNumber;
|
|
601
601
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
@@ -607,7 +607,7 @@ declare const rpcResult: {
|
|
|
607
607
|
account_id: string;
|
|
608
608
|
short_id: number;
|
|
609
609
|
withdrawal_address: string;
|
|
610
|
-
}>, "many"
|
|
610
|
+
}>, "many">>>;
|
|
611
611
|
}, "strip", z.ZodTypeAny, {
|
|
612
612
|
role: "broker";
|
|
613
613
|
flip_balance: bigint;
|
|
@@ -666,12 +666,12 @@ declare const rpcResult: {
|
|
|
666
666
|
DOT: string | number;
|
|
667
667
|
};
|
|
668
668
|
};
|
|
669
|
-
|
|
669
|
+
btc_vault_deposit_address?: string | null | undefined;
|
|
670
|
+
affiliates?: {
|
|
670
671
|
account_id: string;
|
|
671
672
|
short_id: number;
|
|
672
673
|
withdrawal_address: string;
|
|
673
|
-
}[];
|
|
674
|
-
btc_vault_deposit_address?: string | null | undefined;
|
|
674
|
+
}[] | undefined;
|
|
675
675
|
}>, z.ZodObject<{
|
|
676
676
|
role: z.ZodLiteral<"liquidity_provider">;
|
|
677
677
|
balances: z.ZodObject<{
|
|
@@ -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
|
@@ -595,7 +595,7 @@ declare const rpcResult: {
|
|
|
595
595
|
};
|
|
596
596
|
}>;
|
|
597
597
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
598
|
-
affiliates: z.ZodArray<z.ZodObject<{
|
|
598
|
+
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
599
599
|
account_id: z.ZodString;
|
|
600
600
|
short_id: z.ZodNumber;
|
|
601
601
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
@@ -607,7 +607,7 @@ declare const rpcResult: {
|
|
|
607
607
|
account_id: string;
|
|
608
608
|
short_id: number;
|
|
609
609
|
withdrawal_address: string;
|
|
610
|
-
}>, "many"
|
|
610
|
+
}>, "many">>>;
|
|
611
611
|
}, "strip", z.ZodTypeAny, {
|
|
612
612
|
role: "broker";
|
|
613
613
|
flip_balance: bigint;
|
|
@@ -666,12 +666,12 @@ declare const rpcResult: {
|
|
|
666
666
|
DOT: string | number;
|
|
667
667
|
};
|
|
668
668
|
};
|
|
669
|
-
|
|
669
|
+
btc_vault_deposit_address?: string | null | undefined;
|
|
670
|
+
affiliates?: {
|
|
670
671
|
account_id: string;
|
|
671
672
|
short_id: number;
|
|
672
673
|
withdrawal_address: string;
|
|
673
|
-
}[];
|
|
674
|
-
btc_vault_deposit_address?: string | null | undefined;
|
|
674
|
+
}[] | undefined;
|
|
675
675
|
}>, z.ZodObject<{
|
|
676
676
|
role: z.ZodLiteral<"liquidity_provider">;
|
|
677
677
|
balances: z.ZodObject<{
|
|
@@ -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
|
@@ -197,7 +197,7 @@ var broker = _zod.z.object({
|
|
|
197
197
|
btc_vault_deposit_address: _zod.z.string().nullable().optional(),
|
|
198
198
|
affiliates: _zod.z.array(
|
|
199
199
|
_zod.z.object({ account_id: _zod.z.string(), short_id: _zod.z.number(), withdrawal_address: hexString })
|
|
200
|
-
)
|
|
200
|
+
).optional().default([])
|
|
201
201
|
});
|
|
202
202
|
var boostBalances = _zod.z.array(
|
|
203
203
|
_zod.z.object({
|
|
@@ -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
|
@@ -12019,7 +12019,7 @@ declare const broker: z.ZodObject<{
|
|
|
12019
12019
|
};
|
|
12020
12020
|
}>;
|
|
12021
12021
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12022
|
-
affiliates: z.ZodArray<z.ZodObject<{
|
|
12022
|
+
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12023
12023
|
account_id: z.ZodString;
|
|
12024
12024
|
short_id: z.ZodNumber;
|
|
12025
12025
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
@@ -12031,7 +12031,7 @@ declare const broker: z.ZodObject<{
|
|
|
12031
12031
|
account_id: string;
|
|
12032
12032
|
short_id: number;
|
|
12033
12033
|
withdrawal_address: string;
|
|
12034
|
-
}>, "many"
|
|
12034
|
+
}>, "many">>>;
|
|
12035
12035
|
}, "strip", z.ZodTypeAny, {
|
|
12036
12036
|
role: "broker";
|
|
12037
12037
|
flip_balance: bigint;
|
|
@@ -12090,12 +12090,12 @@ declare const broker: z.ZodObject<{
|
|
|
12090
12090
|
DOT: string | number;
|
|
12091
12091
|
};
|
|
12092
12092
|
};
|
|
12093
|
-
|
|
12093
|
+
btc_vault_deposit_address?: string | null | undefined;
|
|
12094
|
+
affiliates?: {
|
|
12094
12095
|
account_id: string;
|
|
12095
12096
|
short_id: number;
|
|
12096
12097
|
withdrawal_address: string;
|
|
12097
|
-
}[];
|
|
12098
|
-
btc_vault_deposit_address?: string | null | undefined;
|
|
12098
|
+
}[] | undefined;
|
|
12099
12099
|
}>;
|
|
12100
12100
|
declare const liquidityProvider: z.ZodObject<{
|
|
12101
12101
|
role: z.ZodLiteral<"liquidity_provider">;
|
|
@@ -13386,7 +13386,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
13386
13386
|
};
|
|
13387
13387
|
}>;
|
|
13388
13388
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13389
|
-
affiliates: z.ZodArray<z.ZodObject<{
|
|
13389
|
+
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13390
13390
|
account_id: z.ZodString;
|
|
13391
13391
|
short_id: z.ZodNumber;
|
|
13392
13392
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
@@ -13398,7 +13398,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
13398
13398
|
account_id: string;
|
|
13399
13399
|
short_id: number;
|
|
13400
13400
|
withdrawal_address: string;
|
|
13401
|
-
}>, "many"
|
|
13401
|
+
}>, "many">>>;
|
|
13402
13402
|
}, "strip", z.ZodTypeAny, {
|
|
13403
13403
|
role: "broker";
|
|
13404
13404
|
flip_balance: bigint;
|
|
@@ -13457,12 +13457,12 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
13457
13457
|
DOT: string | number;
|
|
13458
13458
|
};
|
|
13459
13459
|
};
|
|
13460
|
-
|
|
13460
|
+
btc_vault_deposit_address?: string | null | undefined;
|
|
13461
|
+
affiliates?: {
|
|
13461
13462
|
account_id: string;
|
|
13462
13463
|
short_id: number;
|
|
13463
13464
|
withdrawal_address: string;
|
|
13464
|
-
}[];
|
|
13465
|
-
btc_vault_deposit_address?: string | null | undefined;
|
|
13465
|
+
}[] | undefined;
|
|
13466
13466
|
}>, z.ZodObject<{
|
|
13467
13467
|
role: z.ZodLiteral<"liquidity_provider">;
|
|
13468
13468
|
balances: z.ZodObject<{
|
|
@@ -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
|
@@ -12019,7 +12019,7 @@ declare const broker: z.ZodObject<{
|
|
|
12019
12019
|
};
|
|
12020
12020
|
}>;
|
|
12021
12021
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12022
|
-
affiliates: z.ZodArray<z.ZodObject<{
|
|
12022
|
+
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12023
12023
|
account_id: z.ZodString;
|
|
12024
12024
|
short_id: z.ZodNumber;
|
|
12025
12025
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
@@ -12031,7 +12031,7 @@ declare const broker: z.ZodObject<{
|
|
|
12031
12031
|
account_id: string;
|
|
12032
12032
|
short_id: number;
|
|
12033
12033
|
withdrawal_address: string;
|
|
12034
|
-
}>, "many"
|
|
12034
|
+
}>, "many">>>;
|
|
12035
12035
|
}, "strip", z.ZodTypeAny, {
|
|
12036
12036
|
role: "broker";
|
|
12037
12037
|
flip_balance: bigint;
|
|
@@ -12090,12 +12090,12 @@ declare const broker: z.ZodObject<{
|
|
|
12090
12090
|
DOT: string | number;
|
|
12091
12091
|
};
|
|
12092
12092
|
};
|
|
12093
|
-
|
|
12093
|
+
btc_vault_deposit_address?: string | null | undefined;
|
|
12094
|
+
affiliates?: {
|
|
12094
12095
|
account_id: string;
|
|
12095
12096
|
short_id: number;
|
|
12096
12097
|
withdrawal_address: string;
|
|
12097
|
-
}[];
|
|
12098
|
-
btc_vault_deposit_address?: string | null | undefined;
|
|
12098
|
+
}[] | undefined;
|
|
12099
12099
|
}>;
|
|
12100
12100
|
declare const liquidityProvider: z.ZodObject<{
|
|
12101
12101
|
role: z.ZodLiteral<"liquidity_provider">;
|
|
@@ -13386,7 +13386,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
13386
13386
|
};
|
|
13387
13387
|
}>;
|
|
13388
13388
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13389
|
-
affiliates: z.ZodArray<z.ZodObject<{
|
|
13389
|
+
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13390
13390
|
account_id: z.ZodString;
|
|
13391
13391
|
short_id: z.ZodNumber;
|
|
13392
13392
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
@@ -13398,7 +13398,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
13398
13398
|
account_id: string;
|
|
13399
13399
|
short_id: number;
|
|
13400
13400
|
withdrawal_address: string;
|
|
13401
|
-
}>, "many"
|
|
13401
|
+
}>, "many">>>;
|
|
13402
13402
|
}, "strip", z.ZodTypeAny, {
|
|
13403
13403
|
role: "broker";
|
|
13404
13404
|
flip_balance: bigint;
|
|
@@ -13457,12 +13457,12 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
13457
13457
|
DOT: string | number;
|
|
13458
13458
|
};
|
|
13459
13459
|
};
|
|
13460
|
-
|
|
13460
|
+
btc_vault_deposit_address?: string | null | undefined;
|
|
13461
|
+
affiliates?: {
|
|
13461
13462
|
account_id: string;
|
|
13462
13463
|
short_id: number;
|
|
13463
13464
|
withdrawal_address: string;
|
|
13464
|
-
}[];
|
|
13465
|
-
btc_vault_deposit_address?: string | null | undefined;
|
|
13465
|
+
}[] | undefined;
|
|
13466
13466
|
}>, z.ZodObject<{
|
|
13467
13467
|
role: z.ZodLiteral<"liquidity_provider">;
|
|
13468
13468
|
balances: z.ZodObject<{
|
|
@@ -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
|
@@ -197,7 +197,7 @@ var broker = z.object({
|
|
|
197
197
|
btc_vault_deposit_address: z.string().nullable().optional(),
|
|
198
198
|
affiliates: z.array(
|
|
199
199
|
z.object({ account_id: z.string(), short_id: z.number(), withdrawal_address: hexString })
|
|
200
|
-
)
|
|
200
|
+
).optional().default([])
|
|
201
201
|
});
|
|
202
202
|
var boostBalances = z.array(
|
|
203
203
|
z.object({
|
|
@@ -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
|
},
|