@chainflip/rpc 1.11.10 → 1.11.11

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 CHANGED
@@ -39,6 +39,7 @@ var _zod = require('zod');
39
39
 
40
40
 
41
41
 
42
+
42
43
 
43
44
 
44
45
  var _parserscjs = require('./parsers.cjs');
@@ -88,6 +89,7 @@ var rpcResult = {
88
89
  cf_lending_pools: _parserscjs.cfLendingPools,
89
90
  cf_lending_config: _parserscjs.cfLendingConfig,
90
91
  cf_loan_accounts: _parserscjs.cfLoanAccounts,
92
+ cf_lending_pool_supply_balances: _parserscjs.cfLendingPoolSupplyBalances,
91
93
  cf_get_vault_addresses: _parserscjs.cfVaultAddresses
92
94
  };
93
95
 
package/dist/common.d.cts CHANGED
@@ -195,6 +195,7 @@ type RpcRequest = WithHash<{
195
195
  cf_lending_pools: [asset?: UncheckedAssetAndChain];
196
196
  cf_lending_config: [];
197
197
  cf_loan_accounts: [accountId?: string];
198
+ cf_lending_pool_supply_balances: [asset: UncheckedAssetAndChain];
198
199
  cf_get_vault_addresses: [];
199
200
  }> & {
200
201
  chain_getBlockHash: [blockHeight?: number];
@@ -26686,6 +26687,145 @@ declare const rpcResult: {
26686
26687
  is_hard: boolean;
26687
26688
  } | null;
26688
26689
  }>, "many">;
26690
+ readonly cf_lending_pool_supply_balances: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
26691
+ chain: z.ZodLiteral<"Bitcoin">;
26692
+ asset: z.ZodLiteral<"BTC">;
26693
+ }, "strip", z.ZodTypeAny, {
26694
+ chain: "Bitcoin";
26695
+ asset: "BTC";
26696
+ }, {
26697
+ chain: "Bitcoin";
26698
+ asset: "BTC";
26699
+ }>, z.ZodObject<{
26700
+ chain: z.ZodLiteral<"Polkadot">;
26701
+ asset: z.ZodLiteral<"DOT">;
26702
+ }, "strip", z.ZodTypeAny, {
26703
+ chain: "Polkadot";
26704
+ asset: "DOT";
26705
+ }, {
26706
+ chain: "Polkadot";
26707
+ asset: "DOT";
26708
+ }>, z.ZodObject<{
26709
+ chain: z.ZodLiteral<"Ethereum">;
26710
+ asset: z.ZodLiteral<"FLIP">;
26711
+ }, "strip", z.ZodTypeAny, {
26712
+ chain: "Ethereum";
26713
+ asset: "FLIP";
26714
+ }, {
26715
+ chain: "Ethereum";
26716
+ asset: "FLIP";
26717
+ }>, z.ZodObject<{
26718
+ chain: z.ZodLiteral<"Ethereum">;
26719
+ asset: z.ZodLiteral<"ETH">;
26720
+ }, "strip", z.ZodTypeAny, {
26721
+ chain: "Ethereum";
26722
+ asset: "ETH";
26723
+ }, {
26724
+ chain: "Ethereum";
26725
+ asset: "ETH";
26726
+ }>, z.ZodObject<{
26727
+ chain: z.ZodLiteral<"Ethereum">;
26728
+ asset: z.ZodLiteral<"USDC">;
26729
+ }, "strip", z.ZodTypeAny, {
26730
+ chain: "Ethereum";
26731
+ asset: "USDC";
26732
+ }, {
26733
+ chain: "Ethereum";
26734
+ asset: "USDC";
26735
+ }>, z.ZodObject<{
26736
+ chain: z.ZodLiteral<"Ethereum">;
26737
+ asset: z.ZodLiteral<"USDT">;
26738
+ }, "strip", z.ZodTypeAny, {
26739
+ chain: "Ethereum";
26740
+ asset: "USDT";
26741
+ }, {
26742
+ chain: "Ethereum";
26743
+ asset: "USDT";
26744
+ }>, z.ZodObject<{
26745
+ chain: z.ZodLiteral<"Arbitrum">;
26746
+ asset: z.ZodLiteral<"ETH">;
26747
+ }, "strip", z.ZodTypeAny, {
26748
+ chain: "Arbitrum";
26749
+ asset: "ETH";
26750
+ }, {
26751
+ chain: "Arbitrum";
26752
+ asset: "ETH";
26753
+ }>, z.ZodObject<{
26754
+ chain: z.ZodLiteral<"Arbitrum">;
26755
+ asset: z.ZodLiteral<"USDC">;
26756
+ }, "strip", z.ZodTypeAny, {
26757
+ chain: "Arbitrum";
26758
+ asset: "USDC";
26759
+ }, {
26760
+ chain: "Arbitrum";
26761
+ asset: "USDC";
26762
+ }>, z.ZodObject<{
26763
+ chain: z.ZodLiteral<"Solana">;
26764
+ asset: z.ZodLiteral<"SOL">;
26765
+ }, "strip", z.ZodTypeAny, {
26766
+ chain: "Solana";
26767
+ asset: "SOL";
26768
+ }, {
26769
+ chain: "Solana";
26770
+ asset: "SOL";
26771
+ }>, z.ZodObject<{
26772
+ chain: z.ZodLiteral<"Solana">;
26773
+ asset: z.ZodLiteral<"USDC">;
26774
+ }, "strip", z.ZodTypeAny, {
26775
+ chain: "Solana";
26776
+ asset: "USDC";
26777
+ }, {
26778
+ chain: "Solana";
26779
+ asset: "USDC";
26780
+ }>, z.ZodObject<{
26781
+ chain: z.ZodLiteral<"Assethub">;
26782
+ asset: z.ZodLiteral<"DOT">;
26783
+ }, "strip", z.ZodTypeAny, {
26784
+ chain: "Assethub";
26785
+ asset: "DOT";
26786
+ }, {
26787
+ chain: "Assethub";
26788
+ asset: "DOT";
26789
+ }>, z.ZodObject<{
26790
+ chain: z.ZodLiteral<"Assethub">;
26791
+ asset: z.ZodLiteral<"USDC">;
26792
+ }, "strip", z.ZodTypeAny, {
26793
+ chain: "Assethub";
26794
+ asset: "USDC";
26795
+ }, {
26796
+ chain: "Assethub";
26797
+ asset: "USDC";
26798
+ }>, z.ZodObject<{
26799
+ chain: z.ZodLiteral<"Assethub">;
26800
+ asset: z.ZodLiteral<"USDT">;
26801
+ }, "strip", z.ZodTypeAny, {
26802
+ chain: "Assethub";
26803
+ asset: "USDT";
26804
+ }, {
26805
+ chain: "Assethub";
26806
+ asset: "USDT";
26807
+ }>]>, z.ZodObject<{
26808
+ positions: z.ZodArray<z.ZodObject<{
26809
+ lp_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
26810
+ total_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
26811
+ }, "strip", z.ZodTypeAny, {
26812
+ total_amount: bigint;
26813
+ lp_id: `cF${string}`;
26814
+ }, {
26815
+ total_amount: string | number;
26816
+ lp_id: string;
26817
+ }>, "many">;
26818
+ }, "strip", z.ZodTypeAny, {
26819
+ positions: {
26820
+ total_amount: bigint;
26821
+ lp_id: `cF${string}`;
26822
+ }[];
26823
+ }, {
26824
+ positions: {
26825
+ total_amount: string | number;
26826
+ lp_id: string;
26827
+ }[];
26828
+ }>>, "many">;
26689
26829
  readonly cf_get_vault_addresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
