@chainflip/rpc 1.9.9 → 1.10.0

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
@@ -44,6 +44,17 @@ var rpcAssetSchema = z.union([
44
44
  z.object({ chain: z.literal("Assethub"), asset: z.literal("USDC") }),
45
45
  z.object({ chain: z.literal("Assethub"), asset: z.literal("USDT") })
46
46
  ]);
47
+ var networkFee = z.object({
48
+ standard_rate_and_minimum: z.object({
49
+ rate: numberOrHex,
50
+ minimum: numberOrHex
51
+ }),
52
+ rates: chainAssetMapFactory(numberOrHex, 0)
53
+ });
54
+ var networkFees = z.object({
55
+ regular_network_fee: networkFee,
56
+ internal_swap_network_fee: networkFee
57
+ });
47
58
  var rename = (mapping) => (obj) => Object.fromEntries(
48
59
  Object.entries(obj).map(([key, value]) => [
49
60
  key in mapping ? mapping[key] : key,
@@ -101,7 +112,9 @@ var cfSwappingEnvironment = z.object({
101
112
  swap_retry_delay_blocks: z.number().optional(),
102
113
  max_swap_retry_duration_blocks: z.number().optional(),
103
114
  max_swap_request_duration_blocks: z.number().optional(),
104
- minimum_chunk_size: chainAssetMapFactory(numberOrHex.nullable(), null).optional()
115
+ minimum_chunk_size: chainAssetMapFactory(numberOrHex.nullable(), null).optional(),
116
+ network_fees: networkFees.optional()
117
+ // TODO(1.10): remove optional
105
118
  });
106
119
  var cfFundingEnvironment = z.object({
107
120
  redemption_tax: numberOrHex,
@@ -238,7 +251,9 @@ var validator = z.object({
238
251
  is_bidding: z.boolean(),
239
252
  bound_redeem_address: hexString.nullable(),
240
253
  apy_bp: z.number().nullable(),
241
- restricted_balances: z.record(hexString, numberOrHex)
254
+ restricted_balances: z.record(hexString, numberOrHex),
255
+ estimated_redeemable_balance: numberOrHex.optional()
256
+ // TODO(1.10): remove optional
242
257
  });
243
258
  var cfAccountInfo = z.discriminatedUnion("role", [
244
259
  unregistered,
@@ -351,12 +366,30 @@ var cfPoolOrderbook = z.object({
351
366
  var cfTradingStrategy = z.object({
352
367
  lp_id: z.string(),
353
368
  strategy_id: z.string(),
354
- strategy: z.object({
355
- TickZeroCentered: z.object({
356
- spread_tick: z.number(),
357
- base_asset: rpcAssetSchema
369
+ strategy: z.union([
370
+ z.object({
371
+ TickZeroCentered: z.object({
372
+ spread_tick: z.number(),
373
+ base_asset: rpcAssetSchema
374
+ })
375
+ }),
376
+ z.object({
377
+ SimpleBuySell: z.object({
378
+ buy_tick: z.number(),
379
+ sell_tick: z.number(),
380
+ base_asset: rpcAssetSchema
381
+ })
382
+ }),
383
+ z.object({
384
+ InventoryBased: z.object({
385
+ min_buy_tick: z.number(),
386
+ max_buy_tick: z.number(),
387
+ min_sell_tick: z.number(),
388
+ max_sell_tick: z.number(),
389
+ base_asset: rpcAssetSchema
390
+ })
358
391
  })
359
- }),
392
+ ]),
360
393
  balance: z.array(z.tuple([rpcAssetSchema, numberOrHex]))
361
394
  });
362
395
  var cfGetTradingStrategies = z.array(cfTradingStrategy).default([]);
@@ -372,7 +405,7 @@ var cfAvailablePools = z.array(
372
405
  quote: z.object({ chain: z.literal("Ethereum"), asset: z.literal("USDC") })
373
406
  })
374
407
  );
375
- var cfSafeModeStatuses = z.object({
408
+ var cfSafeModeStatusesBase = z.object({
376
409
  emissions: z.object({
377
410
  emissions_sync_enabled: z.boolean()
378
411
  }),
@@ -440,49 +473,81 @@ var cfSafeModeStatuses = z.object({
440
473
  broadcast_solana: z.object({
441
474
  retry_enabled: z.boolean()
442
475
  }),
443
- broadcast_assethub: z.object({ retry_enabled: z.boolean() }).optional().default({ retry_enabled: false }),
444
- ingress_egress_ethereum: z.object({
445
- boost_deposits_enabled: z.boolean(),
446
- add_boost_funds_enabled: z.boolean(),
447
- stop_boosting_enabled: z.boolean(),
448
- deposits_enabled: z.boolean()
449
- }),
450
- ingress_egress_bitcoin: z.object({
451
- boost_deposits_enabled: z.boolean(),
452
- add_boost_funds_enabled: z.boolean(),
453
- stop_boosting_enabled: z.boolean(),
454
- deposits_enabled: z.boolean()
455
- }),
456
- ingress_egress_polkadot: z.object({
457
- boost_deposits_enabled: z.boolean(),
458
- add_boost_funds_enabled: z.boolean(),
459
- stop_boosting_enabled: z.boolean(),
460
- deposits_enabled: z.boolean()
461
- }),
462
- ingress_egress_arbitrum: z.object({
463
- boost_deposits_enabled: z.boolean(),
464
- add_boost_funds_enabled: z.boolean(),
465
- stop_boosting_enabled: z.boolean(),
466
- deposits_enabled: z.boolean()
467
- }),
468
- ingress_egress_solana: z.object({
469
- boost_deposits_enabled: z.boolean(),
470
- add_boost_funds_enabled: z.boolean(),
471
- stop_boosting_enabled: z.boolean(),
472
- deposits_enabled: z.boolean()
473
- }),
474
- ingress_egress_assethub: z.object({
475
- boost_deposits_enabled: z.boolean(),
476
- add_boost_funds_enabled: z.boolean(),
477
- stop_boosting_enabled: z.boolean(),
478
- deposits_enabled: z.boolean()
479
- }).optional().default({
480
- boost_deposits_enabled: false,
481
- add_boost_funds_enabled: false,
482
- stop_boosting_enabled: false,
483
- deposits_enabled: false
476
+ broadcast_assethub: z.object({
477
+ retry_enabled: z.boolean()
484
478
  })
485
479
  });
480
+ var cfSafeModeStatuses = z.union([
481
+ // TODO(1.10): remove
482
+ cfSafeModeStatusesBase.extend({
483
+ ingress_egress_ethereum: z.object({
484
+ boost_deposits_enabled: z.boolean(),
485
+ add_boost_funds_enabled: z.boolean(),
486
+ stop_boosting_enabled: z.boolean(),
487
+ deposits_enabled: z.boolean()
488
+ }),
489
+ ingress_egress_bitcoin: z.object({
490
+ boost_deposits_enabled: z.boolean(),
491
+ add_boost_funds_enabled: z.boolean(),
492
+ stop_boosting_enabled: z.boolean(),
493
+ deposits_enabled: z.boolean()
494
+ }),
495
+ ingress_egress_polkadot: z.object({
496
+ boost_deposits_enabled: z.boolean(),
497
+ add_boost_funds_enabled: z.boolean(),
498
+ stop_boosting_enabled: z.boolean(),
499
+ deposits_enabled: z.boolean()
500
+ }),
501
+ ingress_egress_arbitrum: z.object({
502
+ boost_deposits_enabled: z.boolean(),
503
+ add_boost_funds_enabled: z.boolean(),
504
+ stop_boosting_enabled: z.boolean(),
505
+ deposits_enabled: z.boolean()
506
+ }),
507
+ ingress_egress_solana: z.object({
508
+ boost_deposits_enabled: z.boolean(),
509
+ add_boost_funds_enabled: z.boolean(),
510
+ stop_boosting_enabled: z.boolean(),
511
+ deposits_enabled: z.boolean()
512
+ }),
513
+ ingress_egress_assethub: z.object({
514
+ boost_deposits_enabled: z.boolean(),
515
+ add_boost_funds_enabled: z.boolean(),
516
+ stop_boosting_enabled: z.boolean(),
517
+ deposits_enabled: z.boolean()
518
+ })
519
+ }),
520
+ cfSafeModeStatusesBase.extend({
521
+ lending_pools: z.object({
522
+ add_boost_funds_enabled: z.boolean(),
523
+ stop_boosting_enabled: z.boolean()
524
+ }),
525
+ ingress_egress_ethereum: z.object({
526
+ boost_deposits_enabled: z.boolean(),
527
+ deposits_enabled: z.boolean()
528
+ }),
529
+ ingress_egress_bitcoin: z.object({
530
+ boost_deposits_enabled: z.boolean(),
531
+ deposits_enabled: z.boolean()
532
+ }),
533
+ ingress_egress_polkadot: z.object({
534
+ boost_deposits_enabled: z.boolean(),
535
+ deposits_enabled: z.boolean()
536
+ }),
537
+ ingress_egress_arbitrum: z.object({
538
+ boost_deposits_enabled: z.boolean(),
539
+ deposits_enabled: z.boolean()
540
+ }),
541
+ ingress_egress_solana: z.object({
542
+ boost_deposits_enabled: z.boolean(),
543
+ deposits_enabled: z.boolean()
544
+ }),
545
+ ingress_egress_assethub: z.object({
546
+ boost_deposits_enabled: z.boolean(),
547
+ deposits_enabled: z.boolean()
548
+ })
549
+ })
550
+ ]);
486
551
  export {
487
552
  broker,
488
553
  brokerRequestSwapDepositAddress,
package/dist/types.d.cts CHANGED
@@ -8,14 +8,18 @@ import '@chainflip/utils/types';
8
8
  type CfAccountInfo = RpcResult<'cf_account_info'>;
9
9
  type CfAccounts = RpcResult<'cf_accounts'>;
10
10
  type CfAuctionState = RpcResult<'cf_auction_state'>;
11
+ type CfAvailablePools = RpcResult<'cf_available_pools'>;
11
12
  type CfBoostPoolDetails = RpcResult<'cf_boost_pool_details'>;
12
13
  type CfBoostPoolPendingFees = RpcResult<'cf_boost_pool_pending_fees'>;
13
14
  type CfBoostPoolsDepth = RpcResult<'cf_boost_pools_depth'>;
15
+ type CfEncodeCfParameters = RpcResult<'cf_encode_cf_parameters'>;
14
16
  type CfEnvironment = RpcResult<'cf_environment'>;
15
17
  type CfFailedCallArbitrum = RpcResult<'cf_failed_call_arbitrum'>;
16
18
  type CfFailedCallEthereum = RpcResult<'cf_failed_call_ethereum'>;
17
19
  type CfFlipSupply = RpcResult<'cf_flip_supply'>;
18
20
  type CfFundingEnvironment = RpcResult<'cf_funding_environment'>;
21
+ type CfGetTradingStrategies = RpcResult<'cf_get_trading_strategies'>;
22
+ type CfGetTradingStrategyLimits = RpcResult<'cf_get_trading_strategy_limits'>;
19
23
  type CfIngressEgressEnvironment = RpcResult<'cf_ingress_egress_environment'>;
20
24
  type CfPoolDepth = RpcResult<'cf_pool_depth'>;
21
25
  type CfPoolOrderbook = RpcResult<'cf_pool_orderbook'>;
@@ -23,26 +27,27 @@ type CfPoolOrders = RpcResult<'cf_pool_orders'>;
23
27
  type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
24
28
  type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
25
29
  type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
30
+ type CfSafeModeStatuses = RpcResult<'cf_safe_mode_statuses'>;
26
31
  type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
27
32
  type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
28
33
  type CfSwapRate = RpcResult<'cf_swap_rate'>;
29
34
  type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
30
35
  type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
31
- type CfGetTradingStrategies = RpcResult<'cf_get_trading_strategies'>;
32
- type CfGetTradingStrategyLimits = RpcResult<'cf_get_trading_strategy_limits'>;
33
- type CfAvailablePools = RpcResult<'cf_available_pools'>;
34
- type CfSafeModeStatuses = RpcResult<'cf_safe_mode_statuses'>;
35
36
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
36
37
  type CfAccountsResponse = RpcResponse<'cf_accounts'>;
37
38
  type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
39
+ type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
38
40
  type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
39
41
  type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
40
42
  type CfBoostPoolsDepthResponse = RpcResponse<'cf_boost_pools_depth'>;
43
+ type CfEncodeCfParametersResponse = RpcResponse<'cf_encode_cf_parameters'>;
41
44
  type CfEnvironmentResponse = RpcResponse<'cf_environment'>;
42
45
  type CfFailedCallArbitrumResponse = RpcResponse<'cf_failed_call_arbitrum'>;
43
46
  type CfFailedCallEthereumResponse = RpcResponse<'cf_failed_call_ethereum'>;
44
47
  type CfFlipSupplyResponse = RpcResponse<'cf_flip_supply'>;
45
48
  type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
49
+ type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
50
+ type CfGetTradingStrategyLimitsResponse = RpcResponse<'cf_get_trading_strategy_limits'>;
46
51
  type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
47
52
  type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
48
53
  type CfPoolOrderbookResponse = RpcResponse<'cf_pool_orderbook'>;
@@ -50,15 +55,12 @@ type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
50
55
  type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
51
56
  type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
52
57
  type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
58
+ type CfSafeModeStatusesResponse = RpcResponse<'cf_safe_mode_statuses'>;
53
59
  type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
54
60
  type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
55
61
  type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
56
62
  type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
57
63
  type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
58
- type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
59
- type CfGetTradingStrategyLimitsResponse = RpcResponse<'cf_get_trading_strategy_limits'>;
60
- type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
61
- type CfSafeModeStatusesResponse = RpcResponse<'cf_safe_mode_statuses'>;
62
64
  type CfUnregisteredAccount = z.output<typeof unregistered>;
63
65
  type CfBrokerAccount = z.output<typeof broker>;
64
66
  type CfValidatorAccount = z.output<typeof validator>;
@@ -66,4 +68,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
66
68
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
67
69
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
68
70
 
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 };
71
+ 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 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
@@ -8,14 +8,18 @@ import '@chainflip/utils/types';
8
8
  type CfAccountInfo = RpcResult<'cf_account_info'>;
9
9
  type CfAccounts = RpcResult<'cf_accounts'>;
10
10
  type CfAuctionState = RpcResult<'cf_auction_state'>;
11
+ type CfAvailablePools = RpcResult<'cf_available_pools'>;
11
12
  type CfBoostPoolDetails = RpcResult<'cf_boost_pool_details'>;
12
13
  type CfBoostPoolPendingFees = RpcResult<'cf_boost_pool_pending_fees'>;
13
14
  type CfBoostPoolsDepth = RpcResult<'cf_boost_pools_depth'>;
15
+ type CfEncodeCfParameters = RpcResult<'cf_encode_cf_parameters'>;
14
16
  type CfEnvironment = RpcResult<'cf_environment'>;
15
17
  type CfFailedCallArbitrum = RpcResult<'cf_failed_call_arbitrum'>;
16
18
  type CfFailedCallEthereum = RpcResult<'cf_failed_call_ethereum'>;
17
19
  type CfFlipSupply = RpcResult<'cf_flip_supply'>;
18
20
  type CfFundingEnvironment = RpcResult<'cf_funding_environment'>;
21
+ type CfGetTradingStrategies = RpcResult<'cf_get_trading_strategies'>;
22
+ type CfGetTradingStrategyLimits = RpcResult<'cf_get_trading_strategy_limits'>;
19
23
  type CfIngressEgressEnvironment = RpcResult<'cf_ingress_egress_environment'>;
20
24
  type CfPoolDepth = RpcResult<'cf_pool_depth'>;
21
25
  type CfPoolOrderbook = RpcResult<'cf_pool_orderbook'>;
@@ -23,26 +27,27 @@ type CfPoolOrders = RpcResult<'cf_pool_orders'>;
23
27
  type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
24
28
  type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
25
29
  type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
30
+ type CfSafeModeStatuses = RpcResult<'cf_safe_mode_statuses'>;
26
31
  type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
27
32
  type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
28
33
  type CfSwapRate = RpcResult<'cf_swap_rate'>;
29
34
  type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
30
35
  type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
31
- type CfGetTradingStrategies = RpcResult<'cf_get_trading_strategies'>;
32
- type CfGetTradingStrategyLimits = RpcResult<'cf_get_trading_strategy_limits'>;
33
- type CfAvailablePools = RpcResult<'cf_available_pools'>;
34
- type CfSafeModeStatuses = RpcResult<'cf_safe_mode_statuses'>;
35
36
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
36
37
  type CfAccountsResponse = RpcResponse<'cf_accounts'>;
37
38
  type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
39
+ type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
38
40
  type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
39
41
  type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
40
42
  type CfBoostPoolsDepthResponse = RpcResponse<'cf_boost_pools_depth'>;
43
+ type CfEncodeCfParametersResponse = RpcResponse<'cf_encode_cf_parameters'>;
41
44
  type CfEnvironmentResponse = RpcResponse<'cf_environment'>;
42
45
  type CfFailedCallArbitrumResponse = RpcResponse<'cf_failed_call_arbitrum'>;
43
46
  type CfFailedCallEthereumResponse = RpcResponse<'cf_failed_call_ethereum'>;
44
47
  type CfFlipSupplyResponse = RpcResponse<'cf_flip_supply'>;
45
48
  type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
49
+ type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
50
+ type CfGetTradingStrategyLimitsResponse = RpcResponse<'cf_get_trading_strategy_limits'>;
46
51
  type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
47
52
  type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
48
53
  type CfPoolOrderbookResponse = RpcResponse<'cf_pool_orderbook'>;
@@ -50,15 +55,12 @@ type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
50
55
  type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
51
56
  type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
52
57
  type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
58
+ type CfSafeModeStatusesResponse = RpcResponse<'cf_safe_mode_statuses'>;
53
59
  type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
54
60
  type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
55
61
  type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
56
62
  type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
57
63
  type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
58
- type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
59
- type CfGetTradingStrategyLimitsResponse = RpcResponse<'cf_get_trading_strategy_limits'>;
60
- type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
61
- type CfSafeModeStatusesResponse = RpcResponse<'cf_safe_mode_statuses'>;
62
64
  type CfUnregisteredAccount = z.output<typeof unregistered>;
63
65
  type CfBrokerAccount = z.output<typeof broker>;
64
66
  type CfValidatorAccount = z.output<typeof validator>;
@@ -66,4 +68,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
66
68
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
67
69
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
68
70
 
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 };
71
+ 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 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,10 +1,10 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.9.9",
3
+ "version": "1.10.0",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.8.6",
7
- "zod": "^3.25.64"
7
+ "zod": "^3.25.67"
8
8
  },
9
9
  "devDependencies": {
10
10
  "@types/node": "^24.0.3",