@chainflip/rpc 1.8.11 → 1.8.12

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
@@ -27,6 +27,7 @@ var _zod = require('zod');
27
27
 
28
28
 
29
29
 
30
+
30
31
 
31
32
 
32
33
  var _parserscjs = require('./parsers.cjs');
@@ -63,7 +64,8 @@ var rpcResult = {
63
64
  cf_auction_state: _parserscjs.cfAuctionState,
64
65
  cf_flip_supply: _parserscjs.cfFlipSuppy,
65
66
  cf_eth_state_chain_gateway_address: _parserscjs.ethereumAddress.nullable(),
66
- cf_eth_key_manager_address: _parserscjs.ethereumAddress.nullable()
67
+ cf_eth_key_manager_address: _parserscjs.ethereumAddress.nullable(),
68
+ cf_pool_orderbook: _parserscjs.cfPoolOrderbook
67
69
  };
68
70
 
69
71
 
package/dist/common.d.cts CHANGED
@@ -148,6 +148,11 @@ type RpcRequest = WithHash<{
148
148
  cf_flip_supply: [];
149
149
  cf_eth_state_chain_gateway_address: [];
150
150
  cf_eth_key_manager_address: [];
151
+ cf_pool_orderbook: [
152
+ baseAsset: UncheckedAssetAndChain,
153
+ quoteAsset: UncheckedAssetAndChain,
154
+ orders: number
155
+ ];
151
156
  }> & {
152
157
  chain_getBlockHash: [blockHeight?: number];
153
158
  };
@@ -14307,6 +14312,46 @@ declare const rpcResult: {
14307
14312
  }, [string | number, string | number]>;
14308
14313
  readonly cf_eth_state_chain_gateway_address: z.ZodNullable<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
14309
14314
  readonly cf_eth_key_manager_address: z.ZodNullable<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
14315
+ readonly cf_pool_orderbook: z.ZodObject<{
14316
+ bids: z.ZodArray<z.ZodObject<{
14317
+ amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
14318
+ sqrt_price: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
14319
+ }, "strip", z.ZodTypeAny, {
14320
+ amount: bigint;
14321
+ sqrt_price: bigint;
14322
+ }, {
14323
+ amount: string;
14324
+ sqrt_price: string;
14325
+ }>, "many">;
14326
+ asks: z.ZodArray<z.ZodObject<{
14327
+ amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
14328
+ sqrt_price: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
14329
+ }, "strip", z.ZodTypeAny, {
14330
+ amount: bigint;
14331
+ sqrt_price: bigint;
14332
+ }, {
14333
+ amount: string;
14334
+ sqrt_price: string;
14335
+ }>, "many">;
14336
+ }, "strip", z.ZodTypeAny, {
14337
+ asks: {
14338
+ amount: bigint;
14339
+ sqrt_price: bigint;
14340
+ }[];
14341
+ bids: {
14342
+ amount: bigint;
14343
+ sqrt_price: bigint;
14344
+ }[];
14345
+ }, {
14346
+ asks: {
14347
+ amount: string;
14348
+ sqrt_price: string;
14349
+ }[];
14350
+ bids: {
14351
+ amount: string;
14352
+ sqrt_price: string;
14353
+ }[];
14354
+ }>;
14310
14355
  };
14311
14356
  type RpcMethod = keyof RpcRequest;
14312
14357
  type RpcResponse<T extends RpcMethod> = z.input<(typeof rpcResult)[T]>;
package/dist/common.d.ts CHANGED
@@ -148,6 +148,11 @@ type RpcRequest = WithHash<{
148
148
  cf_flip_supply: [];
149
149
  cf_eth_state_chain_gateway_address: [];
150
150
  cf_eth_key_manager_address: [];
151
+ cf_pool_orderbook: [
152
+ baseAsset: UncheckedAssetAndChain,
153
+ quoteAsset: UncheckedAssetAndChain,
154
+ orders: number
155
+ ];
151
156
  }> & {
152
157
  chain_getBlockHash: [blockHeight?: number];
153
158
  };
@@ -14307,6 +14312,46 @@ declare const rpcResult: {
14307
14312
  }, [string | number, string | number]>;
14308
14313
  readonly cf_eth_state_chain_gateway_address: z.ZodNullable<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
14309
14314
  readonly cf_eth_key_manager_address: z.ZodNullable<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
