@chainflip/rpc 1.11.0-beta.12 → 1.11.0-beta.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 +855 -1319
- package/dist/common.d.ts +855 -1319
- package/dist/parsers.cjs +21 -4
- package/dist/parsers.d.cts +3108 -3049
- package/dist/parsers.d.ts +3108 -3049
- package/dist/parsers.mjs +21 -4
- package/package.json +2 -2
package/dist/parsers.mjs
CHANGED
|
@@ -13,7 +13,7 @@ var chainAssetMapFactory = (parser, _defaultValue) => z.object({
|
|
|
13
13
|
Arbitrum: z.object({ ETH: parser, USDC: parser }),
|
|
14
14
|
Solana: z.object({ SOL: parser, USDC: parser }),
|
|
15
15
|
Assethub: z.object({ DOT: parser, USDC: parser, USDT: parser })
|
|
16
|
-
});
|
|
16
|
+
}).omit({ Polkadot: true });
|
|
17
17
|
var chainBaseAssetMapFactory = (parser, _defaultValue) => z.object({
|
|
18
18
|
Bitcoin: z.object({ BTC: parser }),
|
|
19
19
|
Ethereum: z.object({ ETH: parser, FLIP: parser, USDT: parser }),
|
|
@@ -21,7 +21,7 @@ var chainBaseAssetMapFactory = (parser, _defaultValue) => z.object({
|
|
|
21
21
|
Arbitrum: z.object({ ETH: parser, USDC: parser }),
|
|
22
22
|
Solana: z.object({ SOL: parser, USDC: parser }),
|
|
23
23
|
Assethub: z.object({ DOT: parser, USDC: parser, USDT: parser })
|
|
24
|
-
});
|
|
24
|
+
}).omit({ Polkadot: true });
|
|
25
25
|
var chainMapFactory = (parser, _defaultValue) => z.object({
|
|
26
26
|
Bitcoin: parser,
|
|
27
27
|
Ethereum: parser,
|
|
@@ -29,7 +29,7 @@ var chainMapFactory = (parser, _defaultValue) => z.object({
|
|
|
29
29
|
Arbitrum: parser,
|
|
30
30
|
Solana: parser,
|
|
31
31
|
Assethub: parser
|
|
32
|
-
});
|
|
32
|
+
}).omit({ Polkadot: true });
|
|
33
33
|
var rpcAssetSchema = z.union([
|
|
34
34
|
z.object({ chain: z.literal("Bitcoin"), asset: z.literal("BTC") }),
|
|
35
35
|
z.object({ chain: z.literal("Polkadot"), asset: z.literal("DOT") }),
|
|
@@ -285,7 +285,24 @@ var liquidityProvider = z.object({
|
|
|
285
285
|
...accountInfoCommon,
|
|
286
286
|
refund_addresses: chainMapFactory(z.string().nullable(), null),
|
|
287
287
|
earned_fees: chainAssetMapFactory(numberOrHex, 0),
|
|
288
|
-
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()
|
|
289
306
|
});
|
|
290
307
|
var oldValidator = z.object({
|
|
291
308
|
role: z.literal("validator"),
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainflip/rpc",
|
|
3
|
-
"version": "1.11.0-beta.
|
|
3
|
+
"version": "1.11.0-beta.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@chainflip/utils": "0.8.18",
|
|
7
7
|
"zod": "^3.25.75"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@types/node": "^24.
|
|
10
|
+
"@types/node": "^24.5.2",
|
|
11
11
|
"@types/ws": "^8.18.1",
|
|
12
12
|
"ws": "^8.18.3"
|
|
13
13
|
},
|