@chainflip/rpc 2.0.6 → 2.0.7-wbtc-dev.2
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.cjs +88 -91
- package/dist/Client.d.ts +30 -33
- package/dist/Client.mjs +87 -90
- package/dist/HttpClient.cjs +33 -32
- package/dist/HttpClient.d.ts +6 -10
- package/dist/HttpClient.mjs +32 -31
- package/dist/WsClient.cjs +119 -124
- package/dist/WsClient.d.ts +23 -24
- package/dist/WsClient.mjs +117 -122
- package/dist/_virtual/rolldown_runtime.cjs +19 -0
- package/dist/_virtual/rolldown_runtime.mjs +18 -0
- package/dist/common.cjs +55 -98
- package/dist/common.d.ts +30490 -26307
- package/dist/common.mjs +54 -98
- package/dist/constants.cjs +16 -7
- package/dist/constants.d.ts +11 -1
- package/dist/constants.mjs +12 -9
- package/dist/index.cjs +12 -10
- package/dist/index.d.ts +7 -11
- package/dist/index.mjs +5 -10
- package/dist/parsers.cjs +794 -748
- package/dist/parsers.d.ts +36279 -31213
- package/dist/parsers.mjs +738 -744
- package/dist/types.cjs +0 -1
- package/dist/types.d.ts +6 -9
- package/dist/types.mjs +1 -0
- package/package.json +7 -7
- package/dist/Client.d.cts +0 -43
- package/dist/HttpClient.d.cts +0 -13
- package/dist/WsClient.d.cts +0 -27
- package/dist/common.d.cts +0 -26945
- package/dist/constants-jLrn-AnI.d.cts +0 -13
- package/dist/constants-jLrn-AnI.d.ts +0 -13
- package/dist/constants.d.cts +0 -1
- package/dist/index.d.cts +0 -11
- package/dist/parsers.d.cts +0 -31987
- package/dist/types.d.cts +0 -87
package/dist/common.mjs
CHANGED
|
@@ -1,100 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
import { brokerRequestAccountCreationDepositAddress, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfLendingConfig, cfLendingPoolSupplyBalances, cfLendingPools, cfLoanAccounts, cfMonitoringSimulateAuction, cfOraclePrices, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfVaultAddresses, chainGetBlockHash, ethereumAddress, hexString, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion } from "./parsers.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
cf_accounts: cfAccounts,
|
|
54
|
-
cf_account_info: cfAccountInfo,
|
|
55
|
-
cf_pool_depth: cfPoolDepth,
|
|
56
|
-
cf_boost_pools_depth: cfBoostPoolsDepth,
|
|
57
|
-
cf_environment: cfEnvironment,
|
|
58
|
-
cf_funding_environment: cfFundingEnvironment,
|
|
59
|
-
cf_ingress_egress_environment: cfIngressEgressEnvironment,
|
|
60
|
-
cf_pool_orders: cfPoolOrders,
|
|
61
|
-
cf_pool_price_v2: cfPoolPriceV2,
|
|
62
|
-
cf_pools_environment: cfPoolsEnvironment,
|
|
63
|
-
cf_supported_assets: cfSupportedAssets,
|
|
64
|
-
cf_swap_rate: cfSwapRate,
|
|
65
|
-
cf_swap_rate_v2: cfSwapRateV2,
|
|
66
|
-
cf_swap_rate_v3: cfSwapRateV3,
|
|
67
|
-
cf_swapping_environment: cfSwappingEnvironment,
|
|
68
|
-
chain_getBlockHash: chainGetBlockHash,
|
|
69
|
-
cf_boost_pool_details: cfBoostPoolDetails,
|
|
70
|
-
cf_boost_pool_pending_fees: cfBoostPoolPendingFees,
|
|
71
|
-
state_getMetadata: stateGetMetadata,
|
|
72
|
-
state_getRuntimeVersion: stateGetRuntimeVersion,
|
|
73
|
-
lp_total_balances: lpTotalBalances,
|
|
74
|
-
cf_failed_call_ethereum: cfFailedCallEvm.nullable(),
|
|
75
|
-
cf_failed_call_arbitrum: cfFailedCallEvm.nullable(),
|
|
76
|
-
cf_authority_emission_per_block: numberOrHex,
|
|
77
|
-
cf_epoch_duration: z.number(),
|
|
78
|
-
cf_auction_state: cfAuctionState,
|
|
79
|
-
cf_monitoring_simulate_auction: cfMonitoringSimulateAuction,
|
|
80
|
-
cf_flip_supply: cfFlipSuppy,
|
|
81
|
-
cf_eth_state_chain_gateway_address: ethereumAddress.nullable(),
|
|
82
|
-
cf_eth_key_manager_address: ethereumAddress.nullable(),
|
|
83
|
-
cf_pool_orderbook: cfPoolOrderbook,
|
|
84
|
-
cf_get_trading_strategies: cfGetTradingStrategies,
|
|
85
|
-
cf_get_trading_strategy_limits: cfGetTradingStrategyLimits,
|
|
86
|
-
cf_available_pools: cfAvailablePools,
|
|
87
|
-
cf_safe_mode_statuses: cfSafeModeStatuses,
|
|
88
|
-
broker_encode_cf_parameters: hexString,
|
|
89
|
-
cf_encode_cf_parameters: hexString,
|
|
90
|
-
cf_oracle_prices: cfOraclePrices,
|
|
91
|
-
cf_lending_pools: cfLendingPools,
|
|
92
|
-
cf_lending_config: cfLendingConfig,
|
|
93
|
-
cf_loan_accounts: cfLoanAccounts,
|
|
94
|
-
cf_lending_pool_supply_balances: cfLendingPoolSupplyBalances,
|
|
95
|
-
cf_get_vault_addresses: cfVaultAddresses
|
|
96
|
-
};
|
|
97
|
-
export {
|
|
98
|
-
rpcResponse,
|
|
99
|
-
rpcResult
|
|
3
|
+
|
|
4
|
+
//#region src/common.ts
|
|
5
|
+
const rpcResult = {
|
|
6
|
+
broker_request_swap_deposit_address: brokerRequestSwapDepositAddress,
|
|
7
|
+
broker_request_account_creation_deposit_address: brokerRequestAccountCreationDepositAddress,
|
|
8
|
+
broker_request_swap_parameter_encoding: requestSwapParameterEncoding,
|
|
9
|
+
cf_request_swap_parameter_encoding: requestSwapParameterEncoding,
|
|
10
|
+
cf_accounts: cfAccounts,
|
|
11
|
+
cf_account_info: cfAccountInfo,
|
|
12
|
+
cf_pool_depth: cfPoolDepth,
|
|
13
|
+
cf_boost_pools_depth: cfBoostPoolsDepth,
|
|
14
|
+
cf_environment: cfEnvironment,
|
|
15
|
+
cf_funding_environment: cfFundingEnvironment,
|
|
16
|
+
cf_ingress_egress_environment: cfIngressEgressEnvironment,
|
|
17
|
+
cf_pool_orders: cfPoolOrders,
|
|
18
|
+
cf_pool_price_v2: cfPoolPriceV2,
|
|
19
|
+
cf_pools_environment: cfPoolsEnvironment,
|
|
20
|
+
cf_supported_assets: cfSupportedAssets,
|
|
21
|
+
cf_swap_rate: cfSwapRate,
|
|
22
|
+
cf_swap_rate_v2: cfSwapRateV2,
|
|
23
|
+
cf_swap_rate_v3: cfSwapRateV3,
|
|
24
|
+
cf_swapping_environment: cfSwappingEnvironment,
|
|
25
|
+
chain_getBlockHash: chainGetBlockHash,
|
|
26
|
+
cf_boost_pool_details: cfBoostPoolDetails,
|
|
27
|
+
cf_boost_pool_pending_fees: cfBoostPoolPendingFees,
|
|
28
|
+
state_getMetadata: stateGetMetadata,
|
|
29
|
+
state_getRuntimeVersion: stateGetRuntimeVersion,
|
|
30
|
+
lp_total_balances: lpTotalBalances,
|
|
31
|
+
cf_failed_call_ethereum: cfFailedCallEvm.nullable(),
|
|
32
|
+
cf_failed_call_arbitrum: cfFailedCallEvm.nullable(),
|
|
33
|
+
cf_authority_emission_per_block: numberOrHex,
|
|
34
|
+
cf_epoch_duration: z.number(),
|
|
35
|
+
cf_auction_state: cfAuctionState,
|
|
36
|
+
cf_monitoring_simulate_auction: cfMonitoringSimulateAuction,
|
|
37
|
+
cf_flip_supply: cfFlipSuppy,
|
|
38
|
+
cf_eth_state_chain_gateway_address: ethereumAddress.nullable(),
|
|
39
|
+
cf_eth_key_manager_address: ethereumAddress.nullable(),
|
|
40
|
+
cf_pool_orderbook: cfPoolOrderbook,
|
|
41
|
+
cf_get_trading_strategies: cfGetTradingStrategies,
|
|
42
|
+
cf_get_trading_strategy_limits: cfGetTradingStrategyLimits,
|
|
43
|
+
cf_available_pools: cfAvailablePools,
|
|
44
|
+
cf_safe_mode_statuses: cfSafeModeStatuses,
|
|
45
|
+
broker_encode_cf_parameters: hexString,
|
|
46
|
+
cf_encode_cf_parameters: hexString,
|
|
47
|
+
cf_oracle_prices: cfOraclePrices,
|
|
48
|
+
cf_lending_pools: cfLendingPools,
|
|
49
|
+
cf_lending_config: cfLendingConfig,
|
|
50
|
+
cf_loan_accounts: cfLoanAccounts,
|
|
51
|
+
cf_lending_pool_supply_balances: cfLendingPoolSupplyBalances,
|
|
52
|
+
cf_get_vault_addresses: cfVaultAddresses
|
|
100
53
|
};
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
export { rpcResponse, rpcResult };
|
package/dist/constants.cjs
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
var PUBLIC_RPC_ENDPOINTS = {
|
|
3
|
-
mainnet: "https://rpc.mainnet.chainflip.io",
|
|
4
|
-
perseverance: "https://archive.perseverance.chainflip.io",
|
|
5
|
-
sisyphos: "https://archive.sisyphos.chainflip.io",
|
|
6
|
-
backspin: "https://rpc.backspin.chainflip.io"
|
|
7
|
-
};
|
|
1
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
8
2
|
|
|
3
|
+
//#region src/constants.ts
|
|
4
|
+
var constants_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({ PUBLIC_RPC_ENDPOINTS: () => PUBLIC_RPC_ENDPOINTS });
|
|
5
|
+
const PUBLIC_RPC_ENDPOINTS = {
|
|
6
|
+
mainnet: "https://rpc.mainnet.chainflip.io",
|
|
7
|
+
perseverance: "https://archive.perseverance.chainflip.io",
|
|
8
|
+
sisyphos: "https://archive.sisyphos.chainflip.io",
|
|
9
|
+
backspin: "https://rpc.backspin.chainflip.io"
|
|
10
|
+
};
|
|
9
11
|
|
|
12
|
+
//#endregion
|
|
10
13
|
exports.PUBLIC_RPC_ENDPOINTS = PUBLIC_RPC_ENDPOINTS;
|
|
14
|
+
Object.defineProperty(exports, 'constants_exports', {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return constants_exports;
|
|
18
|
+
}
|
|
19
|
+
});
|
package/dist/constants.d.ts
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
declare namespace constants_d_exports {
|
|
2
|
+
export { PUBLIC_RPC_ENDPOINTS };
|
|
3
|
+
}
|
|
4
|
+
declare const PUBLIC_RPC_ENDPOINTS: {
|
|
5
|
+
mainnet: string;
|
|
6
|
+
perseverance: string;
|
|
7
|
+
sisyphos: string;
|
|
8
|
+
backspin: string;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { PUBLIC_RPC_ENDPOINTS, constants_d_exports };
|
package/dist/constants.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { __exportAll } from "./_virtual/rolldown_runtime.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/constants.ts
|
|
4
|
+
var constants_exports = /* @__PURE__ */ __exportAll({ PUBLIC_RPC_ENDPOINTS: () => PUBLIC_RPC_ENDPOINTS });
|
|
5
|
+
const PUBLIC_RPC_ENDPOINTS = {
|
|
6
|
+
mainnet: "https://rpc.mainnet.chainflip.io",
|
|
7
|
+
perseverance: "https://archive.perseverance.chainflip.io",
|
|
8
|
+
sisyphos: "https://archive.sisyphos.chainflip.io",
|
|
9
|
+
backspin: "https://rpc.backspin.chainflip.io"
|
|
10
10
|
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { PUBLIC_RPC_ENDPOINTS, constants_exports };
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
const require_HttpClient = require('./HttpClient.cjs');
|
|
2
|
+
const require_WsClient = require('./WsClient.cjs');
|
|
3
|
+
const require_constants = require('./constants.cjs');
|
|
4
|
+
|
|
5
|
+
exports.HttpClient = require_HttpClient;
|
|
6
|
+
exports.WsClient = require_WsClient;
|
|
7
|
+
Object.defineProperty(exports, 'constants', {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return require_constants.constants_exports;
|
|
11
|
+
}
|
|
12
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import '@chainflip/utils/async';
|
|
9
|
-
import 'zod';
|
|
10
|
-
import '@chainflip/utils/chainflip';
|
|
11
|
-
import '@chainflip/utils/types';
|
|
1
|
+
import { RpcLimitOrder, RpcRangeOrder } from "./parsers.js";
|
|
2
|
+
import { RpcMethod, RpcRequest, RpcResult } from "./common.js";
|
|
3
|
+
import HttpClient from "./HttpClient.js";
|
|
4
|
+
import WsClient from "./WsClient.js";
|
|
5
|
+
import { constants_d_exports } from "./constants.js";
|
|
6
|
+
import { 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 } from "./types.js";
|
|
7
|
+
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, HttpClient, LpTotalBalances, LpTotalBalancesResponse, RpcLimitOrder, RpcMethod, RpcRequest as RpcParams, RpcRangeOrder, RpcResult, WsClient, constants_d_exports as constants };
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
default2 as HttpClient,
|
|
8
|
-
default3 as WsClient,
|
|
9
|
-
constants
|
|
10
|
-
};
|
|
1
|
+
import HttpClient from "./HttpClient.mjs";
|
|
2
|
+
import WsClient from "./WsClient.mjs";
|
|
3
|
+
import { constants_exports } from "./constants.mjs";
|
|
4
|
+
|
|
5
|
+
export { HttpClient, WsClient, constants_exports as constants };
|