@chainflip/rpc 1.9.5 → 1.9.7

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.d.ts CHANGED
@@ -125,12 +125,12 @@ type AssetAndChain = z.output<typeof rpcAssetSchema>;
125
125
  type Rename<T, U extends Record<string, string>> = Omit<T, keyof U> & {
126
126
  [K in keyof U as NonNullable<U[K]>]: K extends keyof T ? T[K] : never;
127
127
  };
128
- declare const rpcResponse: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
128
+ declare const rpcResponse: z.ZodUnion<[z.ZodObject<{
129
129
  id: z.ZodString;
130
130
  jsonrpc: z.ZodLiteral<"2.0">;
131
- }, {
131
+ } & {
132
132
  result: z.ZodEffects<z.ZodAny, any, any>;
133
- }>, "strip", z.ZodTypeAny, {
133
+ }, "strip", z.ZodTypeAny, {
134
134
  id: string;
135
135
  jsonrpc: "2.0";
136
136
  result?: any;
@@ -138,10 +138,10 @@ declare const rpcResponse: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
138
138
  id: string;
139
139
  jsonrpc: "2.0";
140
140
  result?: any;
141
- }>, z.ZodObject<z.objectUtil.extendShape<{
141
+ }>, z.ZodObject<{
142
142
  id: z.ZodString;
143
143
  jsonrpc: z.ZodLiteral<"2.0">;
144
- }, {
144
+ } & {
145
145
  error: z.ZodObject<{
146
146
  code: z.ZodNumber;
147
147
  message: z.ZodString;
@@ -152,7 +152,7 @@ declare const rpcResponse: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
152
152
  code: number;
153
153
  message: string;
154
154
  }>;
155
- }>, "strip", z.ZodTypeAny, {
155
+ }, "strip", z.ZodTypeAny, {
156
156
  id: string;
157
157
  jsonrpc: "2.0";
158
158
  error: {
@@ -811,7 +811,7 @@ declare const cfSwapRateV2: z.ZodObject<{
811
811
  amount: string | number;
812
812
  };
813
813
  }>;
814
- declare const cfSwapRateV3: z.ZodObject<z.objectUtil.extendShape<{
814
+ declare const cfSwapRateV3: z.ZodObject<{
815
815
  egress_fee: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
816
816
  chain: z.ZodLiteral<"Bitcoin">;
817
817
  asset: z.ZodLiteral<"BTC">;
@@ -1186,7 +1186,7 @@ declare const cfSwapRateV3: z.ZodObject<z.objectUtil.extendShape<{
1186
1186
  amount: string | number;
1187
1187
  }>>;
1188
1188
  output: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
1189
- }, {
1189
+ } & {
1190
1190
  broker_commission: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1191
1191
  chain: z.ZodLiteral<"Bitcoin">;
1192
1192
  asset: z.ZodLiteral<"BTC">;
@@ -1311,7 +1311,7 @@ declare const cfSwapRateV3: z.ZodObject<z.objectUtil.extendShape<{
1311
1311
  }, {
1312
1312
  amount: string | number;
1313
1313
  }>>;
1314
- }>, "strip", z.ZodTypeAny, {
1314
+ }, "strip", z.ZodTypeAny, {
1315
1315
  intermediary: bigint | null;
1316
1316
  output: bigint;
1317
1317
  egress_fee: ({
@@ -15418,14 +15418,14 @@ declare const requestSwapParameterEncoding: z.ZodDiscriminatedUnion<"chain", [z.
15418
15418
  chain: "Bitcoin";
15419
15419
  nulldata_payload: string;
15420
15420
  deposit_address: string;
15421
- }>, z.ZodObject<z.objectUtil.extendShape<{
15421
+ }>, z.ZodObject<{
15422
15422
  to: z.ZodEffects<z.ZodString, `0x${string}`, string>;
15423
15423
  calldata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
15424
15424
  value: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
15425
15425
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
15426
- }, {
15426
+ } & {
15427
15427
  chain: z.ZodLiteral<"Ethereum">;
15428
- }>, "strip", z.ZodTypeAny, {
15428
+ }, "strip", z.ZodTypeAny, {
15429
15429
  value: bigint;
15430
15430
  chain: "Ethereum";
15431
15431
  to: `0x${string}`;
@@ -15437,14 +15437,14 @@ declare const requestSwapParameterEncoding: z.ZodDiscriminatedUnion<"chain", [z.
15437
15437
  to: string;
15438
15438
  calldata: string;
15439
15439
  source_token_address?: string | undefined;
15440
- }>, z.ZodObject<z.objectUtil.extendShape<{
15440
+ }>, z.ZodObject<{
15441
15441
  to: z.ZodEffects<z.ZodString, `0x${string}`, string>;
15442
15442
  calldata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
15443
15443
  value: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
15444
15444
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
15445
- }, {
15445
+ } & {
15446
15446
  chain: z.ZodLiteral<"Arbitrum">;
15447
- }>, "strip", z.ZodTypeAny, {
15447
+ }, "strip", z.ZodTypeAny, {
15448
15448
  value: bigint;
15449
15449
  chain: "Arbitrum";
15450
15450
  to: `0x${string}`;
@@ -21465,6 +21465,352 @@ declare const cfGetTradingStrategies: z.ZodDefault<z.ZodArray<z.ZodObject<{
21465
21465
  asset: "USDT";
21466
21466
  }, string | number][];
21467
21467
  }>, "many">>;
21468
+ declare const cfGetTradingStrategyLimits: z.ZodObject<{
21469
+ minimum_deployment_amount: z.ZodObject<{
21470
+ Bitcoin: z.ZodObject<{
21471
+ BTC: z.ZodNullable<z.ZodNumber>;
21472
+ }, "strip", z.ZodTypeAny, {
21473
+ BTC: number | null;
21474
+ }, {
21475
+ BTC: number | null;
21476
+ }>;
21477
+ Ethereum: z.ZodObject<{
21478
+ ETH: z.ZodNullable<z.ZodNumber>;
21479
+ USDC: z.ZodNullable<z.ZodNumber>;
21480
+ FLIP: z.ZodNullable<z.ZodNumber>;
21481
+ USDT: z.ZodNullable<z.ZodNumber>;
21482
+ }, "strip", z.ZodTypeAny, {
21483
+ ETH: number | null;
21484
+ USDC: number | null;
21485
+ FLIP: number | null;
21486
+ USDT: number | null;
21487
+ }, {
21488
+ ETH: number | null;
21489
+ USDC: number | null;
21490
+ FLIP: number | null;
21491
+ USDT: number | null;
21492
+ }>;
21493
+ Polkadot: z.ZodObject<{
21494
+ DOT: z.ZodNullable<z.ZodNumber>;
21495
+ }, "strip", z.ZodTypeAny, {
21496
+ DOT: number | null;
21497
+ }, {
21498
+ DOT: number | null;
21499
+ }>;
21500
+ Arbitrum: z.ZodObject<{
21501
+ ETH: z.ZodNullable<z.ZodNumber>;
21502
+ USDC: z.ZodNullable<z.ZodNumber>;
21503
+ }, "strip", z.ZodTypeAny, {
21504
+ ETH: number | null;
21505
+ USDC: number | null;
21506
+ }, {
21507
+ ETH: number | null;
21508
+ USDC: number | null;
21509
+ }>;
21510
+ Solana: z.ZodObject<{
21511
+ SOL: z.ZodNullable<z.ZodNumber>;
21512
+ USDC: z.ZodNullable<z.ZodNumber>;
21513
+ }, "strip", z.ZodTypeAny, {
21514
+ USDC: number | null;
21515
+ SOL: number | null;
21516
+ }, {
21517
+ USDC: number | null;
21518
+ SOL: number | null;
21519
+ }>;
21520
+ Assethub: z.ZodDefault<z.ZodObject<{
21521
+ DOT: z.ZodNullable<z.ZodNumber>;
21522
+ USDC: z.ZodNullable<z.ZodNumber>;
21523
+ USDT: z.ZodNullable<z.ZodNumber>;
21524
+ }, "strip", z.ZodTypeAny, {
21525
+ USDC: number | null;
21526
+ USDT: number | null;
21527
+ DOT: number | null;
21528
+ }, {
21529
+ USDC: number | null;
21530
+ USDT: number | null;
21531
+ DOT: number | null;
21532
+ }>>;
21533
+ }, "strip", z.ZodTypeAny, {
21534
+ Bitcoin: {
21535
+ BTC: number | null;
21536
+ };
21537
+ Ethereum: {
21538
+ ETH: number | null;
21539
+ USDC: number | null;
21540
+ FLIP: number | null;
21541
+ USDT: number | null;
21542
+ };
21543
+ Arbitrum: {
21544
+ ETH: number | null;
21545
+ USDC: number | null;
21546
+ };
21547
+ Solana: {
21548
+ USDC: number | null;
21549
+ SOL: number | null;
21550
+ };
21551
+ Polkadot: {
21552
+ DOT: number | null;
21553
+ };
21554
+ Assethub: {
21555
+ USDC: number | null;
21556
+ USDT: number | null;
21557
+ DOT: number | null;
21558
+ };
21559
+ }, {
21560
+ Bitcoin: {
21561
+ BTC: number | null;
21562
+ };
21563
+ Ethereum: {
21564
+ ETH: number | null;
21565
+ USDC: number | null;
21566
+ FLIP: number | null;
21567
+ USDT: number | null;
21568
+ };
21569
+ Arbitrum: {
21570
+ ETH: number | null;
21571
+ USDC: number | null;
21572
+ };
21573
+ Solana: {
21574
+ USDC: number | null;
21575
+ SOL: number | null;
21576
+ };
21577
+ Polkadot: {
21578
+ DOT: number | null;
21579
+ };
21580
+ Assethub?: {
21581
+ USDC: number | null;
21582
+ USDT: number | null;
21583
+ DOT: number | null;
21584
+ } | undefined;
21585
+ }>;
21586
+ minimum_added_funds_amount: z.ZodObject<{
21587
+ Bitcoin: z.ZodObject<{
21588
+ BTC: z.ZodNullable<z.ZodNumber>;
21589
+ }, "strip", z.ZodTypeAny, {
21590
+ BTC: number | null;
21591
+ }, {
21592
+ BTC: number | null;
21593
+ }>;
21594
+ Ethereum: z.ZodObject<{
21595
+ ETH: z.ZodNullable<z.ZodNumber>;
21596
+ USDC: z.ZodNullable<z.ZodNumber>;
21597
+ FLIP: z.ZodNullable<z.ZodNumber>;
21598
+ USDT: z.ZodNullable<z.ZodNumber>;
21599
+ }, "strip", z.ZodTypeAny, {
21600
+ ETH: number | null;
21601
+ USDC: number | null;
21602
+ FLIP: number | null;
21603
+ USDT: number | null;
21604
+ }, {
21605
+ ETH: number | null;
21606
+ USDC: number | null;
21607
+ FLIP: number | null;
21608
+ USDT: number | null;
21609
+ }>;
21610
+ Polkadot: z.ZodObject<{
21611
+ DOT: z.ZodNullable<z.ZodNumber>;
21612
+ }, "strip", z.ZodTypeAny, {
21613
+ DOT: number | null;
21614
+ }, {
21615
+ DOT: number | null;
21616
+ }>;
21617
+ Arbitrum: z.ZodObject<{
21618
+ ETH: z.ZodNullable<z.ZodNumber>;
21619
+ USDC: z.ZodNullable<z.ZodNumber>;
21620
+ }, "strip", z.ZodTypeAny, {
21621
+ ETH: number | null;
21622
+ USDC: number | null;
21623
+ }, {
21624
+ ETH: number | null;
21625
+ USDC: number | null;
21626
+ }>;
21627
+ Solana: z.ZodObject<{
21628
+ SOL: z.ZodNullable<z.ZodNumber>;
21629
+ USDC: z.ZodNullable<z.ZodNumber>;
21630
+ }, "strip", z.ZodTypeAny, {
21631
+ USDC: number | null;
21632
+ SOL: number | null;
21633
+ }, {
21634
+ USDC: number | null;
21635
+ SOL: number | null;
21636
+ }>;
21637
+ Assethub: z.ZodDefault<z.ZodObject<{
21638
+ DOT: z.ZodNullable<z.ZodNumber>;
21639
+ USDC: z.ZodNullable<z.ZodNumber>;
21640
+ USDT: z.ZodNullable<z.ZodNumber>;
21641
+ }, "strip", z.ZodTypeAny, {
21642
+ USDC: number | null;
21643
+ USDT: number | null;
21644
+ DOT: number | null;
21645
+ }, {
21646
+ USDC: number | null;
21647
+ USDT: number | null;
21648
+ DOT: number | null;
21649
+ }>>;
21650
+ }, "strip", z.ZodTypeAny, {
21651
+ Bitcoin: {
21652
+ BTC: number | null;
21653
+ };
21654
+ Ethereum: {
21655
+ ETH: number | null;
21656
+ USDC: number | null;
21657
+ FLIP: number | null;
21658
+ USDT: number | null;
21659
+ };
21660
+ Arbitrum: {
21661
+ ETH: number | null;
21662
+ USDC: number | null;
21663
+ };
21664
+ Solana: {
21665
+ USDC: number | null;
21666
+ SOL: number | null;
21667
+ };
21668
+ Polkadot: {
21669
+ DOT: number | null;
21670
+ };
21671
+ Assethub: {
21672
+ USDC: number | null;
21673
+ USDT: number | null;
21674
+ DOT: number | null;
21675
+ };
21676
+ }, {
21677
+ Bitcoin: {
21678
+ BTC: number | null;
21679
+ };
21680
+ Ethereum: {
21681
+ ETH: number | null;
21682
+ USDC: number | null;
21683
+ FLIP: number | null;
21684
+ USDT: number | null;
21685
+ };
21686
+ Arbitrum: {
21687
+ ETH: number | null;
21688
+ USDC: number | null;
21689
+ };
21690
+ Solana: {
21691
+ USDC: number | null;
21692
+ SOL: number | null;
21693
+ };
21694
+ Polkadot: {
21695
+ DOT: number | null;
21696
+ };
21697
+ Assethub?: {
21698
+ USDC: number | null;
21699
+ USDT: number | null;
21700
+ DOT: number | null;
21701
+ } | undefined;
21702
+ }>;
21703
+ }, "strip", z.ZodTypeAny, {
21704
+ minimum_deployment_amount: {
21705
+ Bitcoin: {
21706
+ BTC: number | null;
21707
+ };
21708
+ Ethereum: {
21709
+ ETH: number | null;
21710
+ USDC: number | null;
21711
+ FLIP: number | null;
21712
+ USDT: number | null;
21713
+ };
21714
+ Arbitrum: {
21715
+ ETH: number | null;
21716
+ USDC: number | null;
21717
+ };
21718
+ Solana: {
21719
+ USDC: number | null;
21720
+ SOL: number | null;
21721
+ };
21722
+ Polkadot: {
21723
+ DOT: number | null;
21724
+ };
21725
+ Assethub: {
21726
+ USDC: number | null;
21727
+ USDT: number | null;
21728
+ DOT: number | null;
21729
+ };
21730
+ };
21731
+ minimum_added_funds_amount: {
21732
+ Bitcoin: {
21733
+ BTC: number | null;
21734
+ };
21735
+ Ethereum: {
21736
+ ETH: number | null;
21737
+ USDC: number | null;
21738
+ FLIP: number | null;
21739
+ USDT: number | null;
21740
+ };
21741
+ Arbitrum: {
21742
+ ETH: number | null;
21743
+ USDC: number | null;
21744
+ };
21745
+ Solana: {
21746
+ USDC: number | null;
21747
+ SOL: number | null;
21748
+ };
21749
+ Polkadot: {
21750
+ DOT: number | null;
21751
+ };
21752
+ Assethub: {
21753
+ USDC: number | null;
21754
+ USDT: number | null;
21755
+ DOT: number | null;
21756
+ };
21757
+ };
21758
+ }, {
21759
+ minimum_deployment_amount: {
21760
+ Bitcoin: {
21761
+ BTC: number | null;
21762
+ };
21763
+ Ethereum: {
21764
+ ETH: number | null;
21765
+ USDC: number | null;
21766
+ FLIP: number | null;
21767
+ USDT: number | null;
21768
+ };
21769
+ Arbitrum: {
21770
+ ETH: number | null;
21771
+ USDC: number | null;
21772
+ };
21773
+ Solana: {
21774
+ USDC: number | null;
21775
+ SOL: number | null;
21776
+ };
21777
+ Polkadot: {
21778
+ DOT: number | null;
21779
+ };
21780
+ Assethub?: {
21781
+ USDC: number | null;
21782
+ USDT: number | null;
21783
+ DOT: number | null;
21784
+ } | undefined;
21785
+ };
21786
+ minimum_added_funds_amount: {
21787
+ Bitcoin: {
21788
+ BTC: number | null;
21789
+ };
21790
+ Ethereum: {
21791
+ ETH: number | null;
21792
+ USDC: number | null;
21793
+ FLIP: number | null;
21794
+ USDT: number | null;
21795
+ };
21796
+ Arbitrum: {
21797
+ ETH: number | null;
21798
+ USDC: number | null;
21799
+ };
21800
+ Solana: {
21801
+ USDC: number | null;
21802
+ SOL: number | null;
21803
+ };
21804
+ Polkadot: {
21805
+ DOT: number | null;
21806
+ };
21807
+ Assethub?: {
21808
+ USDC: number | null;
21809
+ USDT: number | null;
21810
+ DOT: number | null;
21811
+ } | undefined;
21812
+ };
21813
+ }>;
21468
21814
  declare const cfAvailablePools: z.ZodArray<z.ZodObject<{
21469
21815
  base: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
21470
21816
  chain: z.ZodLiteral<"Bitcoin">;
@@ -22222,4 +22568,4 @@ declare const cfSafeModeStatuses: z.ZodObject<{
22222
22568
  } | undefined;
22223
22569
  }>;
22224
22570
 
22225
- export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
22571
+ export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
package/dist/parsers.mjs CHANGED
@@ -360,6 +360,10 @@ var cfTradingStrategy = z.object({
360
360
  balance: z.array(z.tuple([rpcAssetSchema, numberOrHex]))
361
361
  });
362
362
  var cfGetTradingStrategies = z.array(cfTradingStrategy).default([]);
363
+ var cfGetTradingStrategyLimits = z.object({
364
+ minimum_deployment_amount: chainAssetMapFactory(z.number().nullable(), null),
365
+ minimum_added_funds_amount: chainAssetMapFactory(z.number().nullable(), null)
366
+ });
363
367
  var cfAvailablePools = z.array(
364
368
  z.object({
365
369
  base: rpcAssetSchema.refine(
@@ -494,6 +498,7 @@ export {
494
498
  cfFlipSuppy,
495
499
  cfFundingEnvironment,
496
500
  cfGetTradingStrategies,
501
+ cfGetTradingStrategyLimits,
497
502
  cfIngressEgressEnvironment,
498
503
  cfPoolDepth,
499
504
  cfPoolOrderbook,
package/dist/types.d.cts CHANGED
@@ -29,6 +29,7 @@ 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
31
  type CfGetTradingStrategies = RpcResult<'cf_get_trading_strategies'>;
32
+ type CfGetTradingStrategyLimits = RpcResult<'cf_get_trading_strategy_limits'>;
32
33
  type CfAvailablePools = RpcResult<'cf_available_pools'>;
33
34
  type CfSafeModeStatuses = RpcResult<'cf_safe_mode_statuses'>;
34
35
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
@@ -55,6 +56,7 @@ type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
55
56
  type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
56
57
  type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
57
58
  type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
59
+ type CfGetTradingStrategyLimitsResponse = RpcResponse<'cf_get_trading_strategy_limits'>;
58
60
  type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
59
61
  type CfSafeModeStatusesResponse = RpcResponse<'cf_safe_mode_statuses'>;
60
62
  type CfUnregisteredAccount = z.output<typeof unregistered>;
@@ -64,4 +66,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
64
66
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
65
67
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
66
68
 
67
- 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 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 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 };
69
+ 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 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 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 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
@@ -29,6 +29,7 @@ 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
31
  type CfGetTradingStrategies = RpcResult<'cf_get_trading_strategies'>;
32
+ type CfGetTradingStrategyLimits = RpcResult<'cf_get_trading_strategy_limits'>;
32
33
  type CfAvailablePools = RpcResult<'cf_available_pools'>;
33
34
  type CfSafeModeStatuses = RpcResult<'cf_safe_mode_statuses'>;
34
35
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
@@ -55,6 +56,7 @@ type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
55
56
  type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
56
57
  type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
57
58
  type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
59
+ type CfGetTradingStrategyLimitsResponse = RpcResponse<'cf_get_trading_strategy_limits'>;
58
60
  type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
59
61
  type CfSafeModeStatusesResponse = RpcResponse<'cf_safe_mode_statuses'>;
60
62
  type CfUnregisteredAccount = z.output<typeof unregistered>;
@@ -64,4 +66,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
64
66
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
65
67
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
66
68
 
67
- 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 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 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 };
69
+ 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 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 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 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/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.9.5",
3
+ "version": "1.9.7",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.8.6",
7
- "zod": "^3.24.2"
7
+ "zod": "^3.24.4"
8
8
  },
9
9
  "devDependencies": {
10
10
  "@types/node": "^22.14.1",
11
11
  "@types/ws": "^8.18.1",
12
- "ws": "^8.18.1"
12
+ "ws": "^8.18.2"
13
13
  },
14
14
  "files": [
15
15
  "dist",