@chainflip/rpc 1.11.0 → 1.11.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 +2 -0
- package/dist/common.d.cts +811 -754
- package/dist/common.d.ts +811 -754
- package/dist/common.mjs +3 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/parsers.cjs +19 -1
- package/dist/parsers.d.cts +1773 -1717
- package/dist/parsers.d.ts +1773 -1717
- package/dist/parsers.mjs +18 -0
- package/dist/types.d.cts +3 -1
- package/dist/types.d.ts +3 -1
- package/package.json +1 -1
package/dist/parsers.mjs
CHANGED
|
@@ -464,6 +464,23 @@ var cfAuctionState = z.object({
|
|
|
464
464
|
min_active_bid: numberOrHex.nullable(),
|
|
465
465
|
min_bid: numberOrHex
|
|
466
466
|
}).transform(rename({ epoch_duration: "epoch_duration_blocks" }));
|
|
467
|
+
var cfMonitoringSimulateAuction = z.object({
|
|
468
|
+
auction_outcome: z.object({
|
|
469
|
+
winners: z.array(accountId),
|
|
470
|
+
bond: numberOrHex
|
|
471
|
+
}),
|
|
472
|
+
operators_info: z.record(
|
|
473
|
+
accountId,
|
|
474
|
+
z.object({
|
|
475
|
+
operator: accountId,
|
|
476
|
+
validators: z.record(accountId, numberOrHex),
|
|
477
|
+
delegators: z.record(accountId, numberOrHex),
|
|
478
|
+
delegation_fee_bps: z.number()
|
|
479
|
+
})
|
|
480
|
+
),
|
|
481
|
+
new_validators: z.array(accountId),
|
|
482
|
+
current_mab: numberOrHex
|
|
483
|
+
});
|
|
467
484
|
var cfFlipSuppy = range(numberOrHex).transform(([totalIssuance, offchainFunds]) => ({
|
|
468
485
|
totalIssuance,
|
|
469
486
|
offchainFunds
|
|
@@ -737,6 +754,7 @@ export {
|
|
|
737
754
|
cfLendingPools,
|
|
738
755
|
cfLoanAccount,
|
|
739
756
|
cfLoanAccounts,
|
|
757
|
+
cfMonitoringSimulateAuction,
|
|
740
758
|
cfOraclePrices,
|
|
741
759
|
cfPoolDepth,
|
|
742
760
|
cfPoolOrderbook,
|
package/dist/types.d.cts
CHANGED
|
@@ -9,6 +9,7 @@ import '@chainflip/utils/types';
|
|
|
9
9
|
type CfAccountInfo = RpcResult<'cf_account_info'>;
|
|
10
10
|
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
11
11
|
type CfAuctionState = RpcResult<'cf_auction_state'>;
|
|
12
|
+
type CfMonitoringSimulateAuction = RpcResult<'cf_monitoring_simulate_auction'>;
|
|
12
13
|
type CfAvailablePools = RpcResult<'cf_available_pools'>;
|
|
13
14
|
type CfBoostPoolDetails = RpcResult<'cf_boost_pool_details'>;
|
|
14
15
|
type CfBoostPoolPendingFees = RpcResult<'cf_boost_pool_pending_fees'>;
|
|
@@ -41,6 +42,7 @@ type CfLoanAccounts = RpcResult<'cf_loan_accounts'>;
|
|
|
41
42
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
42
43
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
43
44
|
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
45
|
+
type CfMonitoringSimulateAuctionResponse = RpcResponse<'cf_monitoring_simulate_auction'>;
|
|
44
46
|
type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
|
|
45
47
|
type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
|
|
46
48
|
type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
|
|
@@ -78,4 +80,4 @@ type CfOperatorAccount = z.output<typeof operator>;
|
|
|
78
80
|
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
79
81
|
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
80
82
|
|
|
81
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfAvailablePools, type CfAvailablePoolsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEncodeCfParameters, type CfEncodeCfParametersResponse, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfGetTradingStrategies, type CfGetTradingStrategiesResponse, type CfGetTradingStrategyLimits, type CfGetTradingStrategyLimitsResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLendingConfig, type CfLendingConfigResponse, type CfLendingPools, type CfLendingPoolsResponse, type CfLiquidityProviderAccount, type CfLoanAccounts, type CfLoanAccountsResponse, type CfOperatorAccount, type CfOraclePrices, type CfOraclePricesResponse, 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 CfSafeModeStatuses, type CfSafeModeStatusesResponse, 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 };
|
|
83
|
+
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfAvailablePools, type CfAvailablePoolsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEncodeCfParameters, type CfEncodeCfParametersResponse, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfGetTradingStrategies, type CfGetTradingStrategiesResponse, type CfGetTradingStrategyLimits, type CfGetTradingStrategyLimitsResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLendingConfig, type CfLendingConfigResponse, type CfLendingPools, type CfLendingPoolsResponse, type CfLiquidityProviderAccount, type CfLoanAccounts, type CfLoanAccountsResponse, type CfMonitoringSimulateAuction, type CfMonitoringSimulateAuctionResponse, type CfOperatorAccount, type CfOraclePrices, type CfOraclePricesResponse, 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 CfSafeModeStatuses, type CfSafeModeStatusesResponse, 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
|
@@ -9,6 +9,7 @@ import '@chainflip/utils/types';
|
|
|
9
9
|
type CfAccountInfo = RpcResult<'cf_account_info'>;
|
|
10
10
|
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
11
11
|
type CfAuctionState = RpcResult<'cf_auction_state'>;
|
|
12
|
+
type CfMonitoringSimulateAuction = RpcResult<'cf_monitoring_simulate_auction'>;
|
|
12
13
|
type CfAvailablePools = RpcResult<'cf_available_pools'>;
|
|
13
14
|
type CfBoostPoolDetails = RpcResult<'cf_boost_pool_details'>;
|
|
14
15
|
type CfBoostPoolPendingFees = RpcResult<'cf_boost_pool_pending_fees'>;
|
|
@@ -41,6 +42,7 @@ type CfLoanAccounts = RpcResult<'cf_loan_accounts'>;
|
|
|
41
42
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
42
43
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
43
44
|
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
45
|
+
type CfMonitoringSimulateAuctionResponse = RpcResponse<'cf_monitoring_simulate_auction'>;
|
|
44
46
|
type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
|
|
45
47
|
type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
|
|
46
48
|
type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
|
|
@@ -78,4 +80,4 @@ type CfOperatorAccount = z.output<typeof operator>;
|
|
|
78
80
|
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
79
81
|
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
80
82
|
|
|
81
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfAvailablePools, type CfAvailablePoolsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEncodeCfParameters, type CfEncodeCfParametersResponse, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfGetTradingStrategies, type CfGetTradingStrategiesResponse, type CfGetTradingStrategyLimits, type CfGetTradingStrategyLimitsResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLendingConfig, type CfLendingConfigResponse, type CfLendingPools, type CfLendingPoolsResponse, type CfLiquidityProviderAccount, type CfLoanAccounts, type CfLoanAccountsResponse, type CfOperatorAccount, type CfOraclePrices, type CfOraclePricesResponse, 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 CfSafeModeStatuses, type CfSafeModeStatusesResponse, 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 };
|
|
83
|
+
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfAvailablePools, type CfAvailablePoolsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEncodeCfParameters, type CfEncodeCfParametersResponse, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfGetTradingStrategies, type CfGetTradingStrategiesResponse, type CfGetTradingStrategyLimits, type CfGetTradingStrategyLimitsResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLendingConfig, type CfLendingConfigResponse, type CfLendingPools, type CfLendingPoolsResponse, type CfLiquidityProviderAccount, type CfLoanAccounts, type CfLoanAccountsResponse, type CfMonitoringSimulateAuction, type CfMonitoringSimulateAuctionResponse, type CfOperatorAccount, type CfOraclePrices, type CfOraclePricesResponse, 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 CfSafeModeStatuses, type CfSafeModeStatusesResponse, 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 };
|