@chainflip/rpc 1.9.4 → 1.9.6

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
@@ -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(
@@ -368,6 +372,117 @@ var cfAvailablePools = z.array(
368
372
  quote: z.object({ chain: z.literal("Ethereum"), asset: z.literal("USDC") })
369
373
  })
370
374
  );
375
+ var cfSafeModeStatuses = z.object({
376
+ emissions: z.object({
377
+ emissions_sync_enabled: z.boolean()
378
+ }),
379
+ funding: z.object({
380
+ redeem_enabled: z.boolean()
381
+ }),
382
+ swapping: z.object({
383
+ swaps_enabled: z.boolean(),
384
+ withdrawals_enabled: z.boolean(),
385
+ broker_registration_enabled: z.boolean()
386
+ }),
387
+ liquidity_provider: z.object({
388
+ deposit_enabled: z.boolean(),
389
+ withdrawal_enabled: z.boolean(),
390
+ internal_swaps_enabled: z.boolean().optional().default(false)
391
+ }),
392
+ validator: z.object({
393
+ authority_rotation_enabled: z.boolean(),
394
+ start_bidding_enabled: z.boolean(),
395
+ stop_bidding_enabled: z.boolean()
396
+ }),
397
+ pools: z.object({
398
+ range_order_update_enabled: z.boolean(),
399
+ limit_order_update_enabled: z.boolean()
400
+ }),
401
+ trading_strategies: z.object({
402
+ strategy_updates_enabled: z.boolean(),
403
+ strategy_closure_enabled: z.boolean(),
404
+ strategy_execution_enabled: z.boolean()
405
+ }).optional().default({
406
+ strategy_updates_enabled: false,
407
+ strategy_closure_enabled: false,
408
+ strategy_execution_enabled: false
409
+ }),
410
+ reputation: z.object({
411
+ reporting_enabled: z.boolean()
412
+ }),
413
+ asset_balances: z.object({
414
+ reconciliation_enabled: z.boolean()
415
+ }),
416
+ threshold_signature_evm: z.object({
417
+ slashing_enabled: z.boolean()
418
+ }),
419
+ threshold_signature_bitcoin: z.object({
420
+ slashing_enabled: z.boolean()
421
+ }),
422
+ threshold_signature_polkadot: z.object({
423
+ slashing_enabled: z.boolean()
424
+ }),
425
+ threshold_signature_solana: z.object({
426
+ slashing_enabled: z.boolean()
427
+ }),
428
+ broadcast_ethereum: z.object({
429
+ retry_enabled: z.boolean()
430
+ }),
431
+ broadcast_bitcoin: z.object({
432
+ retry_enabled: z.boolean()
433
+ }),
434
+ broadcast_polkadot: z.object({
435
+ retry_enabled: z.boolean()
436
+ }),
437
+ broadcast_arbitrum: z.object({
438
+ retry_enabled: z.boolean()
439
+ }),
440
+ broadcast_solana: z.object({
441
+ retry_enabled: z.boolean()
442
+ }),
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
484
+ })
485
+ });
371
486
  export {
372
487
  broker,
373
488
  brokerRequestSwapDepositAddress,
@@ -383,12 +498,14 @@ export {
383
498
  cfFlipSuppy,
384
499
  cfFundingEnvironment,
385
500
  cfGetTradingStrategies,
501
+ cfGetTradingStrategyLimits,
386
502
  cfIngressEgressEnvironment,
387
503
  cfPoolDepth,
388
504
  cfPoolOrderbook,
389
505
  cfPoolOrders,
390
506
  cfPoolPriceV2,
391
507
  cfPoolsEnvironment,
508
+ cfSafeModeStatuses,
392
509
  cfSupportedAssets,
393
510
  cfSwapRate,
394
511
  cfSwapRateV2,
package/dist/types.d.cts CHANGED
@@ -29,7 +29,9 @@ 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'>;
34
+ type CfSafeModeStatuses = RpcResult<'cf_safe_mode_statuses'>;
33
35
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
34
36
  type CfAccountsResponse = RpcResponse<'cf_accounts'>;
35
37
  type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
@@ -54,7 +56,9 @@ type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
54
56
  type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
55
57
  type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
56
58
  type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
59
+ type CfGetTradingStrategyLimitsResponse = RpcResponse<'cf_get_trading_strategy_limits'>;
57
60
  type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
61
+ type CfSafeModeStatusesResponse = RpcResponse<'cf_safe_mode_statuses'>;
58
62
  type CfUnregisteredAccount = z.output<typeof unregistered>;
59
63
  type CfBrokerAccount = z.output<typeof broker>;
60
64
  type CfValidatorAccount = z.output<typeof validator>;
@@ -62,4 +66,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
62
66
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
63
67
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
64
68
 
65
- 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 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,7 +29,9 @@ 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'>;
34
+ type CfSafeModeStatuses = RpcResult<'cf_safe_mode_statuses'>;
33
35
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
34
36
  type CfAccountsResponse = RpcResponse<'cf_accounts'>;
35
37
  type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
@@ -54,7 +56,9 @@ type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
54
56
  type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
55
57
  type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
56
58
  type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
59
+ type CfGetTradingStrategyLimitsResponse = RpcResponse<'cf_get_trading_strategy_limits'>;
57
60
  type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
61
+ type CfSafeModeStatusesResponse = RpcResponse<'cf_safe_mode_statuses'>;
58
62
  type CfUnregisteredAccount = z.output<typeof unregistered>;
59
63
  type CfBrokerAccount = z.output<typeof broker>;
60
64
  type CfValidatorAccount = z.output<typeof validator>;
@@ -62,4 +66,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
62
66
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
63
67
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
64
68
 
65
- 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 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,13 +1,13 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@chainflip/utils": "0.8.3",
7
- "zod": "^3.24.2"
6
+ "@chainflip/utils": "0.8.6",
7
+ "zod": "^3.24.3"
8
8
  },
9
9
  "devDependencies": {
10
- "@types/node": "^22.14.0",
10
+ "@types/node": "^22.14.1",
11
11
  "@types/ws": "^8.18.1",
12
12
  "ws": "^8.18.1"
13
13
  },