14315
+ readonly cf_pool_orderbook: z.ZodObject<{
14316
+ bids: z.ZodArray<z.ZodObject<{
14317
+ amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
14318
+ sqrt_price: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
14319
+ }, "strip", z.ZodTypeAny, {
14320
+ amount: bigint;
14321
+ sqrt_price: bigint;
14322
+ }, {
14323
+ amount: string;
14324
+ sqrt_price: string;
14325
+ }>, "many">;
14326
+ asks: z.ZodArray<z.ZodObject<{
14327
+ amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
14328
+ sqrt_price: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
14329
+ }, "strip", z.ZodTypeAny, {
14330
+ amount: bigint;
14331
+ sqrt_price: bigint;
14332
+ }, {
14333
+ amount: string;
14334
+ sqrt_price: string;
14335
+ }>, "many">;
14336
+ }, "strip", z.ZodTypeAny, {
14337
+ asks: {
14338
+ amount: bigint;
14339
+ sqrt_price: bigint;
14340
+ }[];
14341
+ bids: {
14342
+ amount: bigint;
14343
+ sqrt_price: bigint;
14344
+ }[];
14345
+ }, {
14346
+ asks: {
14347
+ amount: string;
14348
+ sqrt_price: string;
14349
+ }[];
14350
+ bids: {
14351
+ amount: string;
14352
+ sqrt_price: string;
14353
+ }[];
14354
+ }>;
14310
14355
  };
14311
14356
  type RpcMethod = keyof RpcRequest;
14312
14357
  type RpcResponse<T extends RpcMethod> = z.input<(typeof rpcResult)[T]>;
package/dist/common.mjs CHANGED
@@ -28,7 +28,8 @@ import {
28
28
  numberOrHex,
29
29
  cfAuctionState,
30
30
  cfFlipSuppy,
31
- ethereumAddress
31
+ ethereumAddress,
32
+ cfPoolOrderbook
32
33
  } from "./parsers.mjs";
33
34
  import { rpcResponse } from "./parsers.mjs";
34
35
  var rpcResult = {
@@ -63,7 +64,8 @@ var rpcResult = {
63
64
  cf_auction_state: cfAuctionState,
64
65
  cf_flip_supply: cfFlipSuppy,
65
66
  cf_eth_state_chain_gateway_address: ethereumAddress.nullable(),
66
- cf_eth_key_manager_address: ethereumAddress.nullable()
67
+ cf_eth_key_manager_address: ethereumAddress.nullable(),
68
+ cf_pool_orderbook: cfPoolOrderbook
67
69
  };
68
70
  export {
69
71
  rpcResponse,
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, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, LpTotalBalances, LpTotalBalancesResponse } from './types.cjs';
3
+ export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, 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, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, LpTotalBalances, LpTotalBalancesResponse } from './types.js';
3
+ export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, 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
@@ -336,6 +336,11 @@ var cfFlipSuppy = range(numberOrHex).transform(([totalIssuance, offchainFunds])
336
336
  offchainFunds
337
337
  }));
338
338
  var ethereumAddress = _zod.z.string().transform((address) => `0x${address}`);
339
+ var cfPoolOrderbook = _zod.z.object({
340
+ bids: _zod.z.array(_zod.z.object({ amount: u256, sqrt_price: u256 })),
341
+ asks: _zod.z.array(_zod.z.object({ amount: u256, sqrt_price: u256 }))
342
+ });
343
+
339
344
 
340
345
 
341
346
 
@@ -372,4 +377,4 @@ var ethereumAddress = _zod.z.string().transform((address) => `0x${address}`);
372
377
 
373
378
 
374
379
 
