@chainflip/rpc 1.9.0-assethub.2 → 1.9.1
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.cjs +17 -1
- package/dist/common.d.cts +763 -457
- package/dist/common.d.ts +763 -457
- package/dist/common.mjs +18 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/parsers.cjs +42 -19
- package/dist/parsers.d.cts +1070 -583
- package/dist/parsers.d.ts +1070 -583
- package/dist/parsers.mjs +42 -19
- package/dist/types.d.cts +19 -7
- package/dist/types.d.ts +19 -7
- package/package.json +2 -2
package/dist/parsers.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/parsers.ts
|
|
2
|
-
import {
|
|
2
|
+
import { isUndefined } from "@chainflip/utils/guard";
|
|
3
3
|
import { isHex } from "@chainflip/utils/string";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
var hexString = z.string().refine(isHex, { message: "Invalid hex string" });
|
|
@@ -11,11 +11,7 @@ var chainAssetMapFactory = (parser, defaultValue) => z.object({
|
|
|
11
11
|
Polkadot: z.object({ DOT: parser }),
|
|
12
12
|
Arbitrum: z.object({ ETH: parser, USDC: parser }),
|
|
13
13
|
Solana: z.object({ SOL: parser, USDC: parser }),
|
|
14
|
-
Assethub: z.object({
|
|
15
|
-
DOT: parser.default(defaultValue),
|
|
16
|
-
USDC: parser.default(defaultValue),
|
|
17
|
-
USDT: parser.default(defaultValue)
|
|
18
|
-
})
|
|
14
|
+
Assethub: z.object({ DOT: parser, USDC: parser, USDT: parser }).default({ DOT: defaultValue, USDC: defaultValue, USDT: defaultValue })
|
|
19
15
|
});
|
|
20
16
|
var chainBaseAssetMapFactory = (parser, defaultValue) => z.object({
|
|
21
17
|
Bitcoin: z.object({ BTC: parser }),
|
|
@@ -23,11 +19,7 @@ var chainBaseAssetMapFactory = (parser, defaultValue) => z.object({
|
|
|
23
19
|
Polkadot: z.object({ DOT: parser }),
|
|
24
20
|
Arbitrum: z.object({ ETH: parser, USDC: parser }),
|
|
25
21
|
Solana: z.object({ SOL: parser, USDC: parser }),
|
|
26
|
-
Assethub: z.object({
|
|
27
|
-
DOT: parser.default(defaultValue),
|
|
28
|
-
USDC: parser.default(defaultValue),
|
|
29
|
-
USDT: parser.default(defaultValue)
|
|
30
|
-
})
|
|
22
|
+
Assethub: z.object({ DOT: parser, USDC: parser, USDT: parser }).default({ DOT: defaultValue, USDC: defaultValue, USDT: defaultValue })
|
|
31
23
|
});
|
|
32
24
|
var chainMapFactory = (parser, defaultValue) => z.object({
|
|
33
25
|
Bitcoin: parser,
|
|
@@ -62,8 +54,8 @@ var rpcBaseResponse = z.object({
|
|
|
62
54
|
id: z.string(),
|
|
63
55
|
jsonrpc: z.literal("2.0")
|
|
64
56
|
});
|
|
65
|
-
var
|
|
66
|
-
var rpcSuccessResponse = rpcBaseResponse.extend({ result:
|
|
57
|
+
var notUndefined = z.any().refine((v) => !isUndefined(v), { message: "Value must not be undefined" });
|
|
58
|
+
var rpcSuccessResponse = rpcBaseResponse.extend({ result: notUndefined });
|
|
67
59
|
var rpcErrorResponse = rpcBaseResponse.extend({
|
|
68
60
|
error: z.object({ code: z.number(), message: z.string() })
|
|
69
61
|
});
|
|
@@ -102,8 +94,7 @@ var cfIngressEgressEnvironment = z.object({
|
|
|
102
94
|
witness_safety_margins: chainMapFactory(z.number().nullable(), null),
|
|
103
95
|
egress_dust_limits: chainAssetMapFactory(numberOrHex, 0),
|
|
104
96
|
channel_opening_fees: chainMapFactory(numberOrHex, 0),
|
|
105
|
-
|
|
106
|
-
max_swap_retry_duration_blocks: chainMapFactory(z.number(), 0).optional().default({ Arbitrum: 0, Bitcoin: 0, Ethereum: 0, Polkadot: 0, Solana: 0 })
|
|
97
|
+
max_swap_retry_duration_blocks: chainMapFactory(z.number(), 0)
|
|
107
98
|
}).transform(rename({ egress_dust_limits: "minimum_egress_amounts" }));
|
|
108
99
|
var cfSwappingEnvironment = z.object({
|
|
109
100
|
maximum_swap_amounts: chainAssetMapFactory(numberOrHex.nullable(), null),
|
|
@@ -200,13 +191,18 @@ var requestSwapParameterEncoding = z.discriminatedUnion("chain", [
|
|
|
200
191
|
]);
|
|
201
192
|
var unregistered = z.object({
|
|
202
193
|
role: z.literal("unregistered"),
|
|
203
|
-
flip_balance: numberOrHex
|
|
194
|
+
flip_balance: numberOrHex,
|
|
195
|
+
asset_balances: chainAssetMapFactory(numberOrHex, 0)
|
|
204
196
|
});
|
|
205
197
|
var broker = z.object({
|
|
206
198
|
role: z.literal("broker"),
|
|
199
|
+
bond: numberOrHex,
|
|
207
200
|
flip_balance: numberOrHex,
|
|
208
201
|
earned_fees: chainAssetMapFactory(numberOrHex, 0),
|
|
209
|
-
btc_vault_deposit_address: z.string().nullable().optional()
|
|
202
|
+
btc_vault_deposit_address: z.string().nullable().optional(),
|
|
203
|
+
affiliates: z.array(
|
|
204
|
+
z.object({ account_id: z.string(), short_id: z.number(), withdrawal_address: hexString })
|
|
205
|
+
).optional().default([])
|
|
210
206
|
});
|
|
211
207
|
var boostBalances = z.array(
|
|
212
208
|
z.object({
|
|
@@ -298,14 +294,14 @@ var cfBoostPoolDetails = z.array(
|
|
|
298
294
|
available_amounts: z.array(boostPoolAmount),
|
|
299
295
|
deposits_pending_finalization: z.array(
|
|
300
296
|
z.object({
|
|
301
|
-
deposit_id:
|
|
297
|
+
deposit_id: numberOrHex,
|
|
302
298
|
owed_amounts: z.array(boostPoolAmount)
|
|
303
299
|
})
|
|
304
300
|
),
|
|
305
301
|
pending_withdrawals: z.array(
|
|
306
302
|
z.object({
|
|
307
303
|
account_id: z.string(),
|
|
308
|
-
pending_deposits: z.array(
|
|
304
|
+
pending_deposits: z.array(numberOrHex)
|
|
309
305
|
})
|
|
310
306
|
),
|
|
311
307
|
network_fee_deduction_percent: z.number().optional()
|
|
@@ -327,18 +323,44 @@ var cfBoostPoolPendingFees = z.array(
|
|
|
327
323
|
)
|
|
328
324
|
);
|
|
329
325
|
var lpTotalBalances = chainAssetMapFactory(numberOrHex, 0);
|
|
326
|
+
var cfFailedCallEvm = z.object({
|
|
327
|
+
contract: hexString,
|
|
328
|
+
data: z.string()
|
|
329
|
+
});
|
|
330
|
+
var range = (parser) => z.tuple([parser, parser]);
|
|
331
|
+
var cfAuctionState = z.object({
|
|
332
|
+
epoch_duration: z.number(),
|
|
333
|
+
current_epoch_started_at: z.number(),
|
|
334
|
+
redemption_period_as_percentage: z.number(),
|
|
335
|
+
min_funding: numberOrHex,
|
|
336
|
+
auction_size_range: range(z.number()),
|
|
337
|
+
min_active_bid: numberOrHex
|
|
338
|
+
}).transform(rename({ epoch_duration: "epoch_duration_blocks" }));
|
|
339
|
+
var cfFlipSuppy = range(numberOrHex).transform(([totalIssuance, offchainFunds]) => ({
|
|
340
|
+
totalIssuance,
|
|
341
|
+
offchainFunds
|
|
342
|
+
}));
|
|
343
|
+
var ethereumAddress = z.string().transform((address) => `0x${address}`);
|
|
344
|
+
var cfPoolOrderbook = z.object({
|
|
345
|
+
bids: z.array(z.object({ amount: u256, sqrt_price: u256 })),
|
|
346
|
+
asks: z.array(z.object({ amount: u256, sqrt_price: u256 }))
|
|
347
|
+
});
|
|
330
348
|
export {
|
|
331
349
|
broker,
|
|
332
350
|
brokerRequestSwapDepositAddress,
|
|
333
351
|
cfAccountInfo,
|
|
334
352
|
cfAccounts,
|
|
353
|
+
cfAuctionState,
|
|
335
354
|
cfBoostPoolDetails,
|
|
336
355
|
cfBoostPoolPendingFees,
|
|
337
356
|
cfBoostPoolsDepth,
|
|
338
357
|
cfEnvironment,
|
|
358
|
+
cfFailedCallEvm,
|
|
359
|
+
cfFlipSuppy,
|
|
339
360
|
cfFundingEnvironment,
|
|
340
361
|
cfIngressEgressEnvironment,
|
|
341
362
|
cfPoolDepth,
|
|
363
|
+
cfPoolOrderbook,
|
|
342
364
|
cfPoolOrders,
|
|
343
365
|
cfPoolPriceV2,
|
|
344
366
|
cfPoolsEnvironment,
|
|
@@ -348,6 +370,7 @@ export {
|
|
|
348
370
|
cfSwapRateV3,
|
|
349
371
|
cfSwappingEnvironment,
|
|
350
372
|
chainGetBlockHash,
|
|
373
|
+
ethereumAddress,
|
|
351
374
|
hexString,
|
|
352
375
|
liquidityProvider,
|
|
353
376
|
lpTotalBalances,
|
package/dist/types.d.cts
CHANGED
|
@@ -6,44 +6,56 @@ export { RpcLimitOrder, RpcRangeOrder } from './parsers.cjs';
|
|
|
6
6
|
import '@chainflip/utils/types';
|
|
7
7
|
|
|
8
8
|
type CfAccountInfo = RpcResult<'cf_account_info'>;
|
|
9
|
+
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
10
|
+
type CfAuctionState = RpcResult<'cf_auction_state'>;
|
|
9
11
|
type CfBoostPoolDetails = RpcResult<'cf_boost_pool_details'>;
|
|
10
12
|
type CfBoostPoolPendingFees = RpcResult<'cf_boost_pool_pending_fees'>;
|
|
11
13
|
type CfBoostPoolsDepth = RpcResult<'cf_boost_pools_depth'>;
|
|
12
14
|
type CfEnvironment = RpcResult<'cf_environment'>;
|
|
15
|
+
type CfFailedCallArbitrum = RpcResult<'cf_failed_call_arbitrum'>;
|
|
16
|
+
type CfFailedCallEthereum = RpcResult<'cf_failed_call_ethereum'>;
|
|
17
|
+
type CfFlipSupply = RpcResult<'cf_flip_supply'>;
|
|
13
18
|
type CfFundingEnvironment = RpcResult<'cf_funding_environment'>;
|
|
14
19
|
type CfIngressEgressEnvironment = RpcResult<'cf_ingress_egress_environment'>;
|
|
20
|
+
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
21
|
+
type CfPoolOrderbook = RpcResult<'cf_pool_orderbook'>;
|
|
15
22
|
type CfPoolOrders = RpcResult<'cf_pool_orders'>;
|
|
16
23
|
type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
|
|
17
24
|
type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
|
|
25
|
+
type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
|
|
18
26
|
type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
|
|
19
27
|
type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
|
|
20
28
|
type CfSwapRate = RpcResult<'cf_swap_rate'>;
|
|
21
29
|
type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
|
|
22
30
|
type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
|
|
23
|
-
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
24
|
-
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
25
|
-
type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
|
|
26
31
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
32
|
+
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
33
|
+
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
27
34
|
type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
|
|
28
35
|
type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
|
|
29
36
|
type CfBoostPoolsDepthResponse = RpcResponse<'cf_boost_pools_depth'>;
|
|
30
37
|
type CfEnvironmentResponse = RpcResponse<'cf_environment'>;
|
|
38
|
+
type CfFailedCallArbitrumResponse = RpcResponse<'cf_failed_call_arbitrum'>;
|
|
39
|
+
type CfFailedCallEthereumResponse = RpcResponse<'cf_failed_call_ethereum'>;
|
|
40
|
+
type CfFlipSupplyResponse = RpcResponse<'cf_flip_supply'>;
|
|
31
41
|
type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
|
|
32
42
|
type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
|
|
43
|
+
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
44
|
+
type CfPoolOrderbookResponse = RpcResponse<'cf_pool_orderbook'>;
|
|
33
45
|
type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
|
|
34
46
|
type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
|
|
35
47
|
type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
|
|
48
|
+
type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
|
|
36
49
|
type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
|
|
37
50
|
type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
|
|
38
51
|
type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
|
|
39
52
|
type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
40
53
|
type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
41
|
-
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
42
|
-
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
43
|
-
type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
|
|
44
54
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
45
55
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
46
56
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
47
57
|
type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
58
|
+
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
59
|
+
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
48
60
|
|
|
49
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
|
|
61
|
+
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrderbook, type CfPoolOrderbookResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
|
package/dist/types.d.ts
CHANGED
|
@@ -6,44 +6,56 @@ export { RpcLimitOrder, RpcRangeOrder } from './parsers.js';
|
|
|
6
6
|
import '@chainflip/utils/types';
|
|
7
7
|
|
|
8
8
|
type CfAccountInfo = RpcResult<'cf_account_info'>;
|
|
9
|
+
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
10
|
+
type CfAuctionState = RpcResult<'cf_auction_state'>;
|
|
9
11
|
type CfBoostPoolDetails = RpcResult<'cf_boost_pool_details'>;
|
|
10
12
|
type CfBoostPoolPendingFees = RpcResult<'cf_boost_pool_pending_fees'>;
|
|
11
13
|
type CfBoostPoolsDepth = RpcResult<'cf_boost_pools_depth'>;
|
|
12
14
|
type CfEnvironment = RpcResult<'cf_environment'>;
|
|
15
|
+
type CfFailedCallArbitrum = RpcResult<'cf_failed_call_arbitrum'>;
|
|
16
|
+
type CfFailedCallEthereum = RpcResult<'cf_failed_call_ethereum'>;
|
|
17
|
+
type CfFlipSupply = RpcResult<'cf_flip_supply'>;
|
|
13
18
|
type CfFundingEnvironment = RpcResult<'cf_funding_environment'>;
|
|
14
19
|
type CfIngressEgressEnvironment = RpcResult<'cf_ingress_egress_environment'>;
|
|
20
|
+
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
21
|
+
type CfPoolOrderbook = RpcResult<'cf_pool_orderbook'>;
|
|
15
22
|
type CfPoolOrders = RpcResult<'cf_pool_orders'>;
|
|
16
23
|
type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
|
|
17
24
|
type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
|
|
25
|
+
type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
|
|
18
26
|
type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
|
|
19
27
|
type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
|
|
20
28
|
type CfSwapRate = RpcResult<'cf_swap_rate'>;
|
|
21
29
|
type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
|
|
22
30
|
type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
|
|
23
|
-
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
24
|
-
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
25
|
-
type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
|
|
26
31
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
32
|
+
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
33
|
+
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
27
34
|
type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
|
|
28
35
|
type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
|
|
29
36
|
type CfBoostPoolsDepthResponse = RpcResponse<'cf_boost_pools_depth'>;
|
|
30
37
|
type CfEnvironmentResponse = RpcResponse<'cf_environment'>;
|
|
38
|
+
type CfFailedCallArbitrumResponse = RpcResponse<'cf_failed_call_arbitrum'>;
|
|
39
|
+
type CfFailedCallEthereumResponse = RpcResponse<'cf_failed_call_ethereum'>;
|
|
40
|
+
type CfFlipSupplyResponse = RpcResponse<'cf_flip_supply'>;
|
|
31
41
|
type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
|
|
32
42
|
type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
|
|
43
|
+
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
44
|
+
type CfPoolOrderbookResponse = RpcResponse<'cf_pool_orderbook'>;
|
|
33
45
|
type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
|
|
34
46
|
type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
|
|
35
47
|
type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
|
|
48
|
+
type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
|
|
36
49
|
type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
|
|
37
50
|
type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
|
|
38
51
|
type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
|
|
39
52
|
type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
40
53
|
type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
41
|
-
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
42
|
-
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
43
|
-
type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
|
|
44
54
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
45
55
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
46
56
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
47
57
|
type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
58
|
+
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
59
|
+
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
48
60
|
|
|
49
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
|
|
61
|
+
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrderbook, type CfPoolOrderbookResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainflip/rpc",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
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
|
},
|