@chainflip/rpc 1.9.4 → 1.9.5

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.d.ts CHANGED
@@ -155,6 +155,7 @@ type RpcRequest = WithHash<{
155
155
  ];
156
156
  cf_get_trading_strategies: [accountId?: Nullish<string>];
157
157
  cf_available_pools: [];
158
+ cf_safe_mode_statuses: [];
158
159
  }> & {
159
160
  chain_getBlockHash: [blockHeight?: number];
160
161
  };
@@ -19457,6 +19458,470 @@ declare const rpcResult: {
19457
19458
  asset: "USDC";
19458
19459
  };
19459
19460
  }>, "many">;
19461
+ readonly cf_safe_mode_statuses: z.ZodObject<{
19462
+ emissions: z.ZodObject<{
19463
+ emissions_sync_enabled: z.ZodBoolean;
19464
+ }, "strip", z.ZodTypeAny, {
19465
+ emissions_sync_enabled: boolean;
19466
+ }, {
19467
+ emissions_sync_enabled: boolean;
19468
+ }>;
19469
+ funding: z.ZodObject<{
19470
+ redeem_enabled: z.ZodBoolean;
19471
+ }, "strip", z.ZodTypeAny, {
19472
+ redeem_enabled: boolean;
19473
+ }, {
19474
+ redeem_enabled: boolean;
19475
+ }>;
19476
+ swapping: z.ZodObject<{
19477
+ swaps_enabled: z.ZodBoolean;
19478
+ withdrawals_enabled: z.ZodBoolean;
19479
+ broker_registration_enabled: z.ZodBoolean;
19480
+ }, "strip", z.ZodTypeAny, {
19481
+ swaps_enabled: boolean;
19482
+ withdrawals_enabled: boolean;
19483
+ broker_registration_enabled: boolean;
19484
+ }, {
19485
+ swaps_enabled: boolean;
19486
+ withdrawals_enabled: boolean;
19487
+ broker_registration_enabled: boolean;
19488
+ }>;
19489
+ liquidity_provider: z.ZodObject<{
19490
+ deposit_enabled: z.ZodBoolean;
19491
+ withdrawal_enabled: z.ZodBoolean;
19492
+ internal_swaps_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
19493
+ }, "strip", z.ZodTypeAny, {
19494
+ deposit_enabled: boolean;
19495
+ withdrawal_enabled: boolean;
19496
+ internal_swaps_enabled: boolean;
19497
+ }, {
19498
+ deposit_enabled: boolean;
19499
+ withdrawal_enabled: boolean;
19500
+ internal_swaps_enabled?: boolean | undefined;
19501
+ }>;
19502
+ validator: z.ZodObject<{
19503
+ authority_rotation_enabled: z.ZodBoolean;
19504
+ start_bidding_enabled: z.ZodBoolean;
19505
+ stop_bidding_enabled: z.ZodBoolean;
19506
+ }, "strip", z.ZodTypeAny, {
19507
+ authority_rotation_enabled: boolean;
19508
+ start_bidding_enabled: boolean;
19509
+ stop_bidding_enabled: boolean;
19510
+ }, {
19511
+ authority_rotation_enabled: boolean;
19512
+ start_bidding_enabled: boolean;
19513
+ stop_bidding_enabled: boolean;
19514
+ }>;
19515
+ pools: z.ZodObject<{
19516
+ range_order_update_enabled: z.ZodBoolean;
19517
+ limit_order_update_enabled: z.ZodBoolean;
19518
+ }, "strip", z.ZodTypeAny, {
19519
+ range_order_update_enabled: boolean;
19520
+ limit_order_update_enabled: boolean;
19521
+ }, {
19522
+ range_order_update_enabled: boolean;
19523
+ limit_order_update_enabled: boolean;
19524
+ }>;
19525
+ trading_strategies: z.ZodDefault<z.ZodOptional<z.ZodObject<{
19526
+ strategy_updates_enabled: z.ZodBoolean;
19527
+ strategy_closure_enabled: z.ZodBoolean;
19528
+ strategy_execution_enabled: z.ZodBoolean;
19529
+ }, "strip", z.ZodTypeAny, {
19530
+ strategy_updates_enabled: boolean;
19531
+ strategy_closure_enabled: boolean;
19532
+ strategy_execution_enabled: boolean;
19533
+ }, {
19534
+ strategy_updates_enabled: boolean;
19535
+ strategy_closure_enabled: boolean;
19536
+ strategy_execution_enabled: boolean;
19537
+ }>>>;
19538
+ reputation: z.ZodObject<{
19539
+ reporting_enabled: z.ZodBoolean;
19540
+ }, "strip", z.ZodTypeAny, {
19541
+ reporting_enabled: boolean;
19542
+ }, {
19543
+ reporting_enabled: boolean;
19544
+ }>;
19545
+ asset_balances: z.ZodObject<{
19546
+ reconciliation_enabled: z.ZodBoolean;
19547
+ }, "strip", z.ZodTypeAny, {
19548
+ reconciliation_enabled: boolean;
19549
+ }, {
19550
+ reconciliation_enabled: boolean;
19551
+ }>;
19552
+ threshold_signature_evm: z.ZodObject<{
19553
+ slashing_enabled: z.ZodBoolean;
19554
+ }, "strip", z.ZodTypeAny, {
19555
+ slashing_enabled: boolean;
19556
+ }, {
19557
+ slashing_enabled: boolean;
19558
+ }>;
19559
+ threshold_signature_bitcoin: z.ZodObject<{
19560
+ slashing_enabled: z.ZodBoolean;
19561
+ }, "strip", z.ZodTypeAny, {
19562
+ slashing_enabled: boolean;
19563
+ }, {
19564
+ slashing_enabled: boolean;
19565
+ }>;
19566
+ threshold_signature_polkadot: z.ZodObject<{
19567
+ slashing_enabled: z.ZodBoolean;
19568
+ }, "strip", z.ZodTypeAny, {
19569
+ slashing_enabled: boolean;
19570
+ }, {
19571
+ slashing_enabled: boolean;
19572
+ }>;
19573
+ threshold_signature_solana: z.ZodObject<{
19574
+ slashing_enabled: z.ZodBoolean;
19575
+ }, "strip", z.ZodTypeAny, {
19576
+ slashing_enabled: boolean;
19577
+ }, {
19578
+ slashing_enabled: boolean;
19579
+ }>;
19580
+ broadcast_ethereum: z.ZodObject<{
19581
+ retry_enabled: z.ZodBoolean;
19582
+ }, "strip", z.ZodTypeAny, {
19583
+ retry_enabled: boolean;
19584
+ }, {
19585
+ retry_enabled: boolean;
19586
+ }>;
19587
+ broadcast_bitcoin: z.ZodObject<{
19588
+ retry_enabled: z.ZodBoolean;
19589
+ }, "strip", z.ZodTypeAny, {
19590
+ retry_enabled: boolean;
19591
+ }, {
19592
+ retry_enabled: boolean;
19593
+ }>;
19594
+ broadcast_polkadot: z.ZodObject<{
19595
+ retry_enabled: z.ZodBoolean;
19596
+ }, "strip", z.ZodTypeAny, {
19597
+ retry_enabled: boolean;
19598
+ }, {
19599
+ retry_enabled: boolean;
19600
+ }>;
19601
+ broadcast_arbitrum: z.ZodObject<{
19602
+ retry_enabled: z.ZodBoolean;
19603
+ }, "strip", z.ZodTypeAny, {
19604
+ retry_enabled: boolean;
19605
+ }, {
19606
+ retry_enabled: boolean;
19607
+ }>;
19608
+ broadcast_solana: z.ZodObject<{
19609
+ retry_enabled: z.ZodBoolean;
19610
+ }, "strip", z.ZodTypeAny, {
19611
+ retry_enabled: boolean;
19612
+ }, {
19613
+ retry_enabled: boolean;
19614
+ }>;
19615
+ broadcast_assethub: z.ZodDefault<z.ZodOptional<z.ZodObject<{
19616
+ retry_enabled: z.ZodBoolean;
19617
+ }, "strip", z.ZodTypeAny, {
19618
+ retry_enabled: boolean;
19619
+ }, {
19620
+ retry_enabled: boolean;
19621
+ }>>>;
19622
+ ingress_egress_ethereum: z.ZodObject<{
19623
+ boost_deposits_enabled: z.ZodBoolean;
19624
+ add_boost_funds_enabled: z.ZodBoolean;
19625
+ stop_boosting_enabled: z.ZodBoolean;
19626
+ deposits_enabled: z.ZodBoolean;
19627
+ }, "strip", z.ZodTypeAny, {
19628
+ boost_deposits_enabled: boolean;
19629
+ add_boost_funds_enabled: boolean;
19630
+ stop_boosting_enabled: boolean;
19631
+ deposits_enabled: boolean;
19632
+ }, {
19633
+ boost_deposits_enabled: boolean;
19634
+ add_boost_funds_enabled: boolean;
19635
+ stop_boosting_enabled: boolean;
19636
+ deposits_enabled: boolean;
19637
+ }>;
19638
+ ingress_egress_bitcoin: z.ZodObject<{
19639
+ boost_deposits_enabled: z.ZodBoolean;
19640
+ add_boost_funds_enabled: z.ZodBoolean;
19641
+ stop_boosting_enabled: z.ZodBoolean;
19642
+ deposits_enabled: z.ZodBoolean;
19643
+ }, "strip", z.ZodTypeAny, {
19644
+ boost_deposits_enabled: boolean;
19645
+ add_boost_funds_enabled: boolean;
19646
+ stop_boosting_enabled: boolean;
19647
+ deposits_enabled: boolean;
19648
+ }, {
19649
+ boost_deposits_enabled: boolean;
19650
+ add_boost_funds_enabled: boolean;
19651
+ stop_boosting_enabled: boolean;
19652
+ deposits_enabled: boolean;
19653
+ }>;
19654
+ ingress_egress_polkadot: z.ZodObject<{
19655
+ boost_deposits_enabled: z.ZodBoolean;
19656
+ add_boost_funds_enabled: z.ZodBoolean;
19657
+ stop_boosting_enabled: z.ZodBoolean;
19658
+ deposits_enabled: z.ZodBoolean;
19659
+ }, "strip", z.ZodTypeAny, {
19660
+ boost_deposits_enabled: boolean;
19661
+ add_boost_funds_enabled: boolean;
19662
+ stop_boosting_enabled: boolean;
19663
+ deposits_enabled: boolean;
19664
+ }, {
19665
+ boost_deposits_enabled: boolean;
19666
+ add_boost_funds_enabled: boolean;
19667
+ stop_boosting_enabled: boolean;
19668
+ deposits_enabled: boolean;
19669
+ }>;
19670
+ ingress_egress_arbitrum: z.ZodObject<{
19671
+ boost_deposits_enabled: z.ZodBoolean;
19672
+ add_boost_funds_enabled: z.ZodBoolean;
19673
+ stop_boosting_enabled: z.ZodBoolean;
19674
+ deposits_enabled: z.ZodBoolean;
19675
+ }, "strip", z.ZodTypeAny, {
19676
+ boost_deposits_enabled: boolean;
19677
+ add_boost_funds_enabled: boolean;
19678
+ stop_boosting_enabled: boolean;
19679
+ deposits_enabled: boolean;
19680
+ }, {
19681
+ boost_deposits_enabled: boolean;
19682
+ add_boost_funds_enabled: boolean;
19683
+ stop_boosting_enabled: boolean;
19684
+ deposits_enabled: boolean;
19685
+ }>;
19686
+ ingress_egress_solana: z.ZodObject<{
19687
+ boost_deposits_enabled: z.ZodBoolean;
19688
+ add_boost_funds_enabled: z.ZodBoolean;
19689
+ stop_boosting_enabled: z.ZodBoolean;
19690
+ deposits_enabled: z.ZodBoolean;
19691
+ }, "strip", z.ZodTypeAny, {
19692
+ boost_deposits_enabled: boolean;
19693
+ add_boost_funds_enabled: boolean;
19694
+ stop_boosting_enabled: boolean;
19695
+ deposits_enabled: boolean;
19696
+ }, {
19697
+ boost_deposits_enabled: boolean;
19698
+ add_boost_funds_enabled: boolean;
19699
+ stop_boosting_enabled: boolean;
19700
+ deposits_enabled: boolean;
19701
+ }>;
19702
+ ingress_egress_assethub: z.ZodDefault<z.ZodOptional<z.ZodObject<{
19703
+ boost_deposits_enabled: z.ZodBoolean;
19704
+ add_boost_funds_enabled: z.ZodBoolean;
19705
+ stop_boosting_enabled: z.ZodBoolean;
19706
+ deposits_enabled: z.ZodBoolean;
19707
+ }, "strip", z.ZodTypeAny, {
19708
+ boost_deposits_enabled: boolean;
19709
+ add_boost_funds_enabled: boolean;
19710
+ stop_boosting_enabled: boolean;
19711
+ deposits_enabled: boolean;
19712
+ }, {
19713
+ boost_deposits_enabled: boolean;
19714
+ add_boost_funds_enabled: boolean;
19715
+ stop_boosting_enabled: boolean;
19716
+ deposits_enabled: boolean;
19717
+ }>>>;
19718
+ }, "strip", z.ZodTypeAny, {
19719
+ asset_balances: {
19720
+ reconciliation_enabled: boolean;
19721
+ };
19722
+ liquidity_provider: {
19723
+ deposit_enabled: boolean;
19724
+ withdrawal_enabled: boolean;
19725
+ internal_swaps_enabled: boolean;
19726
+ };
19727
+ validator: {
19728
+ authority_rotation_enabled: boolean;
19729
+ start_bidding_enabled: boolean;
19730
+ stop_bidding_enabled: boolean;
19731
+ };
19732
+ swapping: {
19733
+ swaps_enabled: boolean;
19734
+ withdrawals_enabled: boolean;
19735
+ broker_registration_enabled: boolean;
19736
+ };
19737
+ funding: {
19738
+ redeem_enabled: boolean;
19739
+ };
19740
+ pools: {
19741
+ range_order_update_enabled: boolean;
19742
+ limit_order_update_enabled: boolean;
19743
+ };
19744
+ emissions: {
19745
+ emissions_sync_enabled: boolean;
19746
+ };
19747
+ trading_strategies: {
19748
+ strategy_updates_enabled: boolean;
19749
+ strategy_closure_enabled: boolean;
19750
+ strategy_execution_enabled: boolean;
19751
+ };
19752
+ reputation: {
19753
+ reporting_enabled: boolean;
19754
+ };
19755
+ threshold_signature_evm: {
19756
+ slashing_enabled: boolean;
19757
+ };
19758
+ threshold_signature_bitcoin: {
19759
+ slashing_enabled: boolean;
19760
+ };
19761
+ threshold_signature_polkadot: {
19762
+ slashing_enabled: boolean;
19763
+ };
19764
+ threshold_signature_solana: {
19765
+ slashing_enabled: boolean;
19766
+ };
19767
+ broadcast_ethereum: {
19768
+ retry_enabled: boolean;
19769
+ };
19770
+ broadcast_bitcoin: {
19771
+ retry_enabled: boolean;
19772
+ };
19773
+ broadcast_polkadot: {
19774
+ retry_enabled: boolean;
19775
+ };
19776
+ broadcast_arbitrum: {
19777
+ retry_enabled: boolean;
19778
+ };
19779
+ broadcast_solana: {
19780
+ retry_enabled: boolean;
19781
+ };
19782
+ broadcast_assethub: {
19783
+ retry_enabled: boolean;
19784
+ };
19785
+ ingress_egress_ethereum: {
19786
+ boost_deposits_enabled: boolean;
19787
+ add_boost_funds_enabled: boolean;
19788
+ stop_boosting_enabled: boolean;
19789
+ deposits_enabled: boolean;
19790
+ };
19791
+ ingress_egress_bitcoin: {
19792
+ boost_deposits_enabled: boolean;
19793
+ add_boost_funds_enabled: boolean;
19794
+ stop_boosting_enabled: boolean;
19795
+ deposits_enabled: boolean;
19796
+ };
19797
+ ingress_egress_polkadot: {
19798
+ boost_deposits_enabled: boolean;
19799
+ add_boost_funds_enabled: boolean;
19800
+ stop_boosting_enabled: boolean;
19801
+ deposits_enabled: boolean;
19802
+ };
19803
+ ingress_egress_arbitrum: {
19804
+ boost_deposits_enabled: boolean;
19805
+ add_boost_funds_enabled: boolean;
19806
+ stop_boosting_enabled: boolean;
19807
+ deposits_enabled: boolean;
19808
+ };
19809
+ ingress_egress_solana: {
19810
+ boost_deposits_enabled: boolean;
19811
+ add_boost_funds_enabled: boolean;
19812
+ stop_boosting_enabled: boolean;
19813
+ deposits_enabled: boolean;
19814
+ };
19815
+ ingress_egress_assethub: {
19816
+ boost_deposits_enabled: boolean;
19817
+ add_boost_funds_enabled: boolean;
19818
+ stop_boosting_enabled: boolean;
19819
+ deposits_enabled: boolean;
19820
+ };
19821
+ }, {
19822
+ asset_balances: {
19823
+ reconciliation_enabled: boolean;
19824
+ };
19825
+ liquidity_provider: {
19826
+ deposit_enabled: boolean;
19827
+ withdrawal_enabled: boolean;
19828
+ internal_swaps_enabled?: boolean | undefined;
19829
+ };
19830
+ validator: {
19831
+ authority_rotation_enabled: boolean;
19832
+ start_bidding_enabled: boolean;
19833
+ stop_bidding_enabled: boolean;
19834
+ };
19835
+ swapping: {
19836
+ swaps_enabled: boolean;
19837
+ withdrawals_enabled: boolean;
19838
+ broker_registration_enabled: boolean;
19839
+ };
19840
+ funding: {
19841
+ redeem_enabled: boolean;
19842
+ };
19843
+ pools: {
19844
+ range_order_update_enabled: boolean;
19845
+ limit_order_update_enabled: boolean;
19846
+ };
19847
+ emissions: {
19848
+ emissions_sync_enabled: boolean;
19849
+ };
19850
+ reputation: {
19851
+ reporting_enabled: boolean;
19852
+ };
19853
+ threshold_signature_evm: {
19854
+ slashing_enabled: boolean;
19855
+ };
19856
+ threshold_signature_bitcoin: {
19857
+ slashing_enabled: boolean;
19858
+ };
19859
+ threshold_signature_polkadot: {
19860
+ slashing_enabled: boolean;
19861
+ };
19862
+ threshold_signature_solana: {
19863
+ slashing_enabled: boolean;
19864
+ };
19865
+ broadcast_ethereum: {
19866
+ retry_enabled: boolean;
19867
+ };
19868
+ broadcast_bitcoin: {
19869
+ retry_enabled: boolean;
19870
+ };
19871
+ broadcast_polkadot: {
19872
+ retry_enabled: boolean;
19873
+ };
19874
+ broadcast_arbitrum: {
19875
+ retry_enabled: boolean;
19876
+ };
19877
+ broadcast_solana: {
19878
+ retry_enabled: boolean;
19879
+ };
19880
+ ingress_egress_ethereum: {
19881
+ boost_deposits_enabled: boolean;
19882
+ add_boost_funds_enabled: boolean;
19883
+ stop_boosting_enabled: boolean;
19884
+ deposits_enabled: boolean;
19885
+ };
19886
+ ingress_egress_bitcoin: {
19887
+ boost_deposits_enabled: boolean;
19888
+ add_boost_funds_enabled: boolean;
19889
+ stop_boosting_enabled: boolean;
19890
+ deposits_enabled: boolean;
19891
+ };
19892
+ ingress_egress_polkadot: {
19893
+ boost_deposits_enabled: boolean;
19894
+ add_boost_funds_enabled: boolean;
19895
+ stop_boosting_enabled: boolean;
19896
+ deposits_enabled: boolean;
19897
+ };
19898
+ ingress_egress_arbitrum: {
19899
+ boost_deposits_enabled: boolean;
19900
+ add_boost_funds_enabled: boolean;
19901
+ stop_boosting_enabled: boolean;
19902
+ deposits_enabled: boolean;
19903
+ };
19904
+ ingress_egress_solana: {
19905
+ boost_deposits_enabled: boolean;
19906
+ add_boost_funds_enabled: boolean;
19907
+ stop_boosting_enabled: boolean;
19908
+ deposits_enabled: boolean;
19909
+ };
19910
+ trading_strategies?: {
19911
+ strategy_updates_enabled: boolean;
19912
+ strategy_closure_enabled: boolean;
19913
+ strategy_execution_enabled: boolean;
19914
+ } | undefined;
19915
+ broadcast_assethub?: {
19916
+ retry_enabled: boolean;
19917
+ } | undefined;
19918
+ ingress_egress_assethub?: {
19919
+ boost_deposits_enabled: boolean;
19920
+ add_boost_funds_enabled: boolean;
19921
+ stop_boosting_enabled: boolean;
19922
+ deposits_enabled: boolean;
19923
+ } | undefined;
19924
+ }>;
19460
19925
  };
