@chainflip/rpc 1.11.15 → 2.0.0
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 +1 -0
- package/dist/common.d.cts +35 -0
- package/dist/common.d.ts +35 -0
- package/dist/common.mjs +1 -0
- package/package.json +1 -1
package/dist/common.cjs
CHANGED
|
@@ -46,6 +46,7 @@ var _parserscjs = require('./parsers.cjs');
|
|
|
46
46
|
|
|
47
47
|
var rpcResult = {
|
|
48
48
|
broker_request_swap_deposit_address: _parserscjs.brokerRequestSwapDepositAddress,
|
|
49
|
+
broker_request_account_creation_deposit_address: _parserscjs.brokerRequestSwapDepositAddress,
|
|
49
50
|
broker_request_swap_parameter_encoding: _parserscjs.requestSwapParameterEncoding,
|
|
50
51
|
cf_request_swap_parameter_encoding: _parserscjs.requestSwapParameterEncoding,
|
|
51
52
|
cf_accounts: _parserscjs.cfAccounts,
|
package/dist/common.d.cts
CHANGED
|
@@ -94,6 +94,22 @@ type RpcRequest = WithHash<{
|
|
|
94
94
|
fillOrKillParams: FillOrKillParams,
|
|
95
95
|
dcaParams?: Nullish<DcaParams>
|
|
96
96
|
];
|
|
97
|
+
broker_request_account_creation_deposit_address: [
|
|
98
|
+
asset: UncheckedAssetAndChain,
|
|
99
|
+
refundAddress: string,
|
|
100
|
+
boostFee: Nullish<number>,
|
|
101
|
+
signatureData: {
|
|
102
|
+
Ethereum: {
|
|
103
|
+
signature: HexString;
|
|
104
|
+
signer: HexString;
|
|
105
|
+
sigType: 'Eip712';
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
transactionMetadata: {
|
|
109
|
+
nonce: number;
|
|
110
|
+
expiryBlock: number;
|
|
111
|
+
}
|
|
112
|
+
];
|
|
97
113
|
broker_request_swap_parameter_encoding: RequestSwapParameterEncodingParams;
|
|
98
114
|
cf_request_swap_parameter_encoding: [
|
|
99
115
|
brokerAccountId: string,
|
|
@@ -220,6 +236,25 @@ declare const rpcResult: {
|
|
|
220
236
|
source_chain_expiry_block: string | number;
|
|
221
237
|
channel_opening_fee: string;
|
|
222
238
|
}>;
|
|
239
|
+
readonly broker_request_account_creation_deposit_address: z.ZodObject<{
|
|
240
|
+
address: z.ZodString;
|
|
241
|
+
issued_block: z.ZodNumber;
|
|
242
|
+
channel_id: z.ZodNumber;
|
|
243
|
+
source_chain_expiry_block: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
244
|
+
channel_opening_fee: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
address: string;
|
|
247
|
+
issued_block: number;
|
|
248
|
+
channel_id: number;
|
|
249
|
+
source_chain_expiry_block: bigint;
|
|
250
|
+
channel_opening_fee: bigint;
|
|
251
|
+
}, {
|
|
252
|
+
address: string;
|
|
253
|
+
issued_block: number;
|
|
254
|
+
channel_id: number;
|
|
255
|
+
source_chain_expiry_block: string | number;
|
|
256
|
+
channel_opening_fee: string;
|
|
257
|
+
}>;
|
|
223
258
|
readonly broker_request_swap_parameter_encoding: z.ZodDiscriminatedUnion<"chain", [z.ZodObject<{
|
|
224
259
|
chain: z.ZodLiteral<"Bitcoin">;
|
|
225
260
|
nulldata_payload: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
package/dist/common.d.ts
CHANGED
|
@@ -94,6 +94,22 @@ type RpcRequest = WithHash<{
|
|
|
94
94
|
fillOrKillParams: FillOrKillParams,
|
|
95
95
|
dcaParams?: Nullish<DcaParams>
|
|
96
96
|
];
|
|
97
|
+
broker_request_account_creation_deposit_address: [
|
|
98
|
+
asset: UncheckedAssetAndChain,
|
|
99
|
+
refundAddress: string,
|
|
100
|
+
boostFee: Nullish<number>,
|
|
101
|
+
signatureData: {
|
|
102
|
+
Ethereum: {
|
|
103
|
+
signature: HexString;
|
|
104
|
+
signer: HexString;
|
|
105
|
+
sigType: 'Eip712';
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
transactionMetadata: {
|
|
109
|
+
nonce: number;
|
|
110
|
+
expiryBlock: number;
|
|
111
|
+
}
|
|
112
|
+
];
|
|
97
113
|
broker_request_swap_parameter_encoding: RequestSwapParameterEncodingParams;
|
|
98
114
|
cf_request_swap_parameter_encoding: [
|
|
99
115
|
brokerAccountId: string,
|
|
@@ -220,6 +236,25 @@ declare const rpcResult: {
|
|
|
220
236
|
source_chain_expiry_block: string | number;
|
|
221
237
|
channel_opening_fee: string;
|
|
222
238
|
}>;
|
|
239
|
+
readonly broker_request_account_creation_deposit_address: z.ZodObject<{
|
|
240
|
+
address: z.ZodString;
|
|
241
|
+
issued_block: z.ZodNumber;
|
|
242
|
+
channel_id: z.ZodNumber;
|
|
243
|
+
source_chain_expiry_block: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
244
|
+
channel_opening_fee: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
address: string;
|
|
247
|
+
issued_block: number;
|
|
248
|
+
channel_id: number;
|
|
249
|
+
source_chain_expiry_block: bigint;
|
|
250
|
+
channel_opening_fee: bigint;
|
|
251
|
+
}, {
|
|
252
|
+
address: string;
|
|
253
|
+
issued_block: number;
|
|
254
|
+
channel_id: number;
|
|
255
|
+
source_chain_expiry_block: string | number;
|
|
256
|
+
channel_opening_fee: string;
|
|
257
|
+
}>;
|
|
223
258
|
readonly broker_request_swap_parameter_encoding: z.ZodDiscriminatedUnion<"chain", [z.ZodObject<{
|
|
224
259
|
chain: z.ZodLiteral<"Bitcoin">;
|
|
225
260
|
nulldata_payload: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
package/dist/common.mjs
CHANGED
|
@@ -46,6 +46,7 @@ import {
|
|
|
46
46
|
import { rpcResponse } from "./parsers.mjs";
|
|
47
47
|
var rpcResult = {
|
|
48
48
|
broker_request_swap_deposit_address: brokerRequestSwapDepositAddress,
|
|
49
|
+
broker_request_account_creation_deposit_address: brokerRequestSwapDepositAddress,
|
|
49
50
|
broker_request_swap_parameter_encoding: requestSwapParameterEncoding,
|
|
50
51
|
cf_request_swap_parameter_encoding: requestSwapParameterEncoding,
|
|
51
52
|
cf_accounts: cfAccounts,
|