26690
26830
  ethereum: z.ZodObject<{
26691
26831
  Eth: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, `0x${string}`, number[]>;
package/dist/common.d.ts CHANGED
@@ -195,6 +195,7 @@ type RpcRequest = WithHash<{
195
195
  cf_lending_pools: [asset?: UncheckedAssetAndChain];
196
196
  cf_lending_config: [];
197
197
  cf_loan_accounts: [accountId?: string];
198
+ cf_lending_pool_supply_balances: [asset: UncheckedAssetAndChain];
198
199
  cf_get_vault_addresses: [];
199
200
  }> & {
200
201
  chain_getBlockHash: [blockHeight?: number];
@@ -26686,6 +26687,145 @@ declare const rpcResult: {
26686
26687
  is_hard: boolean;
26687
26688
  } | null;
26688
26689
  }>, "many">;
26690
+ readonly cf_lending_pool_supply_balances: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
26691
+ chain: z.ZodLiteral<"Bitcoin">;
26692
+ asset: z.ZodLiteral<"BTC">;
26693
+ }, "strip", z.ZodTypeAny, {
26694
+ chain: "Bitcoin";
26695
+ asset: "BTC";
26696
+ }, {
26697
+ chain: "Bitcoin";
26698
+ asset: "BTC";
26699
+ }>, z.ZodObject<{
26700
+ chain: z.ZodLiteral<"Polkadot">;
26701
+ asset: z.ZodLiteral<"DOT">;
26702
+ }, "strip", z.ZodTypeAny, {
26703
+ chain: "Polkadot";
26704
+ asset: "DOT";
26705
+ }, {
26706
+ chain: "Polkadot";
26707
+ asset: "DOT";
26708
+ }>, z.ZodObject<{
26709
+ chain: z.ZodLiteral<"Ethereum">;
26710
+ asset: z.ZodLiteral<"FLIP">;
26711
+ }, "strip", z.ZodTypeAny, {
26712
+ chain: "Ethereum";
26713
+ asset: "FLIP";
26714
+ }, {
26715
+ chain: "Ethereum";
26716
+ asset: "FLIP";
26717
+ }>, z.ZodObject<{
26718
+ chain: z.ZodLiteral<"Ethereum">;
26719
+ asset: z.ZodLiteral<"ETH">;
26720
+ }, "strip", z.ZodTypeAny, {
26721
+ chain: "Ethereum";
26722
+ asset: "ETH";
26723
+ }, {
26724
+ chain: "Ethereum";
26725
+ asset: "ETH";
26726
+ }>, z.ZodObject<{
26727
+ chain: z.ZodLiteral<"Ethereum">;
26728
+ asset: z.ZodLiteral<"USDC">;
26729
+ }, "strip", z.ZodTypeAny, {
26730
+ chain: "Ethereum";
26731
+ asset: "USDC";
26732
+ }, {
26733
+ chain: "Ethereum";
26734
+ asset: "USDC";
26735
+ }>, z.ZodObject<{
26736
+ chain: z.ZodLiteral<"Ethereum">;
26737
+ asset: z.ZodLiteral<"USDT">;
26738
+ }, "strip", z.ZodTypeAny, {
26739
+ chain: "Ethereum";
26740
+ asset: "USDT";
26741
+ }, {
26742
+ chain: "Ethereum";
26743
+ asset: "USDT";
26744
+ }>, z.ZodObject<{
26745
+ chain: z.ZodLiteral<"Arbitrum">;
26746
+ asset: z.ZodLiteral<"ETH">;
26747
+ }, "strip", z.ZodTypeAny, {
26748
+ chain: "Arbitrum";
26749
+ asset: "ETH";
26750
+ }, {
26751
+ chain: "Arbitrum";
26752
+ asset: "ETH";
26753
+ }>, z.ZodObject<{
26754
+ chain: z.ZodLiteral<"Arbitrum">;
26755
+ asset: z.ZodLiteral<"USDC">;
26756
+ }, "strip", z.ZodTypeAny, {
26757
+ chain: "Arbitrum";
26758
+ asset: "USDC";
26759
+ }, {
26760
+ chain: "Arbitrum";
26761
+ asset: "USDC";
26762
+ }>, z.ZodObject<{
26763
+ chain: z.ZodLiteral<"Solana">;
26764
+ asset: z.ZodLiteral<"SOL">;
26765
+ }, "strip", z.ZodTypeAny, {
26766
+ chain: "Solana";
26767
+ asset: "SOL";
26768
+ }, {
26769
+ chain: "Solana";
26770
+ asset: "SOL";
26771
+ }>, z.ZodObject<{
26772
+ chain: z.ZodLiteral<"Solana">;
26773
+ asset: z.ZodLiteral<"USDC">;
26774
+ }, "strip", z.ZodTypeAny, {
26775
+ chain: "Solana";
26776
+ asset: "USDC";
26777
+ }, {
26778
+ chain: "Solana";
26779
+ asset: "USDC";
26780
+ }>, z.ZodObject<{
26781
+ chain: z.ZodLiteral<"Assethub">;
26782
+ asset: z.ZodLiteral<"DOT">;
26783
+ }, "strip", z.ZodTypeAny, {
26784
+ chain: "Assethub";
26785
+ asset: "DOT";
26786
+ }, {
26787
+ chain: "Assethub";
26788
+ asset: "DOT";
26789
+ }>, z.ZodObject<{
26790
+ chain: z.ZodLiteral<"Assethub">;
26791
+ asset: z.ZodLiteral<"USDC">;
26792
+ }, "strip", z.ZodTypeAny, {
26793
+ chain: "Assethub";
26794
+ asset: "USDC";
26795
+ }, {
26796
+ chain: "Assethub";
26797
+ asset: "USDC";
26798
+ }>, z.ZodObject<{
26799
+ chain: z.ZodLiteral<"Assethub">;
26800
+ asset: z.ZodLiteral<"USDT">;
26801
+ }, "strip", z.ZodTypeAny, {
26802
+ chain: "Assethub";
26803
+ asset: "USDT";
26804
+ }, {
26805
+ chain: "Assethub";
26806
+ asset: "USDT";
26807
+ }>]>, z.ZodObject<{
26808
+ positions: z.ZodArray<z.ZodObject<{
26809
+ lp_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
26810
+ total_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
26811
+ }, "strip", z.ZodTypeAny, {
26812
+ total_amount: bigint;
26813
+ lp_id: `cF${string}`;
26814
+ }, {
26815
+ total_amount: string | number;
26816
+ lp_id: string;
26817
+ }>, "many">;
26818
+ }, "strip", z.ZodTypeAny, {
26819
+ positions: {
26820
+ total_amount: bigint;
26821
+ lp_id: `cF${string}`;
26822
+ }[];
26823
+ }, {
26824
+ positions: {
26825
+ total_amount: string | number;
26826
+ lp_id: string;
26827
+ }[];
26828
+ }>>, "many">;
26689
26829
  readonly cf_get_vault_addresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
