@chainflip/rpc 1.11.0-beta.11 → 1.11.0-beta.13
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 +657 -7
- package/dist/common.d.ts +657 -7
- package/dist/parsers.cjs +28 -2
- package/dist/parsers.d.cts +1970 -267
- package/dist/parsers.d.ts +1970 -267
- package/dist/parsers.mjs +28 -2
- package/package.json +1 -1
package/dist/parsers.mjs
CHANGED
|
@@ -211,6 +211,7 @@ var delegationStatus = z.object({
|
|
|
211
211
|
bid: numberOrHex
|
|
212
212
|
});
|
|
213
213
|
var accountInfoCommon = {
|
|
214
|
+
vanity_name: z.string().optional(),
|
|
214
215
|
flip_balance: numberOrHex,
|
|
215
216
|
asset_balances: chainAssetMapFactory(numberOrHex, 0),
|
|
216
217
|
bond: numberOrHex,
|
|
@@ -284,7 +285,24 @@ var liquidityProvider = z.object({
|
|
|
284
285
|
...accountInfoCommon,
|
|
285
286
|
refund_addresses: chainMapFactory(z.string().nullable(), null),
|
|
286
287
|
earned_fees: chainAssetMapFactory(numberOrHex, 0),
|
|
287
|
-
boost_balances: chainAssetMapFactory(boostBalances, [])
|
|
288
|
+
boost_balances: chainAssetMapFactory(boostBalances, []),
|
|
289
|
+
lending_positions: z.array(
|
|
290
|
+
z.intersection(
|
|
291
|
+
rpcAssetSchema,
|
|
292
|
+
z.object({
|
|
293
|
+
total_amount: numberOrHex,
|
|
294
|
+
available_amount: numberOrHex
|
|
295
|
+
})
|
|
296
|
+
)
|
|
297
|
+
).optional(),
|
|
298
|
+
collateral_balances: z.array(
|
|
299
|
+
z.intersection(
|
|
300
|
+
rpcAssetSchema,
|
|
301
|
+
z.object({
|
|
302
|
+
amount: numberOrHex
|
|
303
|
+
})
|
|
304
|
+
)
|
|
305
|
+
).optional()
|
|
288
306
|
});
|
|
289
307
|
var oldValidator = z.object({
|
|
290
308
|
role: z.literal("validator"),
|
|
@@ -631,7 +649,15 @@ var cfLendingPools = z.array(
|
|
|
631
649
|
total_amount: numberOrHex,
|
|
632
650
|
available_amount: numberOrHex,
|
|
633
651
|
utilisation_rate: z.number(),
|
|
634
|
-
|
|
652
|
+
current_interest_rate: z.number(),
|
|
653
|
+
origination_fee: z.number(),
|
|
654
|
+
liquidation_fee: z.number(),
|
|
655
|
+
interest_rate_curve: z.object({
|
|
656
|
+
interest_at_zero_utilisation: z.number(),
|
|
657
|
+
junction_utilisation: z.number(),
|
|
658
|
+
interest_at_junction_utilisation: z.number(),
|
|
659
|
+
interest_at_max_utilisation: z.number()
|
|
660
|
+
})
|
|
635
661
|
})
|
|
636
662
|
);
|
|
637
663
|
export {
|