@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/common.mjs
CHANGED
|
@@ -30,7 +30,9 @@ import {
|
|
|
30
30
|
cfFlipSuppy,
|
|
31
31
|
ethereumAddress,
|
|
32
32
|
cfPoolOrderbook,
|
|
33
|
-
cfGetTradingStrategies
|
|
33
|
+
cfGetTradingStrategies,
|
|
34
|
+
cfAvailablePools,
|
|
35
|
+
cfSafeModeStatuses
|
|
34
36
|
} from "./parsers.mjs";
|
|
35
37
|
import { rpcResponse } from "./parsers.mjs";
|
|
36
38
|
var rpcResult = {
|
|
@@ -67,7 +69,9 @@ var rpcResult = {
|
|
|
67
69
|
cf_eth_state_chain_gateway_address: ethereumAddress.nullable(),
|
|
68
70
|
cf_eth_key_manager_address: ethereumAddress.nullable(),
|
|
69
71
|
cf_pool_orderbook: cfPoolOrderbook,
|
|
70
|
-
cf_get_trading_strategies: cfGetTradingStrategies
|
|
72
|
+
cf_get_trading_strategies: cfGetTradingStrategies,
|
|
73
|
+
cf_available_pools: cfAvailablePools,
|
|
74
|
+
cf_safe_mode_statuses: cfSafeModeStatuses
|
|
71
75
|
};
|
|
72
76
|
export {
|
|
73
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, 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, 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
|
@@ -360,6 +360,127 @@ var cfTradingStrategy = _zod.z.object({
|
|
|
360
360
|
balance: _zod.z.array(_zod.z.tuple([rpcAssetSchema, numberOrHex]))
|
|
361
361
|
});
|
|
362
362
|
var cfGetTradingStrategies = _zod.z.array(cfTradingStrategy).default([]);
|
|
363
|
+
var cfAvailablePools = _zod.z.array(
|
|
364
|
+
_zod.z.object({
|
|
365
|
+
base: rpcAssetSchema.refine(
|
|
366
|
+
(a) => a.chain !== "Ethereum" || a.asset !== "USDC"
|
|
367
|
+
),
|
|
368
|
+
quote: _zod.z.object({ chain: _zod.z.literal("Ethereum"), asset: _zod.z.literal("USDC") })
|
|
369
|
+
})
|
|
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
|
+
|
|
483
|
+
|
|
363
484
|
|
|
364
485
|
|
|
365
486
|
|
|
@@ -399,4 +520,4 @@ var cfGetTradingStrategies = _zod.z.array(cfTradingStrategy).default([]);
|
|
|
399
520
|
|
|
400
521
|
|
|
401
522
|
|
|
402
|
-
exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.cfAccountInfo = cfAccountInfo; exports.cfAccounts = cfAccounts; exports.cfAuctionState = cfAuctionState; 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;
|