26690
26830
  ethereum: z.ZodObject<{
26691
26831
  Eth: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, `0x${string}`, number[]>;
package/dist/common.mjs CHANGED
@@ -40,7 +40,8 @@ import {
40
40
  cfLendingConfig,
41
41
  cfLoanAccounts,
42
42
  cfMonitoringSimulateAuction,
43
- cfVaultAddresses
43
+ cfVaultAddresses,
44
+ cfLendingPoolSupplyBalances
44
45
  } from "./parsers.mjs";
45
46
  import { rpcResponse } from "./parsers.mjs";
46
47
  var rpcResult = {
@@ -88,6 +89,7 @@ var rpcResult = {
88
89
  cf_lending_pools: cfLendingPools,
89
90
  cf_lending_config: cfLendingConfig,
90
91
  cf_loan_accounts: cfLoanAccounts,
92
+ cf_lending_pool_supply_balances: cfLendingPoolSupplyBalances,
91
93
  cf_get_vault_addresses: cfVaultAddresses
92
94
  };
93
95
  export {
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { default as HttpClient } from './HttpClient.cjs';
2
2
  export { default as WsClient } from './WsClient.cjs';
3
- 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, 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.cjs';
3
+ 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 } from './types.cjs';
4
4
  export { c as constants } from './constants-jLrn-AnI.cjs';
5
5
  export { RpcLimitOrder, RpcRangeOrder } from './parsers.cjs';
6
6
  export { RpcMethod, RpcRequest as RpcParams, RpcResult } from './common.cjs';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { default as HttpClient } from './HttpClient.js';
2
2
  export { default as WsClient } from './WsClient.js';
3
- 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, 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';
3
+ 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 } from './types.js';
4
4
  export { c as constants } from './constants-jLrn-AnI.js';
5
5
  export { RpcLimitOrder, RpcRangeOrder } from './parsers.js';
6
6
  export { RpcMethod, RpcRequest as RpcParams, RpcResult } from './common.js';
package/dist/parsers.cjs CHANGED
@@ -656,6 +656,19 @@ var cfLoanAccount = _zod.z.object({
656
656
  }).nullable()
657
657
  });