375
- exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.cfAccountInfo = cfAccountInfo; exports.cfAccounts = cfAccounts; exports.cfAuctionState = cfAuctionState; exports.cfBoostPoolDetails = cfBoostPoolDetails; exports.cfBoostPoolPendingFees = cfBoostPoolPendingFees; exports.cfBoostPoolsDepth = cfBoostPoolsDepth; exports.cfEnvironment = cfEnvironment; exports.cfFailedCallEvm = cfFailedCallEvm; exports.cfFlipSuppy = cfFlipSuppy; exports.cfFundingEnvironment = cfFundingEnvironment; exports.cfIngressEgressEnvironment = cfIngressEgressEnvironment; exports.cfPoolDepth = cfPoolDepth; exports.cfPoolOrders = cfPoolOrders; exports.cfPoolPriceV2 = cfPoolPriceV2; exports.cfPoolsEnvironment = cfPoolsEnvironment; exports.cfSupportedAssets = cfSupportedAssets; exports.cfSwapRate = cfSwapRate; exports.cfSwapRateV2 = cfSwapRateV2; exports.cfSwapRateV3 = cfSwapRateV3; exports.cfSwappingEnvironment = cfSwappingEnvironment; exports.chainGetBlockHash = chainGetBlockHash; exports.ethereumAddress = ethereumAddress; exports.hexString = hexString; exports.liquidityProvider = liquidityProvider; exports.lpTotalBalances = lpTotalBalances; exports.numberOrHex = numberOrHex; exports.requestSwapParameterEncoding = requestSwapParameterEncoding; exports.rpcResponse = rpcResponse; exports.stateGetMetadata = stateGetMetadata; exports.stateGetRuntimeVersion = stateGetRuntimeVersion; exports.u256 = u256; exports.unregistered = unregistered; exports.validator = validator;
380
+ exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.cfAccountInfo = cfAccountInfo; exports.cfAccounts = cfAccounts; exports.cfAuctionState = cfAuctionState; exports.cfBoostPoolDetails = cfBoostPoolDetails; exports.cfBoostPoolPendingFees = cfBoostPoolPendingFees; exports.cfBoostPoolsDepth = cfBoostPoolsDepth; exports.cfEnvironment = cfEnvironment; exports.cfFailedCallEvm = cfFailedCallEvm; exports.cfFlipSuppy = cfFlipSuppy; exports.cfFundingEnvironment = cfFundingEnvironment; exports.cfIngressEgressEnvironment = cfIngressEgressEnvironment; exports.cfPoolDepth = cfPoolDepth; exports.cfPoolOrderbook = cfPoolOrderbook; exports.cfPoolOrders = cfPoolOrders; exports.cfPoolPriceV2 = cfPoolPriceV2; exports.cfPoolsEnvironment = cfPoolsEnvironment; exports.cfSupportedAssets = cfSupportedAssets; exports.cfSwapRate = cfSwapRate; exports.cfSwapRateV2 = cfSwapRateV2; exports.cfSwapRateV3 = cfSwapRateV3; exports.cfSwappingEnvironment = cfSwappingEnvironment; exports.chainGetBlockHash = chainGetBlockHash; exports.ethereumAddress = ethereumAddress; exports.hexString = hexString; exports.liquidityProvider = liquidityProvider; exports.lpTotalBalances = lpTotalBalances; exports.numberOrHex = numberOrHex; exports.requestSwapParameterEncoding = requestSwapParameterEncoding; exports.rpcResponse = rpcResponse; exports.stateGetMetadata = stateGetMetadata; exports.stateGetRuntimeVersion = stateGetRuntimeVersion; exports.u256 = u256; exports.unregistered = unregistered; exports.validator = validator;
@@ -15672,5 +15672,45 @@ declare const cfFlipSuppy: z.ZodEffects<z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.Z
15672
15672
  offchainFunds: bigint;
15673
15673
  }, [string | number, string | number]>;
15674
15674
  declare const ethereumAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
15675
+ declare const cfPoolOrderbook: z.ZodObject<{
15676
+ bids: z.ZodArray<z.ZodObject<{
15677
+ amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
15678
+ sqrt_price: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
15679
+ }, "strip", z.ZodTypeAny, {
15680
+ amount: bigint;
15681
+ sqrt_price: bigint;
15682
+ }, {
15683
+ amount: string;
15684
+ sqrt_price: string;
15685
+ }>, "many">;
15686
+ asks: z.ZodArray<z.ZodObject<{
15687
+ amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
15688
+ sqrt_price: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
15689
+ }, "strip", z.ZodTypeAny, {
15690
+ amount: bigint;
15691
+ sqrt_price: bigint;
15692
+ }, {
15693
+ amount: string;
15694
+ sqrt_price: string;
15695
+ }>, "many">;
15696
+ }, "strip", z.ZodTypeAny, {
15697
+ asks: {
15698
+ amount: bigint;
15699
+ sqrt_price: bigint;
15700
+ }[];
15701
+ bids: {
15702
+ amount: bigint;
15703
+ sqrt_price: bigint;
15704
+ }[];
15705
+ }, {
15706
+ asks: {
15707
+ amount: string;
15708
+ sqrt_price: string;
15709
+ }[];
15710
+ bids: {
15711
+ amount: string;
15712
+ sqrt_price: string;
15713
+ }[];
15714
+ }>;
15675
15715
 
15676
- export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
15716
+ export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
package/dist/parsers.d.ts CHANGED
@@ -15672,5 +15672,45 @@ declare const cfFlipSuppy: z.ZodEffects<z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.Z
15672
15672
  offchainFunds: bigint;
15673
15673
  }, [string | number, string | number]>;
15674
15674
  declare const ethereumAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