19461
19926
  type RpcMethod = keyof RpcRequest;
19462
19927
  type RpcResponse<T extends RpcMethod> = z.input<(typeof rpcResult)[T]>;
package/dist/common.mjs CHANGED
@@ -31,7 +31,8 @@ import {
31
31
  ethereumAddress,
32
32
  cfPoolOrderbook,
33
33
  cfGetTradingStrategies,
34
- cfAvailablePools
34
+ cfAvailablePools,
35
+ cfSafeModeStatuses
35
36
  } from "./parsers.mjs";
36
37
  import { rpcResponse } from "./parsers.mjs";
37
38
  var rpcResult = {
@@ -69,7 +70,8 @@ var rpcResult = {
69
70
  cf_eth_key_manager_address: ethereumAddress.nullable(),
70
71
  cf_pool_orderbook: cfPoolOrderbook,
71
72
  cf_get_trading_strategies: cfGetTradingStrategies,
72
- cf_available_pools: cfAvailablePools
73
+ cf_available_pools: cfAvailablePools,
74
+ cf_safe_mode_statuses: cfSafeModeStatuses
73
75
  };
74
76
  export {
75
77
  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, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, 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';
3
+ export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSafeModeStatuses, CfSafeModeStatusesResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, LpTotalBalances, LpTotalBalancesResponse } from './types.cjs';
4
4
  export { c as constants } from './constants-jLrn-AnI.cjs';
5
5
  export { RpcLimitOrder, RpcRangeOrder } from './parsers.cjs';
6
6
  export { RpcMethod, RpcRequest as RpcParams, RpcResult } from './common.cjs';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { default as HttpClient } from './HttpClient.js';
2
2
  export { default as WsClient } from './WsClient.js';
3
- export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, 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';
3
+ export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSafeModeStatuses, CfSafeModeStatusesResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, 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
@@ -368,6 +368,118 @@ var cfAvailablePools = _zod.z.array(
368
368
  quote: _zod.z.object({ chain: _zod.z.literal("Ethereum"), asset: _zod.z.literal("USDC") })
369
369
  })