658
658
  var cfLoanAccounts = _zod.z.array(cfLoanAccount);
659
+ var cfLendingPoolSupplyBalances = _zod.z.array(
660
+ _zod.z.intersection(
661
+ rpcAssetSchema,
662
+ _zod.z.object({
663
+ positions: _zod.z.array(
664
+ _zod.z.object({
665
+ lp_id: accountId,
666
+ total_amount: numberOrHex
667
+ })
668
+ )
669
+ })
670
+ )
671
+ );
659
672
  var cfVaultAddresses = _zod.z.object({
660
673
  ethereum: _zod.z.object({ Eth: _zod.z.array(_zod.z.number()).length(20).transform(_bytes.bytesToHex) }),
661
674
  arbitrum: _zod.z.object({ Arb: _zod.z.array(_zod.z.number()).length(20).transform(_bytes.bytesToHex) }),
@@ -748,4 +761,5 @@ var cfVaultAddresses = _zod.z.object({
748
761
 
749
762
 
750
763
 
751
- exports.accountInfoCommon = accountInfoCommon; exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.cfAccountInfo = cfAccountInfo; exports.cfAccounts = cfAccounts; exports.cfAuctionState = cfAuctionState; exports.cfAvailablePools = cfAvailablePools; exports.cfBoostPoolDetails = cfBoostPoolDetails; exports.cfBoostPoolPendingFees = cfBoostPoolPendingFees; exports.cfBoostPoolsDepth = cfBoostPoolsDepth; exports.cfEnvironment = cfEnvironment; exports.cfFailedCallEvm = cfFailedCallEvm; exports.cfFlipSuppy = cfFlipSuppy; exports.cfFundingEnvironment = cfFundingEnvironment; exports.cfGetTradingStrategies = cfGetTradingStrategies; exports.cfGetTradingStrategyLimits = cfGetTradingStrategyLimits; exports.cfIngressEgressEnvironment = cfIngressEgressEnvironment; exports.cfLendingConfig = cfLendingConfig; exports.cfLendingPools = cfLendingPools; exports.cfLoanAccount = cfLoanAccount; exports.cfLoanAccounts = cfLoanAccounts; exports.cfMonitoringSimulateAuction = cfMonitoringSimulateAuction; exports.cfOraclePrices = cfOraclePrices; exports.cfPoolDepth = cfPoolDepth; exports.cfPoolOrderbook = cfPoolOrderbook; exports.cfPoolOrders = cfPoolOrders; exports.cfPoolPriceV2 = cfPoolPriceV2; exports.cfPoolsEnvironment = cfPoolsEnvironment; exports.cfSafeModeStatuses = cfSafeModeStatuses; exports.cfSupportedAssets = cfSupportedAssets; exports.cfSwapRate = cfSwapRate; exports.cfSwapRateV2 = cfSwapRateV2; exports.cfSwapRateV3 = cfSwapRateV3; exports.cfSwappingEnvironment = cfSwappingEnvironment; exports.cfTradingStrategy = cfTradingStrategy; exports.cfVaultAddresses = cfVaultAddresses; exports.chainGetBlockHash = chainGetBlockHash; exports.ethereumAddress = ethereumAddress; exports.hexString = hexString; exports.liquidityProvider = liquidityProvider; exports.lpTotalBalances = lpTotalBalances; exports.numberOrHex = numberOrHex; exports.numericString = numericString; exports.operator = operator; exports.requestSwapParameterEncoding = requestSwapParameterEncoding; exports.rpcResponse = rpcResponse; exports.stateGetMetadata = stateGetMetadata; exports.stateGetRuntimeVersion = stateGetRuntimeVersion; exports.u256 = u256; exports.unregistered = unregistered; exports.validator = validator;
764
+
765
+ exports.accountInfoCommon = accountInfoCommon; exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.cfAccountInfo = cfAccountInfo; exports.cfAccounts = cfAccounts; exports.cfAuctionState = cfAuctionState; exports.cfAvailablePools = cfAvailablePools; exports.cfBoostPoolDetails = cfBoostPoolDetails; exports.cfBoostPoolPendingFees = cfBoostPoolPendingFees; exports.cfBoostPoolsDepth = cfBoostPoolsDepth; exports.cfEnvironment = cfEnvironment; exports.cfFailedCallEvm = cfFailedCallEvm; exports.cfFlipSuppy = cfFlipSuppy; exports.cfFundingEnvironment = cfFundingEnvironment; exports.cfGetTradingStrategies = cfGetTradingStrategies; exports.cfGetTradingStrategyLimits = cfGetTradingStrategyLimits; exports.cfIngressEgressEnvironment = cfIngressEgressEnvironment; exports.cfLendingConfig = cfLendingConfig; exports.cfLendingPoolSupplyBalances = cfLendingPoolSupplyBalances; exports.cfLendingPools = cfLendingPools; exports.cfLoanAccount = cfLoanAccount; exports.cfLoanAccounts = cfLoanAccounts; exports.cfMonitoringSimulateAuction = cfMonitoringSimulateAuction; exports.cfOraclePrices = cfOraclePrices; exports.cfPoolDepth = cfPoolDepth; exports.cfPoolOrderbook = cfPoolOrderbook; exports.cfPoolOrders = cfPoolOrders; exports.cfPoolPriceV2 = cfPoolPriceV2; exports.cfPoolsEnvironment = cfPoolsEnvironment; exports.cfSafeModeStatuses = cfSafeModeStatuses; exports.cfSupportedAssets = cfSupportedAssets; exports.cfSwapRate = cfSwapRate; exports.cfSwapRateV2 = cfSwapRateV2; exports.cfSwapRateV3 = cfSwapRateV3; exports.cfSwappingEnvironment = cfSwappingEnvironment; exports.cfTradingStrategy = cfTradingStrategy; exports.cfVaultAddresses = cfVaultAddresses; exports.chainGetBlockHash = chainGetBlockHash; exports.ethereumAddress = ethereumAddress; exports.hexString = hexString; exports.liquidityProvider = liquidityProvider; exports.lpTotalBalances = lpTotalBalances; exports.numberOrHex = numberOrHex; exports.numericString = numericString; exports.operator = operator; exports.requestSwapParameterEncoding = requestSwapParameterEncoding; exports.rpcResponse = rpcResponse; exports.stateGetMetadata = stateGetMetadata; exports.stateGetRuntimeVersion = stateGetRuntimeVersion; exports.u256 = u256; exports.unregistered = unregistered; exports.validator = validator;
@@ -31756,6 +31756,145 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31756
31756
  is_hard: boolean;
31757
31757
  } | null;
31758
31758
  }>, "many">;
31759
+ declare const cfLendingPoolSupplyBalances: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
31760
+ chain: z.ZodLiteral<"Bitcoin">;
31761
+ asset: z.ZodLiteral<"BTC">;
31762
+ }, "strip", z.ZodTypeAny, {
31763
+ chain: "Bitcoin";
31764
+ asset: "BTC";
31765
+ }, {
31766
+ chain: "Bitcoin";
31767
+ asset: "BTC";
31768
+ }>, z.ZodObject<{
31769
+ chain: z.ZodLiteral<"Polkadot">;
31770
+ asset: z.ZodLiteral<"DOT">;
31771
+ }, "strip", z.ZodTypeAny, {
31772
+ chain: "Polkadot";
31773
+ asset: "DOT";
31774
+ }, {
31775
+ chain: "Polkadot";
31776
+ asset: "DOT";
31777
+ }>, z.ZodObject<{
31778
+ chain: z.ZodLiteral<"Ethereum">;
31779
+ asset: z.ZodLiteral<"FLIP">;
31780
+ }, "strip", z.ZodTypeAny, {
31781
+ chain: "Ethereum";
31782
+ asset: "FLIP";
31783
+ }, {
31784
+ chain: "Ethereum";
31785
+ asset: "FLIP";
31786
+ }>, z.ZodObject<{
31787
+ chain: z.ZodLiteral<"Ethereum">;
31788
+ asset: z.ZodLiteral<"ETH">;
31789
+ }, "strip", z.ZodTypeAny, {
31790
+ chain: "Ethereum";
31791
+ asset: "ETH";
31792
+ }, {
31793
+ chain: "Ethereum";
31794
+ asset: "ETH";
31795
+ }>, z.ZodObject<{
31796
+ chain: z.ZodLiteral<"Ethereum">;
31797
+ asset: z.ZodLiteral<"USDC">;
31798
+ }, "strip", z.ZodTypeAny, {
31799
+ chain: "Ethereum";
31800
+ asset: "USDC";
31801
+ }, {
31802
+ chain: "Ethereum";
31803
+ asset: "USDC";
31804
+ }>, z.ZodObject<{
31805
+ chain: z.ZodLiteral<"Ethereum">;
31806
+ asset: z.ZodLiteral<"USDT">;
31807
+ }, "strip", z.ZodTypeAny, {
31808
+ chain: "Ethereum";
31809
+ asset: "USDT";
31810
+ }, {
31811
+ chain: "Ethereum";
31812
+ asset: "USDT";
31813
+ }>, z.ZodObject<{
31814
+ chain: z.ZodLiteral<"Arbitrum">;
31815
+ asset: z.ZodLiteral<"ETH">;
31816
+ }, "strip", z.ZodTypeAny, {
31817
+ chain: "Arbitrum";
31818
+ asset: "ETH";
31819
+ }, {
31820
+ chain: "Arbitrum";
31821
+ asset: "ETH";
31822
+ }>, z.ZodObject<{
31823
+ chain: z.ZodLiteral<"Arbitrum">;
31824
+ asset: z.ZodLiteral<"USDC">;
31825
+ }, "strip", z.ZodTypeAny, {
31826
+ chain: "Arbitrum";
31827
+ asset: "USDC";
31828
+ }, {
31829
+ chain: "Arbitrum";
31830
+ asset: "USDC";
31831
+ }>, z.ZodObject<{
31832
+ chain: z.ZodLiteral<"Solana">;
31833
+ asset: z.ZodLiteral<"SOL">;
31834
+ }, "strip", z.ZodTypeAny, {
31835
+ chain: "Solana";
31836
+ asset: "SOL";
31837
+ }, {
31838
+ chain: "Solana";
31839
+ asset: "SOL";
31840
+ }>, z.ZodObject<{
31841
+ chain: z.ZodLiteral<"Solana">;
31842
+ asset: z.ZodLiteral<"USDC">;
31843
+ }, "strip", z.ZodTypeAny, {
31844
+ chain: "Solana";
31845
+ asset: "USDC";
31846
+ }, {
31847
+ chain: "Solana";
31848
+ asset: "USDC";
31849
+ }>, z.ZodObject<{
31850
+ chain: z.ZodLiteral<"Assethub">;
31851
+ asset: z.ZodLiteral<"DOT">;
31852
+ }, "strip", z.ZodTypeAny, {
31853
+ chain: "Assethub";
31854
+ asset: "DOT";
31855
+ }, {
31856
+ chain: "Assethub";
31857
+ asset: "DOT";
31858
+ }>, z.ZodObject<{
31859
+ chain: z.ZodLiteral<"Assethub">;
31860
+ asset: z.ZodLiteral<"USDC">;
31861
+ }, "strip", z.ZodTypeAny, {
31862
+ chain: "Assethub";
31863
+ asset: "USDC";
31864
+ }, {
31865
+ chain: "Assethub";
31866
+ asset: "USDC";
31867
+ }>, z.ZodObject<{
31868
+ chain: z.ZodLiteral<"Assethub">;
31869
+ asset: z.ZodLiteral<"USDT">;
31870
+ }, "strip", z.ZodTypeAny, {
31871
+ chain: "Assethub";
31872
+ asset: "USDT";
31873
+ }, {
31874
+ chain: "Assethub";
31875
+ asset: "USDT";
31876
+ }>]>, z.ZodObject<{
31877
+ positions: z.ZodArray<z.ZodObject<{
31878
+ lp_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
31879
+ total_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
31880
+ }, "strip", z.ZodTypeAny, {
31881
+ total_amount: bigint;
31882
+ lp_id: `cF${string}`;
31883
+ }, {
31884
+ total_amount: string | number;
31885
+ lp_id: string;
31886
+ }>, "many">;
31887
+ }, "strip", z.ZodTypeAny, {
31888
+ positions: {
31889
+ total_amount: bigint;
31890
+ lp_id: `cF${string}`;
31891
+ }[];
31892
+ }, {
31893
+ positions: {
31894
+ total_amount: string | number;
31895
+ lp_id: string;
31896
+ }[];
31897
+ }>>, "many">;
31759
31898
  declare const cfVaultAddresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
