@chainflip/rpc 1.8.0 → 1.8.1
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 +2 -1
- package/dist/common.d.cts +113 -28
- package/dist/common.d.ts +113 -28
- package/dist/common.mjs +3 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/parsers.cjs +2 -2
- package/dist/parsers.d.cts +2 -2
- package/dist/parsers.d.ts +2 -2
- package/dist/parsers.mjs +2 -2
- package/dist/types.d.cts +3 -1
- package/dist/types.d.ts +3 -1
- package/package.json +1 -1
package/dist/common.cjs
CHANGED
|
@@ -26,7 +26,8 @@ var _parserscjs = require('./parsers.cjs');
|
|
|
26
26
|
|
|
27
27
|
var rpcResult = {
|
|
28
28
|
broker_requestSwapDepositAddress: _parserscjs.brokerRequestSwapDepositAddress,
|
|
29
|
-
broker_request_swap_parameter_encoding: _parserscjs.
|
|
29
|
+
broker_request_swap_parameter_encoding: _parserscjs.requestSwapParameterEncoding,
|
|
30
|
+
cf_request_swap_parameter_encoding: _parserscjs.requestSwapParameterEncoding,
|
|
30
31
|
cf_accounts: _parserscjs.cfAccounts,
|
|
31
32
|
cf_account_info: _parserscjs.cfAccountInfo,
|
|
32
33
|
cf_pool_depth: _parserscjs.cfPoolDepth,
|
package/dist/common.d.cts
CHANGED
|
@@ -35,6 +35,35 @@ type DcaParams = {
|
|
|
35
35
|
number_of_chunks: number;
|
|
36
36
|
chunk_interval: number;
|
|
37
37
|
};
|
|
38
|
+
type RequestSwapParameterEncodingParams = [
|
|
39
|
+
sourceAsset: UncheckedAssetAndChain,
|
|
40
|
+
destinationAsset: UncheckedAssetAndChain,
|
|
41
|
+
destinationAddress: string,
|
|
42
|
+
brokerCommission: number,
|
|
43
|
+
extraParameters: {
|
|
44
|
+
chain: 'Bitcoin';
|
|
45
|
+
min_output_amount: `0x${string}`;
|
|
46
|
+
retry_duration: number;
|
|
47
|
+
} | {
|
|
48
|
+
chain: 'Ethereum' | 'Arbitrum';
|
|
49
|
+
input_amount: `0x${string}`;
|
|
50
|
+
refund_parameters: FillOrKillParams;
|
|
51
|
+
} | {
|
|
52
|
+
chain: 'Solana';
|
|
53
|
+
from: string;
|
|
54
|
+
event_data_account: string;
|
|
55
|
+
input_amount: string;
|
|
56
|
+
refund_parameters: FillOrKillParams;
|
|
57
|
+
from_token_account?: string;
|
|
58
|
+
},
|
|
59
|
+
ccmParams?: Nullish<CcmParams>,
|
|
60
|
+
boostFee?: Nullish<number>,
|
|
61
|
+
affiliateFees?: Nullish<{
|
|
62
|
+
account: string;
|
|
63
|
+
bps: number;
|
|
64
|
+
}[]>,
|
|
65
|
+
dcaParams?: Nullish<DcaParams>
|
|
66
|
+
];
|
|
38
67
|
type RpcRequest = WithHash<{
|
|
39
68
|
broker_requestSwapDepositAddress: [
|
|
40
69
|
sourceAsset: UncheckedAssetAndChain,
|
|
@@ -50,34 +79,10 @@ type RpcRequest = WithHash<{
|
|
|
50
79
|
fillOrKillParams?: Nullish<FillOrKillParams>,
|
|
51
80
|
dcaParams?: Nullish<DcaParams>
|
|
52
81
|
];
|
|
53
|
-
broker_request_swap_parameter_encoding:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
brokerCommission: number,
|
|
58
|
-
extraParameters: {
|
|
59
|
-
chain: 'Bitcoin';
|
|
60
|
-
min_output_amount: `0x${string}`;
|
|
61
|
-
retry_duration: number;
|
|
62
|
-
} | {
|
|
63
|
-
chain: 'Ethereum' | 'Arbitrum';
|
|
64
|
-
input_amount: `0x${string}`;
|
|
65
|
-
refund_parameters: FillOrKillParams;
|
|
66
|
-
} | {
|
|
67
|
-
chain: 'Solana';
|
|
68
|
-
from: string;
|
|
69
|
-
event_data_account: string;
|
|
70
|
-
input_amount: string;
|
|
71
|
-
refund_parameters: FillOrKillParams;
|
|
72
|
-
from_token_account?: string;
|
|
73
|
-
},
|
|
74
|
-
ccmParams?: Nullish<CcmParams>,
|
|
75
|
-
boostFee?: Nullish<number>,
|
|
76
|
-
affiliateFees?: Nullish<{
|
|
77
|
-
account: string;
|
|
78
|
-
bps: number;
|
|
79
|
-
}[]>,
|
|
80
|
-
dcaParams?: Nullish<DcaParams>
|
|
82
|
+
broker_request_swap_parameter_encoding: RequestSwapParameterEncodingParams;
|
|
83
|
+
cf_request_swap_parameter_encoding: [
|
|
84
|
+
brokerAccountId: string,
|
|
85
|
+
...RequestSwapParameterEncodingParams
|
|
81
86
|
];
|
|
82
87
|
cf_account_info: [accountId: string];
|
|
83
88
|
cf_accounts: [];
|
|
@@ -247,6 +252,86 @@ declare const rpcResult: {
|
|
|
247
252
|
is_writable: boolean;
|
|
248
253
|
}[];
|
|
249
254
|
}>]>;
|
|
255
|
+
readonly cf_request_swap_parameter_encoding: z.ZodDiscriminatedUnion<"chain", [z.ZodObject<{
|
|
256
|
+
chain: z.ZodLiteral<"Bitcoin">;
|
|
257
|
+
nulldata_payload: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
258
|
+
deposit_address: z.ZodString;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
chain: "Bitcoin";
|
|
261
|
+
nulldata_payload: `0x${string}`;
|
|
262
|
+
deposit_address: string;
|
|
263
|
+
}, {
|
|
264
|
+
chain: "Bitcoin";
|
|
265
|
+
nulldata_payload: string;
|
|
266
|
+
deposit_address: string;
|
|
267
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
268
|
+
to: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
269
|
+
calldata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
270
|
+
value: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
271
|
+
}, {
|
|
272
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
273
|
+
}>, "strip", z.ZodTypeAny, {
|
|
274
|
+
value: bigint;
|
|
275
|
+
chain: "Ethereum";
|
|
276
|
+
to: `0x${string}`;
|
|
277
|
+
calldata: `0x${string}`;
|
|
278
|
+
}, {
|
|
279
|
+
value: string | number;
|
|
280
|
+
chain: "Ethereum";
|
|
281
|
+
to: string;
|
|
282
|
+
calldata: string;
|
|
283
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
284
|
+
to: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
285
|
+
calldata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
286
|
+
value: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
287
|
+
}, {
|
|
288
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
289
|
+
}>, "strip", z.ZodTypeAny, {
|
|
290
|
+
value: bigint;
|
|
291
|
+
chain: "Arbitrum";
|
|
292
|
+
to: `0x${string}`;
|
|
293
|
+
calldata: `0x${string}`;
|
|
294
|
+
}, {
|
|
295
|
+
value: string | number;
|
|
296
|
+
chain: "Arbitrum";
|
|
297
|
+
to: string;
|
|
298
|
+
calldata: string;
|
|
299
|
+
}>, z.ZodObject<{
|
|
300
|
+
chain: z.ZodLiteral<"Solana">;
|
|
301
|
+
program_id: z.ZodString;
|
|
302
|
+
data: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
303
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
304
|
+
pubkey: z.ZodString;
|
|
305
|
+
is_signer: z.ZodBoolean;
|
|
306
|
+
is_writable: z.ZodBoolean;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
308
|
+
pubkey: string;
|
|
309
|
+
is_signer: boolean;
|
|
310
|
+
is_writable: boolean;
|
|
311
|
+
}, {
|
|
312
|
+
pubkey: string;
|
|
313
|
+
is_signer: boolean;
|
|
314
|
+
is_writable: boolean;
|
|
315
|
+
}>, "many">;
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
|
+
chain: "Solana";
|
|
318
|
+
program_id: string;
|
|
319
|
+
data: `0x${string}`;
|
|
320
|
+
accounts: {
|
|
321
|
+
pubkey: string;
|
|
322
|
+
is_signer: boolean;
|
|
323
|
+
is_writable: boolean;
|
|
324
|
+
}[];
|
|
325
|
+
}, {
|
|
326
|
+
chain: "Solana";
|
|
327
|
+
program_id: string;
|
|
328
|
+
data: string;
|
|
329
|
+
accounts: {
|
|
330
|
+
pubkey: string;
|
|
331
|
+
is_signer: boolean;
|
|
332
|
+
is_writable: boolean;
|
|
333
|
+
}[];
|
|
334
|
+
}>]>;
|
|
250
335
|
readonly cf_accounts: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
|
|
251
336
|
readonly cf_account_info: z.ZodUnion<[z.ZodObject<{
|
|
252
337
|
role: z.ZodLiteral<"unregistered">;
|
package/dist/common.d.ts
CHANGED
|
@@ -35,6 +35,35 @@ type DcaParams = {
|
|
|
35
35
|
number_of_chunks: number;
|
|
36
36
|
chunk_interval: number;
|
|
37
37
|
};
|
|
38
|
+
type RequestSwapParameterEncodingParams = [
|
|
39
|
+
sourceAsset: UncheckedAssetAndChain,
|
|
40
|
+
destinationAsset: UncheckedAssetAndChain,
|
|
41
|
+
destinationAddress: string,
|
|
42
|
+
brokerCommission: number,
|
|
43
|
+
extraParameters: {
|
|
44
|
+
chain: 'Bitcoin';
|
|
45
|
+
min_output_amount: `0x${string}`;
|
|
46
|
+
retry_duration: number;
|
|
47
|
+
} | {
|
|
48
|
+
chain: 'Ethereum' | 'Arbitrum';
|
|
49
|
+
input_amount: `0x${string}`;
|
|
50
|
+
refund_parameters: FillOrKillParams;
|
|
51
|
+
} | {
|
|
52
|
+
chain: 'Solana';
|
|
53
|
+
from: string;
|
|
54
|
+
event_data_account: string;
|
|
55
|
+
input_amount: string;
|
|
56
|
+
refund_parameters: FillOrKillParams;
|
|
57
|
+
from_token_account?: string;
|
|
58
|
+
},
|
|
59
|
+
ccmParams?: Nullish<CcmParams>,
|
|
60
|
+
boostFee?: Nullish<number>,
|
|
61
|
+
affiliateFees?: Nullish<{
|
|
62
|
+
account: string;
|
|
63
|
+
bps: number;
|
|
64
|
+
}[]>,
|
|
65
|
+
dcaParams?: Nullish<DcaParams>
|
|
66
|
+
];
|
|
38
67
|
type RpcRequest = WithHash<{
|
|
39
68
|
broker_requestSwapDepositAddress: [
|
|
40
69
|
sourceAsset: UncheckedAssetAndChain,
|
|
@@ -50,34 +79,10 @@ type RpcRequest = WithHash<{
|
|
|
50
79
|
fillOrKillParams?: Nullish<FillOrKillParams>,
|
|
51
80
|
dcaParams?: Nullish<DcaParams>
|
|
52
81
|
];
|
|
53
|
-
broker_request_swap_parameter_encoding:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
brokerCommission: number,
|
|
58
|
-
extraParameters: {
|
|
59
|
-
chain: 'Bitcoin';
|
|
60
|
-
min_output_amount: `0x${string}`;
|
|
61
|
-
retry_duration: number;
|
|
62
|
-
} | {
|
|
63
|
-
chain: 'Ethereum' | 'Arbitrum';
|
|
64
|
-
input_amount: `0x${string}`;
|
|
65
|
-
refund_parameters: FillOrKillParams;
|
|
66
|
-
} | {
|
|
67
|
-
chain: 'Solana';
|
|
68
|
-
from: string;
|
|
69
|
-
event_data_account: string;
|
|
70
|
-
input_amount: string;
|
|
71
|
-
refund_parameters: FillOrKillParams;
|
|
72
|
-
from_token_account?: string;
|
|
73
|
-
},
|
|
74
|
-
ccmParams?: Nullish<CcmParams>,
|
|
75
|
-
boostFee?: Nullish<number>,
|
|
76
|
-
affiliateFees?: Nullish<{
|
|
77
|
-
account: string;
|
|
78
|
-
bps: number;
|
|
79
|
-
}[]>,
|
|
80
|
-
dcaParams?: Nullish<DcaParams>
|
|
82
|
+
broker_request_swap_parameter_encoding: RequestSwapParameterEncodingParams;
|
|
83
|
+
cf_request_swap_parameter_encoding: [
|
|
84
|
+
brokerAccountId: string,
|
|
85
|
+
...RequestSwapParameterEncodingParams
|
|
81
86
|
];
|
|
82
87
|
cf_account_info: [accountId: string];
|
|
83
88
|
cf_accounts: [];
|
|
@@ -247,6 +252,86 @@ declare const rpcResult: {
|
|
|
247
252
|
is_writable: boolean;
|
|
248
253
|
}[];
|
|
249
254
|
}>]>;
|
|
255
|
+
readonly cf_request_swap_parameter_encoding: z.ZodDiscriminatedUnion<"chain", [z.ZodObject<{
|
|
256
|
+
chain: z.ZodLiteral<"Bitcoin">;
|
|
257
|
+
nulldata_payload: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
258
|
+
deposit_address: z.ZodString;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
chain: "Bitcoin";
|
|
261
|
+
nulldata_payload: `0x${string}`;
|
|
262
|
+
deposit_address: string;
|
|
263
|
+
}, {
|
|
264
|
+
chain: "Bitcoin";
|
|
265
|
+
nulldata_payload: string;
|
|
266
|
+
deposit_address: string;
|
|
267
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
268
|
+
to: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
269
|
+
calldata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
270
|
+
value: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
271
|
+
}, {
|
|
272
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
273
|
+
}>, "strip", z.ZodTypeAny, {
|
|
274
|
+
value: bigint;
|
|
275
|
+
chain: "Ethereum";
|
|
276
|
+
to: `0x${string}`;
|
|
277
|
+
calldata: `0x${string}`;
|
|
278
|
+
}, {
|
|
279
|
+
value: string | number;
|
|
280
|
+
chain: "Ethereum";
|
|
281
|
+
to: string;
|
|
282
|
+
calldata: string;
|
|
283
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
284
|
+
to: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
285
|
+
calldata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
286
|
+
value: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
287
|
+
}, {
|
|
288
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
289
|
+
}>, "strip", z.ZodTypeAny, {
|
|
290
|
+
value: bigint;
|
|
291
|
+
chain: "Arbitrum";
|
|
292
|
+
to: `0x${string}`;
|
|
293
|
+
calldata: `0x${string}`;
|
|
294
|
+
}, {
|
|
295
|
+
value: string | number;
|
|
296
|
+
chain: "Arbitrum";
|
|
297
|
+
to: string;
|
|
298
|
+
calldata: string;
|
|
299
|
+
}>, z.ZodObject<{
|
|
300
|
+
chain: z.ZodLiteral<"Solana">;
|
|
301
|
+
program_id: z.ZodString;
|
|
302
|
+
data: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
303
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
304
|
+
pubkey: z.ZodString;
|
|
305
|
+
is_signer: z.ZodBoolean;
|
|
306
|
+
is_writable: z.ZodBoolean;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
308
|
+
pubkey: string;
|
|
309
|
+
is_signer: boolean;
|
|
310
|
+
is_writable: boolean;
|
|
311
|
+
}, {
|
|
312
|
+
pubkey: string;
|
|
313
|
+
is_signer: boolean;
|
|
314
|
+
is_writable: boolean;
|
|
315
|
+
}>, "many">;
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
|
+
chain: "Solana";
|
|
318
|
+
program_id: string;
|
|
319
|
+
data: `0x${string}`;
|
|
320
|
+
accounts: {
|
|
321
|
+
pubkey: string;
|
|
322
|
+
is_signer: boolean;
|
|
323
|
+
is_writable: boolean;
|
|
324
|
+
}[];
|
|
325
|
+
}, {
|
|
326
|
+
chain: "Solana";
|
|
327
|
+
program_id: string;
|
|
328
|
+
data: string;
|
|
329
|
+
accounts: {
|
|
330
|
+
pubkey: string;
|
|
331
|
+
is_signer: boolean;
|
|
332
|
+
is_writable: boolean;
|
|
333
|
+
}[];
|
|
334
|
+
}>]>;
|
|
250
335
|
readonly cf_accounts: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
|
|
251
336
|
readonly cf_account_info: z.ZodUnion<[z.ZodObject<{
|
|
252
337
|
role: z.ZodLiteral<"unregistered">;
|
package/dist/common.mjs
CHANGED
|
@@ -21,12 +21,13 @@ import {
|
|
|
21
21
|
cfPoolDepth,
|
|
22
22
|
cfAccounts,
|
|
23
23
|
cfSwapRateV3,
|
|
24
|
-
|
|
24
|
+
requestSwapParameterEncoding
|
|
25
25
|
} from "./parsers.mjs";
|
|
26
26
|
import { rpcResponse } from "./parsers.mjs";
|
|
27
27
|
var rpcResult = {
|
|
28
28
|
broker_requestSwapDepositAddress: brokerRequestSwapDepositAddress,
|
|
29
|
-
broker_request_swap_parameter_encoding:
|
|
29
|
+
broker_request_swap_parameter_encoding: requestSwapParameterEncoding,
|
|
30
|
+
cf_request_swap_parameter_encoding: requestSwapParameterEncoding,
|
|
30
31
|
cf_accounts: cfAccounts,
|
|
31
32
|
cf_account_info: cfAccountInfo,
|
|
32
33
|
cf_pool_depth: cfPoolDepth,
|
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, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount } from './types.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';
|
|
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, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount } from './types.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';
|
|
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
|
@@ -158,7 +158,7 @@ var evmBrokerRequestSwapParameterEncoding = _zod.z.object({
|
|
|
158
158
|
calldata: hexString,
|
|
159
159
|
value: numberOrHex
|
|
160
160
|
});
|
|
161
|
-
var
|
|
161
|
+
var requestSwapParameterEncoding = _zod.z.discriminatedUnion("chain", [
|
|
162
162
|
_zod.z.object({
|
|
163
163
|
chain: _zod.z.literal("Bitcoin"),
|
|
164
164
|
nulldata_payload: hexString,
|
|
@@ -336,4 +336,4 @@ var cfBoostPoolPendingFees = _zod.z.array(
|
|
|
336
336
|
|
|
337
337
|
|
|
338
338
|
|
|
339
|
-
exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.
|
|
339
|
+
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.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
|
@@ -11686,7 +11686,7 @@ declare const brokerRequestSwapDepositAddress: z.ZodObject<{
|
|
|
11686
11686
|
source_chain_expiry_block: string | number;
|
|
11687
11687
|
channel_opening_fee: string;
|
|
11688
11688
|
}>;
|
|
11689
|
-
declare const
|
|
11689
|
+
declare const requestSwapParameterEncoding: z.ZodDiscriminatedUnion<"chain", [z.ZodObject<{
|
|
11690
11690
|
chain: z.ZodLiteral<"Bitcoin">;
|
|
11691
11691
|
nulldata_payload: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
11692
11692
|
deposit_address: z.ZodString;
|
|
@@ -15205,4 +15205,4 @@ declare const cfBoostPoolPendingFees: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z
|
|
|
15205
15205
|
}[];
|
|
15206
15206
|
}>>, "many">;
|
|
15207
15207
|
|
|
15208
|
-
export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress,
|
|
15208
|
+
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, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
package/dist/parsers.d.ts
CHANGED
|
@@ -11686,7 +11686,7 @@ declare const brokerRequestSwapDepositAddress: z.ZodObject<{
|
|
|
11686
11686
|
source_chain_expiry_block: string | number;
|
|
11687
11687
|
channel_opening_fee: string;
|
|
11688
11688
|
}>;
|
|
11689
|
-
declare const
|
|
11689
|
+
declare const requestSwapParameterEncoding: z.ZodDiscriminatedUnion<"chain", [z.ZodObject<{
|
|
11690
11690
|
chain: z.ZodLiteral<"Bitcoin">;
|
|
11691
11691
|
nulldata_payload: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
11692
11692
|
deposit_address: z.ZodString;
|
|
@@ -15205,4 +15205,4 @@ declare const cfBoostPoolPendingFees: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z
|
|
|
15205
15205
|
}[];
|
|
15206
15206
|
}>>, "many">;
|
|
15207
15207
|
|
|
15208
|
-
export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress,
|
|
15208
|
+
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, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
package/dist/parsers.mjs
CHANGED
|
@@ -158,7 +158,7 @@ var evmBrokerRequestSwapParameterEncoding = z.object({
|
|
|
158
158
|
calldata: hexString,
|
|
159
159
|
value: numberOrHex
|
|
160
160
|
});
|
|
161
|
-
var
|
|
161
|
+
var requestSwapParameterEncoding = z.discriminatedUnion("chain", [
|
|
162
162
|
z.object({
|
|
163
163
|
chain: z.literal("Bitcoin"),
|
|
164
164
|
nulldata_payload: hexString,
|
|
@@ -308,7 +308,6 @@ var cfBoostPoolPendingFees = z.array(
|
|
|
308
308
|
export {
|
|
309
309
|
broker,
|
|
310
310
|
brokerRequestSwapDepositAddress,
|
|
311
|
-
brokerRequestSwapParameterEncoding,
|
|
312
311
|
cfAccountInfo,
|
|
313
312
|
cfAccounts,
|
|
314
313
|
cfBoostPoolDetails,
|
|
@@ -330,6 +329,7 @@ export {
|
|
|
330
329
|
hexString,
|
|
331
330
|
liquidityProvider,
|
|
332
331
|
numberOrHex,
|
|
332
|
+
requestSwapParameterEncoding,
|
|
333
333
|
rpcResponse,
|
|
334
334
|
stateGetMetadata,
|
|
335
335
|
stateGetRuntimeVersion,
|
package/dist/types.d.cts
CHANGED
|
@@ -22,6 +22,7 @@ type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
|
|
|
22
22
|
type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
|
|
23
23
|
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
24
24
|
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
25
|
+
type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
|
|
25
26
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
26
27
|
type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
|
|
27
28
|
type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
|
|
@@ -39,9 +40,10 @@ type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
|
39
40
|
type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
40
41
|
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
41
42
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
43
|
+
type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
|
|
42
44
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
43
45
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
44
46
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
45
47
|
type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
46
48
|
|
|
47
|
-
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 CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
|
|
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 };
|
package/dist/types.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
|
|
|
22
22
|
type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
|
|
23
23
|
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
24
24
|
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
25
|
+
type CfRequestSwapParameterEncoding = RpcResult<'cf_request_swap_parameter_encoding'>;
|
|
25
26
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
26
27
|
type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
|
|
27
28
|
type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
|
|
@@ -39,9 +40,10 @@ type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
|
39
40
|
type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
40
41
|
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
41
42
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
43
|
+
type CfRequestSwapParameterEncodingResponse = RpcResponse<'cf_request_swap_parameter_encoding'>;
|
|
42
44
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
43
45
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
44
46
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
45
47
|
type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
46
48
|
|
|
47
|
-
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 CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
|
|
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 };
|