@moonbeam-network/xcm-builder 1.0.0-dev.298 → 1.0.0-dev.299
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/build/index.d.mts +1940 -0
- package/build/index.mjs +0 -8
- package/build/index.mjs.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,1940 @@
|
|
|
1
|
+
import { Chain, AnyParachain, AssetAmount, ChainAssetId, ChainAsset, AnyChain } from '@moonbeam-network/xcm-types';
|
|
2
|
+
import { ApiPromise } from '@polkadot/api';
|
|
3
|
+
import { FrameSystemAccountInfo, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
|
|
4
|
+
import { Struct, u128, Enum } from '@polkadot/types';
|
|
5
|
+
import { Abi, PublicClient, HttpTransport } from 'viem';
|
|
6
|
+
import { SubmittableExtrinsicFunction } from '@polkadot/api/types';
|
|
7
|
+
import { EventRecord } from '@polkadot/types/interfaces';
|
|
8
|
+
import { HexString } from '@polkadot/util/types';
|
|
9
|
+
import { TokenId, ChainAddress, TokenTransfer, Wormhole } from '@wormhole-foundation/sdk-connect';
|
|
10
|
+
|
|
11
|
+
interface ConfigBuilder<Config, Params = BuilderParams> {
|
|
12
|
+
build: (params: Params) => Config;
|
|
13
|
+
}
|
|
14
|
+
interface BuilderParams<IChain extends Chain = AnyParachain> {
|
|
15
|
+
asset: AssetAmount;
|
|
16
|
+
destination: IChain;
|
|
17
|
+
destinationAddress: string;
|
|
18
|
+
destinationApi?: ApiPromise;
|
|
19
|
+
fee: AssetAmount;
|
|
20
|
+
source: IChain;
|
|
21
|
+
sourceAddress: string;
|
|
22
|
+
sourceApi?: ApiPromise;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface BaseConfigConstructorParams {
|
|
26
|
+
module: string;
|
|
27
|
+
func: string;
|
|
28
|
+
}
|
|
29
|
+
declare class BaseConfig {
|
|
30
|
+
readonly module: string;
|
|
31
|
+
readonly func: string;
|
|
32
|
+
constructor({ module, func }: BaseConfigConstructorParams);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
type QueryType = 'query' | 'call';
|
|
36
|
+
interface QueryConfigConstructorParams extends BaseConfigConstructorParams {
|
|
37
|
+
queryType?: QueryType;
|
|
38
|
+
args?: unknown[];
|
|
39
|
+
transform: (data: any) => Promise<bigint>;
|
|
40
|
+
}
|
|
41
|
+
declare class SubstrateQueryConfig extends BaseConfig {
|
|
42
|
+
readonly args: unknown[];
|
|
43
|
+
readonly queryType: QueryType;
|
|
44
|
+
readonly transform: (data: unknown) => Promise<bigint>;
|
|
45
|
+
static is(obj: unknown): obj is SubstrateQueryConfig;
|
|
46
|
+
constructor({ args, transform, queryType, ...other }: QueryConfigConstructorParams);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type AssetMinConfigBuilder = ConfigBuilder<SubstrateQueryConfig, AssetMinConfigBuilderParams>;
|
|
50
|
+
interface AssetMinConfigBuilderParams {
|
|
51
|
+
address?: string;
|
|
52
|
+
asset: ChainAssetId;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare function AssetMinBuilder(): {
|
|
56
|
+
assetRegistry: typeof assetRegistry;
|
|
57
|
+
assets: typeof assets$1;
|
|
58
|
+
foreignAssets: typeof foreignAssets$1;
|
|
59
|
+
};
|
|
60
|
+
declare function assetRegistry(): {
|
|
61
|
+
assetMetadatas: () => AssetMinConfigBuilder;
|
|
62
|
+
currencyMetadatas: () => AssetMinConfigBuilder;
|
|
63
|
+
metadata: () => AssetMinConfigBuilder;
|
|
64
|
+
};
|
|
65
|
+
declare function assets$1(): {
|
|
66
|
+
asset: () => AssetMinConfigBuilder;
|
|
67
|
+
};
|
|
68
|
+
declare function foreignAssets$1(): {
|
|
69
|
+
asset: () => AssetMinConfigBuilder;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
interface ContractConfigConstructorParams extends BaseConfigConstructorParams {
|
|
73
|
+
address: string;
|
|
74
|
+
abi: Abi;
|
|
75
|
+
args: unknown[];
|
|
76
|
+
value?: bigint;
|
|
77
|
+
}
|
|
78
|
+
declare class ContractConfig extends BaseConfig {
|
|
79
|
+
readonly address: string;
|
|
80
|
+
readonly abi: Abi;
|
|
81
|
+
readonly args: unknown[];
|
|
82
|
+
readonly value?: bigint;
|
|
83
|
+
static is(obj: unknown): obj is ContractConfig;
|
|
84
|
+
constructor({ address, abi, args, value, ...other }: ContractConfigConstructorParams);
|
|
85
|
+
encodeFunctionData(): `0x${string}`;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
type ContractConfigBuilder = ConfigBuilder<ContractConfig>;
|
|
89
|
+
type DestinationMultilocation = [
|
|
90
|
+
/**
|
|
91
|
+
* 0 - if destination is referring to a location in the same chain
|
|
92
|
+
* 1 - if transaction is going through or to a relay chain
|
|
93
|
+
* 2 - if transaction is going to a parachain in another ecosystem
|
|
94
|
+
*/
|
|
95
|
+
0 | 1 | 2,
|
|
96
|
+
([
|
|
97
|
+
/**
|
|
98
|
+
* example '0x00000007DC'
|
|
99
|
+
* 7DC - parachain id in hex
|
|
100
|
+
* can be found here:
|
|
101
|
+
* - https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/parachains
|
|
102
|
+
* - https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/parachains
|
|
103
|
+
*/
|
|
104
|
+
string,
|
|
105
|
+
/**
|
|
106
|
+
* example '0x01%account%00',
|
|
107
|
+
* enum = 01 (AccountId32)
|
|
108
|
+
* networkId = 00 (any)
|
|
109
|
+
*/
|
|
110
|
+
string
|
|
111
|
+
] | [
|
|
112
|
+
/**
|
|
113
|
+
* example '0x01%account%00',
|
|
114
|
+
* enum = 01 (AccountId32)
|
|
115
|
+
* networkId = 00 (any)
|
|
116
|
+
*/
|
|
117
|
+
string
|
|
118
|
+
]
|
|
119
|
+
/**
|
|
120
|
+
* example 'Here',
|
|
121
|
+
*/
|
|
122
|
+
| [])
|
|
123
|
+
];
|
|
124
|
+
type AssetAddressFormat = (string | bigint | undefined)[];
|
|
125
|
+
declare enum TransferType {
|
|
126
|
+
Teleport = 0,
|
|
127
|
+
LocalReserve = 1,
|
|
128
|
+
DestinationReserve = 2
|
|
129
|
+
}
|
|
130
|
+
type AssetMultilocation = [[number, string[]], bigint];
|
|
131
|
+
|
|
132
|
+
declare function XcmPrecompile(): {
|
|
133
|
+
transferAssetsToPara20: (shouldTransferAssetPrecedeFeeAsset?: boolean) => ContractConfigBuilder;
|
|
134
|
+
transferAssetsToPara32: (shouldTransferAssetPrecedeFeeAsset?: boolean) => ContractConfigBuilder;
|
|
135
|
+
transferAssetsToRelay: () => ContractConfigBuilder;
|
|
136
|
+
transferAssetsLocation: () => {
|
|
137
|
+
nativeAsset: () => ContractConfigBuilder;
|
|
138
|
+
localErc20: () => ContractConfigBuilder;
|
|
139
|
+
foreignAsset: () => ContractConfigBuilder;
|
|
140
|
+
foreignErc20: () => ContractConfigBuilder;
|
|
141
|
+
};
|
|
142
|
+
transferAssetsUsingTypeAndThenAddress: (shouldTransferAssetPrecedeFeeAsset?: boolean) => ContractConfigBuilder;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
declare function Xtokens(): {
|
|
146
|
+
transfer: (weight?: bigint) => ContractConfigBuilder;
|
|
147
|
+
transferMultiCurrencies: (shouldTransferAssetPrecedeFeeAsset?: boolean, weight?: bigint) => ContractConfigBuilder;
|
|
148
|
+
transferWithEvmTo32: (weight?: bigint) => ContractConfigBuilder;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
declare function ContractBuilder(): {
|
|
152
|
+
Xtokens: typeof Xtokens;
|
|
153
|
+
XcmPrecompile: typeof XcmPrecompile;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
type EvmQueryFunctions = 'getBalance';
|
|
157
|
+
type EvmFunctionArgs = Parameters<PublicClient<HttpTransport>[EvmQueryFunctions]>;
|
|
158
|
+
interface EvmQueryConfigParams {
|
|
159
|
+
readonly args: EvmFunctionArgs;
|
|
160
|
+
readonly func: EvmQueryFunctions;
|
|
161
|
+
}
|
|
162
|
+
declare class EvmQueryConfig {
|
|
163
|
+
readonly args: EvmFunctionArgs;
|
|
164
|
+
readonly func: EvmQueryFunctions;
|
|
165
|
+
static is(obj: unknown): obj is EvmQueryConfig;
|
|
166
|
+
constructor({ args, func }: EvmQueryConfigParams);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
type BalanceConfigBuilder = ConfigBuilder<ContractConfig | SubstrateQueryConfig | EvmQueryConfig, BalanceBuilderParams>;
|
|
170
|
+
interface BalanceBuilderParams {
|
|
171
|
+
address: string;
|
|
172
|
+
asset: ChainAsset;
|
|
173
|
+
}
|
|
174
|
+
interface PalletBalancesAccountDataOld extends Struct {
|
|
175
|
+
readonly free: u128;
|
|
176
|
+
readonly reserved: u128;
|
|
177
|
+
readonly miscFrozen: u128;
|
|
178
|
+
readonly feeFrozen: u128;
|
|
179
|
+
}
|
|
180
|
+
interface TokensPalletAccountData {
|
|
181
|
+
free: u128;
|
|
182
|
+
reserved: u128;
|
|
183
|
+
frozen: u128;
|
|
184
|
+
}
|
|
185
|
+
type EquilibriumSystemBalanceData = Array<[
|
|
186
|
+
number,
|
|
187
|
+
{
|
|
188
|
+
positive: number;
|
|
189
|
+
}
|
|
190
|
+
]>;
|
|
191
|
+
|
|
192
|
+
declare function BalanceBuilder(): {
|
|
193
|
+
evm: typeof evm;
|
|
194
|
+
substrate: typeof substrate;
|
|
195
|
+
};
|
|
196
|
+
declare function evm(): {
|
|
197
|
+
erc20: typeof erc20;
|
|
198
|
+
native: typeof native;
|
|
199
|
+
};
|
|
200
|
+
declare function erc20(): BalanceConfigBuilder;
|
|
201
|
+
declare function native(): BalanceConfigBuilder;
|
|
202
|
+
declare function substrate(): {
|
|
203
|
+
assets: typeof assets;
|
|
204
|
+
foreignAssets: typeof foreignAssets;
|
|
205
|
+
system: typeof system;
|
|
206
|
+
tokens: typeof tokens;
|
|
207
|
+
};
|
|
208
|
+
declare function assets(): {
|
|
209
|
+
account: () => BalanceConfigBuilder;
|
|
210
|
+
};
|
|
211
|
+
declare function foreignAssets(): {
|
|
212
|
+
account: () => {
|
|
213
|
+
globalConsensus: () => BalanceConfigBuilder;
|
|
214
|
+
id: () => BalanceConfigBuilder;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
declare function system(): {
|
|
218
|
+
account: () => BalanceConfigBuilder;
|
|
219
|
+
accountEquilibrium: () => BalanceConfigBuilder;
|
|
220
|
+
accountEvmTo32: () => BalanceConfigBuilder;
|
|
221
|
+
};
|
|
222
|
+
declare function tokens(): {
|
|
223
|
+
accounts: () => BalanceConfigBuilder;
|
|
224
|
+
};
|
|
225
|
+
declare function calculateSystemAccountBalance(response: FrameSystemAccountInfo): Promise<bigint>;
|
|
226
|
+
|
|
227
|
+
declare const ERC20_ABI: readonly [{
|
|
228
|
+
readonly constant: true;
|
|
229
|
+
readonly inputs: readonly [];
|
|
230
|
+
readonly name: "name";
|
|
231
|
+
readonly outputs: readonly [{
|
|
232
|
+
readonly name: "";
|
|
233
|
+
readonly type: "string";
|
|
234
|
+
}];
|
|
235
|
+
readonly payable: false;
|
|
236
|
+
readonly stateMutability: "view";
|
|
237
|
+
readonly type: "function";
|
|
238
|
+
}, {
|
|
239
|
+
readonly constant: false;
|
|
240
|
+
readonly inputs: readonly [{
|
|
241
|
+
readonly name: "_spender";
|
|
242
|
+
readonly type: "address";
|
|
243
|
+
}, {
|
|
244
|
+
readonly name: "_value";
|
|
245
|
+
readonly type: "uint256";
|
|
246
|
+
}];
|
|
247
|
+
readonly name: "approve";
|
|
248
|
+
readonly outputs: readonly [{
|
|
249
|
+
readonly name: "";
|
|
250
|
+
readonly type: "bool";
|
|
251
|
+
}];
|
|
252
|
+
readonly payable: false;
|
|
253
|
+
readonly stateMutability: "nonpayable";
|
|
254
|
+
readonly type: "function";
|
|
255
|
+
}, {
|
|
256
|
+
readonly constant: true;
|
|
257
|
+
readonly inputs: readonly [];
|
|
258
|
+
readonly name: "totalSupply";
|
|
259
|
+
readonly outputs: readonly [{
|
|
260
|
+
readonly name: "";
|
|
261
|
+
readonly type: "uint256";
|
|
262
|
+
}];
|
|
263
|
+
readonly payable: false;
|
|
264
|
+
readonly stateMutability: "view";
|
|
265
|
+
readonly type: "function";
|
|
266
|
+
}, {
|
|
267
|
+
readonly constant: false;
|
|
268
|
+
readonly inputs: readonly [{
|
|
269
|
+
readonly name: "_from";
|
|
270
|
+
readonly type: "address";
|
|
271
|
+
}, {
|
|
272
|
+
readonly name: "_to";
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
}, {
|
|
275
|
+
readonly name: "_value";
|
|
276
|
+
readonly type: "uint256";
|
|
277
|
+
}];
|
|
278
|
+
readonly name: "transferFrom";
|
|
279
|
+
readonly outputs: readonly [{
|
|
280
|
+
readonly name: "";
|
|
281
|
+
readonly type: "bool";
|
|
282
|
+
}];
|
|
283
|
+
readonly payable: false;
|
|
284
|
+
readonly stateMutability: "nonpayable";
|
|
285
|
+
readonly type: "function";
|
|
286
|
+
}, {
|
|
287
|
+
readonly constant: true;
|
|
288
|
+
readonly inputs: readonly [];
|
|
289
|
+
readonly name: "decimals";
|
|
290
|
+
readonly outputs: readonly [{
|
|
291
|
+
readonly name: "";
|
|
292
|
+
readonly type: "uint8";
|
|
293
|
+
}];
|
|
294
|
+
readonly payable: false;
|
|
295
|
+
readonly stateMutability: "view";
|
|
296
|
+
readonly type: "function";
|
|
297
|
+
}, {
|
|
298
|
+
readonly constant: true;
|
|
299
|
+
readonly inputs: readonly [{
|
|
300
|
+
readonly name: "_owner";
|
|
301
|
+
readonly type: "address";
|
|
302
|
+
}];
|
|
303
|
+
readonly name: "balanceOf";
|
|
304
|
+
readonly outputs: readonly [{
|
|
305
|
+
readonly name: "balance";
|
|
306
|
+
readonly type: "uint256";
|
|
307
|
+
}];
|
|
308
|
+
readonly payable: false;
|
|
309
|
+
readonly stateMutability: "view";
|
|
310
|
+
readonly type: "function";
|
|
311
|
+
}, {
|
|
312
|
+
readonly constant: true;
|
|
313
|
+
readonly inputs: readonly [];
|
|
314
|
+
readonly name: "symbol";
|
|
315
|
+
readonly outputs: readonly [{
|
|
316
|
+
readonly name: "";
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
}];
|
|
319
|
+
readonly payable: false;
|
|
320
|
+
readonly stateMutability: "view";
|
|
321
|
+
readonly type: "function";
|
|
322
|
+
}, {
|
|
323
|
+
readonly constant: false;
|
|
324
|
+
readonly inputs: readonly [{
|
|
325
|
+
readonly name: "_to";
|
|
326
|
+
readonly type: "address";
|
|
327
|
+
}, {
|
|
328
|
+
readonly name: "_value";
|
|
329
|
+
readonly type: "uint256";
|
|
330
|
+
}];
|
|
331
|
+
readonly name: "transfer";
|
|
332
|
+
readonly outputs: readonly [{
|
|
333
|
+
readonly name: "";
|
|
334
|
+
readonly type: "bool";
|
|
335
|
+
}];
|
|
336
|
+
readonly payable: false;
|
|
337
|
+
readonly stateMutability: "nonpayable";
|
|
338
|
+
readonly type: "function";
|
|
339
|
+
}, {
|
|
340
|
+
readonly constant: true;
|
|
341
|
+
readonly inputs: readonly [{
|
|
342
|
+
readonly name: "_owner";
|
|
343
|
+
readonly type: "address";
|
|
344
|
+
}, {
|
|
345
|
+
readonly name: "_spender";
|
|
346
|
+
readonly type: "address";
|
|
347
|
+
}];
|
|
348
|
+
readonly name: "allowance";
|
|
349
|
+
readonly outputs: readonly [{
|
|
350
|
+
readonly name: "";
|
|
351
|
+
readonly type: "uint256";
|
|
352
|
+
}];
|
|
353
|
+
readonly payable: false;
|
|
354
|
+
readonly stateMutability: "view";
|
|
355
|
+
readonly type: "function";
|
|
356
|
+
}, {
|
|
357
|
+
readonly payable: true;
|
|
358
|
+
readonly stateMutability: "payable";
|
|
359
|
+
readonly type: "fallback";
|
|
360
|
+
}, {
|
|
361
|
+
readonly anonymous: false;
|
|
362
|
+
readonly inputs: readonly [{
|
|
363
|
+
readonly indexed: true;
|
|
364
|
+
readonly name: "owner";
|
|
365
|
+
readonly type: "address";
|
|
366
|
+
}, {
|
|
367
|
+
readonly indexed: true;
|
|
368
|
+
readonly name: "spender";
|
|
369
|
+
readonly type: "address";
|
|
370
|
+
}, {
|
|
371
|
+
readonly indexed: false;
|
|
372
|
+
readonly name: "value";
|
|
373
|
+
readonly type: "uint256";
|
|
374
|
+
}];
|
|
375
|
+
readonly name: "Approval";
|
|
376
|
+
readonly type: "event";
|
|
377
|
+
}, {
|
|
378
|
+
readonly anonymous: false;
|
|
379
|
+
readonly inputs: readonly [{
|
|
380
|
+
readonly indexed: true;
|
|
381
|
+
readonly name: "from";
|
|
382
|
+
readonly type: "address";
|
|
383
|
+
}, {
|
|
384
|
+
readonly indexed: true;
|
|
385
|
+
readonly name: "to";
|
|
386
|
+
readonly type: "address";
|
|
387
|
+
}, {
|
|
388
|
+
readonly indexed: false;
|
|
389
|
+
readonly name: "value";
|
|
390
|
+
readonly type: "uint256";
|
|
391
|
+
}];
|
|
392
|
+
readonly name: "Transfer";
|
|
393
|
+
readonly type: "event";
|
|
394
|
+
}];
|
|
395
|
+
|
|
396
|
+
interface ExtrinsicConfigConstructorParams extends Omit<BaseConfigConstructorParams, 'type'> {
|
|
397
|
+
getArgs: (func?: SubmittableExtrinsicFunction<'promise'>) => any[];
|
|
398
|
+
}
|
|
399
|
+
declare class ExtrinsicConfig extends BaseConfig {
|
|
400
|
+
getArgs: (func?: SubmittableExtrinsicFunction<'promise'>) => any[];
|
|
401
|
+
static is(obj: unknown): obj is ExtrinsicConfig;
|
|
402
|
+
constructor({ getArgs, ...other }: ExtrinsicConfigConstructorParams);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
type ExtrinsicConfigBuilder = ConfigBuilder<ExtrinsicConfig>;
|
|
406
|
+
declare enum XcmVersion {
|
|
407
|
+
v1 = "V1",
|
|
408
|
+
v2 = "V2",
|
|
409
|
+
v3 = "V3",
|
|
410
|
+
v4 = "V4",
|
|
411
|
+
v5 = "V5"
|
|
412
|
+
}
|
|
413
|
+
type Parents = 0 | 1;
|
|
414
|
+
|
|
415
|
+
declare function eqBalances(): {
|
|
416
|
+
xcmTransfer: () => ExtrinsicConfigBuilder;
|
|
417
|
+
transferXcm: () => ExtrinsicConfigBuilder;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
declare function polkadotXcm$2(): {
|
|
421
|
+
limitedReserveTransferAssets: () => {
|
|
422
|
+
here: () => ExtrinsicConfigBuilder;
|
|
423
|
+
X1: () => ExtrinsicConfigBuilder;
|
|
424
|
+
X2: () => ExtrinsicConfigBuilder;
|
|
425
|
+
X2PalletInstance: () => ExtrinsicConfigBuilder;
|
|
426
|
+
};
|
|
427
|
+
limitedReserveWithdrawAssets: () => {
|
|
428
|
+
X2: () => ExtrinsicConfigBuilder;
|
|
429
|
+
};
|
|
430
|
+
transferAssets: () => {
|
|
431
|
+
here: (parents?: number) => ExtrinsicConfigBuilder;
|
|
432
|
+
X1: () => ExtrinsicConfigBuilder;
|
|
433
|
+
X1GeneralKey: () => ExtrinsicConfigBuilder;
|
|
434
|
+
X2: () => ExtrinsicConfigBuilder;
|
|
435
|
+
X3: () => ExtrinsicConfigBuilder;
|
|
436
|
+
X2AndFeeHere: () => ExtrinsicConfigBuilder;
|
|
437
|
+
};
|
|
438
|
+
transferAssetsUsingTypeAndThen: () => {
|
|
439
|
+
here: (parents?: number) => ExtrinsicConfigBuilder;
|
|
440
|
+
X2: (parents?: number) => ExtrinsicConfigBuilder;
|
|
441
|
+
globalConsensusEthereum: () => ExtrinsicConfigBuilder;
|
|
442
|
+
};
|
|
443
|
+
transferAssetsToEcosystem: () => {
|
|
444
|
+
X1: () => ExtrinsicConfigBuilder;
|
|
445
|
+
X2: () => ExtrinsicConfigBuilder;
|
|
446
|
+
X3: () => ExtrinsicConfigBuilder;
|
|
447
|
+
X4: () => ExtrinsicConfigBuilder;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
declare function xcmPallet$1(): {
|
|
452
|
+
limitedReserveTransferAssets: (parents?: Parents) => {
|
|
453
|
+
here: () => ExtrinsicConfigBuilder;
|
|
454
|
+
};
|
|
455
|
+
transferAssetsUsingTypeAndThen: () => {
|
|
456
|
+
here: () => ExtrinsicConfigBuilder;
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
declare function xTokens(): {
|
|
461
|
+
transfer: () => ExtrinsicConfigBuilder;
|
|
462
|
+
transferMultiAsset: (originParachainId: number) => {
|
|
463
|
+
here: () => ExtrinsicConfigBuilder;
|
|
464
|
+
X1: () => ExtrinsicConfigBuilder;
|
|
465
|
+
X2: () => ExtrinsicConfigBuilder;
|
|
466
|
+
};
|
|
467
|
+
transferMultiCurrencies: () => ExtrinsicConfigBuilder;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
declare function xTransfer(): {
|
|
471
|
+
transfer: () => {
|
|
472
|
+
here: () => ExtrinsicConfigBuilder;
|
|
473
|
+
X2: () => ExtrinsicConfigBuilder;
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
declare function ExtrinsicBuilder(): {
|
|
478
|
+
eqBalances: typeof eqBalances;
|
|
479
|
+
xTokens: typeof xTokens;
|
|
480
|
+
xTransfer: typeof xTransfer;
|
|
481
|
+
polkadotXcm: typeof polkadotXcm$2;
|
|
482
|
+
xcmPallet: typeof xcmPallet$1;
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
interface SubstrateCallConfigConstructorParams {
|
|
486
|
+
api: ApiPromise;
|
|
487
|
+
call: () => Promise<bigint>;
|
|
488
|
+
}
|
|
489
|
+
declare class SubstrateCallConfig {
|
|
490
|
+
readonly api: ApiPromise;
|
|
491
|
+
readonly call: () => Promise<any>;
|
|
492
|
+
static is(obj: unknown): obj is SubstrateCallConfig;
|
|
493
|
+
constructor({ api, call }: SubstrateCallConfigConstructorParams);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
type FeeConfigBuilder = ConfigBuilder<SubstrateCallConfig | ContractConfig, FeeConfigBuilderParams>;
|
|
497
|
+
type ProtocolFeeConfigBuilder = ConfigBuilder<SubstrateQueryConfig | ContractConfig, ProtocolFeeConfigBuilderParams>;
|
|
498
|
+
interface FeeConfigBuilderParams {
|
|
499
|
+
address: string;
|
|
500
|
+
api: ApiPromise;
|
|
501
|
+
asset: ChainAsset;
|
|
502
|
+
balance?: AssetAmount;
|
|
503
|
+
destination: AnyChain;
|
|
504
|
+
feeAsset: ChainAsset;
|
|
505
|
+
source: AnyChain;
|
|
506
|
+
}
|
|
507
|
+
interface ProtocolFeeConfigBuilderParams extends Omit<FeeConfigBuilderParams, 'api'> {
|
|
508
|
+
bridgeChainFee: AssetAmount;
|
|
509
|
+
}
|
|
510
|
+
interface XcmPaymentFeeProps {
|
|
511
|
+
isAssetReserveChain: boolean;
|
|
512
|
+
shouldTransferAssetPrecedeFeeAsset?: boolean;
|
|
513
|
+
isEcosystemBridge?: boolean;
|
|
514
|
+
parents?: number;
|
|
515
|
+
}
|
|
516
|
+
interface MoonbeamRuntimeXcmConfigAssetType extends Enum {
|
|
517
|
+
readonly isXcm: boolean;
|
|
518
|
+
readonly asXcm: StagingXcmV3MultiLocation;
|
|
519
|
+
readonly type: 'Xcm';
|
|
520
|
+
}
|
|
521
|
+
type GetVersionedAssetId = (params: FeeConfigBuilderParams) => Promise<object> | object;
|
|
522
|
+
|
|
523
|
+
declare function gateway(): {
|
|
524
|
+
quoteSendTokenFee(): ProtocolFeeConfigBuilder;
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
declare function outboundQueueApi(): {
|
|
528
|
+
calculateFee: () => {
|
|
529
|
+
mintForeignToken: () => ProtocolFeeConfigBuilder;
|
|
530
|
+
agentExecute: () => ProtocolFeeConfigBuilder;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
declare function xcmPaymentApi(): {
|
|
535
|
+
fromCurrencyIdToLocations: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
536
|
+
fromAssetIdQuery: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
537
|
+
fromSourceAccountKey20: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
538
|
+
fromSourcePalletInstance: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
539
|
+
fromHere: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
540
|
+
fromHereAndGeneralIndex: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
541
|
+
fromPalletInstanceAndGeneralIndex: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
542
|
+
fromHereAndSourceGeneralIndex: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
543
|
+
fromGeneralIndex: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
544
|
+
fromPalletInstance: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
545
|
+
fromPalletInstanceAndAccountKey20: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
546
|
+
fromGlobalConsensus: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
declare function FeeBuilder(): {
|
|
550
|
+
gateway: typeof gateway;
|
|
551
|
+
outboundQueueApi: typeof outboundQueueApi;
|
|
552
|
+
xcmPaymentApi: typeof xcmPaymentApi;
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
type SourceChecker = (events: EventRecord[], sourceAddress: string) => {
|
|
556
|
+
matched: boolean;
|
|
557
|
+
messageId?: string;
|
|
558
|
+
event?: EventRecord;
|
|
559
|
+
};
|
|
560
|
+
type DestinationChecker = (events: EventRecord[], messageId?: string) => {
|
|
561
|
+
matched: boolean;
|
|
562
|
+
success: boolean;
|
|
563
|
+
event?: EventRecord;
|
|
564
|
+
};
|
|
565
|
+
interface MonitorEventReturn {
|
|
566
|
+
xcmPallet: () => {
|
|
567
|
+
messageQueue: () => EventMonitoringConfig$1;
|
|
568
|
+
};
|
|
569
|
+
polkadotXcm: () => {
|
|
570
|
+
messageQueue: () => EventMonitoringConfig$1;
|
|
571
|
+
mixedQueue: () => EventMonitoringConfig$1;
|
|
572
|
+
xcmpQueue: () => EventMonitoringConfig$1;
|
|
573
|
+
};
|
|
574
|
+
xTokens: () => {
|
|
575
|
+
messageQueue: () => EventMonitoringConfig$1;
|
|
576
|
+
ethereumXcm: () => EventMonitoringConfig$1;
|
|
577
|
+
};
|
|
578
|
+
bridgeMessages: () => {
|
|
579
|
+
bridgeMessages: () => EventMonitoringConfig$1;
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
interface EventMonitoringConfig$1 {
|
|
583
|
+
checkSource: SourceChecker;
|
|
584
|
+
checkDestination: DestinationChecker;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
declare function monitorEvent(): MonitorEventReturn;
|
|
588
|
+
|
|
589
|
+
declare function MonitoringBuilder(): {
|
|
590
|
+
monitorEvent: typeof monitorEvent;
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
interface MonitoringBuilderConfig {
|
|
594
|
+
eventMonitoring: EventMonitoringConfig;
|
|
595
|
+
}
|
|
596
|
+
interface EventMonitoringConfig {
|
|
597
|
+
checkSource: SourceChecker;
|
|
598
|
+
checkDestination: DestinationChecker;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
type SnowbridgeFunctions = 'sendToken';
|
|
602
|
+
interface SnowbridgeFunctionArgs {
|
|
603
|
+
tokenAddress: string;
|
|
604
|
+
destinationAddress: string;
|
|
605
|
+
destinationParaId: number;
|
|
606
|
+
amount: bigint;
|
|
607
|
+
bridgeFeeAmount: bigint;
|
|
608
|
+
bridgeChainFee: bigint;
|
|
609
|
+
requiresApproval: boolean;
|
|
610
|
+
value: bigint;
|
|
611
|
+
}
|
|
612
|
+
interface SnowbridgeConfigConstructorParams {
|
|
613
|
+
args: SnowbridgeFunctionArgs;
|
|
614
|
+
func: SnowbridgeFunctions;
|
|
615
|
+
}
|
|
616
|
+
declare class SnowbridgeConfig {
|
|
617
|
+
readonly args: SnowbridgeFunctionArgs;
|
|
618
|
+
readonly func: SnowbridgeFunctions;
|
|
619
|
+
readonly provider = Provider.Snowbridge;
|
|
620
|
+
static is(obj: unknown): obj is SnowbridgeConfig;
|
|
621
|
+
constructor({ args, func }: SnowbridgeConfigConstructorParams);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
declare const GATEWAY_ABI: readonly [{
|
|
625
|
+
readonly inputs: readonly [{
|
|
626
|
+
readonly internalType: "address";
|
|
627
|
+
readonly name: "beefyClient";
|
|
628
|
+
readonly type: "address";
|
|
629
|
+
}, {
|
|
630
|
+
readonly internalType: "address";
|
|
631
|
+
readonly name: "agentExecutor";
|
|
632
|
+
readonly type: "address";
|
|
633
|
+
}, {
|
|
634
|
+
readonly internalType: "ParaID";
|
|
635
|
+
readonly name: "bridgeHubParaID";
|
|
636
|
+
readonly type: "uint32";
|
|
637
|
+
}, {
|
|
638
|
+
readonly internalType: "bytes32";
|
|
639
|
+
readonly name: "bridgeHubAgentID";
|
|
640
|
+
readonly type: "bytes32";
|
|
641
|
+
}, {
|
|
642
|
+
readonly internalType: "uint8";
|
|
643
|
+
readonly name: "foreignTokenDecimals";
|
|
644
|
+
readonly type: "uint8";
|
|
645
|
+
}, {
|
|
646
|
+
readonly internalType: "uint128";
|
|
647
|
+
readonly name: "maxDestinationFee";
|
|
648
|
+
readonly type: "uint128";
|
|
649
|
+
}];
|
|
650
|
+
readonly stateMutability: "nonpayable";
|
|
651
|
+
readonly type: "constructor";
|
|
652
|
+
}, {
|
|
653
|
+
readonly inputs: readonly [];
|
|
654
|
+
readonly name: "AgentAlreadyCreated";
|
|
655
|
+
readonly type: "error";
|
|
656
|
+
}, {
|
|
657
|
+
readonly inputs: readonly [];
|
|
658
|
+
readonly name: "AgentDoesNotExist";
|
|
659
|
+
readonly type: "error";
|
|
660
|
+
}, {
|
|
661
|
+
readonly inputs: readonly [];
|
|
662
|
+
readonly name: "CantSetMiddlewareToSameAddress";
|
|
663
|
+
readonly type: "error";
|
|
664
|
+
}, {
|
|
665
|
+
readonly inputs: readonly [];
|
|
666
|
+
readonly name: "CantSetMiddlewareToZeroAddress";
|
|
667
|
+
readonly type: "error";
|
|
668
|
+
}, {
|
|
669
|
+
readonly inputs: readonly [];
|
|
670
|
+
readonly name: "ChannelAlreadyCreated";
|
|
671
|
+
readonly type: "error";
|
|
672
|
+
}, {
|
|
673
|
+
readonly inputs: readonly [];
|
|
674
|
+
readonly name: "ChannelDoesNotExist";
|
|
675
|
+
readonly type: "error";
|
|
676
|
+
}, {
|
|
677
|
+
readonly inputs: readonly [];
|
|
678
|
+
readonly name: "Disabled";
|
|
679
|
+
readonly type: "error";
|
|
680
|
+
}, {
|
|
681
|
+
readonly inputs: readonly [{
|
|
682
|
+
readonly internalType: "uint256";
|
|
683
|
+
readonly name: "epoch";
|
|
684
|
+
readonly type: "uint256";
|
|
685
|
+
}, {
|
|
686
|
+
readonly internalType: "uint256";
|
|
687
|
+
readonly name: "eraIndex";
|
|
688
|
+
readonly type: "uint256";
|
|
689
|
+
}, {
|
|
690
|
+
readonly internalType: "address";
|
|
691
|
+
readonly name: "tokenAddress";
|
|
692
|
+
readonly type: "address";
|
|
693
|
+
}, {
|
|
694
|
+
readonly internalType: "uint256";
|
|
695
|
+
readonly name: "totalPointsToken";
|
|
696
|
+
readonly type: "uint256";
|
|
697
|
+
}, {
|
|
698
|
+
readonly internalType: "uint256";
|
|
699
|
+
readonly name: "totalTokensInflated";
|
|
700
|
+
readonly type: "uint256";
|
|
701
|
+
}, {
|
|
702
|
+
readonly internalType: "bytes32";
|
|
703
|
+
readonly name: "rewardsRoot";
|
|
704
|
+
readonly type: "bytes32";
|
|
705
|
+
}, {
|
|
706
|
+
readonly internalType: "bytes";
|
|
707
|
+
readonly name: "errorBytes";
|
|
708
|
+
readonly type: "bytes";
|
|
709
|
+
}];
|
|
710
|
+
readonly name: "EUnableToProcessRewardsB";
|
|
711
|
+
readonly type: "error";
|
|
712
|
+
}, {
|
|
713
|
+
readonly inputs: readonly [{
|
|
714
|
+
readonly internalType: "uint256";
|
|
715
|
+
readonly name: "epoch";
|
|
716
|
+
readonly type: "uint256";
|
|
717
|
+
}, {
|
|
718
|
+
readonly internalType: "uint256";
|
|
719
|
+
readonly name: "eraIndex";
|
|
720
|
+
readonly type: "uint256";
|
|
721
|
+
}, {
|
|
722
|
+
readonly internalType: "address";
|
|
723
|
+
readonly name: "tokenAddress";
|
|
724
|
+
readonly type: "address";
|
|
725
|
+
}, {
|
|
726
|
+
readonly internalType: "uint256";
|
|
727
|
+
readonly name: "totalPointsToken";
|
|
728
|
+
readonly type: "uint256";
|
|
729
|
+
}, {
|
|
730
|
+
readonly internalType: "uint256";
|
|
731
|
+
readonly name: "totalTokensInflated";
|
|
732
|
+
readonly type: "uint256";
|
|
733
|
+
}, {
|
|
734
|
+
readonly internalType: "bytes32";
|
|
735
|
+
readonly name: "rewardsRoot";
|
|
736
|
+
readonly type: "bytes32";
|
|
737
|
+
}, {
|
|
738
|
+
readonly internalType: "string";
|
|
739
|
+
readonly name: "errorString";
|
|
740
|
+
readonly type: "string";
|
|
741
|
+
}];
|
|
742
|
+
readonly name: "EUnableToProcessRewardsS";
|
|
743
|
+
readonly type: "error";
|
|
744
|
+
}, {
|
|
745
|
+
readonly inputs: readonly [];
|
|
746
|
+
readonly name: "FeePaymentToLow";
|
|
747
|
+
readonly type: "error";
|
|
748
|
+
}, {
|
|
749
|
+
readonly inputs: readonly [];
|
|
750
|
+
readonly name: "InvalidAgentExecutionPayload";
|
|
751
|
+
readonly type: "error";
|
|
752
|
+
}, {
|
|
753
|
+
readonly inputs: readonly [];
|
|
754
|
+
readonly name: "InvalidChannelUpdate";
|
|
755
|
+
readonly type: "error";
|
|
756
|
+
}, {
|
|
757
|
+
readonly inputs: readonly [];
|
|
758
|
+
readonly name: "InvalidCodeHash";
|
|
759
|
+
readonly type: "error";
|
|
760
|
+
}, {
|
|
761
|
+
readonly inputs: readonly [];
|
|
762
|
+
readonly name: "InvalidConstructorParams";
|
|
763
|
+
readonly type: "error";
|
|
764
|
+
}, {
|
|
765
|
+
readonly inputs: readonly [];
|
|
766
|
+
readonly name: "InvalidContract";
|
|
767
|
+
readonly type: "error";
|
|
768
|
+
}, {
|
|
769
|
+
readonly inputs: readonly [];
|
|
770
|
+
readonly name: "InvalidNonce";
|
|
771
|
+
readonly type: "error";
|
|
772
|
+
}, {
|
|
773
|
+
readonly inputs: readonly [];
|
|
774
|
+
readonly name: "InvalidProof";
|
|
775
|
+
readonly type: "error";
|
|
776
|
+
}, {
|
|
777
|
+
readonly inputs: readonly [];
|
|
778
|
+
readonly name: "MiddlewareNotSet";
|
|
779
|
+
readonly type: "error";
|
|
780
|
+
}, {
|
|
781
|
+
readonly inputs: readonly [];
|
|
782
|
+
readonly name: "NativeTransferFailed";
|
|
783
|
+
readonly type: "error";
|
|
784
|
+
}, {
|
|
785
|
+
readonly inputs: readonly [];
|
|
786
|
+
readonly name: "NotEnoughGas";
|
|
787
|
+
readonly type: "error";
|
|
788
|
+
}, {
|
|
789
|
+
readonly inputs: readonly [];
|
|
790
|
+
readonly name: "Operators__OperatorsKeysCannotBeEmpty";
|
|
791
|
+
readonly type: "error";
|
|
792
|
+
}, {
|
|
793
|
+
readonly inputs: readonly [];
|
|
794
|
+
readonly name: "Operators__OperatorsLengthTooLong";
|
|
795
|
+
readonly type: "error";
|
|
796
|
+
}, {
|
|
797
|
+
readonly inputs: readonly [{
|
|
798
|
+
readonly internalType: "uint256";
|
|
799
|
+
readonly name: "x";
|
|
800
|
+
readonly type: "uint256";
|
|
801
|
+
}, {
|
|
802
|
+
readonly internalType: "uint256";
|
|
803
|
+
readonly name: "y";
|
|
804
|
+
readonly type: "uint256";
|
|
805
|
+
}];
|
|
806
|
+
readonly name: "PRBMath_MulDiv18_Overflow";
|
|
807
|
+
readonly type: "error";
|
|
808
|
+
}, {
|
|
809
|
+
readonly inputs: readonly [{
|
|
810
|
+
readonly internalType: "uint256";
|
|
811
|
+
readonly name: "x";
|
|
812
|
+
readonly type: "uint256";
|
|
813
|
+
}, {
|
|
814
|
+
readonly internalType: "uint256";
|
|
815
|
+
readonly name: "y";
|
|
816
|
+
readonly type: "uint256";
|
|
817
|
+
}, {
|
|
818
|
+
readonly internalType: "uint256";
|
|
819
|
+
readonly name: "denominator";
|
|
820
|
+
readonly type: "uint256";
|
|
821
|
+
}];
|
|
822
|
+
readonly name: "PRBMath_MulDiv_Overflow";
|
|
823
|
+
readonly type: "error";
|
|
824
|
+
}, {
|
|
825
|
+
readonly inputs: readonly [{
|
|
826
|
+
readonly internalType: "uint256";
|
|
827
|
+
readonly name: "x";
|
|
828
|
+
readonly type: "uint256";
|
|
829
|
+
}];
|
|
830
|
+
readonly name: "PRBMath_UD60x18_Convert_Overflow";
|
|
831
|
+
readonly type: "error";
|
|
832
|
+
}, {
|
|
833
|
+
readonly inputs: readonly [{
|
|
834
|
+
readonly internalType: "UD60x18";
|
|
835
|
+
readonly name: "x";
|
|
836
|
+
readonly type: "uint256";
|
|
837
|
+
}];
|
|
838
|
+
readonly name: "PRBMath_UD60x18_Exp2_InputTooBig";
|
|
839
|
+
readonly type: "error";
|
|
840
|
+
}, {
|
|
841
|
+
readonly inputs: readonly [{
|
|
842
|
+
readonly internalType: "UD60x18";
|
|
843
|
+
readonly name: "x";
|
|
844
|
+
readonly type: "uint256";
|
|
845
|
+
}];
|
|
846
|
+
readonly name: "PRBMath_UD60x18_Log_InputTooSmall";
|
|
847
|
+
readonly type: "error";
|
|
848
|
+
}, {
|
|
849
|
+
readonly inputs: readonly [];
|
|
850
|
+
readonly name: "TokenNotRegistered";
|
|
851
|
+
readonly type: "error";
|
|
852
|
+
}, {
|
|
853
|
+
readonly inputs: readonly [];
|
|
854
|
+
readonly name: "Unauthorized";
|
|
855
|
+
readonly type: "error";
|
|
856
|
+
}, {
|
|
857
|
+
readonly anonymous: false;
|
|
858
|
+
readonly inputs: readonly [{
|
|
859
|
+
readonly indexed: false;
|
|
860
|
+
readonly internalType: "bytes32";
|
|
861
|
+
readonly name: "agentID";
|
|
862
|
+
readonly type: "bytes32";
|
|
863
|
+
}, {
|
|
864
|
+
readonly indexed: false;
|
|
865
|
+
readonly internalType: "address";
|
|
866
|
+
readonly name: "agent";
|
|
867
|
+
readonly type: "address";
|
|
868
|
+
}];
|
|
869
|
+
readonly name: "AgentCreated";
|
|
870
|
+
readonly type: "event";
|
|
871
|
+
}, {
|
|
872
|
+
readonly anonymous: false;
|
|
873
|
+
readonly inputs: readonly [{
|
|
874
|
+
readonly indexed: true;
|
|
875
|
+
readonly internalType: "bytes32";
|
|
876
|
+
readonly name: "agentID";
|
|
877
|
+
readonly type: "bytes32";
|
|
878
|
+
}, {
|
|
879
|
+
readonly indexed: true;
|
|
880
|
+
readonly internalType: "address";
|
|
881
|
+
readonly name: "recipient";
|
|
882
|
+
readonly type: "address";
|
|
883
|
+
}, {
|
|
884
|
+
readonly indexed: false;
|
|
885
|
+
readonly internalType: "uint256";
|
|
886
|
+
readonly name: "amount";
|
|
887
|
+
readonly type: "uint256";
|
|
888
|
+
}];
|
|
889
|
+
readonly name: "AgentFundsWithdrawn";
|
|
890
|
+
readonly type: "event";
|
|
891
|
+
}, {
|
|
892
|
+
readonly anonymous: false;
|
|
893
|
+
readonly inputs: readonly [{
|
|
894
|
+
readonly indexed: true;
|
|
895
|
+
readonly internalType: "ChannelID";
|
|
896
|
+
readonly name: "channelID";
|
|
897
|
+
readonly type: "bytes32";
|
|
898
|
+
}];
|
|
899
|
+
readonly name: "ChannelCreated";
|
|
900
|
+
readonly type: "event";
|
|
901
|
+
}, {
|
|
902
|
+
readonly anonymous: false;
|
|
903
|
+
readonly inputs: readonly [{
|
|
904
|
+
readonly indexed: true;
|
|
905
|
+
readonly internalType: "ChannelID";
|
|
906
|
+
readonly name: "channelID";
|
|
907
|
+
readonly type: "bytes32";
|
|
908
|
+
}];
|
|
909
|
+
readonly name: "ChannelUpdated";
|
|
910
|
+
readonly type: "event";
|
|
911
|
+
}, {
|
|
912
|
+
readonly anonymous: false;
|
|
913
|
+
readonly inputs: readonly [{
|
|
914
|
+
readonly indexed: true;
|
|
915
|
+
readonly internalType: "bytes32";
|
|
916
|
+
readonly name: "tokenID";
|
|
917
|
+
readonly type: "bytes32";
|
|
918
|
+
}, {
|
|
919
|
+
readonly indexed: false;
|
|
920
|
+
readonly internalType: "address";
|
|
921
|
+
readonly name: "token";
|
|
922
|
+
readonly type: "address";
|
|
923
|
+
}];
|
|
924
|
+
readonly name: "ForeignTokenRegistered";
|
|
925
|
+
readonly type: "event";
|
|
926
|
+
}, {
|
|
927
|
+
readonly anonymous: false;
|
|
928
|
+
readonly inputs: readonly [{
|
|
929
|
+
readonly indexed: true;
|
|
930
|
+
readonly internalType: "ChannelID";
|
|
931
|
+
readonly name: "channelID";
|
|
932
|
+
readonly type: "bytes32";
|
|
933
|
+
}, {
|
|
934
|
+
readonly indexed: false;
|
|
935
|
+
readonly internalType: "uint64";
|
|
936
|
+
readonly name: "nonce";
|
|
937
|
+
readonly type: "uint64";
|
|
938
|
+
}, {
|
|
939
|
+
readonly indexed: true;
|
|
940
|
+
readonly internalType: "bytes32";
|
|
941
|
+
readonly name: "messageID";
|
|
942
|
+
readonly type: "bytes32";
|
|
943
|
+
}, {
|
|
944
|
+
readonly indexed: false;
|
|
945
|
+
readonly internalType: "bool";
|
|
946
|
+
readonly name: "success";
|
|
947
|
+
readonly type: "bool";
|
|
948
|
+
}];
|
|
949
|
+
readonly name: "InboundMessageDispatched";
|
|
950
|
+
readonly type: "event";
|
|
951
|
+
}, {
|
|
952
|
+
readonly anonymous: false;
|
|
953
|
+
readonly inputs: readonly [{
|
|
954
|
+
readonly indexed: true;
|
|
955
|
+
readonly internalType: "address";
|
|
956
|
+
readonly name: "previousMiddleware";
|
|
957
|
+
readonly type: "address";
|
|
958
|
+
}, {
|
|
959
|
+
readonly indexed: true;
|
|
960
|
+
readonly internalType: "address";
|
|
961
|
+
readonly name: "newMiddleware";
|
|
962
|
+
readonly type: "address";
|
|
963
|
+
}];
|
|
964
|
+
readonly name: "MiddlewareChanged";
|
|
965
|
+
readonly type: "event";
|
|
966
|
+
}, {
|
|
967
|
+
readonly anonymous: false;
|
|
968
|
+
readonly inputs: readonly [{
|
|
969
|
+
readonly indexed: false;
|
|
970
|
+
readonly internalType: "enum OperatingMode";
|
|
971
|
+
readonly name: "mode";
|
|
972
|
+
readonly type: "uint8";
|
|
973
|
+
}];
|
|
974
|
+
readonly name: "OperatingModeChanged";
|
|
975
|
+
readonly type: "event";
|
|
976
|
+
}, {
|
|
977
|
+
readonly anonymous: false;
|
|
978
|
+
readonly inputs: readonly [{
|
|
979
|
+
readonly indexed: true;
|
|
980
|
+
readonly internalType: "uint256";
|
|
981
|
+
readonly name: "validatorsCount";
|
|
982
|
+
readonly type: "uint256";
|
|
983
|
+
}, {
|
|
984
|
+
readonly indexed: false;
|
|
985
|
+
readonly internalType: "bytes";
|
|
986
|
+
readonly name: "payload";
|
|
987
|
+
readonly type: "bytes";
|
|
988
|
+
}];
|
|
989
|
+
readonly name: "OperatorsDataCreated";
|
|
990
|
+
readonly type: "event";
|
|
991
|
+
}, {
|
|
992
|
+
readonly anonymous: false;
|
|
993
|
+
readonly inputs: readonly [{
|
|
994
|
+
readonly indexed: true;
|
|
995
|
+
readonly internalType: "ChannelID";
|
|
996
|
+
readonly name: "channelID";
|
|
997
|
+
readonly type: "bytes32";
|
|
998
|
+
}, {
|
|
999
|
+
readonly indexed: false;
|
|
1000
|
+
readonly internalType: "uint64";
|
|
1001
|
+
readonly name: "nonce";
|
|
1002
|
+
readonly type: "uint64";
|
|
1003
|
+
}, {
|
|
1004
|
+
readonly indexed: true;
|
|
1005
|
+
readonly internalType: "bytes32";
|
|
1006
|
+
readonly name: "messageID";
|
|
1007
|
+
readonly type: "bytes32";
|
|
1008
|
+
}, {
|
|
1009
|
+
readonly indexed: false;
|
|
1010
|
+
readonly internalType: "bytes";
|
|
1011
|
+
readonly name: "payload";
|
|
1012
|
+
readonly type: "bytes";
|
|
1013
|
+
}];
|
|
1014
|
+
readonly name: "OutboundMessageAccepted";
|
|
1015
|
+
readonly type: "event";
|
|
1016
|
+
}, {
|
|
1017
|
+
readonly anonymous: false;
|
|
1018
|
+
readonly inputs: readonly [{
|
|
1019
|
+
readonly indexed: true;
|
|
1020
|
+
readonly internalType: "address";
|
|
1021
|
+
readonly name: "previousOwner";
|
|
1022
|
+
readonly type: "address";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly indexed: true;
|
|
1025
|
+
readonly internalType: "address";
|
|
1026
|
+
readonly name: "newOwner";
|
|
1027
|
+
readonly type: "address";
|
|
1028
|
+
}];
|
|
1029
|
+
readonly name: "OwnershipTransferred";
|
|
1030
|
+
readonly type: "event";
|
|
1031
|
+
}, {
|
|
1032
|
+
readonly anonymous: false;
|
|
1033
|
+
readonly inputs: readonly [];
|
|
1034
|
+
readonly name: "PricingParametersChanged";
|
|
1035
|
+
readonly type: "event";
|
|
1036
|
+
}, {
|
|
1037
|
+
readonly anonymous: false;
|
|
1038
|
+
readonly inputs: readonly [{
|
|
1039
|
+
readonly indexed: false;
|
|
1040
|
+
readonly internalType: "address";
|
|
1041
|
+
readonly name: "token";
|
|
1042
|
+
readonly type: "address";
|
|
1043
|
+
}];
|
|
1044
|
+
readonly name: "TokenRegistrationSent";
|
|
1045
|
+
readonly type: "event";
|
|
1046
|
+
}, {
|
|
1047
|
+
readonly anonymous: false;
|
|
1048
|
+
readonly inputs: readonly [{
|
|
1049
|
+
readonly indexed: true;
|
|
1050
|
+
readonly internalType: "address";
|
|
1051
|
+
readonly name: "token";
|
|
1052
|
+
readonly type: "address";
|
|
1053
|
+
}, {
|
|
1054
|
+
readonly indexed: true;
|
|
1055
|
+
readonly internalType: "address";
|
|
1056
|
+
readonly name: "sender";
|
|
1057
|
+
readonly type: "address";
|
|
1058
|
+
}, {
|
|
1059
|
+
readonly indexed: true;
|
|
1060
|
+
readonly internalType: "ParaID";
|
|
1061
|
+
readonly name: "destinationChain";
|
|
1062
|
+
readonly type: "uint32";
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly components: readonly [{
|
|
1065
|
+
readonly internalType: "enum Kind";
|
|
1066
|
+
readonly name: "kind";
|
|
1067
|
+
readonly type: "uint8";
|
|
1068
|
+
}, {
|
|
1069
|
+
readonly internalType: "bytes";
|
|
1070
|
+
readonly name: "data";
|
|
1071
|
+
readonly type: "bytes";
|
|
1072
|
+
}];
|
|
1073
|
+
readonly indexed: false;
|
|
1074
|
+
readonly internalType: "struct MultiAddress";
|
|
1075
|
+
readonly name: "destinationAddress";
|
|
1076
|
+
readonly type: "tuple";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly indexed: false;
|
|
1079
|
+
readonly internalType: "uint128";
|
|
1080
|
+
readonly name: "amount";
|
|
1081
|
+
readonly type: "uint128";
|
|
1082
|
+
}];
|
|
1083
|
+
readonly name: "TokenSent";
|
|
1084
|
+
readonly type: "event";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly anonymous: false;
|
|
1087
|
+
readonly inputs: readonly [];
|
|
1088
|
+
readonly name: "TokenTransferFeesChanged";
|
|
1089
|
+
readonly type: "event";
|
|
1090
|
+
}, {
|
|
1091
|
+
readonly anonymous: false;
|
|
1092
|
+
readonly inputs: readonly [{
|
|
1093
|
+
readonly indexed: true;
|
|
1094
|
+
readonly internalType: "bytes32";
|
|
1095
|
+
readonly name: "operatorKey";
|
|
1096
|
+
readonly type: "bytes32";
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly indexed: false;
|
|
1099
|
+
readonly internalType: "uint256";
|
|
1100
|
+
readonly name: "slashFranction";
|
|
1101
|
+
readonly type: "uint256";
|
|
1102
|
+
}, {
|
|
1103
|
+
readonly indexed: true;
|
|
1104
|
+
readonly internalType: "uint256";
|
|
1105
|
+
readonly name: "epoch";
|
|
1106
|
+
readonly type: "uint256";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly indexed: false;
|
|
1109
|
+
readonly internalType: "bytes";
|
|
1110
|
+
readonly name: "error";
|
|
1111
|
+
readonly type: "bytes";
|
|
1112
|
+
}];
|
|
1113
|
+
readonly name: "UnableToProcessIndividualSlashB";
|
|
1114
|
+
readonly type: "event";
|
|
1115
|
+
}, {
|
|
1116
|
+
readonly anonymous: false;
|
|
1117
|
+
readonly inputs: readonly [{
|
|
1118
|
+
readonly indexed: true;
|
|
1119
|
+
readonly internalType: "bytes32";
|
|
1120
|
+
readonly name: "operatorKey";
|
|
1121
|
+
readonly type: "bytes32";
|
|
1122
|
+
}, {
|
|
1123
|
+
readonly indexed: false;
|
|
1124
|
+
readonly internalType: "uint256";
|
|
1125
|
+
readonly name: "slashFranction";
|
|
1126
|
+
readonly type: "uint256";
|
|
1127
|
+
}, {
|
|
1128
|
+
readonly indexed: true;
|
|
1129
|
+
readonly internalType: "uint256";
|
|
1130
|
+
readonly name: "epoch";
|
|
1131
|
+
readonly type: "uint256";
|
|
1132
|
+
}, {
|
|
1133
|
+
readonly indexed: false;
|
|
1134
|
+
readonly internalType: "string";
|
|
1135
|
+
readonly name: "error";
|
|
1136
|
+
readonly type: "string";
|
|
1137
|
+
}];
|
|
1138
|
+
readonly name: "UnableToProcessIndividualSlashS";
|
|
1139
|
+
readonly type: "event";
|
|
1140
|
+
}, {
|
|
1141
|
+
readonly anonymous: false;
|
|
1142
|
+
readonly inputs: readonly [{
|
|
1143
|
+
readonly indexed: false;
|
|
1144
|
+
readonly internalType: "bytes";
|
|
1145
|
+
readonly name: "error";
|
|
1146
|
+
readonly type: "bytes";
|
|
1147
|
+
}];
|
|
1148
|
+
readonly name: "UnableToProcessRewardsMessageB";
|
|
1149
|
+
readonly type: "event";
|
|
1150
|
+
}, {
|
|
1151
|
+
readonly anonymous: false;
|
|
1152
|
+
readonly inputs: readonly [{
|
|
1153
|
+
readonly indexed: false;
|
|
1154
|
+
readonly internalType: "string";
|
|
1155
|
+
readonly name: "error";
|
|
1156
|
+
readonly type: "string";
|
|
1157
|
+
}];
|
|
1158
|
+
readonly name: "UnableToProcessRewardsMessageS";
|
|
1159
|
+
readonly type: "event";
|
|
1160
|
+
}, {
|
|
1161
|
+
readonly anonymous: false;
|
|
1162
|
+
readonly inputs: readonly [{
|
|
1163
|
+
readonly indexed: false;
|
|
1164
|
+
readonly internalType: "bytes";
|
|
1165
|
+
readonly name: "error";
|
|
1166
|
+
readonly type: "bytes";
|
|
1167
|
+
}];
|
|
1168
|
+
readonly name: "UnableToProcessSlashMessageB";
|
|
1169
|
+
readonly type: "event";
|
|
1170
|
+
}, {
|
|
1171
|
+
readonly anonymous: false;
|
|
1172
|
+
readonly inputs: readonly [{
|
|
1173
|
+
readonly indexed: false;
|
|
1174
|
+
readonly internalType: "string";
|
|
1175
|
+
readonly name: "error";
|
|
1176
|
+
readonly type: "string";
|
|
1177
|
+
}];
|
|
1178
|
+
readonly name: "UnableToProcessSlashMessageS";
|
|
1179
|
+
readonly type: "event";
|
|
1180
|
+
}, {
|
|
1181
|
+
readonly anonymous: false;
|
|
1182
|
+
readonly inputs: readonly [{
|
|
1183
|
+
readonly indexed: true;
|
|
1184
|
+
readonly internalType: "address";
|
|
1185
|
+
readonly name: "implementation";
|
|
1186
|
+
readonly type: "address";
|
|
1187
|
+
}];
|
|
1188
|
+
readonly name: "Upgraded";
|
|
1189
|
+
readonly type: "event";
|
|
1190
|
+
}, {
|
|
1191
|
+
readonly inputs: readonly [];
|
|
1192
|
+
readonly name: "AGENT_EXECUTOR";
|
|
1193
|
+
readonly outputs: readonly [{
|
|
1194
|
+
readonly internalType: "address";
|
|
1195
|
+
readonly name: "";
|
|
1196
|
+
readonly type: "address";
|
|
1197
|
+
}];
|
|
1198
|
+
readonly stateMutability: "view";
|
|
1199
|
+
readonly type: "function";
|
|
1200
|
+
}, {
|
|
1201
|
+
readonly inputs: readonly [];
|
|
1202
|
+
readonly name: "BEEFY_CLIENT";
|
|
1203
|
+
readonly outputs: readonly [{
|
|
1204
|
+
readonly internalType: "address";
|
|
1205
|
+
readonly name: "";
|
|
1206
|
+
readonly type: "address";
|
|
1207
|
+
}];
|
|
1208
|
+
readonly stateMutability: "view";
|
|
1209
|
+
readonly type: "function";
|
|
1210
|
+
}, {
|
|
1211
|
+
readonly inputs: readonly [{
|
|
1212
|
+
readonly internalType: "bytes";
|
|
1213
|
+
readonly name: "data";
|
|
1214
|
+
readonly type: "bytes";
|
|
1215
|
+
}];
|
|
1216
|
+
readonly name: "agentExecute";
|
|
1217
|
+
readonly outputs: readonly [];
|
|
1218
|
+
readonly stateMutability: "nonpayable";
|
|
1219
|
+
readonly type: "function";
|
|
1220
|
+
}, {
|
|
1221
|
+
readonly inputs: readonly [{
|
|
1222
|
+
readonly internalType: "bytes32";
|
|
1223
|
+
readonly name: "agentID";
|
|
1224
|
+
readonly type: "bytes32";
|
|
1225
|
+
}];
|
|
1226
|
+
readonly name: "agentOf";
|
|
1227
|
+
readonly outputs: readonly [{
|
|
1228
|
+
readonly internalType: "address";
|
|
1229
|
+
readonly name: "";
|
|
1230
|
+
readonly type: "address";
|
|
1231
|
+
}];
|
|
1232
|
+
readonly stateMutability: "view";
|
|
1233
|
+
readonly type: "function";
|
|
1234
|
+
}, {
|
|
1235
|
+
readonly inputs: readonly [{
|
|
1236
|
+
readonly internalType: "ChannelID";
|
|
1237
|
+
readonly name: "channelID";
|
|
1238
|
+
readonly type: "bytes32";
|
|
1239
|
+
}];
|
|
1240
|
+
readonly name: "channelNoncesOf";
|
|
1241
|
+
readonly outputs: readonly [{
|
|
1242
|
+
readonly internalType: "uint64";
|
|
1243
|
+
readonly name: "";
|
|
1244
|
+
readonly type: "uint64";
|
|
1245
|
+
}, {
|
|
1246
|
+
readonly internalType: "uint64";
|
|
1247
|
+
readonly name: "";
|
|
1248
|
+
readonly type: "uint64";
|
|
1249
|
+
}];
|
|
1250
|
+
readonly stateMutability: "view";
|
|
1251
|
+
readonly type: "function";
|
|
1252
|
+
}, {
|
|
1253
|
+
readonly inputs: readonly [{
|
|
1254
|
+
readonly internalType: "ChannelID";
|
|
1255
|
+
readonly name: "channelID";
|
|
1256
|
+
readonly type: "bytes32";
|
|
1257
|
+
}];
|
|
1258
|
+
readonly name: "channelOperatingModeOf";
|
|
1259
|
+
readonly outputs: readonly [{
|
|
1260
|
+
readonly internalType: "enum OperatingMode";
|
|
1261
|
+
readonly name: "";
|
|
1262
|
+
readonly type: "uint8";
|
|
1263
|
+
}];
|
|
1264
|
+
readonly stateMutability: "view";
|
|
1265
|
+
readonly type: "function";
|
|
1266
|
+
}, {
|
|
1267
|
+
readonly inputs: readonly [{
|
|
1268
|
+
readonly internalType: "bytes";
|
|
1269
|
+
readonly name: "data";
|
|
1270
|
+
readonly type: "bytes";
|
|
1271
|
+
}];
|
|
1272
|
+
readonly name: "createAgent";
|
|
1273
|
+
readonly outputs: readonly [];
|
|
1274
|
+
readonly stateMutability: "nonpayable";
|
|
1275
|
+
readonly type: "function";
|
|
1276
|
+
}, {
|
|
1277
|
+
readonly inputs: readonly [{
|
|
1278
|
+
readonly internalType: "bytes";
|
|
1279
|
+
readonly name: "data";
|
|
1280
|
+
readonly type: "bytes";
|
|
1281
|
+
}];
|
|
1282
|
+
readonly name: "createChannel";
|
|
1283
|
+
readonly outputs: readonly [];
|
|
1284
|
+
readonly stateMutability: "nonpayable";
|
|
1285
|
+
readonly type: "function";
|
|
1286
|
+
}, {
|
|
1287
|
+
readonly inputs: readonly [];
|
|
1288
|
+
readonly name: "implementation";
|
|
1289
|
+
readonly outputs: readonly [{
|
|
1290
|
+
readonly internalType: "address";
|
|
1291
|
+
readonly name: "";
|
|
1292
|
+
readonly type: "address";
|
|
1293
|
+
}];
|
|
1294
|
+
readonly stateMutability: "view";
|
|
1295
|
+
readonly type: "function";
|
|
1296
|
+
}, {
|
|
1297
|
+
readonly inputs: readonly [{
|
|
1298
|
+
readonly internalType: "bytes";
|
|
1299
|
+
readonly name: "data";
|
|
1300
|
+
readonly type: "bytes";
|
|
1301
|
+
}];
|
|
1302
|
+
readonly name: "initialize";
|
|
1303
|
+
readonly outputs: readonly [];
|
|
1304
|
+
readonly stateMutability: "nonpayable";
|
|
1305
|
+
readonly type: "function";
|
|
1306
|
+
}, {
|
|
1307
|
+
readonly inputs: readonly [{
|
|
1308
|
+
readonly internalType: "address";
|
|
1309
|
+
readonly name: "token";
|
|
1310
|
+
readonly type: "address";
|
|
1311
|
+
}];
|
|
1312
|
+
readonly name: "isTokenRegistered";
|
|
1313
|
+
readonly outputs: readonly [{
|
|
1314
|
+
readonly internalType: "bool";
|
|
1315
|
+
readonly name: "";
|
|
1316
|
+
readonly type: "bool";
|
|
1317
|
+
}];
|
|
1318
|
+
readonly stateMutability: "view";
|
|
1319
|
+
readonly type: "function";
|
|
1320
|
+
}, {
|
|
1321
|
+
readonly inputs: readonly [{
|
|
1322
|
+
readonly internalType: "bytes";
|
|
1323
|
+
readonly name: "data";
|
|
1324
|
+
readonly type: "bytes";
|
|
1325
|
+
}];
|
|
1326
|
+
readonly name: "mintForeignToken";
|
|
1327
|
+
readonly outputs: readonly [];
|
|
1328
|
+
readonly stateMutability: "nonpayable";
|
|
1329
|
+
readonly type: "function";
|
|
1330
|
+
}, {
|
|
1331
|
+
readonly inputs: readonly [];
|
|
1332
|
+
readonly name: "operatingMode";
|
|
1333
|
+
readonly outputs: readonly [{
|
|
1334
|
+
readonly internalType: "enum OperatingMode";
|
|
1335
|
+
readonly name: "";
|
|
1336
|
+
readonly type: "uint8";
|
|
1337
|
+
}];
|
|
1338
|
+
readonly stateMutability: "view";
|
|
1339
|
+
readonly type: "function";
|
|
1340
|
+
}, {
|
|
1341
|
+
readonly inputs: readonly [];
|
|
1342
|
+
readonly name: "pricingParameters";
|
|
1343
|
+
readonly outputs: readonly [{
|
|
1344
|
+
readonly internalType: "UD60x18";
|
|
1345
|
+
readonly name: "";
|
|
1346
|
+
readonly type: "uint256";
|
|
1347
|
+
}, {
|
|
1348
|
+
readonly internalType: "uint128";
|
|
1349
|
+
readonly name: "";
|
|
1350
|
+
readonly type: "uint128";
|
|
1351
|
+
}];
|
|
1352
|
+
readonly stateMutability: "view";
|
|
1353
|
+
readonly type: "function";
|
|
1354
|
+
}, {
|
|
1355
|
+
readonly inputs: readonly [{
|
|
1356
|
+
readonly internalType: "address";
|
|
1357
|
+
readonly name: "token";
|
|
1358
|
+
readonly type: "address";
|
|
1359
|
+
}];
|
|
1360
|
+
readonly name: "queryForeignTokenID";
|
|
1361
|
+
readonly outputs: readonly [{
|
|
1362
|
+
readonly internalType: "bytes32";
|
|
1363
|
+
readonly name: "";
|
|
1364
|
+
readonly type: "bytes32";
|
|
1365
|
+
}];
|
|
1366
|
+
readonly stateMutability: "view";
|
|
1367
|
+
readonly type: "function";
|
|
1368
|
+
}, {
|
|
1369
|
+
readonly inputs: readonly [];
|
|
1370
|
+
readonly name: "quoteRegisterTokenFee";
|
|
1371
|
+
readonly outputs: readonly [{
|
|
1372
|
+
readonly internalType: "uint256";
|
|
1373
|
+
readonly name: "";
|
|
1374
|
+
readonly type: "uint256";
|
|
1375
|
+
}];
|
|
1376
|
+
readonly stateMutability: "view";
|
|
1377
|
+
readonly type: "function";
|
|
1378
|
+
}, {
|
|
1379
|
+
readonly inputs: readonly [{
|
|
1380
|
+
readonly internalType: "address";
|
|
1381
|
+
readonly name: "token";
|
|
1382
|
+
readonly type: "address";
|
|
1383
|
+
}, {
|
|
1384
|
+
readonly internalType: "ParaID";
|
|
1385
|
+
readonly name: "destinationChain";
|
|
1386
|
+
readonly type: "uint32";
|
|
1387
|
+
}, {
|
|
1388
|
+
readonly internalType: "uint128";
|
|
1389
|
+
readonly name: "destinationFee";
|
|
1390
|
+
readonly type: "uint128";
|
|
1391
|
+
}];
|
|
1392
|
+
readonly name: "quoteSendTokenFee";
|
|
1393
|
+
readonly outputs: readonly [{
|
|
1394
|
+
readonly internalType: "uint256";
|
|
1395
|
+
readonly name: "";
|
|
1396
|
+
readonly type: "uint256";
|
|
1397
|
+
}];
|
|
1398
|
+
readonly stateMutability: "view";
|
|
1399
|
+
readonly type: "function";
|
|
1400
|
+
}, {
|
|
1401
|
+
readonly inputs: readonly [{
|
|
1402
|
+
readonly internalType: "bytes";
|
|
1403
|
+
readonly name: "data";
|
|
1404
|
+
readonly type: "bytes";
|
|
1405
|
+
}];
|
|
1406
|
+
readonly name: "registerForeignToken";
|
|
1407
|
+
readonly outputs: readonly [];
|
|
1408
|
+
readonly stateMutability: "nonpayable";
|
|
1409
|
+
readonly type: "function";
|
|
1410
|
+
}, {
|
|
1411
|
+
readonly inputs: readonly [{
|
|
1412
|
+
readonly internalType: "address";
|
|
1413
|
+
readonly name: "token";
|
|
1414
|
+
readonly type: "address";
|
|
1415
|
+
}];
|
|
1416
|
+
readonly name: "registerToken";
|
|
1417
|
+
readonly outputs: readonly [];
|
|
1418
|
+
readonly stateMutability: "payable";
|
|
1419
|
+
readonly type: "function";
|
|
1420
|
+
}, {
|
|
1421
|
+
readonly inputs: readonly [{
|
|
1422
|
+
readonly internalType: "bytes";
|
|
1423
|
+
readonly name: "data";
|
|
1424
|
+
readonly type: "bytes";
|
|
1425
|
+
}];
|
|
1426
|
+
readonly name: "reportSlashes";
|
|
1427
|
+
readonly outputs: readonly [];
|
|
1428
|
+
readonly stateMutability: "nonpayable";
|
|
1429
|
+
readonly type: "function";
|
|
1430
|
+
}, {
|
|
1431
|
+
readonly inputs: readonly [];
|
|
1432
|
+
readonly name: "s_middleware";
|
|
1433
|
+
readonly outputs: readonly [{
|
|
1434
|
+
readonly internalType: "address";
|
|
1435
|
+
readonly name: "";
|
|
1436
|
+
readonly type: "address";
|
|
1437
|
+
}];
|
|
1438
|
+
readonly stateMutability: "view";
|
|
1439
|
+
readonly type: "function";
|
|
1440
|
+
}, {
|
|
1441
|
+
readonly inputs: readonly [{
|
|
1442
|
+
readonly internalType: "bytes32[]";
|
|
1443
|
+
readonly name: "data";
|
|
1444
|
+
readonly type: "bytes32[]";
|
|
1445
|
+
}, {
|
|
1446
|
+
readonly internalType: "uint48";
|
|
1447
|
+
readonly name: "epoch";
|
|
1448
|
+
readonly type: "uint48";
|
|
1449
|
+
}];
|
|
1450
|
+
readonly name: "sendOperatorsData";
|
|
1451
|
+
readonly outputs: readonly [];
|
|
1452
|
+
readonly stateMutability: "nonpayable";
|
|
1453
|
+
readonly type: "function";
|
|
1454
|
+
}, {
|
|
1455
|
+
readonly inputs: readonly [{
|
|
1456
|
+
readonly internalType: "bytes";
|
|
1457
|
+
readonly name: "data";
|
|
1458
|
+
readonly type: "bytes";
|
|
1459
|
+
}];
|
|
1460
|
+
readonly name: "sendRewards";
|
|
1461
|
+
readonly outputs: readonly [];
|
|
1462
|
+
readonly stateMutability: "nonpayable";
|
|
1463
|
+
readonly type: "function";
|
|
1464
|
+
}, {
|
|
1465
|
+
readonly inputs: readonly [{
|
|
1466
|
+
readonly internalType: "address";
|
|
1467
|
+
readonly name: "token";
|
|
1468
|
+
readonly type: "address";
|
|
1469
|
+
}, {
|
|
1470
|
+
readonly internalType: "ParaID";
|
|
1471
|
+
readonly name: "destinationChain";
|
|
1472
|
+
readonly type: "uint32";
|
|
1473
|
+
}, {
|
|
1474
|
+
readonly components: readonly [{
|
|
1475
|
+
readonly internalType: "enum Kind";
|
|
1476
|
+
readonly name: "kind";
|
|
1477
|
+
readonly type: "uint8";
|
|
1478
|
+
}, {
|
|
1479
|
+
readonly internalType: "bytes";
|
|
1480
|
+
readonly name: "data";
|
|
1481
|
+
readonly type: "bytes";
|
|
1482
|
+
}];
|
|
1483
|
+
readonly internalType: "struct MultiAddress";
|
|
1484
|
+
readonly name: "destinationAddress";
|
|
1485
|
+
readonly type: "tuple";
|
|
1486
|
+
}, {
|
|
1487
|
+
readonly internalType: "uint128";
|
|
1488
|
+
readonly name: "destinationFee";
|
|
1489
|
+
readonly type: "uint128";
|
|
1490
|
+
}, {
|
|
1491
|
+
readonly internalType: "uint128";
|
|
1492
|
+
readonly name: "amount";
|
|
1493
|
+
readonly type: "uint128";
|
|
1494
|
+
}];
|
|
1495
|
+
readonly name: "sendToken";
|
|
1496
|
+
readonly outputs: readonly [];
|
|
1497
|
+
readonly stateMutability: "payable";
|
|
1498
|
+
readonly type: "function";
|
|
1499
|
+
}, {
|
|
1500
|
+
readonly inputs: readonly [{
|
|
1501
|
+
readonly internalType: "address";
|
|
1502
|
+
readonly name: "middleware";
|
|
1503
|
+
readonly type: "address";
|
|
1504
|
+
}];
|
|
1505
|
+
readonly name: "setMiddleware";
|
|
1506
|
+
readonly outputs: readonly [];
|
|
1507
|
+
readonly stateMutability: "nonpayable";
|
|
1508
|
+
readonly type: "function";
|
|
1509
|
+
}, {
|
|
1510
|
+
readonly inputs: readonly [{
|
|
1511
|
+
readonly internalType: "bytes";
|
|
1512
|
+
readonly name: "data";
|
|
1513
|
+
readonly type: "bytes";
|
|
1514
|
+
}];
|
|
1515
|
+
readonly name: "setOperatingMode";
|
|
1516
|
+
readonly outputs: readonly [];
|
|
1517
|
+
readonly stateMutability: "nonpayable";
|
|
1518
|
+
readonly type: "function";
|
|
1519
|
+
}, {
|
|
1520
|
+
readonly inputs: readonly [{
|
|
1521
|
+
readonly internalType: "bytes";
|
|
1522
|
+
readonly name: "data";
|
|
1523
|
+
readonly type: "bytes";
|
|
1524
|
+
}];
|
|
1525
|
+
readonly name: "setPricingParameters";
|
|
1526
|
+
readonly outputs: readonly [];
|
|
1527
|
+
readonly stateMutability: "nonpayable";
|
|
1528
|
+
readonly type: "function";
|
|
1529
|
+
}, {
|
|
1530
|
+
readonly inputs: readonly [{
|
|
1531
|
+
readonly internalType: "bytes";
|
|
1532
|
+
readonly name: "data";
|
|
1533
|
+
readonly type: "bytes";
|
|
1534
|
+
}];
|
|
1535
|
+
readonly name: "setTokenTransferFees";
|
|
1536
|
+
readonly outputs: readonly [];
|
|
1537
|
+
readonly stateMutability: "nonpayable";
|
|
1538
|
+
readonly type: "function";
|
|
1539
|
+
}, {
|
|
1540
|
+
readonly inputs: readonly [{
|
|
1541
|
+
readonly components: readonly [{
|
|
1542
|
+
readonly internalType: "ChannelID";
|
|
1543
|
+
readonly name: "channelID";
|
|
1544
|
+
readonly type: "bytes32";
|
|
1545
|
+
}, {
|
|
1546
|
+
readonly internalType: "uint64";
|
|
1547
|
+
readonly name: "nonce";
|
|
1548
|
+
readonly type: "uint64";
|
|
1549
|
+
}, {
|
|
1550
|
+
readonly internalType: "enum Command";
|
|
1551
|
+
readonly name: "command";
|
|
1552
|
+
readonly type: "uint8";
|
|
1553
|
+
}, {
|
|
1554
|
+
readonly internalType: "bytes";
|
|
1555
|
+
readonly name: "params";
|
|
1556
|
+
readonly type: "bytes";
|
|
1557
|
+
}, {
|
|
1558
|
+
readonly internalType: "uint64";
|
|
1559
|
+
readonly name: "maxDispatchGas";
|
|
1560
|
+
readonly type: "uint64";
|
|
1561
|
+
}, {
|
|
1562
|
+
readonly internalType: "uint256";
|
|
1563
|
+
readonly name: "maxFeePerGas";
|
|
1564
|
+
readonly type: "uint256";
|
|
1565
|
+
}, {
|
|
1566
|
+
readonly internalType: "uint256";
|
|
1567
|
+
readonly name: "reward";
|
|
1568
|
+
readonly type: "uint256";
|
|
1569
|
+
}, {
|
|
1570
|
+
readonly internalType: "bytes32";
|
|
1571
|
+
readonly name: "id";
|
|
1572
|
+
readonly type: "bytes32";
|
|
1573
|
+
}];
|
|
1574
|
+
readonly internalType: "struct InboundMessage";
|
|
1575
|
+
readonly name: "message";
|
|
1576
|
+
readonly type: "tuple";
|
|
1577
|
+
}, {
|
|
1578
|
+
readonly internalType: "bytes32[]";
|
|
1579
|
+
readonly name: "leafProof";
|
|
1580
|
+
readonly type: "bytes32[]";
|
|
1581
|
+
}, {
|
|
1582
|
+
readonly components: readonly [{
|
|
1583
|
+
readonly components: readonly [{
|
|
1584
|
+
readonly internalType: "uint8";
|
|
1585
|
+
readonly name: "version";
|
|
1586
|
+
readonly type: "uint8";
|
|
1587
|
+
}, {
|
|
1588
|
+
readonly internalType: "uint32";
|
|
1589
|
+
readonly name: "parentNumber";
|
|
1590
|
+
readonly type: "uint32";
|
|
1591
|
+
}, {
|
|
1592
|
+
readonly internalType: "bytes32";
|
|
1593
|
+
readonly name: "parentHash";
|
|
1594
|
+
readonly type: "bytes32";
|
|
1595
|
+
}, {
|
|
1596
|
+
readonly internalType: "uint64";
|
|
1597
|
+
readonly name: "nextAuthoritySetID";
|
|
1598
|
+
readonly type: "uint64";
|
|
1599
|
+
}, {
|
|
1600
|
+
readonly internalType: "uint32";
|
|
1601
|
+
readonly name: "nextAuthoritySetLen";
|
|
1602
|
+
readonly type: "uint32";
|
|
1603
|
+
}, {
|
|
1604
|
+
readonly internalType: "bytes32";
|
|
1605
|
+
readonly name: "nextAuthoritySetRoot";
|
|
1606
|
+
readonly type: "bytes32";
|
|
1607
|
+
}];
|
|
1608
|
+
readonly internalType: "struct Verification.MMRLeafPartial";
|
|
1609
|
+
readonly name: "leafPartial";
|
|
1610
|
+
readonly type: "tuple";
|
|
1611
|
+
}, {
|
|
1612
|
+
readonly internalType: "bytes32[]";
|
|
1613
|
+
readonly name: "leafProof";
|
|
1614
|
+
readonly type: "bytes32[]";
|
|
1615
|
+
}, {
|
|
1616
|
+
readonly internalType: "bytes32";
|
|
1617
|
+
readonly name: "parachainHeadsRoot";
|
|
1618
|
+
readonly type: "bytes32";
|
|
1619
|
+
}, {
|
|
1620
|
+
readonly internalType: "uint256";
|
|
1621
|
+
readonly name: "leafProofOrder";
|
|
1622
|
+
readonly type: "uint256";
|
|
1623
|
+
}];
|
|
1624
|
+
readonly internalType: "struct Verification.Proof";
|
|
1625
|
+
readonly name: "headerProof";
|
|
1626
|
+
readonly type: "tuple";
|
|
1627
|
+
}];
|
|
1628
|
+
readonly name: "submitV1";
|
|
1629
|
+
readonly outputs: readonly [];
|
|
1630
|
+
readonly stateMutability: "nonpayable";
|
|
1631
|
+
readonly type: "function";
|
|
1632
|
+
}, {
|
|
1633
|
+
readonly inputs: readonly [{
|
|
1634
|
+
readonly internalType: "bytes32";
|
|
1635
|
+
readonly name: "tokenID";
|
|
1636
|
+
readonly type: "bytes32";
|
|
1637
|
+
}];
|
|
1638
|
+
readonly name: "tokenAddressOf";
|
|
1639
|
+
readonly outputs: readonly [{
|
|
1640
|
+
readonly internalType: "address";
|
|
1641
|
+
readonly name: "";
|
|
1642
|
+
readonly type: "address";
|
|
1643
|
+
}];
|
|
1644
|
+
readonly stateMutability: "view";
|
|
1645
|
+
readonly type: "function";
|
|
1646
|
+
}, {
|
|
1647
|
+
readonly inputs: readonly [{
|
|
1648
|
+
readonly internalType: "bytes";
|
|
1649
|
+
readonly name: "data";
|
|
1650
|
+
readonly type: "bytes";
|
|
1651
|
+
}];
|
|
1652
|
+
readonly name: "transferNativeFromAgent";
|
|
1653
|
+
readonly outputs: readonly [];
|
|
1654
|
+
readonly stateMutability: "nonpayable";
|
|
1655
|
+
readonly type: "function";
|
|
1656
|
+
}, {
|
|
1657
|
+
readonly inputs: readonly [{
|
|
1658
|
+
readonly internalType: "bytes";
|
|
1659
|
+
readonly name: "data";
|
|
1660
|
+
readonly type: "bytes";
|
|
1661
|
+
}];
|
|
1662
|
+
readonly name: "transferNativeToken";
|
|
1663
|
+
readonly outputs: readonly [];
|
|
1664
|
+
readonly stateMutability: "nonpayable";
|
|
1665
|
+
readonly type: "function";
|
|
1666
|
+
}, {
|
|
1667
|
+
readonly inputs: readonly [{
|
|
1668
|
+
readonly internalType: "address";
|
|
1669
|
+
readonly name: "newOwner";
|
|
1670
|
+
readonly type: "address";
|
|
1671
|
+
}];
|
|
1672
|
+
readonly name: "transferOwnership";
|
|
1673
|
+
readonly outputs: readonly [];
|
|
1674
|
+
readonly stateMutability: "nonpayable";
|
|
1675
|
+
readonly type: "function";
|
|
1676
|
+
}, {
|
|
1677
|
+
readonly inputs: readonly [{
|
|
1678
|
+
readonly internalType: "bytes";
|
|
1679
|
+
readonly name: "data";
|
|
1680
|
+
readonly type: "bytes";
|
|
1681
|
+
}];
|
|
1682
|
+
readonly name: "updateChannel";
|
|
1683
|
+
readonly outputs: readonly [];
|
|
1684
|
+
readonly stateMutability: "nonpayable";
|
|
1685
|
+
readonly type: "function";
|
|
1686
|
+
}, {
|
|
1687
|
+
readonly inputs: readonly [{
|
|
1688
|
+
readonly internalType: "bytes";
|
|
1689
|
+
readonly name: "data";
|
|
1690
|
+
readonly type: "bytes";
|
|
1691
|
+
}];
|
|
1692
|
+
readonly name: "upgrade";
|
|
1693
|
+
readonly outputs: readonly [];
|
|
1694
|
+
readonly stateMutability: "nonpayable";
|
|
1695
|
+
readonly type: "function";
|
|
1696
|
+
}];
|
|
1697
|
+
|
|
1698
|
+
declare enum Protocols {
|
|
1699
|
+
TokenBridge = "TokenBridge",
|
|
1700
|
+
AutomaticTokenBridge = "AutomaticTokenBridge",
|
|
1701
|
+
ExecutorTokenBridge = "ExecutorTokenBridge"
|
|
1702
|
+
}
|
|
1703
|
+
type WormholeTransferFunctions = 'tokenTransfer';
|
|
1704
|
+
interface WormholeFunctionArgs {
|
|
1705
|
+
token: TokenId;
|
|
1706
|
+
amount: bigint;
|
|
1707
|
+
from: ChainAddress;
|
|
1708
|
+
to: ChainAddress;
|
|
1709
|
+
protocol: TokenTransfer.Protocol;
|
|
1710
|
+
payload?: Uint8Array;
|
|
1711
|
+
}
|
|
1712
|
+
interface WormholeConfigConstructorParams {
|
|
1713
|
+
args: WormholeFunctionArgs;
|
|
1714
|
+
func: WormholeTransferFunctions;
|
|
1715
|
+
}
|
|
1716
|
+
declare class WormholeConfig {
|
|
1717
|
+
readonly args: WormholeFunctionArgs;
|
|
1718
|
+
readonly func: WormholeTransferFunctions;
|
|
1719
|
+
readonly provider = Provider.Wormhole;
|
|
1720
|
+
static is(obj: unknown): obj is WormholeConfig;
|
|
1721
|
+
constructor({ args, func }: WormholeConfigConstructorParams);
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
declare function wormhole$1(): {
|
|
1725
|
+
tokenTransfer: () => MrlConfigBuilder;
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
declare function wormholeFactory(chain: AnyChain): Wormhole<"Testnet" | "Mainnet">;
|
|
1729
|
+
|
|
1730
|
+
declare enum Provider {
|
|
1731
|
+
Snowbridge = "snowbridge",
|
|
1732
|
+
Wormhole = "wormhole"
|
|
1733
|
+
}
|
|
1734
|
+
type MrlTransferConfig = ContractConfig | ExtrinsicConfig | WormholeConfig | SnowbridgeConfig;
|
|
1735
|
+
type MrlConfigBuilder = ConfigBuilder<MrlTransferConfig, MrlBuilderParams> & {
|
|
1736
|
+
provider: Provider;
|
|
1737
|
+
};
|
|
1738
|
+
type MrlExecuteConfigBuilder = ConfigBuilder<ContractConfig, MrlExecuteBuilderParams>;
|
|
1739
|
+
interface MrlBuilderParams extends BuilderParams<AnyChain> {
|
|
1740
|
+
isAutomatic: boolean;
|
|
1741
|
+
protocolFee?: AssetAmount;
|
|
1742
|
+
bridgeChainFee?: AssetAmount;
|
|
1743
|
+
moonApi: ApiPromise;
|
|
1744
|
+
moonAsset: ChainAsset;
|
|
1745
|
+
bridgeChain: AnyParachain;
|
|
1746
|
+
bridgeChainGasLimit?: bigint;
|
|
1747
|
+
sendOnlyRemoteExecution?: boolean;
|
|
1748
|
+
transact?: Transact;
|
|
1749
|
+
}
|
|
1750
|
+
interface MrlExecuteBuilderParams {
|
|
1751
|
+
bytes?: Uint8Array;
|
|
1752
|
+
}
|
|
1753
|
+
interface Transact {
|
|
1754
|
+
call: HexString;
|
|
1755
|
+
txWeight: {
|
|
1756
|
+
refTime: bigint;
|
|
1757
|
+
proofSize: bigint;
|
|
1758
|
+
};
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
declare function Gateway(): {
|
|
1762
|
+
sendToken: () => MrlConfigBuilder;
|
|
1763
|
+
approveAndSendToken: () => MrlConfigBuilder;
|
|
1764
|
+
};
|
|
1765
|
+
|
|
1766
|
+
declare function contract$1(): {
|
|
1767
|
+
Gateway: typeof Gateway;
|
|
1768
|
+
};
|
|
1769
|
+
|
|
1770
|
+
declare function ethereumTokenTransfers(): {
|
|
1771
|
+
transferNativeToken: () => MrlConfigBuilder;
|
|
1772
|
+
};
|
|
1773
|
+
|
|
1774
|
+
declare function polkadotXcm$1(): {
|
|
1775
|
+
transferAssetsUsingTypeAndThen: () => {
|
|
1776
|
+
canonicalEth: () => MrlConfigBuilder;
|
|
1777
|
+
};
|
|
1778
|
+
};
|
|
1779
|
+
|
|
1780
|
+
declare function xcmPallet(): {
|
|
1781
|
+
transferAssets: () => {
|
|
1782
|
+
globalConsensus: () => MrlConfigBuilder;
|
|
1783
|
+
globalConsensusErc20: () => MrlConfigBuilder;
|
|
1784
|
+
};
|
|
1785
|
+
};
|
|
1786
|
+
|
|
1787
|
+
declare function extrinsic$1(): {
|
|
1788
|
+
ethereumTokenTransfers: typeof ethereumTokenTransfers;
|
|
1789
|
+
xcmPallet: typeof xcmPallet;
|
|
1790
|
+
polkadotXcm: typeof polkadotXcm$1;
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
declare function snowbridge(): {
|
|
1794
|
+
contract: typeof contract$1;
|
|
1795
|
+
extrinsic: typeof extrinsic$1;
|
|
1796
|
+
};
|
|
1797
|
+
|
|
1798
|
+
declare function Batch(): {
|
|
1799
|
+
/**
|
|
1800
|
+
* Transfers assets and XCM message using XTokens contract for multi-currency transfer.
|
|
1801
|
+
* Uses parents: 1 for multilocation derivation.
|
|
1802
|
+
*/
|
|
1803
|
+
transferAssetsAndMessageViaXtokens: () => MrlConfigBuilder;
|
|
1804
|
+
transferAssetsAndMessageViaXcmPrecompile: () => MrlConfigBuilder;
|
|
1805
|
+
};
|
|
1806
|
+
|
|
1807
|
+
declare function Gmp(): {
|
|
1808
|
+
wormholeTransferERC20: () => MrlExecuteConfigBuilder;
|
|
1809
|
+
};
|
|
1810
|
+
|
|
1811
|
+
declare function TokenBridge(): {
|
|
1812
|
+
transferTokens: () => MrlConfigBuilder;
|
|
1813
|
+
};
|
|
1814
|
+
|
|
1815
|
+
declare function TokenBridgeRelayer(): {
|
|
1816
|
+
transferTokensWithRelay: () => MrlConfigBuilder;
|
|
1817
|
+
};
|
|
1818
|
+
|
|
1819
|
+
declare function contract(): {
|
|
1820
|
+
Batch: typeof Batch;
|
|
1821
|
+
Gmp: typeof Gmp;
|
|
1822
|
+
TokenBridge: typeof TokenBridge;
|
|
1823
|
+
TokenBridgeRelayer: typeof TokenBridgeRelayer;
|
|
1824
|
+
};
|
|
1825
|
+
|
|
1826
|
+
declare function ethereumXcm(): {
|
|
1827
|
+
transact: () => MrlConfigBuilder;
|
|
1828
|
+
};
|
|
1829
|
+
|
|
1830
|
+
declare function polkadotXcm(): {
|
|
1831
|
+
send: (transferAssetsPallet?: "polkadotXcm" | "xTokens") => MrlConfigBuilder;
|
|
1832
|
+
};
|
|
1833
|
+
|
|
1834
|
+
declare function extrinsic(): {
|
|
1835
|
+
ethereumXcm: typeof ethereumXcm;
|
|
1836
|
+
polkadotXcm: typeof polkadotXcm;
|
|
1837
|
+
};
|
|
1838
|
+
|
|
1839
|
+
declare const BATCH_CONTRACT_ABI: readonly [{
|
|
1840
|
+
readonly anonymous: false;
|
|
1841
|
+
readonly inputs: readonly [{
|
|
1842
|
+
readonly indexed: false;
|
|
1843
|
+
readonly internalType: "uint256";
|
|
1844
|
+
readonly name: "index";
|
|
1845
|
+
readonly type: "uint256";
|
|
1846
|
+
}];
|
|
1847
|
+
readonly name: "SubcallFailed";
|
|
1848
|
+
readonly type: "event";
|
|
1849
|
+
}, {
|
|
1850
|
+
readonly anonymous: false;
|
|
1851
|
+
readonly inputs: readonly [{
|
|
1852
|
+
readonly indexed: false;
|
|
1853
|
+
readonly internalType: "uint256";
|
|
1854
|
+
readonly name: "index";
|
|
1855
|
+
readonly type: "uint256";
|
|
1856
|
+
}];
|
|
1857
|
+
readonly name: "SubcallSucceeded";
|
|
1858
|
+
readonly type: "event";
|
|
1859
|
+
}, {
|
|
1860
|
+
readonly inputs: readonly [{
|
|
1861
|
+
readonly internalType: "address[]";
|
|
1862
|
+
readonly name: "to";
|
|
1863
|
+
readonly type: "address[]";
|
|
1864
|
+
}, {
|
|
1865
|
+
readonly internalType: "uint256[]";
|
|
1866
|
+
readonly name: "value";
|
|
1867
|
+
readonly type: "uint256[]";
|
|
1868
|
+
}, {
|
|
1869
|
+
readonly internalType: "bytes[]";
|
|
1870
|
+
readonly name: "callData";
|
|
1871
|
+
readonly type: "bytes[]";
|
|
1872
|
+
}, {
|
|
1873
|
+
readonly internalType: "uint64[]";
|
|
1874
|
+
readonly name: "gasLimit";
|
|
1875
|
+
readonly type: "uint64[]";
|
|
1876
|
+
}];
|
|
1877
|
+
readonly name: "batchAll";
|
|
1878
|
+
readonly outputs: readonly [];
|
|
1879
|
+
readonly stateMutability: "nonpayable";
|
|
1880
|
+
readonly type: "function";
|
|
1881
|
+
}, {
|
|
1882
|
+
readonly inputs: readonly [{
|
|
1883
|
+
readonly internalType: "address[]";
|
|
1884
|
+
readonly name: "to";
|
|
1885
|
+
readonly type: "address[]";
|
|
1886
|
+
}, {
|
|
1887
|
+
readonly internalType: "uint256[]";
|
|
1888
|
+
readonly name: "value";
|
|
1889
|
+
readonly type: "uint256[]";
|
|
1890
|
+
}, {
|
|
1891
|
+
readonly internalType: "bytes[]";
|
|
1892
|
+
readonly name: "callData";
|
|
1893
|
+
readonly type: "bytes[]";
|
|
1894
|
+
}, {
|
|
1895
|
+
readonly internalType: "uint64[]";
|
|
1896
|
+
readonly name: "gasLimit";
|
|
1897
|
+
readonly type: "uint64[]";
|
|
1898
|
+
}];
|
|
1899
|
+
readonly name: "batchSome";
|
|
1900
|
+
readonly outputs: readonly [];
|
|
1901
|
+
readonly stateMutability: "nonpayable";
|
|
1902
|
+
readonly type: "function";
|
|
1903
|
+
}, {
|
|
1904
|
+
readonly inputs: readonly [{
|
|
1905
|
+
readonly internalType: "address[]";
|
|
1906
|
+
readonly name: "to";
|
|
1907
|
+
readonly type: "address[]";
|
|
1908
|
+
}, {
|
|
1909
|
+
readonly internalType: "uint256[]";
|
|
1910
|
+
readonly name: "value";
|
|
1911
|
+
readonly type: "uint256[]";
|
|
1912
|
+
}, {
|
|
1913
|
+
readonly internalType: "bytes[]";
|
|
1914
|
+
readonly name: "callData";
|
|
1915
|
+
readonly type: "bytes[]";
|
|
1916
|
+
}, {
|
|
1917
|
+
readonly internalType: "uint64[]";
|
|
1918
|
+
readonly name: "gasLimit";
|
|
1919
|
+
readonly type: "uint64[]";
|
|
1920
|
+
}];
|
|
1921
|
+
readonly name: "batchSomeUntilFailure";
|
|
1922
|
+
readonly outputs: readonly [];
|
|
1923
|
+
readonly stateMutability: "nonpayable";
|
|
1924
|
+
readonly type: "function";
|
|
1925
|
+
}];
|
|
1926
|
+
|
|
1927
|
+
declare function wormhole(): {
|
|
1928
|
+
contract: typeof contract;
|
|
1929
|
+
extrinsic: typeof extrinsic;
|
|
1930
|
+
wormhole: typeof wormhole$1;
|
|
1931
|
+
};
|
|
1932
|
+
|
|
1933
|
+
declare function MrlBuilder(): {
|
|
1934
|
+
snowbridge: typeof snowbridge;
|
|
1935
|
+
wormhole: typeof wormhole;
|
|
1936
|
+
};
|
|
1937
|
+
|
|
1938
|
+
declare const BATCH_CONTRACT_ADDRESS = "0x0000000000000000000000000000000000000808";
|
|
1939
|
+
|
|
1940
|
+
export { type AssetAddressFormat, AssetMinBuilder, type AssetMinConfigBuilder, type AssetMinConfigBuilderParams, type AssetMultilocation, BATCH_CONTRACT_ABI, BATCH_CONTRACT_ADDRESS, BalanceBuilder, type BalanceBuilderParams, type BalanceConfigBuilder, type BuilderParams, type ConfigBuilder, ContractBuilder, ContractConfig, type ContractConfigBuilder, type ContractConfigConstructorParams, type DestinationMultilocation, ERC20_ABI, type EquilibriumSystemBalanceData, type EventMonitoringConfig, type EvmFunctionArgs, EvmQueryConfig, type EvmQueryConfigParams, type EvmQueryFunctions, ExtrinsicBuilder, ExtrinsicConfig, type ExtrinsicConfigBuilder, type ExtrinsicConfigConstructorParams, FeeBuilder, type FeeConfigBuilder, type FeeConfigBuilderParams, GATEWAY_ABI, type GetVersionedAssetId, MonitoringBuilder, type MonitoringBuilderConfig, type MoonbeamRuntimeXcmConfigAssetType, MrlBuilder, type MrlBuilderParams, type MrlConfigBuilder, type MrlExecuteBuilderParams, type MrlExecuteConfigBuilder, type MrlTransferConfig, type PalletBalancesAccountDataOld, type Parents, type ProtocolFeeConfigBuilder, type ProtocolFeeConfigBuilderParams, Protocols, Provider, type QueryConfigConstructorParams, SnowbridgeConfig, type SnowbridgeConfigConstructorParams, type SnowbridgeFunctionArgs, type SnowbridgeFunctions, SubstrateCallConfig, type SubstrateCallConfigConstructorParams, SubstrateQueryConfig, type TokensPalletAccountData, type Transact, TransferType, WormholeConfig, type WormholeConfigConstructorParams, type WormholeFunctionArgs, type WormholeTransferFunctions, type XcmPaymentFeeProps, XcmVersion, calculateSystemAccountBalance, evm, snowbridge, substrate, wormhole, wormholeFactory };
|