31760
31899
  ethereum: z.ZodObject<{
31761
31900
  Eth: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, `0x${string}`, number[]>;
@@ -31834,4 +31973,4 @@ declare const cfVaultAddresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
31834
31973
  }][];
31835
31974
  }>;
31836
31975
 
31837
- export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, accountInfoCommon, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfLendingConfig, cfLendingPools, cfLoanAccount, cfLoanAccounts, cfMonitoringSimulateAuction, cfOraclePrices, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, cfVaultAddresses, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, numericString, operator, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
31976
+ export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, accountInfoCommon, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfLendingConfig, cfLendingPoolSupplyBalances, cfLendingPools, cfLoanAccount, cfLoanAccounts, cfMonitoringSimulateAuction, cfOraclePrices, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, cfVaultAddresses, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, numericString, operator, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
package/dist/parsers.d.ts CHANGED
@@ -31756,6 +31756,145 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31756
31756
  is_hard: boolean;
31757
31757
  } | null;
31758
31758
  }>, "many">;
31759
+ declare const cfLendingPoolSupplyBalances: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
31760
+ chain: z.ZodLiteral<"Bitcoin">;
31761
+ asset: z.ZodLiteral<"BTC">;
31762
+ }, "strip", z.ZodTypeAny, {
31763
+ chain: "Bitcoin";
31764
+ asset: "BTC";
31765
+ }, {
31766
+ chain: "Bitcoin";
31767
+ asset: "BTC";
31768
+ }>, z.ZodObject<{
31769
+ chain: z.ZodLiteral<"Polkadot">;
31770
+ asset: z.ZodLiteral<"DOT">;
31771
+ }, "strip", z.ZodTypeAny, {
31772
+ chain: "Polkadot";
31773
+ asset: "DOT";
31774
+ }, {
31775
+ chain: "Polkadot";
31776
+ asset: "DOT";
31777
+ }>, z.ZodObject<{
31778
+ chain: z.ZodLiteral<"Ethereum">;
31779
+ asset: z.ZodLiteral<"FLIP">;
31780
+ }, "strip", z.ZodTypeAny, {
31781
+ chain: "Ethereum";
31782
+ asset: "FLIP";
31783
+ }, {
31784
+ chain: "Ethereum";
31785
+ asset: "FLIP";
31786
+ }>, z.ZodObject<{
31787
+ chain: z.ZodLiteral<"Ethereum">;
31788
+ asset: z.ZodLiteral<"ETH">;
31789
+ }, "strip", z.ZodTypeAny, {
31790
+ chain: "Ethereum";
31791
+ asset: "ETH";
31792
+ }, {
31793
+ chain: "Ethereum";
31794
+ asset: "ETH";
31795
+ }>, z.ZodObject<{
31796
+ chain: z.ZodLiteral<"Ethereum">;
31797
+ asset: z.ZodLiteral<"USDC">;
31798
+ }, "strip", z.ZodTypeAny, {
31799
+ chain: "Ethereum";
31800
+ asset: "USDC";
31801
+ }, {
31802
+ chain: "Ethereum";
31803
+ asset: "USDC";
31804
+ }>, z.ZodObject<{
31805
+ chain: z.ZodLiteral<"Ethereum">;
31806
+ asset: z.ZodLiteral<"USDT">;
31807
+ }, "strip", z.ZodTypeAny, {
31808
+ chain: "Ethereum";
31809
+ asset: "USDT";
31810
+ }, {
31811
+ chain: "Ethereum";
31812
+ asset: "USDT";
31813
+ }>, z.ZodObject<{
31814
+ chain: z.ZodLiteral<"Arbitrum">;
31815
+ asset: z.ZodLiteral<"ETH">;
31816
+ }, "strip", z.ZodTypeAny, {
31817
+ chain: "Arbitrum";
31818
+ asset: "ETH";
31819
+ }, {
31820
+ chain: "Arbitrum";
31821
+ asset: "ETH";
31822
+ }>, z.ZodObject<{
31823
+ chain: z.ZodLiteral<"Arbitrum">;
31824
+ asset: z.ZodLiteral<"USDC">;
31825
+ }, "strip", z.ZodTypeAny, {
31826
+ chain: "Arbitrum";
31827
+ asset: "USDC";
31828
+ }, {
31829
+ chain: "Arbitrum";
31830
+ asset: "USDC";
31831
+ }>, z.ZodObject<{
31832
+ chain: z.ZodLiteral<"Solana">;
31833
+ asset: z.ZodLiteral<"SOL">;
31834
+ }, "strip", z.ZodTypeAny, {
31835
+ chain: "Solana";
31836
+ asset: "SOL";
31837
+ }, {
31838
+ chain: "Solana";
31839
+ asset: "SOL";
31840
+ }>, z.ZodObject<{
31841
+ chain: z.ZodLiteral<"Solana">;
31842
+ asset: z.ZodLiteral<"USDC">;
31843
+ }, "strip", z.ZodTypeAny, {
31844
+ chain: "Solana";
31845
+ asset: "USDC";
31846
+ }, {
31847
+ chain: "Solana";
31848
+ asset: "USDC";
31849
+ }>, z.ZodObject<{
31850
+ chain: z.ZodLiteral<"Assethub">;
31851
+ asset: z.ZodLiteral<"DOT">;
31852
+ }, "strip", z.ZodTypeAny, {
31853
+ chain: "Assethub";
31854
+ asset: "DOT";
31855
+ }, {
31856
+ chain: "Assethub";
31857
+ asset: "DOT";
31858
+ }>, z.ZodObject<{
31859
+ chain: z.ZodLiteral<"Assethub">;
31860
+ asset: z.ZodLiteral<"USDC">;
31861
+ }, "strip", z.ZodTypeAny, {
31862
+ chain: "Assethub";
31863
+ asset: "USDC";
31864
+ }, {
31865
+ chain: "Assethub";
31866
+ asset: "USDC";
31867
+ }>, z.ZodObject<{
31868
+ chain: z.ZodLiteral<"Assethub">;
31869
+ asset: z.ZodLiteral<"USDT">;
31870
+ }, "strip", z.ZodTypeAny, {
31871
+ chain: "Assethub";
31872
+ asset: "USDT";
31873
+ }, {
31874
+ chain: "Assethub";
31875
+ asset: "USDT";
31876
+ }>]>, z.ZodObject<{
31877
+ positions: z.ZodArray<z.ZodObject<{
31878
+ lp_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
31879
+ total_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
31880
+ }, "strip", z.ZodTypeAny, {
31881
+ total_amount: bigint;
31882
+ lp_id: `cF${string}`;
31883
+ }, {
31884
+ total_amount: string | number;
31885
+ lp_id: string;
31886
+ }>, "many">;
31887
+ }, "strip", z.ZodTypeAny, {
31888
+ positions: {
31889
+ total_amount: bigint;
31890
+ lp_id: `cF${string}`;
31891
+ }[];
31892
+ }, {
31893
+ positions: {
31894
+ total_amount: string | number;
31895
+ lp_id: string;
31896
+ }[];
31897
+ }>>, "many">;
31759
31898
  declare const cfVaultAddresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
