@chainflip/rpc 1.11.0-beta.16 → 1.11.0-beta.17
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 +3 -1
- package/dist/common.d.cts +757 -0
- package/dist/common.d.ts +757 -0
- package/dist/common.mjs +4 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/parsers.cjs +34 -1
- package/dist/parsers.d.cts +1513 -1
- package/dist/parsers.d.ts +1513 -1
- package/dist/parsers.mjs +33 -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
|
@@ -684,6 +684,37 @@ var cfLendingConfig = z.object({
|
|
|
684
684
|
hard_liquidation_max_oracle_slippage: z.number(),
|
|
685
685
|
fee_swap_max_oracle_slippage: z.number()
|
|
686
686
|
});
|
|
687
|
+
var cfLoanAccount = z.object({
|
|
688
|
+
account: accountId,
|
|
689
|
+
primary_collateral_asset: rpcAssetSchema,
|
|
690
|
+
ltv_ratio: numberOrHex,
|
|
691
|
+
collateral: z.array(
|
|
692
|
+
z.intersection(
|
|
693
|
+
rpcAssetSchema,
|
|
694
|
+
z.object({
|
|
695
|
+
amount: numberOrHex
|
|
696
|
+
})
|
|
697
|
+
)
|
|
698
|
+
),
|
|
699
|
+
loans: z.array(
|
|
700
|
+
z.object({
|
|
701
|
+
loan_id: z.number(),
|
|
702
|
+
asset: rpcAssetSchema,
|
|
703
|
+
created_at: z.number(),
|
|
704
|
+
principal_amount: numberOrHex
|
|
705
|
+
})
|
|
706
|
+
),
|
|
707
|
+
liquidation_status: z.object({
|
|
708
|
+
liquidation_swaps: z.array(
|
|
709
|
+
z.object({
|
|
710
|
+
swap_request_id: z.number(),
|
|
711
|
+
loan_id: z.number()
|
|
712
|
+
})
|
|
713
|
+
),
|
|
714
|
+
is_hard: z.boolean()
|
|
715
|
+
})
|
|
716
|
+
});
|
|
717
|
+
var cfLoanAccounts = z.array(cfLoanAccount);
|
|
687
718
|
export {
|
|
688
719
|
accountInfoCommon,
|
|
689
720
|
broker,
|
|
@@ -704,6 +735,8 @@ export {
|
|
|
704
735
|
cfIngressEgressEnvironment,
|
|
705
736
|
cfLendingConfig,
|
|
706
737
|
cfLendingPools,
|
|
738
|
+
cfLoanAccount,
|
|
739
|
+
cfLoanAccounts,
|
|
707
740
|
cfOraclePrices,
|
|
708
741
|
cfPoolDepth,
|
|
709
742
|
cfPoolOrderbook,
|
package/dist/types.d.cts
CHANGED
|
@@ -37,6 +37,7 @@ type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
|
|
|
37
37
|
type CfOraclePrices = RpcResult<'cf_oracle_prices'>;
|
|
38
38
|
type CfLendingPools = RpcResult<'cf_lending_pools'>;
|
|
39
39
|
type CfLendingConfig = RpcResult<'cf_lending_config'>;
|
|
40
|
+
type CfLoanAccounts = RpcResult<'cf_loan_accounts'>;
|
|
40
41
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
41
42
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
42
43
|
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
@@ -68,6 +69,7 @@ type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
|
68
69
|
type CfOraclePricesResponse = RpcResponse<'cf_oracle_prices'>;
|
|
69
70
|
type CfLendingPoolsResponse = RpcResponse<'cf_lending_pools'>;
|
|
70
71
|
type CfLendingConfigResponse = RpcResponse<'cf_lending_config'>;
|
|
72
|
+
type CfLoanAccountsResponse = RpcResponse<'cf_loan_accounts'>;
|
|
71
73
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
72
74
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
73
75
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
@@ -76,4 +78,4 @@ type CfOperatorAccount = z.output<typeof operator>;
|
|
|
76
78
|
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
77
79
|
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
78
80
|
|
|
79
|
-
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 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 };
|
|
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 };
|
package/dist/types.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
|
|
|
37
37
|
type CfOraclePrices = RpcResult<'cf_oracle_prices'>;
|
|
38
38
|
type CfLendingPools = RpcResult<'cf_lending_pools'>;
|
|
39
39
|
type CfLendingConfig = RpcResult<'cf_lending_config'>;
|
|
40
|
+
type CfLoanAccounts = RpcResult<'cf_loan_accounts'>;
|
|
40
41
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
41
42
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
42
43
|
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
@@ -68,6 +69,7 @@ type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
|
68
69
|
type CfOraclePricesResponse = RpcResponse<'cf_oracle_prices'>;
|
|
69
70
|
type CfLendingPoolsResponse = RpcResponse<'cf_lending_pools'>;
|
|
70
71
|
type CfLendingConfigResponse = RpcResponse<'cf_lending_config'>;
|
|
72
|
+
type CfLoanAccountsResponse = RpcResponse<'cf_loan_accounts'>;
|
|
71
73
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
72
74
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
73
75
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
@@ -76,4 +78,4 @@ type CfOperatorAccount = z.output<typeof operator>;
|
|
|
76
78
|
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
77
79
|
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
78
80
|
|
|
79
|
-
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 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 };
|
|
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 };
|