15675
+ declare const cfPoolOrderbook: z.ZodObject<{
15676
+ bids: z.ZodArray<z.ZodObject<{
15677
+ amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
15678
+ sqrt_price: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
15679
+ }, "strip", z.ZodTypeAny, {
15680
+ amount: bigint;
15681
+ sqrt_price: bigint;
15682
+ }, {
15683
+ amount: string;
15684
+ sqrt_price: string;
15685
+ }>, "many">;
15686
+ asks: z.ZodArray<z.ZodObject<{
15687
+ amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
15688
+ sqrt_price: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
15689
+ }, "strip", z.ZodTypeAny, {
15690
+ amount: bigint;
15691
+ sqrt_price: bigint;
15692
+ }, {
15693
+ amount: string;
15694
+ sqrt_price: string;
15695
+ }>, "many">;
15696
+ }, "strip", z.ZodTypeAny, {
15697
+ asks: {
15698
+ amount: bigint;
15699
+ sqrt_price: bigint;
15700
+ }[];
15701
+ bids: {
15702
+ amount: bigint;
15703
+ sqrt_price: bigint;
15704
+ }[];
15705
+ }, {
15706
+ asks: {
15707
+ amount: string;
15708
+ sqrt_price: string;
15709
+ }[];
15710
+ bids: {
15711
+ amount: string;
15712
+ sqrt_price: string;
15713
+ }[];
15714
+ }>;
15675
15715
 
15676
- export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
15716
+ export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
package/dist/parsers.mjs CHANGED
@@ -336,6 +336,10 @@ var cfFlipSuppy = range(numberOrHex).transform(([totalIssuance, offchainFunds])
336
336
  offchainFunds
337
337
  }));
338
338
  var ethereumAddress = z.string().transform((address) => `0x${address}`);
339
+ var cfPoolOrderbook = z.object({
340
+ bids: z.array(z.object({ amount: u256, sqrt_price: u256 })),
341
+ asks: z.array(z.object({ amount: u256, sqrt_price: u256 }))
342
+ });
339
343
  export {
340
344
  broker,
341
345
  brokerRequestSwapDepositAddress,
@@ -351,6 +355,7 @@ export {
351
355
  cfFundingEnvironment,
352
356
  cfIngressEgressEnvironment,
353
357
  cfPoolDepth,
358
+ cfPoolOrderbook,
354
359
  cfPoolOrders,
355
360
  cfPoolPriceV2,
356
361
  cfPoolsEnvironment,
package/dist/types.d.cts CHANGED
@@ -18,6 +18,7 @@ type CfFlipSupply = RpcResult<'cf_flip_supply'>;
18
18
  type CfFundingEnvironment = RpcResult<'cf_funding_environment'>;
19
19
  type CfIngressEgressEnvironment = RpcResult<'cf_ingress_egress_environment'>;
20
20
  type CfPoolDepth = RpcResult<'cf_pool_depth'>;
21
+ type CfPoolOrderbook = RpcResult<'cf_pool_orderbook'>;
21
22
  type CfPoolOrders = RpcResult<'cf_pool_orders'>;
22
23
  type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
23
24
  type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
@@ -40,6 +41,7 @@ type CfFlipSupplyResponse = RpcResponse<'cf_flip_supply'>;
40
41
  type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
41
42
  type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
42
43
  type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
44
+ type CfPoolOrderbookResponse = RpcResponse<'cf_pool_orderbook'>;
43
45
  type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
44
46
  type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
45
47
  type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
@@ -56,4 +58,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
56
58
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
57
59
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
58
60
 
59
- export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, 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 };
61
+ export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, 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 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
@@ -18,6 +18,7 @@ type CfFlipSupply = RpcResult<'cf_flip_supply'>;
18
18
  type CfFundingEnvironment = RpcResult<'cf_funding_environment'>;
19
19
  type CfIngressEgressEnvironment = RpcResult<'cf_ingress_egress_environment'>;
20
20
  type CfPoolDepth = RpcResult<'cf_pool_depth'>;
21
+ type CfPoolOrderbook = RpcResult<'cf_pool_orderbook'>;
21
22
  type CfPoolOrders = RpcResult<'cf_pool_orders'>;
22
23
  type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
23
24
  type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
@@ -40,6 +41,7 @@ type CfFlipSupplyResponse = RpcResponse<'cf_flip_supply'>;
40
41
  type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
41
42
  type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
42
43
  type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
44
+ type CfPoolOrderbookResponse = RpcResponse<'cf_pool_orderbook'>;
43
45
  type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
44
46
  type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
45
47
  type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
@@ -56,4 +58,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
56
58
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
57
59
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
58
60
 
59
- export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, 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 };
61
+ export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, 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 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.8.11",
3
+ "version": "1.8.12",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.7.0",