370
370
  );
371
+ var cfSafeModeStatuses = _zod.z.object({
372
+ emissions: _zod.z.object({
373
+ emissions_sync_enabled: _zod.z.boolean()
374
+ }),
375
+ funding: _zod.z.object({
376
+ redeem_enabled: _zod.z.boolean()
377
+ }),
378
+ swapping: _zod.z.object({
379
+ swaps_enabled: _zod.z.boolean(),
380
+ withdrawals_enabled: _zod.z.boolean(),
381
+ broker_registration_enabled: _zod.z.boolean()
382
+ }),
383
+ liquidity_provider: _zod.z.object({
384
+ deposit_enabled: _zod.z.boolean(),
385
+ withdrawal_enabled: _zod.z.boolean(),
386
+ internal_swaps_enabled: _zod.z.boolean().optional().default(false)
387
+ }),
388
+ validator: _zod.z.object({
389
+ authority_rotation_enabled: _zod.z.boolean(),
390
+ start_bidding_enabled: _zod.z.boolean(),
391
+ stop_bidding_enabled: _zod.z.boolean()
392
+ }),
393
+ pools: _zod.z.object({
394
+ range_order_update_enabled: _zod.z.boolean(),
395
+ limit_order_update_enabled: _zod.z.boolean()
396
+ }),
397
+ trading_strategies: _zod.z.object({
398
+ strategy_updates_enabled: _zod.z.boolean(),
399
+ strategy_closure_enabled: _zod.z.boolean(),
400
+ strategy_execution_enabled: _zod.z.boolean()
401
+ }).optional().default({
402
+ strategy_updates_enabled: false,
403
+ strategy_closure_enabled: false,
404
+ strategy_execution_enabled: false
405
+ }),
406
+ reputation: _zod.z.object({
407
+ reporting_enabled: _zod.z.boolean()
408
+ }),
409
+ asset_balances: _zod.z.object({
410
+ reconciliation_enabled: _zod.z.boolean()
411
+ }),
412
+ threshold_signature_evm: _zod.z.object({
413
+ slashing_enabled: _zod.z.boolean()
414
+ }),
415
+ threshold_signature_bitcoin: _zod.z.object({
416
+ slashing_enabled: _zod.z.boolean()
417
+ }),
418
+ threshold_signature_polkadot: _zod.z.object({
419
+ slashing_enabled: _zod.z.boolean()
420
+ }),
421
+ threshold_signature_solana: _zod.z.object({
422
+ slashing_enabled: _zod.z.boolean()
423
+ }),
424
+ broadcast_ethereum: _zod.z.object({
425
+ retry_enabled: _zod.z.boolean()
426
+ }),
427
+ broadcast_bitcoin: _zod.z.object({
428
+ retry_enabled: _zod.z.boolean()
429
+ }),
430
+ broadcast_polkadot: _zod.z.object({
431
+ retry_enabled: _zod.z.boolean()
432
+ }),
433
+ broadcast_arbitrum: _zod.z.object({
434
+ retry_enabled: _zod.z.boolean()
435
+ }),
436
+ broadcast_solana: _zod.z.object({
437
+ retry_enabled: _zod.z.boolean()
438
+ }),
439
+ broadcast_assethub: _zod.z.object({ retry_enabled: _zod.z.boolean() }).optional().default({ retry_enabled: false }),
440
+ ingress_egress_ethereum: _zod.z.object({
441
+ boost_deposits_enabled: _zod.z.boolean(),
442
+ add_boost_funds_enabled: _zod.z.boolean(),
443
+ stop_boosting_enabled: _zod.z.boolean(),
444
+ deposits_enabled: _zod.z.boolean()
445
+ }),
446
+ ingress_egress_bitcoin: _zod.z.object({
447
+ boost_deposits_enabled: _zod.z.boolean(),
448
+ add_boost_funds_enabled: _zod.z.boolean(),
449
+ stop_boosting_enabled: _zod.z.boolean(),
450
+ deposits_enabled: _zod.z.boolean()
451
+ }),
452
+ ingress_egress_polkadot: _zod.z.object({
453
+ boost_deposits_enabled: _zod.z.boolean(),
454
+ add_boost_funds_enabled: _zod.z.boolean(),
455
+ stop_boosting_enabled: _zod.z.boolean(),
456
+ deposits_enabled: _zod.z.boolean()
457
+ }),
458
+ ingress_egress_arbitrum: _zod.z.object({
459
+ boost_deposits_enabled: _zod.z.boolean(),
460
+ add_boost_funds_enabled: _zod.z.boolean(),
461
+ stop_boosting_enabled: _zod.z.boolean(),
462
+ deposits_enabled: _zod.z.boolean()
463
+ }),
464
+ ingress_egress_solana: _zod.z.object({
465
+ boost_deposits_enabled: _zod.z.boolean(),
466
+ add_boost_funds_enabled: _zod.z.boolean(),
467
+ stop_boosting_enabled: _zod.z.boolean(),
468
+ deposits_enabled: _zod.z.boolean()
469
+ }),
470
+ ingress_egress_assethub: _zod.z.object({
471
+ boost_deposits_enabled: _zod.z.boolean(),
472
+ add_boost_funds_enabled: _zod.z.boolean(),
473
+ stop_boosting_enabled: _zod.z.boolean(),
474
+ deposits_enabled: _zod.z.boolean()
475
+ }).optional().default({
476
+ boost_deposits_enabled: false,
477
+ add_boost_funds_enabled: false,
478
+ stop_boosting_enabled: false,
479
+ deposits_enabled: false
480
+ })
481
+ });
482
+
371
483
 
