@chainflip/rpc 1.8.9 → 1.8.11

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/types.d.cts CHANGED
@@ -6,44 +6,54 @@ 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'>;
15
21
  type CfPoolOrders = RpcResult<'cf_pool_orders'>;
16
22
  type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
17
23
  type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
24
+ type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
18
25
  type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
19
26
  type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
20
27
  type CfSwapRate = RpcResult<'cf_swap_rate'>;
21
28
  type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
22
29
  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
30
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
31
+ type CfAccountsResponse = RpcResponse<'cf_accounts'>;
32
+ type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
27
33
  type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
28
34
  type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
29
35
  type CfBoostPoolsDepthResponse = RpcResponse<'cf_boost_pools_depth'>;
30
36
  type CfEnvironmentResponse = RpcResponse<'cf_environment'>;
37
+ type CfFailedCallArbitrumResponse = RpcResponse<'cf_failed_call_arbitrum'>;
38
+ type CfFailedCallEthereumResponse = RpcResponse<'cf_failed_call_ethereum'>;
39
+ type CfFlipSupplyResponse = RpcResponse<'cf_flip_supply'>;
31
40
  type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
32
41
  type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
42
+ type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
33
43
  type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
34
44
  type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
35
45
  type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
46
+ type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
36
47
  type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
37
48
  type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
38
49
  type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
39
50
  type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
40
51
  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
52
  type CfUnregisteredAccount = z.output<typeof unregistered>;
45
53
  type CfBrokerAccount = z.output<typeof broker>;
46
54
  type CfValidatorAccount = z.output<typeof validator>;
47
55
  type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
56
+ type LpTotalBalances = RpcResult<'lp_total_balances'>;
57
+ type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
48
58
 
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 };
59
+ 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 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,54 @@ 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'>;
15
21
  type CfPoolOrders = RpcResult<'cf_pool_orders'>;
16
22
  type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
17
23
  type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
24
+ type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
18
25
  type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
19
26
  type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
20
27
  type CfSwapRate = RpcResult<'cf_swap_rate'>;
21
28
  type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
22
29
  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
30
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
31
+ type CfAccountsResponse = RpcResponse<'cf_accounts'>;
32
+ type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
27
33
  type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
28
34
  type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
29
35
  type CfBoostPoolsDepthResponse = RpcResponse<'cf_boost_pools_depth'>;
30
36
  type CfEnvironmentResponse = RpcResponse<'cf_environment'>;
37
+ type CfFailedCallArbitrumResponse = RpcResponse<'cf_failed_call_arbitrum'>;
38
+ type CfFailedCallEthereumResponse = RpcResponse<'cf_failed_call_ethereum'>;
39
+ type CfFlipSupplyResponse = RpcResponse<'cf_flip_supply'>;
31
40
  type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
32
41
  type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
42
+ type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
33
43
  type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
34
44
  type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
35
45
  type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
46
+ type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
36
47
  type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
37
48
  type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
38
49
  type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
39
50
  type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
40
51
  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
52
  type CfUnregisteredAccount = z.output<typeof unregistered>;
45
53
  type CfBrokerAccount = z.output<typeof broker>;
46
54
  type CfValidatorAccount = z.output<typeof validator>;
47
55
  type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
56
+ type LpTotalBalances = RpcResult<'lp_total_balances'>;
57
+ type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
48
58
 
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 };
59
+ 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 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.8.9",
3
+ "version": "1.8.11",
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",
10
+ "@types/node": "^22.13.11",
11
11
  "@types/ws": "^8.18.0",
12
12
  "ws": "^8.18.1"
13
13
  },