@chainflip/rpc 2.0.7 → 2.1.0-beta.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.
Files changed (44) hide show
  1. package/dist/Client.cjs +88 -91
  2. package/dist/Client.d.cts +30 -33
  3. package/dist/Client.d.mts +40 -0
  4. package/dist/Client.mjs +87 -90
  5. package/dist/HttpClient.cjs +33 -32
  6. package/dist/HttpClient.d.cts +5 -10
  7. package/dist/HttpClient.d.mts +9 -0
  8. package/dist/HttpClient.mjs +32 -31
  9. package/dist/WsClient.cjs +119 -124
  10. package/dist/WsClient.d.cts +22 -24
  11. package/dist/WsClient.d.mts +26 -0
  12. package/dist/WsClient.mjs +117 -122
  13. package/dist/_virtual/rolldown_runtime.cjs +19 -0
  14. package/dist/_virtual/rolldown_runtime.mjs +18 -0
  15. package/dist/common.cjs +55 -98
  16. package/dist/common.d.cts +30509 -26329
  17. package/dist/common.d.mts +31128 -0
  18. package/dist/common.mjs +54 -98
  19. package/dist/constants.cjs +16 -7
  20. package/dist/constants.d.cts +11 -1
  21. package/dist/constants.d.mts +11 -0
  22. package/dist/constants.mjs +12 -9
  23. package/dist/index.cjs +12 -10
  24. package/dist/index.d.cts +7 -11
  25. package/dist/index.d.mts +7 -0
  26. package/dist/index.mjs +5 -10
  27. package/dist/parsers.cjs +794 -750
  28. package/dist/parsers.d.cts +36279 -31216
  29. package/dist/parsers.d.mts +37053 -0
  30. package/dist/parsers.mjs +738 -746
  31. package/dist/types.cjs +0 -1
  32. package/dist/types.d.cts +6 -9
  33. package/dist/{types.d.ts → types.d.mts} +6 -9
  34. package/dist/types.mjs +1 -0
  35. package/package.json +6 -6
  36. package/dist/Client.d.ts +0 -43
  37. package/dist/HttpClient.d.ts +0 -13
  38. package/dist/WsClient.d.ts +0 -27
  39. package/dist/common.d.ts +0 -26948
  40. package/dist/constants-jLrn-AnI.d.cts +0 -13
  41. package/dist/constants-jLrn-AnI.d.ts +0 -13
  42. package/dist/constants.d.ts +0 -1
  43. package/dist/index.d.ts +0 -11
  44. package/dist/parsers.d.ts +0 -31990
