@chainflip/rpc 2.1.1 → 2.1.2
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 +1064 -664
- package/dist/common.d.mts +1064 -664
- package/dist/parsers.cjs +16 -15
- package/dist/parsers.d.cts +1201 -801
- package/dist/parsers.d.mts +1201 -801
- package/dist/parsers.mjs +16 -15
- package/package.json +1 -1
package/dist/parsers.mjs
CHANGED
|
@@ -187,17 +187,18 @@ const cfIngressEgressEnvironment = z.object({
|
|
|
187
187
|
witness_safety_margins: chainMapFactory(z.number().nullable(), null),
|
|
188
188
|
egress_dust_limits: chainAssetMapFactory(numberOrHex, 0),
|
|
189
189
|
channel_opening_fees: chainMapFactory(numberOrHex, 0),
|
|
190
|
-
ingress_delays: chainMapFactory(z.number(), 0)
|
|
191
|
-
boost_delays: chainMapFactory(z.number(), 0)
|
|
190
|
+
ingress_delays: chainMapFactory(z.number(), 0),
|
|
191
|
+
boost_delays: chainMapFactory(z.number(), 0)
|
|
192
192
|
}).transform(rename({ egress_dust_limits: "minimum_egress_amounts" }));
|
|
193
193
|
const cfSwappingEnvironment = z.object({
|
|
194
194
|
maximum_swap_amounts: chainAssetMapFactory(numberOrHex.nullable(), null),
|
|
195
195
|
network_fee_hundredth_pips: z.number(),
|
|
196
|
-
swap_retry_delay_blocks: z.number()
|
|
197
|
-
max_swap_retry_duration_blocks: z.number()
|
|
198
|
-
max_swap_request_duration_blocks: z.number()
|
|
199
|
-
minimum_chunk_size: chainAssetMapFactory(numberOrHex.nullable(), null)
|
|
200
|
-
network_fees: networkFees
|
|
196
|
+
swap_retry_delay_blocks: z.number(),
|
|
197
|
+
max_swap_retry_duration_blocks: z.number(),
|
|
198
|
+
max_swap_request_duration_blocks: z.number(),
|
|
199
|
+
minimum_chunk_size: chainAssetMapFactory(numberOrHex.nullable(), null),
|
|
200
|
+
network_fees: networkFees,
|
|
201
|
+
default_oracle_price_protection: chainAssetMapFactory(z.number().nullable(), null).optional()
|
|
201
202
|
});
|
|
202
203
|
const cfFundingEnvironment = z.object({
|
|
203
204
|
redemption_tax: numberOrHex,
|
|
@@ -382,8 +383,8 @@ const liquidityProvider = z.object({
|
|
|
382
383
|
lending_positions: z.array(z.intersection(rpcAssetSchema, z.object({
|
|
383
384
|
total_amount: numberOrHex,
|
|
384
385
|
available_amount: numberOrHex
|
|
385
|
-
})))
|
|
386
|
-
collateral_balances: z.array(z.intersection(rpcAssetSchema, z.object({ amount: numberOrHex })))
|
|
386
|
+
}))),
|
|
387
|
+
collateral_balances: z.array(z.intersection(rpcAssetSchema, z.object({ amount: numberOrHex })))
|
|
387
388
|
});
|
|
388
389
|
const validator = z.object({
|
|
389
390
|
role: z.literal("validator"),
|
|
@@ -586,7 +587,7 @@ const cfOraclePrices = z.array(z.object({
|
|
|
586
587
|
"UpToDate",
|
|
587
588
|
"Stale",
|
|
588
589
|
"MaybeStale"
|
|
589
|
-
])
|
|
590
|
+
])
|
|
590
591
|
}));
|
|
591
592
|
const broadcastPalletSafeModeStatuses = z.object({
|
|
592
593
|
retry_enabled: z.boolean(),
|
|
@@ -634,11 +635,11 @@ const cfSafeModeStatuses = z.object({
|
|
|
634
635
|
lending_pools: z.object({
|
|
635
636
|
add_boost_funds_enabled: z.boolean(),
|
|
636
637
|
stop_boosting_enabled: z.boolean(),
|
|
637
|
-
borrowing_enabled: z.array(rpcAssetSchema)
|
|
638
|
-
add_lender_funds_enabled: z.array(rpcAssetSchema)
|
|
639
|
-
withdraw_lender_funds_enabled: z.array(rpcAssetSchema)
|
|
640
|
-
add_collateral_enabled: z.array(rpcAssetSchema)
|
|
641
|
-
remove_collateral_enabled: z.array(rpcAssetSchema)
|
|
638
|
+
borrowing_enabled: z.array(rpcAssetSchema),
|
|
639
|
+
add_lender_funds_enabled: z.array(rpcAssetSchema),
|
|
640
|
+
withdraw_lender_funds_enabled: z.array(rpcAssetSchema),
|
|
641
|
+
add_collateral_enabled: z.array(rpcAssetSchema),
|
|
642
|
+
remove_collateral_enabled: z.array(rpcAssetSchema)
|
|
642
643
|
}),
|
|
643
644
|
broadcast_ethereum: broadcastPalletSafeModeStatuses,
|
|
644
645
|
broadcast_bitcoin: broadcastPalletSafeModeStatuses,
|