@chainflip/rpc 1.8.8 → 1.8.10
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 +15 -1
- package/dist/common.d.cts +59 -11
- package/dist/common.d.ts +59 -11
- package/dist/common.mjs +16 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/parsers.cjs +25 -3
- package/dist/parsers.d.cts +38 -1
- package/dist/parsers.d.ts +38 -1
- package/dist/parsers.mjs +25 -3
- package/dist/types.d.cts +17 -7
- package/dist/types.d.ts +17 -7
- package/package.json +1 -1
package/dist/common.cjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/common.ts
|
|
2
|
+
var _zod = require('zod');
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
2
8
|
|
|
3
9
|
|
|
4
10
|
|
|
@@ -49,7 +55,15 @@ var rpcResult = {
|
|
|
49
55
|
cf_boost_pool_pending_fees: _parserscjs.cfBoostPoolPendingFees,
|
|
50
56
|
state_getMetadata: _parserscjs.stateGetMetadata,
|
|
51
57
|
state_getRuntimeVersion: _parserscjs.stateGetRuntimeVersion,
|
|
52
|
-
lp_total_balances: _parserscjs.lpTotalBalances
|
|
58
|
+
lp_total_balances: _parserscjs.lpTotalBalances,
|
|
59
|
+
cf_failed_call_ethereum: _parserscjs.cfFailedCallEvm.nullable(),
|
|
60
|
+
cf_failed_call_arbitrum: _parserscjs.cfFailedCallEvm.nullable(),
|
|
61
|
+
cf_authority_emission_per_block: _parserscjs.numberOrHex,
|
|
62
|
+
cf_epoch_duration: _zod.z.number(),
|
|
63
|
+
cf_auction_state: _parserscjs.cfAuctionState,
|
|
64
|
+
cf_flip_supply: _parserscjs.cfFlipSuppy,
|
|
65
|
+
cf_eth_state_chain_gateway_address: _parserscjs.ethereumAddress.nullable(),
|
|
66
|
+
cf_eth_key_manager_address: _parserscjs.ethereumAddress.nullable()
|
|
53
67
|
};
|
|
54
68
|
|
|
55
69
|
|
package/dist/common.d.cts
CHANGED
|
@@ -111,16 +111,6 @@ type RpcRequest = WithHash<{
|
|
|
111
111
|
additionalOrders?: Nullish<AdditionalOrder[]>
|
|
112
112
|
];
|
|
113
113
|
cf_swap_rate_v3: [
|
|
114
|
-
fromAsset: UncheckedAssetAndChain,
|
|
115
|
-
toAsset: UncheckedAssetAndChain,
|
|
116
|
-
amount: `0x${string}`,
|
|
117
|
-
brokerComission?: Nullish<number>,
|
|
118
|
-
dcaParams?: Nullish<{
|
|
119
|
-
number_of_chunks: number;
|
|
120
|
-
chunk_interval: number;
|
|
121
|
-
}>,
|
|
122
|
-
additionalOrders?: Nullish<AdditionalOrder[]>
|
|
123
|
-
] | [
|
|
124
114
|
fromAsset: UncheckedAssetAndChain,
|
|
125
115
|
toAsset: UncheckedAssetAndChain,
|
|
126
116
|
amount: `0x${string}`,
|
|
@@ -130,7 +120,7 @@ type RpcRequest = WithHash<{
|
|
|
130
120
|
chunk_interval: number;
|
|
131
121
|
}>,
|
|
132
122
|
ccmData?: Nullish<{
|
|
133
|
-
gas_budget:
|
|
123
|
+
gas_budget: number;
|
|
134
124
|
message_length: number;
|
|
135
125
|
}>,
|
|
136
126
|
excludeFees?: Nullish<SwapFeeType[]>,
|
|
@@ -150,6 +140,14 @@ type RpcRequest = WithHash<{
|
|
|
150
140
|
state_getMetadata: [];
|
|
151
141
|
state_getRuntimeVersion: [];
|
|
152
142
|
lp_total_balances: [accountId: string];
|
|
143
|
+
cf_failed_call_ethereum: [broadcastId: number];
|
|
144
|
+
cf_failed_call_arbitrum: [broadcastId: number];
|
|
145
|
+
cf_authority_emission_per_block: [];
|
|
146
|
+
cf_epoch_duration: [];
|
|
147
|
+
cf_auction_state: [];
|
|
148
|
+
cf_flip_supply: [];
|
|
149
|
+
cf_eth_state_chain_gateway_address: [];
|
|
150
|
+
cf_eth_key_manager_address: [];
|
|
153
151
|
}> & {
|
|
154
152
|
chain_getBlockHash: [blockHeight?: number];
|
|
155
153
|
};
|
|
@@ -14095,6 +14093,56 @@ declare const rpcResult: {
|
|
|
14095
14093
|
DOT: string | number;
|
|
14096
14094
|
};
|
|
14097
14095
|
}>;
|
|
14096
|
+
readonly cf_failed_call_ethereum: z.ZodNullable<z.ZodObject<{
|
|
14097
|
+
contract: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
14098
|
+
data: z.ZodString;
|
|
14099
|
+
}, "strip", z.ZodTypeAny, {
|
|
14100
|
+
data: string;
|
|
14101
|
+
contract: `0x${string}`;
|
|
14102
|
+
}, {
|
|
14103
|
+
data: string;
|
|
14104
|
+
contract: string;
|
|
14105
|
+
}>>;
|
|
14106
|
+
readonly cf_failed_call_arbitrum: z.ZodNullable<z.ZodObject<{
|
|
14107
|
+
contract: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
14108
|
+
data: z.ZodString;
|
|
14109
|
+
}, "strip", z.ZodTypeAny, {
|
|
14110
|
+
data: string;
|
|
14111
|
+
contract: `0x${string}`;
|
|
14112
|
+
}, {
|
|
14113
|
+
data: string;
|
|
14114
|
+
contract: string;
|
|
14115
|
+
}>>;
|
|
14116
|
+
readonly cf_authority_emission_per_block: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14117
|
+
readonly cf_epoch_duration: z.ZodNumber;
|
|
14118
|
+
readonly cf_auction_state: z.ZodObject<{
|
|
14119
|
+
blocks_per_epoch: z.ZodNumber;
|
|
14120
|
+
current_epoch_started_at: z.ZodNumber;
|
|
14121
|
+
redemption_period_as_percentage: z.ZodNumber;
|
|
14122
|
+
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14123
|
+
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
14124
|
+
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14125
|
+
}, "strip", z.ZodTypeAny, {
|
|
14126
|
+
blocks_per_epoch: number;
|
|
14127
|
+
current_epoch_started_at: number;
|
|
14128
|
+
redemption_period_as_percentage: number;
|
|
14129
|
+
min_funding: bigint;
|
|
14130
|
+
auction_size_range: [number, number];
|
|
14131
|
+
min_active_bid: bigint;
|
|
14132
|
+
}, {
|
|
14133
|
+
blocks_per_epoch: number;
|
|
14134
|
+
current_epoch_started_at: number;
|
|
14135
|
+
redemption_period_as_percentage: number;
|
|
14136
|
+
min_funding: string | number;
|
|
14137
|
+
auction_size_range: [number, number];
|
|
14138
|
+
min_active_bid: string | number;
|
|
14139
|
+
}>;
|
|
14140
|
+
readonly cf_flip_supply: z.ZodEffects<z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>], null>, {
|
|
14141
|
+
totalIssuance: bigint;
|
|
14142
|
+
offchainFunds: bigint;
|
|
14143
|
+
}, [string | number, string | number]>;
|
|
14144
|
+
readonly cf_eth_state_chain_gateway_address: z.ZodNullable<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
14145
|
+
readonly cf_eth_key_manager_address: z.ZodNullable<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
14098
14146
|
};
|
|
14099
14147
|
type RpcMethod = keyof RpcRequest;
|
|
14100
14148
|
type RpcResponse<T extends RpcMethod> = z.input<(typeof rpcResult)[T]>;
|
package/dist/common.d.ts
CHANGED
|
@@ -111,16 +111,6 @@ type RpcRequest = WithHash<{
|
|
|
111
111
|
additionalOrders?: Nullish<AdditionalOrder[]>
|
|
112
112
|
];
|
|
113
113
|
cf_swap_rate_v3: [
|
|
114
|
-
fromAsset: UncheckedAssetAndChain,
|
|
115
|
-
toAsset: UncheckedAssetAndChain,
|
|
116
|
-
amount: `0x${string}`,
|
|
117
|
-
brokerComission?: Nullish<number>,
|
|
118
|
-
dcaParams?: Nullish<{
|
|
119
|
-
number_of_chunks: number;
|
|
120
|
-
chunk_interval: number;
|
|
121
|
-
}>,
|
|
122
|
-
additionalOrders?: Nullish<AdditionalOrder[]>
|
|
123
|
-
] | [
|
|
124
114
|
fromAsset: UncheckedAssetAndChain,
|
|
125
115
|
toAsset: UncheckedAssetAndChain,
|
|
126
116
|
amount: `0x${string}`,
|
|
@@ -130,7 +120,7 @@ type RpcRequest = WithHash<{
|
|
|
130
120
|
chunk_interval: number;
|
|
131
121
|
}>,
|
|
132
122
|
ccmData?: Nullish<{
|
|
133
|
-
gas_budget:
|
|
123
|
+
gas_budget: number;
|
|
134
124
|
message_length: number;
|
|
135
125
|
}>,
|
|
136
126
|
excludeFees?: Nullish<SwapFeeType[]>,
|
|
@@ -150,6 +140,14 @@ type RpcRequest = WithHash<{
|
|
|
150
140
|
state_getMetadata: [];
|
|
151
141
|
state_getRuntimeVersion: [];
|
|
152
142
|
lp_total_balances: [accountId: string];
|
|
143
|
+
cf_failed_call_ethereum: [broadcastId: number];
|
|
144
|
+
cf_failed_call_arbitrum: [broadcastId: number];
|
|
145
|
+
cf_authority_emission_per_block: [];
|
|
146
|
+
cf_epoch_duration: [];
|
|
147
|
+
cf_auction_state: [];
|
|
148
|
+
cf_flip_supply: [];
|
|
149
|
+
cf_eth_state_chain_gateway_address: [];
|
|
150
|
+
cf_eth_key_manager_address: [];
|
|
153
151
|
}> & {
|
|
154
152
|
chain_getBlockHash: [blockHeight?: number];
|
|
155
153
|
};
|
|
@@ -14095,6 +14093,56 @@ declare const rpcResult: {
|
|
|
14095
14093
|
DOT: string | number;
|
|
14096
14094
|
};
|
|
14097
14095
|
}>;
|
|
14096
|
+
readonly cf_failed_call_ethereum: z.ZodNullable<z.ZodObject<{
|
|
14097
|
+
contract: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
14098
|
+
data: z.ZodString;
|
|
14099
|
+
}, "strip", z.ZodTypeAny, {
|
|
14100
|
+
data: string;
|
|
14101
|
+
contract: `0x${string}`;
|
|
14102
|
+
}, {
|
|
14103
|
+
data: string;
|
|
14104
|
+
contract: string;
|
|
14105
|
+
}>>;
|
|
14106
|
+
readonly cf_failed_call_arbitrum: z.ZodNullable<z.ZodObject<{
|
|
14107
|
+
contract: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
14108
|
+
data: z.ZodString;
|
|
14109
|
+
}, "strip", z.ZodTypeAny, {
|
|
14110
|
+
data: string;
|
|
14111
|
+
contract: `0x${string}`;
|
|
14112
|
+
}, {
|
|
14113
|
+
data: string;
|
|
14114
|
+
contract: string;
|
|
14115
|
+
}>>;
|
|
14116
|
+
readonly cf_authority_emission_per_block: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14117
|
+
readonly cf_epoch_duration: z.ZodNumber;
|
|
14118
|
+
readonly cf_auction_state: z.ZodObject<{
|
|
14119
|
+
blocks_per_epoch: z.ZodNumber;
|
|
14120
|
+
current_epoch_started_at: z.ZodNumber;
|
|
14121
|
+
redemption_period_as_percentage: z.ZodNumber;
|
|
14122
|
+
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14123
|
+
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
14124
|
+
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
14125
|
+
}, "strip", z.ZodTypeAny, {
|
|
14126
|
+
blocks_per_epoch: number;
|
|
14127
|
+
current_epoch_started_at: number;
|
|
14128
|
+
redemption_period_as_percentage: number;
|
|
14129
|
+
min_funding: bigint;
|
|
14130
|
+
auction_size_range: [number, number];
|
|
14131
|
+
min_active_bid: bigint;
|
|
14132
|
+
}, {
|
|
14133
|
+
blocks_per_epoch: number;
|
|
14134
|
+
current_epoch_started_at: number;
|
|
14135
|
+
redemption_period_as_percentage: number;
|
|
14136
|
+
min_funding: string | number;
|
|
14137
|
+
auction_size_range: [number, number];
|
|
14138
|
+
min_active_bid: string | number;
|
|
14139
|
+
}>;
|
|
14140
|
+
readonly cf_flip_supply: z.ZodEffects<z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>], null>, {
|
|
14141
|
+
totalIssuance: bigint;
|
|
14142
|
+
offchainFunds: bigint;
|
|
14143
|
+
}, [string | number, string | number]>;
|
|
14144
|
+
readonly cf_eth_state_chain_gateway_address: z.ZodNullable<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
14145
|
+
readonly cf_eth_key_manager_address: z.ZodNullable<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
14098
14146
|
};
|
|
14099
14147
|
type RpcMethod = keyof RpcRequest;
|
|
14100
14148
|
type RpcResponse<T extends RpcMethod> = z.input<(typeof rpcResult)[T]>;
|
package/dist/common.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// src/common.ts
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
import {
|
|
3
4
|
cfBoostPoolDetails,
|
|
4
5
|
cfBoostPoolPendingFees,
|
|
@@ -22,7 +23,12 @@ import {
|
|
|
22
23
|
cfAccounts,
|
|
23
24
|
cfSwapRateV3,
|
|
24
25
|
requestSwapParameterEncoding,
|
|
25
|
-
lpTotalBalances
|
|
26
|
+
lpTotalBalances,
|
|
27
|
+
cfFailedCallEvm,
|
|
28
|
+
numberOrHex,
|
|
29
|
+
cfAuctionState,
|
|
30
|
+
cfFlipSuppy,
|
|
31
|
+
ethereumAddress
|
|
26
32
|
} from "./parsers.mjs";
|
|
27
33
|
import { rpcResponse } from "./parsers.mjs";
|
|
28
34
|
var rpcResult = {
|
|
@@ -49,7 +55,15 @@ var rpcResult = {
|
|
|
49
55
|
cf_boost_pool_pending_fees: cfBoostPoolPendingFees,
|
|
50
56
|
state_getMetadata: stateGetMetadata,
|
|
51
57
|
state_getRuntimeVersion: stateGetRuntimeVersion,
|
|
52
|
-
lp_total_balances: lpTotalBalances
|
|
58
|
+
lp_total_balances: lpTotalBalances,
|
|
59
|
+
cf_failed_call_ethereum: cfFailedCallEvm.nullable(),
|
|
60
|
+
cf_failed_call_arbitrum: cfFailedCallEvm.nullable(),
|
|
61
|
+
cf_authority_emission_per_block: numberOrHex,
|
|
62
|
+
cf_epoch_duration: z.number(),
|
|
63
|
+
cf_auction_state: cfAuctionState,
|
|
64
|
+
cf_flip_supply: cfFlipSuppy,
|
|
65
|
+
cf_eth_state_chain_gateway_address: ethereumAddress.nullable(),
|
|
66
|
+
cf_eth_key_manager_address: ethereumAddress.nullable()
|
|
53
67
|
};
|
|
54
68
|
export {
|
|
55
69
|
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, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount } from './types.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, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, 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';
|
|
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, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount } from './types.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, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, 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';
|
|
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
|
@@ -48,8 +48,8 @@ var rpcBaseResponse = _zod.z.object({
|
|
|
48
48
|
id: _zod.z.string(),
|
|
49
49
|
jsonrpc: _zod.z.literal("2.0")
|
|
50
50
|
});
|
|
51
|
-
var
|
|
52
|
-
var rpcSuccessResponse = rpcBaseResponse.extend({ result:
|
|
51
|
+
var notUndefined = _zod.z.any().refine((v) => !_guard.isUndefined.call(void 0, v), { message: "Value must not be undefined" });
|
|
52
|
+
var rpcSuccessResponse = rpcBaseResponse.extend({ result: notUndefined });
|
|
53
53
|
var rpcErrorResponse = rpcBaseResponse.extend({
|
|
54
54
|
error: _zod.z.object({ code: _zod.z.number(), message: _zod.z.string() })
|
|
55
55
|
});
|
|
@@ -313,6 +313,28 @@ var cfBoostPoolPendingFees = _zod.z.array(
|
|
|
313
313
|
)
|
|
314
314
|
);
|
|
315
315
|
var lpTotalBalances = chainAssetMapFactory(numberOrHex, 0);
|
|
316
|
+
var cfFailedCallEvm = _zod.z.object({
|
|
317
|
+
contract: hexString,
|
|
318
|
+
data: _zod.z.string()
|
|
319
|
+
});
|
|
320
|
+
var range = (parser) => _zod.z.tuple([parser, parser]);
|
|
321
|
+
var cfAuctionState = _zod.z.object({
|
|
322
|
+
blocks_per_epoch: _zod.z.number(),
|
|
323
|
+
current_epoch_started_at: _zod.z.number(),
|
|
324
|
+
redemption_period_as_percentage: _zod.z.number(),
|
|
325
|
+
min_funding: numberOrHex,
|
|
326
|
+
auction_size_range: range(_zod.z.number()),
|
|
327
|
+
min_active_bid: numberOrHex
|
|
328
|
+
});
|
|
329
|
+
var cfFlipSuppy = range(numberOrHex).transform(([totalIssuance, offchainFunds]) => ({
|
|
330
|
+
totalIssuance,
|
|
331
|
+
offchainFunds
|
|
332
|
+
}));
|
|
333
|
+
var ethereumAddress = _zod.z.string().transform((address) => `0x${address}`);
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
316
338
|
|
|
317
339
|
|
|
318
340
|
|
|
@@ -345,4 +367,4 @@ var lpTotalBalances = chainAssetMapFactory(numberOrHex, 0);
|
|
|
345
367
|
|
|
346
368
|
|
|
347
369
|
|
|
348
|
-
exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.cfAccountInfo = cfAccountInfo; exports.cfAccounts = cfAccounts; exports.cfBoostPoolDetails = cfBoostPoolDetails; exports.cfBoostPoolPendingFees = cfBoostPoolPendingFees; exports.cfBoostPoolsDepth = cfBoostPoolsDepth; exports.cfEnvironment = cfEnvironment; exports.cfFundingEnvironment = cfFundingEnvironment; exports.cfIngressEgressEnvironment = cfIngressEgressEnvironment; exports.cfPoolDepth = cfPoolDepth; 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.chainGetBlockHash = chainGetBlockHash; 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;
|
|
370
|
+
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.cfIngressEgressEnvironment = cfIngressEgressEnvironment; exports.cfPoolDepth = cfPoolDepth; 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.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;
|
package/dist/parsers.d.cts
CHANGED
|
@@ -15307,5 +15307,42 @@ declare const lpTotalBalances: z.ZodObject<{
|
|
|
15307
15307
|
DOT: string | number;
|
|
15308
15308
|
};
|
|
15309
15309
|
}>;
|
|
15310
|
+
declare const cfFailedCallEvm: z.ZodObject<{
|
|
15311
|
+
contract: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
15312
|
+
data: z.ZodString;
|
|
15313
|
+
}, "strip", z.ZodTypeAny, {
|
|
15314
|
+
data: string;
|
|
15315
|
+
contract: `0x${string}`;
|
|
15316
|
+
}, {
|
|
15317
|
+
data: string;
|
|
15318
|
+
contract: string;
|
|
15319
|
+
}>;
|
|
15320
|
+
declare const cfAuctionState: z.ZodObject<{
|
|
15321
|
+
blocks_per_epoch: z.ZodNumber;
|
|
15322
|
+
current_epoch_started_at: z.ZodNumber;
|
|
15323
|
+
redemption_period_as_percentage: z.ZodNumber;
|
|
15324
|
+
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
15325
|
+
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
15326
|
+
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
15327
|
+
}, "strip", z.ZodTypeAny, {
|
|
15328
|
+
blocks_per_epoch: number;
|
|
15329
|
+
current_epoch_started_at: number;
|
|
15330
|
+
redemption_period_as_percentage: number;
|
|
15331
|
+
min_funding: bigint;
|
|
15332
|
+
auction_size_range: [number, number];
|
|
15333
|
+
min_active_bid: bigint;
|
|
15334
|
+
}, {
|
|
15335
|
+
blocks_per_epoch: number;
|
|
15336
|
+
current_epoch_started_at: number;
|
|
15337
|
+
redemption_period_as_percentage: number;
|
|
15338
|
+
min_funding: string | number;
|
|
15339
|
+
auction_size_range: [number, number];
|
|
15340
|
+
min_active_bid: string | number;
|
|
15341
|
+
}>;
|
|
15342
|
+
declare const cfFlipSuppy: z.ZodEffects<z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>], null>, {
|
|
15343
|
+
totalIssuance: bigint;
|
|
15344
|
+
offchainFunds: bigint;
|
|
15345
|
+
}, [string | number, string | number]>;
|
|
15346
|
+
declare const ethereumAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
15310
15347
|
|
|
15311
|
-
export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, chainGetBlockHash, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
|
15348
|
+
export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
package/dist/parsers.d.ts
CHANGED
|
@@ -15307,5 +15307,42 @@ declare const lpTotalBalances: z.ZodObject<{
|
|
|
15307
15307
|
DOT: string | number;
|
|
15308
15308
|
};
|
|
15309
15309
|
}>;
|
|
15310
|
+
declare const cfFailedCallEvm: z.ZodObject<{
|
|
15311
|
+
contract: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
15312
|
+
data: z.ZodString;
|
|
15313
|
+
}, "strip", z.ZodTypeAny, {
|
|
15314
|
+
data: string;
|
|
15315
|
+
contract: `0x${string}`;
|
|
15316
|
+
}, {
|
|
15317
|
+
data: string;
|
|
15318
|
+
contract: string;
|
|
15319
|
+
}>;
|
|
15320
|
+
declare const cfAuctionState: z.ZodObject<{
|
|
15321
|
+
blocks_per_epoch: z.ZodNumber;
|
|
15322
|
+
current_epoch_started_at: z.ZodNumber;
|
|
15323
|
+
redemption_period_as_percentage: z.ZodNumber;
|
|
15324
|
+
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
15325
|
+
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
15326
|
+
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
15327
|
+
}, "strip", z.ZodTypeAny, {
|
|
15328
|
+
blocks_per_epoch: number;
|
|
15329
|
+
current_epoch_started_at: number;
|
|
15330
|
+
redemption_period_as_percentage: number;
|
|
15331
|
+
min_funding: bigint;
|
|
15332
|
+
auction_size_range: [number, number];
|
|
15333
|
+
min_active_bid: bigint;
|
|
15334
|
+
}, {
|
|
15335
|
+
blocks_per_epoch: number;
|
|
15336
|
+
current_epoch_started_at: number;
|
|
15337
|
+
redemption_period_as_percentage: number;
|
|
15338
|
+
min_funding: string | number;
|
|
15339
|
+
auction_size_range: [number, number];
|
|
15340
|
+
min_active_bid: string | number;
|
|
15341
|
+
}>;
|
|
15342
|
+
declare const cfFlipSuppy: z.ZodEffects<z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>], null>, {
|
|
15343
|
+
totalIssuance: bigint;
|
|
15344
|
+
offchainFunds: bigint;
|
|
15345
|
+
}, [string | number, string | number]>;
|
|
15346
|
+
declare const ethereumAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
15310
15347
|
|
|
15311
|
-
export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, chainGetBlockHash, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
|
15348
|
+
export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
package/dist/parsers.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/parsers.ts
|
|
2
|
-
import {
|
|
2
|
+
import { isUndefined } from "@chainflip/utils/guard";
|
|
3
3
|
import { isHex } from "@chainflip/utils/string";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
var hexString = z.string().refine(isHex, { message: "Invalid hex string" });
|
|
@@ -48,8 +48,8 @@ var rpcBaseResponse = z.object({
|
|
|
48
48
|
id: z.string(),
|
|
49
49
|
jsonrpc: z.literal("2.0")
|
|
50
50
|
});
|
|
51
|
-
var
|
|
52
|
-
var rpcSuccessResponse = rpcBaseResponse.extend({ result:
|
|
51
|
+
var notUndefined = z.any().refine((v) => !isUndefined(v), { message: "Value must not be undefined" });
|
|
52
|
+
var rpcSuccessResponse = rpcBaseResponse.extend({ result: notUndefined });
|
|
53
53
|
var rpcErrorResponse = rpcBaseResponse.extend({
|
|
54
54
|
error: z.object({ code: z.number(), message: z.string() })
|
|
55
55
|
});
|
|
@@ -313,15 +313,36 @@ var cfBoostPoolPendingFees = z.array(
|
|
|
313
313
|
)
|
|
314
314
|
);
|
|
315
315
|
var lpTotalBalances = chainAssetMapFactory(numberOrHex, 0);
|
|
316
|
+
var cfFailedCallEvm = z.object({
|
|
317
|
+
contract: hexString,
|
|
318
|
+
data: z.string()
|
|
319
|
+
});
|
|
320
|
+
var range = (parser) => z.tuple([parser, parser]);
|
|
321
|
+
var cfAuctionState = z.object({
|
|
322
|
+
blocks_per_epoch: z.number(),
|
|
323
|
+
current_epoch_started_at: z.number(),
|
|
324
|
+
redemption_period_as_percentage: z.number(),
|
|
325
|
+
min_funding: numberOrHex,
|
|
326
|
+
auction_size_range: range(z.number()),
|
|
327
|
+
min_active_bid: numberOrHex
|
|
328
|
+
});
|
|
329
|
+
var cfFlipSuppy = range(numberOrHex).transform(([totalIssuance, offchainFunds]) => ({
|
|
330
|
+
totalIssuance,
|
|
331
|
+
offchainFunds
|
|
332
|
+
}));
|
|
333
|
+
var ethereumAddress = z.string().transform((address) => `0x${address}`);
|
|
316
334
|
export {
|
|
317
335
|
broker,
|
|
318
336
|
brokerRequestSwapDepositAddress,
|
|
319
337
|
cfAccountInfo,
|
|
320
338
|
cfAccounts,
|
|
339
|
+
cfAuctionState,
|
|
321
340
|
cfBoostPoolDetails,
|
|
322
341
|
cfBoostPoolPendingFees,
|
|
323
342
|
cfBoostPoolsDepth,
|
|
324
343
|
cfEnvironment,
|
|
344
|
+
cfFailedCallEvm,
|
|
345
|
+
cfFlipSuppy,
|
|
325
346
|
cfFundingEnvironment,
|
|
326
347
|
cfIngressEgressEnvironment,
|
|
327
348
|
cfPoolDepth,
|
|
@@ -334,6 +355,7 @@ export {
|
|
|
334
355
|
cfSwapRateV3,
|
|
335
356
|
cfSwappingEnvironment,
|
|
336
357
|
chainGetBlockHash,
|
|
358
|
+
ethereumAddress,
|
|
337
359
|
hexString,
|
|
338
360
|
liquidityProvider,
|
|
339
361
|
lpTotalBalances,
|
package/dist/types.d.cts
CHANGED
|
@@ -6,44 +6,54 @@ export { RpcLimitOrder, RpcRangeOrder } from './parsers.cjs';
|
|
|
6
6
|
import '@chainflip/utils/types';
|
|
7
7
|
|
|
8
8
|
type CfAccountInfo = RpcResult<'cf_account_info'>;
|
|
9
|
+
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
10
|
+
type CfAuctionState = RpcResult<'cf_auction_state'>;
|
|
9
11
|
type CfBoostPoolDetails = RpcResult<'cf_boost_pool_details'>;
|
|
10
12
|
type CfBoostPoolPendingFees = RpcResult<'cf_boost_pool_pending_fees'>;
|
|
11
13
|
type CfBoostPoolsDepth = RpcResult<'cf_boost_pools_depth'>;
|
|
12
14
|
type CfEnvironment = RpcResult<'cf_environment'>;
|
|
15
|
+
type CfFailedCallArbitrum = RpcResult<'cf_failed_call_arbitrum'>;
|
|
16
|
+
type CfFailedCallEthereum = RpcResult<'cf_failed_call_ethereum'>;
|
|
17
|
+
type CfFlipSupply = RpcResult<'cf_flip_supply'>;
|
|
13
18
|
type CfFundingEnvironment = RpcResult<'cf_funding_environment'>;
|
|
14
19
|
type CfIngressEgressEnvironment = RpcResult<'cf_ingress_egress_environment'>;
|
|
20
|
+
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
15
21
|
type CfPoolOrders = RpcResult<'cf_pool_orders'>;
|
|
16
22
|
type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
|
|
17
23
|
type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
|
|
24
|
+
type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
|
|
18
25
|
type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
|
|
19
26
|
type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
|
|
20
27
|
type CfSwapRate = RpcResult<'cf_swap_rate'>;
|
|
21
28
|
type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
|
|
22
29
|
type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
|
|
23
|
-
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
24
|
-
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
25
|
-
type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
|
|
26
30
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
31
|
+
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
32
|
+
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
27
33
|
type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
|
|
28
34
|
type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
|
|
29
35
|
type CfBoostPoolsDepthResponse = RpcResponse<'cf_boost_pools_depth'>;
|
|
30
36
|
type CfEnvironmentResponse = RpcResponse<'cf_environment'>;
|
|
37
|
+
type CfFailedCallArbitrumResponse = RpcResponse<'cf_failed_call_arbitrum'>;
|
|
38
|
+
type CfFailedCallEthereumResponse = RpcResponse<'cf_failed_call_ethereum'>;
|
|
39
|
+
type CfFlipSupplyResponse = RpcResponse<'cf_flip_supply'>;
|
|
31
40
|
type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
|
|
32
41
|
type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
|
|
42
|
+
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
33
43
|
type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
|
|
34
44
|
type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
|
|
35
45
|
type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
|
|
46
|
+
type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
|
|
36
47
|
type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
|
|
37
48
|
type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
|
|
38
49
|
type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
|
|
39
50
|
type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
40
51
|
type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
41
|
-
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
42
|
-
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
43
|
-
type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
|
|
44
52
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
45
53
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
46
54
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
47
55
|
type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
56
|
+
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
57
|
+
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
48
58
|
|
|
49
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, 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, RpcResult };
|
|
59
|
+
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 CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, 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 };
|
package/dist/types.d.ts
CHANGED
|
@@ -6,44 +6,54 @@ export { RpcLimitOrder, RpcRangeOrder } from './parsers.js';
|
|
|
6
6
|
import '@chainflip/utils/types';
|
|
7
7
|
|
|
8
8
|
type CfAccountInfo = RpcResult<'cf_account_info'>;
|
|
9
|
+
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
10
|
+
type CfAuctionState = RpcResult<'cf_auction_state'>;
|
|
9
11
|
type CfBoostPoolDetails = RpcResult<'cf_boost_pool_details'>;
|
|
10
12
|
type CfBoostPoolPendingFees = RpcResult<'cf_boost_pool_pending_fees'>;
|
|
11
13
|
type CfBoostPoolsDepth = RpcResult<'cf_boost_pools_depth'>;
|
|
12
14
|
type CfEnvironment = RpcResult<'cf_environment'>;
|
|
15
|
+
type CfFailedCallArbitrum = RpcResult<'cf_failed_call_arbitrum'>;
|
|
16
|
+
type CfFailedCallEthereum = RpcResult<'cf_failed_call_ethereum'>;
|
|
17
|
+
type CfFlipSupply = RpcResult<'cf_flip_supply'>;
|
|
13
18
|
type CfFundingEnvironment = RpcResult<'cf_funding_environment'>;
|
|
14
19
|
type CfIngressEgressEnvironment = RpcResult<'cf_ingress_egress_environment'>;
|
|
20
|
+
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
15
21
|
type CfPoolOrders = RpcResult<'cf_pool_orders'>;
|
|
16
22
|
type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
|
|
17
23
|
type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
|
|
24
|
+
type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
|
|
18
25
|
type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
|
|
19
26
|
type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
|
|
20
27
|
type CfSwapRate = RpcResult<'cf_swap_rate'>;
|
|
21
28
|
type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
|
|
22
29
|
type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
|
|
23
|
-
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
24
|
-
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
25
|
-
type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
|
|
26
30
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
31
|
+
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
32
|
+
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
27
33
|
type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
|
|
28
34
|
type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
|
|
29
35
|
type CfBoostPoolsDepthResponse = RpcResponse<'cf_boost_pools_depth'>;
|
|
30
36
|
type CfEnvironmentResponse = RpcResponse<'cf_environment'>;
|
|
37
|
+
type CfFailedCallArbitrumResponse = RpcResponse<'cf_failed_call_arbitrum'>;
|
|
38
|
+
type CfFailedCallEthereumResponse = RpcResponse<'cf_failed_call_ethereum'>;
|
|
39
|
+
type CfFlipSupplyResponse = RpcResponse<'cf_flip_supply'>;
|
|
31
40
|
type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
|
|
32
41
|
type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
|
|
42
|
+
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
33
43
|
type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
|
|
34
44
|
type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
|
|
35
45
|
type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
|
|
46
|
+
type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
|
|
36
47
|
type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
|
|
37
48
|
type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
|
|
38
49
|
type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
|
|
39
50
|
type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
40
51
|
type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
41
|
-
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
42
|
-
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
43
|
-
type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
|
|
44
52
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
45
53
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
46
54
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
47
55
|
type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
56
|
+
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
57
|
+
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
48
58
|
|
|
49
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, 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, RpcResult };
|
|
59
|
+
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 CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, 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 };
|