package/dist/common.cjs CHANGED
@@ -1,100 +1,57 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/common.ts
2
- var _zod = require('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
- var _parserscjs = require('./parsers.cjs');
47
-
48
- var rpcResult = {
49
- broker_request_swap_deposit_address: _parserscjs.brokerRequestSwapDepositAddress,
50
- broker_request_account_creation_deposit_address: _parserscjs.brokerRequestAccountCreationDepositAddress,
51
- broker_request_swap_parameter_encoding: _parserscjs.requestSwapParameterEncoding,
52
- cf_request_swap_parameter_encoding: _parserscjs.requestSwapParameterEncoding,
53
- cf_accounts: _parserscjs.cfAccounts,
54
- cf_account_info: _parserscjs.cfAccountInfo,
55
- cf_pool_depth: _parserscjs.cfPoolDepth,
56
- cf_boost_pools_depth: _parserscjs.cfBoostPoolsDepth,
57
- cf_environment: _parserscjs.cfEnvironment,
58
- cf_funding_environment: _parserscjs.cfFundingEnvironment,
59
- cf_ingress_egress_environment: _parserscjs.cfIngressEgressEnvironment,
60
- cf_pool_orders: _parserscjs.cfPoolOrders,
61
- cf_pool_price_v2: _parserscjs.cfPoolPriceV2,
62
- cf_pools_environment: _parserscjs.cfPoolsEnvironment,
63
- cf_supported_assets: _parserscjs.cfSupportedAssets,
64
- cf_swap_rate: _parserscjs.cfSwapRate,
65
- cf_swap_rate_v2: _parserscjs.cfSwapRateV2,
66
- cf_swap_rate_v3: _parserscjs.cfSwapRateV3,
67
- cf_swapping_environment: _parserscjs.cfSwappingEnvironment,
68
- chain_getBlockHash: _parserscjs.chainGetBlockHash,
69
- cf_boost_pool_details: _parserscjs.cfBoostPoolDetails,
70
- cf_boost_pool_pending_fees: _parserscjs.cfBoostPoolPendingFees,
71
- state_getMetadata: _parserscjs.stateGetMetadata,
72
- state_getRuntimeVersion: _parserscjs.stateGetRuntimeVersion,
73
- lp_total_balances: _parserscjs.lpTotalBalances,
74
- cf_failed_call_ethereum: _parserscjs.cfFailedCallEvm.nullable(),
75
- cf_failed_call_arbitrum: _parserscjs.cfFailedCallEvm.nullable(),
76
- cf_authority_emission_per_block: _parserscjs.numberOrHex,
77
- cf_epoch_duration: _zod.z.number(),
78
- cf_auction_state: _parserscjs.cfAuctionState,
79
- cf_monitoring_simulate_auction: _parserscjs.cfMonitoringSimulateAuction,
80
- cf_flip_supply: _parserscjs.cfFlipSuppy,
81
- cf_eth_state_chain_gateway_address: _parserscjs.ethereumAddress.nullable(),
82
- cf_eth_key_manager_address: _parserscjs.ethereumAddress.nullable(),
83
- cf_pool_orderbook: _parserscjs.cfPoolOrderbook,
84
- cf_get_trading_strategies: _parserscjs.cfGetTradingStrategies,
85
- cf_get_trading_strategy_limits: _parserscjs.cfGetTradingStrategyLimits,
86
- cf_available_pools: _parserscjs.cfAvailablePools,
87
- cf_safe_mode_statuses: _parserscjs.cfSafeModeStatuses,
88
- broker_encode_cf_parameters: _parserscjs.hexString,
89
- cf_encode_cf_parameters: _parserscjs.hexString,
90
- cf_oracle_prices: _parserscjs.cfOraclePrices,
91
- cf_lending_pools: _parserscjs.cfLendingPools,
92
- cf_lending_config: _parserscjs.cfLendingConfig,
93
- cf_loan_accounts: _parserscjs.cfLoanAccounts,
94
- cf_lending_pool_supply_balances: _parserscjs.cfLendingPoolSupplyBalances,
95
- cf_get_vault_addresses: _parserscjs.cfVaultAddresses
1
+ const require_parsers = require('./parsers.cjs');
2
+ let zod = require("zod");
3
+
4
+ //#region src/common.ts
5
+ const rpcResult = {
6
+ broker_request_swap_deposit_address: require_parsers.brokerRequestSwapDepositAddress,
7
+ broker_request_account_creation_deposit_address: require_parsers.brokerRequestAccountCreationDepositAddress,
8
+ broker_request_swap_parameter_encoding: require_parsers.requestSwapParameterEncoding,
9
+ cf_request_swap_parameter_encoding: require_parsers.requestSwapParameterEncoding,
10
+ cf_accounts: require_parsers.cfAccounts,
11
+ cf_account_info: require_parsers.cfAccountInfo,
12
+ cf_pool_depth: require_parsers.cfPoolDepth,
13
+ cf_boost_pools_depth: require_parsers.cfBoostPoolsDepth,
14
+ cf_environment: require_parsers.cfEnvironment,
15
+ cf_funding_environment: require_parsers.cfFundingEnvironment,
16
+ cf_ingress_egress_environment: require_parsers.cfIngressEgressEnvironment,
17
+ cf_pool_orders: require_parsers.cfPoolOrders,
18
+ cf_pool_price_v2: require_parsers.cfPoolPriceV2,
19
+ cf_pools_environment: require_parsers.cfPoolsEnvironment,
20
+ cf_supported_assets: require_parsers.cfSupportedAssets,
21
+ cf_swap_rate: require_parsers.cfSwapRate,
22
+ cf_swap_rate_v2: require_parsers.cfSwapRateV2,
23
+ cf_swap_rate_v3: require_parsers.cfSwapRateV3,
24
+ cf_swapping_environment: require_parsers.cfSwappingEnvironment,
25
+ chain_getBlockHash: require_parsers.chainGetBlockHash,
26
+ cf_boost_pool_details: require_parsers.cfBoostPoolDetails,
27
+ cf_boost_pool_pending_fees: require_parsers.cfBoostPoolPendingFees,
28
+ state_getMetadata: require_parsers.stateGetMetadata,
29
+ state_getRuntimeVersion: require_parsers.stateGetRuntimeVersion,
30
+ lp_total_balances: require_parsers.lpTotalBalances,
31
+ cf_failed_call_ethereum: require_parsers.cfFailedCallEvm.nullable(),
32
+ cf_failed_call_arbitrum: require_parsers.cfFailedCallEvm.nullable(),
33
+ cf_authority_emission_per_block: require_parsers.numberOrHex,
34
+ cf_epoch_duration: zod.z.number(),
35
+ cf_auction_state: require_parsers.cfAuctionState,
36
+ cf_monitoring_simulate_auction: require_parsers.cfMonitoringSimulateAuction,
37
+ cf_flip_supply: require_parsers.cfFlipSuppy,
38
+ cf_eth_state_chain_gateway_address: require_parsers.ethereumAddress.nullable(),
39
+ cf_eth_key_manager_address: require_parsers.ethereumAddress.nullable(),
40
+ cf_pool_orderbook: require_parsers.cfPoolOrderbook,
41
+ cf_get_trading_strategies: require_parsers.cfGetTradingStrategies,
42
+ cf_get_trading_strategy_limits: require_parsers.cfGetTradingStrategyLimits,
43
+ cf_available_pools: require_parsers.cfAvailablePools,
44
+ cf_safe_mode_statuses: require_parsers.cfSafeModeStatuses,
45
+ broker_encode_cf_parameters: require_parsers.hexString,
46
+ cf_encode_cf_parameters: require_parsers.hexString,
47
+ cf_oracle_prices: require_parsers.cfOraclePrices,
48
+ cf_lending_pools: require_parsers.cfLendingPools,
49
+ cf_lending_config: require_parsers.cfLendingConfig,
50
+ cf_loan_accounts: require_parsers.cfLoanAccounts,
51
+ cf_lending_pool_supply_balances: require_parsers.cfLendingPoolSupplyBalances,
52
+ cf_get_vault_addresses: require_parsers.cfVaultAddresses
96
53
  };
97
54
 
98
-
99
-
100
- exports.rpcResponse = _parserscjs.rpcResponse; exports.rpcResult = rpcResult;
55
+ //#endregion
56
+ exports.rpcResponse = require_parsers.rpcResponse;
57
+ exports.rpcResult = rpcResult;