372
484
 
373
485
 
@@ -408,4 +520,4 @@ var cfAvailablePools = _zod.z.array(
408
520
 
409
521
 
410
522
 
411
- exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.cfAccountInfo = cfAccountInfo; exports.cfAccounts = cfAccounts; exports.cfAuctionState = cfAuctionState; exports.cfAvailablePools = cfAvailablePools; exports.cfBoostPoolDetails = cfBoostPoolDetails; exports.cfBoostPoolPendingFees = cfBoostPoolPendingFees; exports.cfBoostPoolsDepth = cfBoostPoolsDepth; exports.cfEnvironment = cfEnvironment; exports.cfFailedCallEvm = cfFailedCallEvm; exports.cfFlipSuppy = cfFlipSuppy; exports.cfFundingEnvironment = cfFundingEnvironment; exports.cfGetTradingStrategies = cfGetTradingStrategies; exports.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.cfTradingStrategy = cfTradingStrategy; 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;
523
+ exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.cfAccountInfo = cfAccountInfo; exports.cfAccounts = cfAccounts; exports.cfAuctionState = cfAuctionState; exports.cfAvailablePools = cfAvailablePools; exports.cfBoostPoolDetails = cfBoostPoolDetails; exports.cfBoostPoolPendingFees = cfBoostPoolPendingFees; exports.cfBoostPoolsDepth = cfBoostPoolsDepth; exports.cfEnvironment = cfEnvironment; exports.cfFailedCallEvm = cfFailedCallEvm; exports.cfFlipSuppy = cfFlipSuppy; exports.cfFundingEnvironment = cfFundingEnvironment; exports.cfGetTradingStrategies = cfGetTradingStrategies; exports.cfIngressEgressEnvironment = cfIngressEgressEnvironment; exports.cfPoolDepth = cfPoolDepth; exports.cfPoolOrderbook = cfPoolOrderbook; exports.cfPoolOrders = cfPoolOrders; exports.cfPoolPriceV2 = cfPoolPriceV2; exports.cfPoolsEnvironment = cfPoolsEnvironment; exports.cfSafeModeStatuses = cfSafeModeStatuses; exports.cfSupportedAssets = cfSupportedAssets; exports.cfSwapRate = cfSwapRate; exports.cfSwapRateV2 = cfSwapRateV2; exports.cfSwapRateV3 = cfSwapRateV3; exports.cfSwappingEnvironment = cfSwappingEnvironment; exports.cfTradingStrategy = cfTradingStrategy; exports.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;