@chainflip/rpc 2.1.0-beta.0 → 2.1.0
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/{Client.d.ts → Client.d.cts} +1 -1
- package/dist/Client.d.mts +40 -0
- package/dist/{HttpClient.d.ts → HttpClient.d.cts} +2 -2
- package/dist/HttpClient.d.mts +9 -0
- package/dist/{WsClient.d.ts → WsClient.d.cts} +2 -2
- package/dist/WsClient.d.mts +26 -0
- package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +3 -3
- package/dist/_virtual/{rolldown_runtime.mjs → _rolldown/runtime.mjs} +3 -3
- package/dist/common.cjs +1 -0
- package/dist/{common.d.ts → common.d.cts} +1 -499
- package/dist/common.d.mts +30630 -0
- package/dist/constants.cjs +3 -2
- package/dist/constants.d.mts +11 -0
- package/dist/constants.mjs +1 -1
- package/dist/index.cjs +1 -0
- package/dist/{index.d.ts → index.d.cts} +6 -6
- package/dist/index.d.mts +7 -0
- package/dist/parsers.cjs +1 -4
- package/dist/{parsers.d.ts → parsers.d.cts} +0 -684
- package/dist/parsers.d.mts +36369 -0
- package/dist/parsers.mjs +0 -4
- package/dist/{types.d.ts → types.d.cts} +2 -2
- package/dist/types.d.mts +84 -0
- package/package.json +7 -7
- /package/dist/{constants.d.ts → constants.d.cts} +0 -0
package/dist/parsers.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RpcLimitOrder, RpcRangeOrder, broker, liquidityProvider, operator, unregistered, validator } from "./parsers.
|
|
2
|
-
import { RpcMethod, RpcRequest, RpcResponse, RpcResult } from "./common.
|
|
1
|
+
import { RpcLimitOrder, RpcRangeOrder, broker, liquidityProvider, operator, unregistered, validator } from "./parsers.cjs";
|
|
2
|
+
import { RpcMethod, RpcRequest, RpcResponse, RpcResult } from "./common.cjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/types.d.ts
|
package/dist/types.d.mts
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { RpcLimitOrder, RpcRangeOrder, broker, liquidityProvider, operator, unregistered, validator } from "./parsers.mjs";
|
|
2
|
+
import { RpcMethod, RpcRequest, RpcResponse, RpcResult } from "./common.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/types.d.ts
|
|
6
|
+
type CfAccountInfo = RpcResult<'cf_account_info'>;
|
|
7
|
+
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
8
|
+
type CfAuctionState = RpcResult<'cf_auction_state'>;
|
|
9
|
+
type CfMonitoringSimulateAuction = RpcResult<'cf_monitoring_simulate_auction'>;
|
|
10
|
+
type CfAvailablePools = RpcResult<'cf_available_pools'>;
|
|
11
|
+
type CfBoostPoolDetails = RpcResult<'cf_boost_pool_details'>;
|
|
12
|
+
type CfBoostPoolPendingFees = RpcResult<'cf_boost_pool_pending_fees'>;
|
|
13
|
+
type CfBoostPoolsDepth = RpcResult<'cf_boost_pools_depth'>;
|
|
14
|
+
type CfEncodeCfParameters = RpcResult<'cf_encode_cf_parameters'>;
|
|
15
|
+
type CfEnvironment = RpcResult<'cf_environment'>;
|
|
16
|
+
type CfFailedCallArbitrum = RpcResult<'cf_failed_call_arbitrum'>;
|
|
17
|
+
type CfFailedCallEthereum = RpcResult<'cf_failed_call_ethereum'>;
|
|
18
|
+
type CfFlipSupply = RpcResult<'cf_flip_supply'>;
|
|
19
|
+
type CfFundingEnvironment = RpcResult<'cf_funding_environment'>;
|
|
20
|
+
type CfGetTradingStrategies = RpcResult<'cf_get_trading_strategies'>;
|
|
21
|
+
type CfGetTradingStrategyLimits = RpcResult<'cf_get_trading_strategy_limits'>;
|
|
22
|
+
type CfIngressEgressEnvironment = RpcResult<'cf_ingress_egress_environment'>;
|
|
23
|
+
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
24
|
+
type CfPoolOrderbook = RpcResult<'cf_pool_orderbook'>;
|
|
25
|
+
type CfPoolOrders = RpcResult<'cf_pool_orders'>;
|
|
26
|
+
type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
|
|
27
|
+
type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
|
|
28
|
+
type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
|
|
29
|
+
type CfSafeModeStatuses = RpcResult<'cf_safe_mode_statuses'>;
|
|
30
|
+
type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
|
|
31
|
+
type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
|
|
32
|
+
type CfSwapRate = RpcResult<'cf_swap_rate'>;
|
|
33
|
+
type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
|
|
34
|
+
type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
|
|
35
|
+
type CfOraclePrices = RpcResult<'cf_oracle_prices'>;
|
|
36
|
+
type CfLendingPools = RpcResult<'cf_lending_pools'>;
|
|
37
|
+
type CfLendingConfig = RpcResult<'cf_lending_config'>;
|
|
38
|
+
type CfLoanAccounts = RpcResult<'cf_loan_accounts'>;
|
|
39
|
+
type CfLendingPoolSupplyBalances = RpcResult<'cf_lending_pool_supply_balances'>;
|
|
40
|
+
type CfVaultAddresses = RpcResult<'cf_get_vault_addresses'>;
|
|
41
|
+
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
42
|
+
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
43
|
+
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
44
|
+
type CfMonitoringSimulateAuctionResponse = RpcResponse<'cf_monitoring_simulate_auction'>;
|
|
45
|
+
type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
|
|
46
|
+
type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
|
|
47
|
+
type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
|
|
48
|
+
type CfBoostPoolsDepthResponse = RpcResponse<'cf_boost_pools_depth'>;
|
|
49
|
+
type CfEncodeCfParametersResponse = RpcResponse<'cf_encode_cf_parameters'>;
|
|
50
|
+
type CfEnvironmentResponse = RpcResponse<'cf_environment'>;
|
|
51
|
+
type CfFailedCallArbitrumResponse = RpcResponse<'cf_failed_call_arbitrum'>;
|
|
52
|
+
type CfFailedCallEthereumResponse = RpcResponse<'cf_failed_call_ethereum'>;
|
|
53
|
+
type CfFlipSupplyResponse = RpcResponse<'cf_flip_supply'>;
|
|
54
|
+
type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
|
|
55
|
+
type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
|
|
56
|
+
type CfGetTradingStrategyLimitsResponse = RpcResponse<'cf_get_trading_strategy_limits'>;
|
|
57
|
+
type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
|
|
58
|
+
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
59
|
+
type CfPoolOrderbookResponse = RpcResponse<'cf_pool_orderbook'>;
|
|
60
|
+
type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
|
|
61
|
+
type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
|
|
62
|
+
type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
|
|
63
|
+
type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
|
|
64
|
+
type CfSafeModeStatusesResponse = RpcResponse<'cf_safe_mode_statuses'>;
|
|
65
|
+
type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
|
|
66
|
+
type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
|
|
67
|
+
type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
|
|
68
|
+
type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
69
|
+
type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
70
|
+
type CfOraclePricesResponse = RpcResponse<'cf_oracle_prices'>;
|
|
71
|
+
type CfLendingPoolsResponse = RpcResponse<'cf_lending_pools'>;
|
|
72
|
+
type CfLendingConfigResponse = RpcResponse<'cf_lending_config'>;
|
|
73
|
+
type CfLoanAccountsResponse = RpcResponse<'cf_loan_accounts'>;
|
|
74
|
+
type CfLendingPoolSupplyBalancesResponse = RpcResponse<'cf_lending_pool_supply_balances'>;
|
|
75
|
+
type CfVaultAddressesResponse = RpcResponse<'cf_get_vault_addresses'>;
|
|
76
|
+
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
77
|
+
type CfBrokerAccount = z.output<typeof broker>;
|
|
78
|
+
type CfValidatorAccount = z.output<typeof validator>;
|
|
79
|
+
type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
80
|
+
type CfOperatorAccount = z.output<typeof operator>;
|
|
81
|
+
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
82
|
+
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
83
|
+
//#endregion
|
|
84
|
+
export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEncodeCfParameters, CfEncodeCfParametersResponse, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, CfGetTradingStrategyLimits, CfGetTradingStrategyLimitsResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLendingConfig, CfLendingConfigResponse, CfLendingPoolSupplyBalances, CfLendingPoolSupplyBalancesResponse, CfLendingPools, CfLendingPoolsResponse, CfLiquidityProviderAccount, CfLoanAccounts, CfLoanAccountsResponse, CfMonitoringSimulateAuction, CfMonitoringSimulateAuctionResponse, CfOperatorAccount, CfOraclePrices, CfOraclePricesResponse, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSafeModeStatuses, CfSafeModeStatusesResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, CfVaultAddresses, CfVaultAddressesResponse, LpTotalBalances, LpTotalBalancesResponse, type RpcLimitOrder, type RpcMethod, type RpcRequest as RpcParams, type RpcRangeOrder, type RpcResult };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainflip/rpc",
|
|
3
|
-
"version": "2.1.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@chainflip/utils": "
|
|
6
|
+
"@chainflip/utils": "2.1.0",
|
|
7
7
|
"zod": "^3.25.75"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@types/node": "^25.
|
|
10
|
+
"@types/node": "^25.2.3",
|
|
11
11
|
"@types/ws": "^8.18.1",
|
|
12
12
|
"ws": "^8.19.0"
|
|
13
13
|
},
|
|
@@ -18,21 +18,21 @@
|
|
|
18
18
|
"exports": {
|
|
19
19
|
"./*": {
|
|
20
20
|
"require": {
|
|
21
|
-
"types": "./dist/*.d.
|
|
21
|
+
"types": "./dist/*.d.cts",
|
|
22
22
|
"default": "./dist/*.cjs"
|
|
23
23
|
},
|
|
24
24
|
"import": {
|
|
25
|
-
"types": "./dist/*.d.
|
|
25
|
+
"types": "./dist/*.d.mts",
|
|
26
26
|
"default": "./dist/*.mjs"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
".": {
|
|
30
30
|
"require": {
|
|
31
|
-
"types": "./dist/index.d.
|
|
31
|
+
"types": "./dist/index.d.cts",
|
|
32
32
|
"default": "./dist/index.cjs"
|
|
33
33
|
},
|
|
34
34
|
"import": {
|
|
35
|
-
"types": "./dist/index.d.
|
|
35
|
+
"types": "./dist/index.d.mts",
|
|
36
36
|
"default": "./dist/index.mjs"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
File without changes
|