@chainflip/rpc 1.9.3 → 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.cjs +5 -1
- package/dist/common.d.cts +758 -0
- package/dist/common.d.ts +758 -0
- package/dist/common.mjs +6 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/parsers.cjs +122 -1
- package/dist/parsers.d.cts +757 -1
- package/dist/parsers.d.ts +757 -1
- package/dist/parsers.mjs +121 -0
- package/dist/types.d.cts +5 -1
- package/dist/types.d.ts +5 -1
- package/package.json +4 -4
package/dist/parsers.mjs
CHANGED
|
@@ -360,12 +360,132 @@ 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 cfAvailablePools = z.array(
|
|
364
|
+
z.object({
|
|
365
|
+
base: rpcAssetSchema.refine(
|
|
366
|
+
(a) => a.chain !== "Ethereum" || a.asset !== "USDC"
|
|
367
|
+
),
|
|
368
|
+
quote: z.object({ chain: z.literal("Ethereum"), asset: z.literal("USDC") })
|
|
369
|
+
})
|
|
370
|
+
);
|
|
371
|
+
var cfSafeModeStatuses = z.object({
|
|
372
|
+
emissions: z.object({
|
|
373
|
+
emissions_sync_enabled: z.boolean()
|
|
374
|
+
}),
|
|
375
|
+
funding: z.object({
|
|
376
|
+
redeem_enabled: z.boolean()
|
|
377
|
+
}),
|
|
378
|
+
swapping: z.object({
|
|
379
|
+
swaps_enabled: z.boolean(),
|
|
380
|
+
withdrawals_enabled: z.boolean(),
|
|
381
|
+
broker_registration_enabled: z.boolean()
|
|
382
|
+
}),
|
|
383
|
+
liquidity_provider: z.object({
|
|
384
|
+
deposit_enabled: z.boolean(),
|
|
385
|
+
withdrawal_enabled: z.boolean(),
|
|
386
|
+
internal_swaps_enabled: z.boolean().optional().default(false)
|
|
387
|
+
}),
|
|
388
|
+
validator: z.object({
|
|
389
|
+
authority_rotation_enabled: z.boolean(),
|
|
390
|
+
start_bidding_enabled: z.boolean(),
|
|
391
|
+
stop_bidding_enabled: z.boolean()
|
|
392
|
+
}),
|
|
393
|
+
pools: z.object({
|
|
394
|
+
range_order_update_enabled: z.boolean(),
|
|
395
|
+
limit_order_update_enabled: z.boolean()
|
|
396
|
+
}),
|
|
397
|
+
trading_strategies: z.object({
|
|
398
|
+
strategy_updates_enabled: z.boolean(),
|
|
399
|
+
strategy_closure_enabled: z.boolean(),
|
|
400
|
+
strategy_execution_enabled: z.boolean()
|
|
401
|
+
}).optional().default({
|
|
402
|
+
strategy_updates_enabled: false,
|
|
403
|
+
strategy_closure_enabled: false,
|
|
404
|
+
strategy_execution_enabled: false
|
|
405
|
+
}),
|
|
406
|
+
reputation: z.object({
|
|
407
|
+
reporting_enabled: z.boolean()
|
|
408
|
+
}),
|
|
409
|
+
asset_balances: z.object({
|
|
410
|
+
reconciliation_enabled: z.boolean()
|
|
411
|
+
}),
|
|
412
|
+
threshold_signature_evm: z.object({
|
|
413
|
+
slashing_enabled: z.boolean()
|
|
414
|
+
}),
|
|
415
|
+
threshold_signature_bitcoin: z.object({
|
|
416
|
+
slashing_enabled: z.boolean()
|
|
417
|
+
}),
|
|
418
|
+
threshold_signature_polkadot: z.object({
|
|
419
|
+
slashing_enabled: z.boolean()
|
|
420
|
+
}),
|
|
421
|
+
threshold_signature_solana: z.object({
|
|
422
|
+
slashing_enabled: z.boolean()
|
|
423
|
+
}),
|
|
424
|
+
broadcast_ethereum: z.object({
|
|
425
|
+
retry_enabled: z.boolean()
|
|
426
|
+
}),
|
|
427
|
+
broadcast_bitcoin: z.object({
|
|
428
|
+
retry_enabled: z.boolean()
|
|
429
|
+
}),
|
|
430
|
+
broadcast_polkadot: z.object({
|
|
431
|
+
retry_enabled: z.boolean()
|
|
432
|
+
}),
|
|
433
|
+
broadcast_arbitrum: z.object({
|
|
434
|
+
retry_enabled: z.boolean()
|
|
435
|
+
}),
|
|
436
|
+
broadcast_solana: z.object({
|
|
437
|
+
retry_enabled: z.boolean()
|
|
438
|
+
}),
|
|
439
|
+
broadcast_assethub: z.object({ retry_enabled: z.boolean() }).optional().default({ retry_enabled: false }),
|
|
440
|
+
ingress_egress_ethereum: z.object({
|
|
441
|
+
boost_deposits_enabled: z.boolean(),
|
|
442
|
+
add_boost_funds_enabled: z.boolean(),
|
|
443
|
+
stop_boosting_enabled: z.boolean(),
|
|
444
|
+
deposits_enabled: z.boolean()
|
|
445
|
+
}),
|
|
446
|
+
ingress_egress_bitcoin: z.object({
|
|
447
|
+
boost_deposits_enabled: z.boolean(),
|
|
448
|
+
add_boost_funds_enabled: z.boolean(),
|
|
449
|
+
stop_boosting_enabled: z.boolean(),
|
|
450
|
+
deposits_enabled: z.boolean()
|
|
451
|
+
}),
|
|
452
|
+
ingress_egress_polkadot: z.object({
|
|
453
|
+
boost_deposits_enabled: z.boolean(),
|
|
454
|
+
add_boost_funds_enabled: z.boolean(),
|
|
455
|
+
stop_boosting_enabled: z.boolean(),
|
|
456
|
+
deposits_enabled: z.boolean()
|
|
457
|
+
}),
|
|
458
|
+
ingress_egress_arbitrum: z.object({
|
|
459
|
+
boost_deposits_enabled: z.boolean(),
|
|
460
|
+
add_boost_funds_enabled: z.boolean(),
|
|
461
|
+
stop_boosting_enabled: z.boolean(),
|
|
462
|
+
deposits_enabled: z.boolean()
|
|
463
|
+
}),
|
|
464
|
+
ingress_egress_solana: z.object({
|
|
465
|
+
boost_deposits_enabled: z.boolean(),
|
|
466
|
+
add_boost_funds_enabled: z.boolean(),
|
|
467
|
+
stop_boosting_enabled: z.boolean(),
|
|
468
|
+
deposits_enabled: z.boolean()
|
|
469
|
+
}),
|
|
470
|
+
ingress_egress_assethub: z.object({
|
|
471
|
+
boost_deposits_enabled: z.boolean(),
|
|
472
|
+
add_boost_funds_enabled: z.boolean(),
|
|
473
|
+
stop_boosting_enabled: z.boolean(),
|
|
474
|
+
deposits_enabled: 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
|
+
});
|
|
363
482
|
export {
|
|
364
483
|
broker,
|
|
365
484
|
brokerRequestSwapDepositAddress,
|
|
366
485
|
cfAccountInfo,
|
|
367
486
|
cfAccounts,
|
|
368
487
|
cfAuctionState,
|
|
488
|
+
cfAvailablePools,
|
|
369
489
|
cfBoostPoolDetails,
|
|
370
490
|
cfBoostPoolPendingFees,
|
|
371
491
|
cfBoostPoolsDepth,
|
|
@@ -380,6 +500,7 @@ export {
|
|
|
380
500
|
cfPoolOrders,
|
|
381
501
|
cfPoolPriceV2,
|
|
382
502
|
cfPoolsEnvironment,
|
|
503
|
+
cfSafeModeStatuses,
|
|
383
504
|
cfSupportedAssets,
|
|
384
505
|
cfSwapRate,
|
|
385
506
|
cfSwapRateV2,
|
package/dist/types.d.cts
CHANGED
|
@@ -29,6 +29,8 @@ 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 CfAvailablePools = RpcResult<'cf_available_pools'>;
|
|
33
|
+
type CfSafeModeStatuses = RpcResult<'cf_safe_mode_statuses'>;
|
|
32
34
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
33
35
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
34
36
|
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
@@ -53,6 +55,8 @@ type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
|
|
|
53
55
|
type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
54
56
|
type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
55
57
|
type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
|
|
58
|
+
type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
|
|
59
|
+
type CfSafeModeStatusesResponse = RpcResponse<'cf_safe_mode_statuses'>;
|
|
56
60
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
57
61
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
58
62
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
@@ -60,4 +64,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
|
60
64
|
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
61
65
|
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
62
66
|
|
|
63
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfGetTradingStrategies, type CfGetTradingStrategiesResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrderbook, type CfPoolOrderbookResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
|
|
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 };
|
package/dist/types.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ 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 CfAvailablePools = RpcResult<'cf_available_pools'>;
|
|
33
|
+
type CfSafeModeStatuses = RpcResult<'cf_safe_mode_statuses'>;
|
|
32
34
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
33
35
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
34
36
|
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
@@ -53,6 +55,8 @@ type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
|
|
|
53
55
|
type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
54
56
|
type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
55
57
|
type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
|
|
58
|
+
type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
|
|
59
|
+
type CfSafeModeStatusesResponse = RpcResponse<'cf_safe_mode_statuses'>;
|
|
56
60
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
57
61
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
58
62
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
@@ -60,4 +64,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
|
60
64
|
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
61
65
|
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
62
66
|
|
|
63
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfGetTradingStrategies, type CfGetTradingStrategiesResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrderbook, type CfPoolOrderbookResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainflip/rpc",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@chainflip/utils": "0.8.
|
|
6
|
+
"@chainflip/utils": "0.8.6",
|
|
7
7
|
"zod": "^3.24.2"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@types/node": "^22.
|
|
11
|
-
"@types/ws": "^8.18.
|
|
10
|
+
"@types/node": "^22.14.1",
|
|
11
|
+
"@types/ws": "^8.18.1",
|
|
12
12
|
"ws": "^8.18.1"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|