@chainflip/rpc 1.9.1 → 1.9.2

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/parsers.mjs CHANGED
@@ -345,6 +345,18 @@ var cfPoolOrderbook = z.object({
345
345
  bids: z.array(z.object({ amount: u256, sqrt_price: u256 })),
346
346
  asks: z.array(z.object({ amount: u256, sqrt_price: u256 }))
347
347
  });
348
+ var cfTradingStrategy = z.object({
349
+ lp_id: z.string(),
350
+ strategy_id: z.string(),
351
+ strategy: z.object({
352
+ TickZeroCentered: z.object({
353
+ spread_tick: z.number(),
354
+ base_asset: rpcAssetSchema
355
+ })
356
+ }),
357
+ balance: z.array(z.tuple([rpcAssetSchema, numberOrHex]))
358
+ });
359
+ var cfGetTradingStrategies = z.array(cfTradingStrategy).default([]);
348
360
  export {
349
361
  broker,
350
362
  brokerRequestSwapDepositAddress,
@@ -358,6 +370,7 @@ export {
358
370
  cfFailedCallEvm,
359
371
  cfFlipSuppy,
360
372
  cfFundingEnvironment,
373
+ cfGetTradingStrategies,
361
374
  cfIngressEgressEnvironment,
362
375
  cfPoolDepth,
363
376
  cfPoolOrderbook,
@@ -369,6 +382,7 @@ export {
369
382
  cfSwapRateV2,
370
383
  cfSwapRateV3,
371
384
  cfSwappingEnvironment,
385
+ cfTradingStrategy,
372
386
  chainGetBlockHash,
373
387
  ethereumAddress,
374
388
  hexString,
package/dist/types.d.cts CHANGED
@@ -28,6 +28,7 @@ type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
28
28
  type CfSwapRate = RpcResult<'cf_swap_rate'>;
29
29
  type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
30
30
  type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
31
+ type CfGetTradingStrategies = RpcResult<'cf_get_trading_strategies'>;
31
32
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
32
33
  type CfAccountsResponse = RpcResponse<'cf_accounts'>;
33
34
  type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
@@ -51,6 +52,7 @@ type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
51
52
  type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
52
53
  type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
53
54
  type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
55
+ type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
54
56
  type CfUnregisteredAccount = z.output<typeof unregistered>;
55
57
  type CfBrokerAccount = z.output<typeof broker>;
56
58
  type CfValidatorAccount = z.output<typeof validator>;
@@ -58,4 +60,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
58
60
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
59
61
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
60
62
 
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 };
63
+ 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 CfGetTradingStrategies, type CfGetTradingStrategiesResponse, 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
@@ -28,6 +28,7 @@ type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
28
28
  type CfSwapRate = RpcResult<'cf_swap_rate'>;
29
29
  type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
30
30
  type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
31
+ type CfGetTradingStrategies = RpcResult<'cf_get_trading_strategies'>;
31
32
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
32
33
  type CfAccountsResponse = RpcResponse<'cf_accounts'>;
33
34
  type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
@@ -51,6 +52,7 @@ type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
51
52
  type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
52
53
  type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
53
54
  type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
55
+ type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
54
56
  type CfUnregisteredAccount = z.output<typeof unregistered>;
55
57
  type CfBrokerAccount = z.output<typeof broker>;
56
58
  type CfValidatorAccount = z.output<typeof validator>;
@@ -58,4 +60,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
58
60
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
59
61
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
60
62
 
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 };
63
+ 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 CfGetTradingStrategies, type CfGetTradingStrategiesResponse, 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.9.1",
3
+ "version": "1.9.2",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.7.0",