31760
31899
  ethereum: z.ZodObject<{
31761
31900
  Eth: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, `0x${string}`, number[]>;
@@ -31834,4 +31973,4 @@ declare const cfVaultAddresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
31834
31973
  }][];
31835
31974
  }>;
31836
31975
 
31837
- export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, accountInfoCommon, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfLendingConfig, cfLendingPools, cfLoanAccount, cfLoanAccounts, cfMonitoringSimulateAuction, cfOraclePrices, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, cfVaultAddresses, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, numericString, operator, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
31976
+ export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, accountInfoCommon, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfLendingConfig, cfLendingPoolSupplyBalances, cfLendingPools, cfLoanAccount, cfLoanAccounts, cfMonitoringSimulateAuction, cfOraclePrices, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, cfVaultAddresses, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, numericString, operator, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
package/dist/parsers.mjs CHANGED
@@ -656,6 +656,19 @@ var cfLoanAccount = z.object({
656
656
  }).nullable()
657
657
  });
658
658
  var cfLoanAccounts = z.array(cfLoanAccount);
659
+ var cfLendingPoolSupplyBalances = z.array(
660
+ z.intersection(
661
+ rpcAssetSchema,
662
+ z.object({
663
+ positions: z.array(
664
+ z.object({
665
+ lp_id: accountId,
666
+ total_amount: numberOrHex
667
+ })
668
+ )
669
+ })
670
+ )
671
+ );
659
672
  var cfVaultAddresses = z.object({
660
673
  ethereum: z.object({ Eth: z.array(z.number()).length(20).transform(bytesToHex) }),
661
674
  arbitrum: z.object({ Arb: z.array(z.number()).length(20).transform(bytesToHex) }),
@@ -715,6 +728,7 @@ export {
715
728
  cfGetTradingStrategyLimits,
716
729
  cfIngressEgressEnvironment,
717
730
  cfLendingConfig,
731
+ cfLendingPoolSupplyBalances,
718
732
  cfLendingPools,
719
733
  cfLoanAccount,
720
734
  cfLoanAccounts,
package/dist/types.d.cts CHANGED
@@ -39,6 +39,7 @@ type CfOraclePrices = RpcResult<'cf_oracle_prices'>;
39
39
  type CfLendingPools = RpcResult<'cf_lending_pools'>;
40
40
  type CfLendingConfig = RpcResult<'cf_lending_config'>;
41
41
  type CfLoanAccounts = RpcResult<'cf_loan_accounts'>;
42
+ type CfLendingPoolSupplyBalances = RpcResult<'cf_lending_pool_supply_balances'>;
42
43
  type CfVaultAddresses = RpcResult<'cf_get_vault_addresses'>;
43
44
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
44
45
  type CfAccountsResponse = RpcResponse<'cf_accounts'>;
@@ -73,6 +74,7 @@ type CfOraclePricesResponse = RpcResponse<'cf_oracle_prices'>;
73
74
  type CfLendingPoolsResponse = RpcResponse<'cf_lending_pools'>;
74
75
  type CfLendingConfigResponse = RpcResponse<'cf_lending_config'>;
75
76
  type CfLoanAccountsResponse = RpcResponse<'cf_loan_accounts'>;
77
+ type CfLendingPoolSupplyBalancesResponse = RpcResponse<'cf_lending_pool_supply_balances'>;
76
78
  type CfVaultAddressesResponse = RpcResponse<'cf_get_vault_addresses'>;
77
79
  type CfUnregisteredAccount = z.output<typeof unregistered>;
78
80
  type CfBrokerAccount = z.output<typeof broker>;
@@ -82,4 +84,4 @@ type CfOperatorAccount = z.output<typeof operator>;
82
84
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
83
85
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
84
86
 
85
- 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 CfVaultAddresses, type CfVaultAddressesResponse, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
87
+ 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 CfLendingPoolSupplyBalances, type CfLendingPoolSupplyBalancesResponse, 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 CfVaultAddresses, type CfVaultAddressesResponse, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
package/dist/types.d.ts CHANGED
@@ -39,6 +39,7 @@ type CfOraclePrices = RpcResult<'cf_oracle_prices'>;
39
39
  type CfLendingPools = RpcResult<'cf_lending_pools'>;
40
40
  type CfLendingConfig = RpcResult<'cf_lending_config'>;
41
41
  type CfLoanAccounts = RpcResult<'cf_loan_accounts'>;
42
+ type CfLendingPoolSupplyBalances = RpcResult<'cf_lending_pool_supply_balances'>;
42
43
  type CfVaultAddresses = RpcResult<'cf_get_vault_addresses'>;
43
44
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
44
45
  type CfAccountsResponse = RpcResponse<'cf_accounts'>;
@@ -73,6 +74,7 @@ type CfOraclePricesResponse = RpcResponse<'cf_oracle_prices'>;
73
74
  type CfLendingPoolsResponse = RpcResponse<'cf_lending_pools'>;
74
75
  type CfLendingConfigResponse = RpcResponse<'cf_lending_config'>;
75
76
  type CfLoanAccountsResponse = RpcResponse<'cf_loan_accounts'>;
77
+ type CfLendingPoolSupplyBalancesResponse = RpcResponse<'cf_lending_pool_supply_balances'>;
76
78
  type CfVaultAddressesResponse = RpcResponse<'cf_get_vault_addresses'>;
77
79
  type CfUnregisteredAccount = z.output<typeof unregistered>;
78
80
  type CfBrokerAccount = z.output<typeof broker>;
@@ -82,4 +84,4 @@ type CfOperatorAccount = z.output<typeof operator>;
82
84
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
83
85
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
84
86
 
85
- 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 CfVaultAddresses, type CfVaultAddressesResponse, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
87
+ 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 CfLendingPoolSupplyBalances, type CfLendingPoolSupplyBalancesResponse, 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 CfVaultAddresses, type CfVaultAddressesResponse, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.11.10",
3
+ "version": "1.11.11",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.11.0",