@instadapp/interop-x 0.0.0-dev.ef78459 → 0.0.0-dev.f0a6281

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. package/.env.example +2 -1
  2. package/bin/interop-x +1 -1
  3. package/dist/package.json +73 -0
  4. package/dist/src/abi/erc20.json +350 -0
  5. package/dist/src/abi/gnosisSafe.json +747 -0
  6. package/dist/src/abi/index.js +15 -0
  7. package/dist/src/abi/interopBridgeToken.json +298 -0
  8. package/dist/src/abi/interopXGateway.json +184 -0
  9. package/dist/src/api/index.js +33 -0
  10. package/dist/src/config/index.js +31 -0
  11. package/dist/src/constants/addresses.js +20 -0
  12. package/dist/{constants → src/constants}/index.js +2 -0
  13. package/dist/src/constants/itokens.js +13 -0
  14. package/dist/src/constants/tokens.js +107 -0
  15. package/dist/{db → src/db}/index.js +0 -0
  16. package/dist/{db → src/db}/models/index.js +1 -1
  17. package/dist/src/db/models/transaction.js +54 -0
  18. package/dist/{db → src/db}/sequelize.js +2 -1
  19. package/dist/src/index.js +130 -0
  20. package/dist/{logger → src/logger}/index.js +0 -0
  21. package/dist/{net → src/net}/index.js +0 -0
  22. package/dist/{net → src/net}/peer/index.js +8 -3
  23. package/dist/{net → src/net}/pool/index.js +32 -9
  24. package/dist/{net → src/net}/protocol/dial/BaseDialProtocol.js +0 -0
  25. package/dist/{net → src/net}/protocol/dial/SignatureDialProtocol.js +20 -12
  26. package/dist/src/net/protocol/dial/TransactionStatusDialProtocol.js +28 -0
  27. package/dist/{net → src/net}/protocol/index.js +44 -4
  28. package/dist/src/tasks/AutoUpdateTask.js +70 -0
  29. package/dist/{tasks → src/tasks}/BaseTask.js +13 -5
  30. package/dist/src/tasks/InteropBridge/ProcessWithdrawEvents.js +146 -0
  31. package/dist/src/tasks/InteropBridge/SyncWithdrawEvents.js +71 -0
  32. package/dist/src/tasks/InteropXGateway/ProcessDepositEvents.js +161 -0
  33. package/dist/src/tasks/InteropXGateway/SyncDepositEvents.js +74 -0
  34. package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +53 -0
  35. package/dist/src/tasks/index.js +44 -0
  36. package/dist/src/typechain/Erc20.js +2 -0
  37. package/dist/src/typechain/GnosisSafe.js +2 -0
  38. package/dist/src/typechain/InteropBridgeToken.js +2 -0
  39. package/dist/src/typechain/InteropXGateway.js +2 -0
  40. package/dist/src/typechain/common.js +2 -0
  41. package/dist/src/typechain/factories/Erc20__factory.js +367 -0
  42. package/dist/src/typechain/factories/GnosisSafe__factory.js +1174 -0
  43. package/dist/src/typechain/factories/InteropBridgeToken__factory.js +471 -0
  44. package/dist/src/typechain/factories/InteropXGateway__factory.js +265 -0
  45. package/dist/src/typechain/factories/index.js +14 -0
  46. package/dist/src/typechain/index.js +35 -0
  47. package/dist/{types.js → src/types.js} +0 -0
  48. package/dist/src/utils/index.js +238 -0
  49. package/package.json +18 -10
  50. package/patches/@ethersproject+properties+5.6.0.patch +13 -0
  51. package/src/abi/erc20.json +350 -0
  52. package/src/abi/gnosisSafe.json +747 -0
  53. package/src/abi/index.ts +11 -0
  54. package/src/abi/interopBridgeToken.json +298 -0
  55. package/src/abi/interopXGateway.json +184 -0
  56. package/src/api/index.ts +33 -0
  57. package/src/config/index.ts +17 -1
  58. package/src/constants/addresses.ts +9 -2
  59. package/src/constants/index.ts +2 -0
  60. package/src/constants/itokens.ts +10 -0
  61. package/src/constants/tokens.ts +104 -0
  62. package/src/db/models/index.ts +1 -1
  63. package/src/db/models/transaction.ts +96 -0
  64. package/src/db/sequelize.ts +2 -1
  65. package/src/index.ts +119 -7
  66. package/src/net/peer/index.ts +9 -7
  67. package/src/net/pool/index.ts +41 -11
  68. package/src/net/protocol/dial/SignatureDialProtocol.ts +24 -15
  69. package/src/net/protocol/dial/TransactionStatusDialProtocol.ts +31 -0
  70. package/src/net/protocol/index.ts +60 -4
  71. package/src/tasks/AutoUpdateTask.ts +82 -0
  72. package/src/tasks/BaseTask.ts +15 -6
  73. package/src/tasks/InteropBridge/ProcessWithdrawEvents.ts +231 -0
  74. package/src/tasks/InteropBridge/SyncWithdrawEvents.ts +121 -0
  75. package/src/tasks/InteropXGateway/ProcessDepositEvents.ts +256 -0
  76. package/src/tasks/InteropXGateway/SyncDepositEvents.ts +124 -0
  77. package/src/tasks/Transactions/SyncTransactionStatusTask.ts +65 -0
  78. package/src/tasks/index.ts +26 -1
  79. package/src/typechain/Erc20.ts +491 -0
  80. package/src/typechain/GnosisSafe.ts +1728 -0
  81. package/src/typechain/InteropBridgeToken.ts +692 -0
  82. package/src/typechain/InteropXGateway.ts +407 -0
  83. package/src/typechain/common.ts +44 -0
  84. package/src/typechain/factories/Erc20__factory.ts +368 -0
  85. package/src/typechain/factories/GnosisSafe__factory.ts +1178 -0
  86. package/src/typechain/factories/InteropBridgeToken__factory.ts +478 -0
  87. package/src/typechain/factories/InteropXGateway__factory.ts +272 -0
  88. package/src/typechain/factories/index.ts +7 -0
  89. package/src/typechain/index.ts +12 -0
  90. package/src/types.ts +1 -1
  91. package/src/utils/index.ts +206 -3
  92. package/dist/config/index.js +0 -17
  93. package/dist/constants/addresses.js +0 -13
  94. package/dist/db/models/execution.js +0 -38
  95. package/dist/index.js +0 -43
  96. package/dist/tasks/index.js +0 -19
  97. package/dist/utils/index.js +0 -89
  98. package/src/db/models/execution.ts +0 -57
@@ -0,0 +1,692 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import type {
17
+ FunctionFragment,
18
+ Result,
19
+ EventFragment,
20
+ } from "@ethersproject/abi";
21
+ import type { Listener, Provider } from "@ethersproject/providers";
22
+ import type {
23
+ TypedEventFilter,
24
+ TypedEvent,
25
+ TypedListener,
26
+ OnEvent,
27
+ } from "./common";
28
+
29
+ export interface InteropBridgeTokenInterface extends utils.Interface {
30
+ functions: {
31
+ "allowance(address,address)": FunctionFragment;
32
+ "approve(address,uint256)": FunctionFragment;
33
+ "balanceOf(address)": FunctionFragment;
34
+ "burn(address,uint256,uint32)": FunctionFragment;
35
+ "decimals()": FunctionFragment;
36
+ "decreaseAllowance(address,uint256)": FunctionFragment;
37
+ "increaseAllowance(address,uint256)": FunctionFragment;
38
+ "mint(address,uint256,uint32,bytes32)": FunctionFragment;
39
+ "name()": FunctionFragment;
40
+ "owner()": FunctionFragment;
41
+ "renounceOwnership()": FunctionFragment;
42
+ "symbol()": FunctionFragment;
43
+ "totalSupply()": FunctionFragment;
44
+ "transfer(address,uint256)": FunctionFragment;
45
+ "transferFrom(address,address,uint256)": FunctionFragment;
46
+ "transferOwnership(address)": FunctionFragment;
47
+ };
48
+
49
+ getFunction(
50
+ nameOrSignatureOrTopic:
51
+ | "allowance"
52
+ | "approve"
53
+ | "balanceOf"
54
+ | "burn"
55
+ | "decimals"
56
+ | "decreaseAllowance"
57
+ | "increaseAllowance"
58
+ | "mint"
59
+ | "name"
60
+ | "owner"
61
+ | "renounceOwnership"
62
+ | "symbol"
63
+ | "totalSupply"
64
+ | "transfer"
65
+ | "transferFrom"
66
+ | "transferOwnership"
67
+ ): FunctionFragment;
68
+
69
+ encodeFunctionData(
70
+ functionFragment: "allowance",
71
+ values: [string, string]
72
+ ): string;
73
+ encodeFunctionData(
74
+ functionFragment: "approve",
75
+ values: [string, BigNumberish]
76
+ ): string;
77
+ encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
78
+ encodeFunctionData(
79
+ functionFragment: "burn",
80
+ values: [string, BigNumberish, BigNumberish]
81
+ ): string;
82
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
83
+ encodeFunctionData(
84
+ functionFragment: "decreaseAllowance",
85
+ values: [string, BigNumberish]
86
+ ): string;
87
+ encodeFunctionData(
88
+ functionFragment: "increaseAllowance",
89
+ values: [string, BigNumberish]
90
+ ): string;
91
+ encodeFunctionData(
92
+ functionFragment: "mint",
93
+ values: [string, BigNumberish, BigNumberish, BytesLike]
94
+ ): string;
95
+ encodeFunctionData(functionFragment: "name", values?: undefined): string;
96
+ encodeFunctionData(functionFragment: "owner", values?: undefined): string;
97
+ encodeFunctionData(
98
+ functionFragment: "renounceOwnership",
99
+ values?: undefined
100
+ ): string;
101
+ encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
102
+ encodeFunctionData(
103
+ functionFragment: "totalSupply",
104
+ values?: undefined
105
+ ): string;
106
+ encodeFunctionData(
107
+ functionFragment: "transfer",
108
+ values: [string, BigNumberish]
109
+ ): string;
110
+ encodeFunctionData(
111
+ functionFragment: "transferFrom",
112
+ values: [string, string, BigNumberish]
113
+ ): string;
114
+ encodeFunctionData(
115
+ functionFragment: "transferOwnership",
116
+ values: [string]
117
+ ): string;
118
+
119
+ decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
120
+ decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
121
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
122
+ decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
123
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
124
+ decodeFunctionResult(
125
+ functionFragment: "decreaseAllowance",
126
+ data: BytesLike
127
+ ): Result;
128
+ decodeFunctionResult(
129
+ functionFragment: "increaseAllowance",
130
+ data: BytesLike
131
+ ): Result;
132
+ decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
133
+ decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
134
+ decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
135
+ decodeFunctionResult(
136
+ functionFragment: "renounceOwnership",
137
+ data: BytesLike
138
+ ): Result;
139
+ decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
140
+ decodeFunctionResult(
141
+ functionFragment: "totalSupply",
142
+ data: BytesLike
143
+ ): Result;
144
+ decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
145
+ decodeFunctionResult(
146
+ functionFragment: "transferFrom",
147
+ data: BytesLike
148
+ ): Result;
149
+ decodeFunctionResult(
150
+ functionFragment: "transferOwnership",
151
+ data: BytesLike
152
+ ): Result;
153
+
154
+ events: {
155
+ "Approval(address,address,uint256)": EventFragment;
156
+ "Burn(address,uint256,uint32,uint32)": EventFragment;
157
+ "Mint(address,uint256,uint32,uint32,bytes32)": EventFragment;
158
+ "OwnershipTransferred(address,address)": EventFragment;
159
+ "Transfer(address,address,uint256)": EventFragment;
160
+ };
161
+
162
+ getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment;
163
+ getEvent(nameOrSignatureOrTopic: "Burn"): EventFragment;
164
+ getEvent(nameOrSignatureOrTopic: "Mint"): EventFragment;
165
+ getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
166
+ getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment;
167
+ }
168
+
169
+ export interface ApprovalEventObject {
170
+ owner: string;
171
+ spender: string;
172
+ value: BigNumber;
173
+ }
174
+ export type ApprovalEvent = TypedEvent<
175
+ [string, string, BigNumber],
176
+ ApprovalEventObject
177
+ >;
178
+
179
+ export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
180
+
181
+ export interface BurnEventObject {
182
+ to: string;
183
+ amount: BigNumber;
184
+ sourceChainId: number;
185
+ targetChainId: number;
186
+ }
187
+ export type BurnEvent = TypedEvent<
188
+ [string, BigNumber, number, number],
189
+ BurnEventObject
190
+ >;
191
+
192
+ export type BurnEventFilter = TypedEventFilter<BurnEvent>;
193
+
194
+ export interface MintEventObject {
195
+ to: string;
196
+ amount: BigNumber;
197
+ sourceChainId: number;
198
+ targetChainId: number;
199
+ submitTransactionHash: string;
200
+ }
201
+ export type MintEvent = TypedEvent<
202
+ [string, BigNumber, number, number, string],
203
+ MintEventObject
204
+ >;
205
+
206
+ export type MintEventFilter = TypedEventFilter<MintEvent>;
207
+
208
+ export interface OwnershipTransferredEventObject {
209
+ previousOwner: string;
210
+ newOwner: string;
211
+ }
212
+ export type OwnershipTransferredEvent = TypedEvent<
213
+ [string, string],
214
+ OwnershipTransferredEventObject
215
+ >;
216
+
217
+ export type OwnershipTransferredEventFilter =
218
+ TypedEventFilter<OwnershipTransferredEvent>;
219
+
220
+ export interface TransferEventObject {
221
+ from: string;
222
+ to: string;
223
+ value: BigNumber;
224
+ }
225
+ export type TransferEvent = TypedEvent<
226
+ [string, string, BigNumber],
227
+ TransferEventObject
228
+ >;
229
+
230
+ export type TransferEventFilter = TypedEventFilter<TransferEvent>;
231
+
232
+ export interface InteropBridgeToken extends BaseContract {
233
+ connect(signerOrProvider: Signer | Provider | string): this;
234
+ attach(addressOrName: string): this;
235
+ deployed(): Promise<this>;
236
+
237
+ interface: InteropBridgeTokenInterface;
238
+
239
+ queryFilter<TEvent extends TypedEvent>(
240
+ event: TypedEventFilter<TEvent>,
241
+ fromBlockOrBlockhash?: string | number | undefined,
242
+ toBlock?: string | number | undefined
243
+ ): Promise<Array<TEvent>>;
244
+
245
+ listeners<TEvent extends TypedEvent>(
246
+ eventFilter?: TypedEventFilter<TEvent>
247
+ ): Array<TypedListener<TEvent>>;
248
+ listeners(eventName?: string): Array<Listener>;
249
+ removeAllListeners<TEvent extends TypedEvent>(
250
+ eventFilter: TypedEventFilter<TEvent>
251
+ ): this;
252
+ removeAllListeners(eventName?: string): this;
253
+ off: OnEvent<this>;
254
+ on: OnEvent<this>;
255
+ once: OnEvent<this>;
256
+ removeListener: OnEvent<this>;
257
+
258
+ functions: {
259
+ allowance(
260
+ owner: string,
261
+ spender: string,
262
+ overrides?: CallOverrides
263
+ ): Promise<[BigNumber]>;
264
+
265
+ approve(
266
+ spender: string,
267
+ amount: BigNumberish,
268
+ overrides?: Overrides & { from?: string | Promise<string> }
269
+ ): Promise<ContractTransaction>;
270
+
271
+ balanceOf(account: string, overrides?: CallOverrides): Promise<[BigNumber]>;
272
+
273
+ burn(
274
+ to: string,
275
+ amount: BigNumberish,
276
+ chainId: BigNumberish,
277
+ overrides?: Overrides & { from?: string | Promise<string> }
278
+ ): Promise<ContractTransaction>;
279
+
280
+ decimals(overrides?: CallOverrides): Promise<[number]>;
281
+
282
+ decreaseAllowance(
283
+ spender: string,
284
+ subtractedValue: BigNumberish,
285
+ overrides?: Overrides & { from?: string | Promise<string> }
286
+ ): Promise<ContractTransaction>;
287
+
288
+ increaseAllowance(
289
+ spender: string,
290
+ addedValue: BigNumberish,
291
+ overrides?: Overrides & { from?: string | Promise<string> }
292
+ ): Promise<ContractTransaction>;
293
+
294
+ mint(
295
+ to: string,
296
+ amount: BigNumberish,
297
+ chainId: BigNumberish,
298
+ transactionHash: BytesLike,
299
+ overrides?: Overrides & { from?: string | Promise<string> }
300
+ ): Promise<ContractTransaction>;
301
+
302
+ name(overrides?: CallOverrides): Promise<[string]>;
303
+
304
+ owner(overrides?: CallOverrides): Promise<[string]>;
305
+
306
+ renounceOwnership(
307
+ overrides?: Overrides & { from?: string | Promise<string> }
308
+ ): Promise<ContractTransaction>;
309
+
310
+ symbol(overrides?: CallOverrides): Promise<[string]>;
311
+
312
+ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
313
+
314
+ transfer(
315
+ to: string,
316
+ amount: BigNumberish,
317
+ overrides?: Overrides & { from?: string | Promise<string> }
318
+ ): Promise<ContractTransaction>;
319
+
320
+ transferFrom(
321
+ from: string,
322
+ to: string,
323
+ amount: BigNumberish,
324
+ overrides?: Overrides & { from?: string | Promise<string> }
325
+ ): Promise<ContractTransaction>;
326
+
327
+ transferOwnership(
328
+ newOwner: string,
329
+ overrides?: Overrides & { from?: string | Promise<string> }
330
+ ): Promise<ContractTransaction>;
331
+ };
332
+
333
+ allowance(
334
+ owner: string,
335
+ spender: string,
336
+ overrides?: CallOverrides
337
+ ): Promise<BigNumber>;
338
+
339
+ approve(
340
+ spender: string,
341
+ amount: BigNumberish,
342
+ overrides?: Overrides & { from?: string | Promise<string> }
343
+ ): Promise<ContractTransaction>;
344
+
345
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
346
+
347
+ burn(
348
+ to: string,
349
+ amount: BigNumberish,
350
+ chainId: BigNumberish,
351
+ overrides?: Overrides & { from?: string | Promise<string> }
352
+ ): Promise<ContractTransaction>;
353
+
354
+ decimals(overrides?: CallOverrides): Promise<number>;
355
+
356
+ decreaseAllowance(
357
+ spender: string,
358
+ subtractedValue: BigNumberish,
359
+ overrides?: Overrides & { from?: string | Promise<string> }
360
+ ): Promise<ContractTransaction>;
361
+
362
+ increaseAllowance(
363
+ spender: string,
364
+ addedValue: BigNumberish,
365
+ overrides?: Overrides & { from?: string | Promise<string> }
366
+ ): Promise<ContractTransaction>;
367
+
368
+ mint(
369
+ to: string,
370
+ amount: BigNumberish,
371
+ chainId: BigNumberish,
372
+ transactionHash: BytesLike,
373
+ overrides?: Overrides & { from?: string | Promise<string> }
374
+ ): Promise<ContractTransaction>;
375
+
376
+ name(overrides?: CallOverrides): Promise<string>;
377
+
378
+ owner(overrides?: CallOverrides): Promise<string>;
379
+
380
+ renounceOwnership(
381
+ overrides?: Overrides & { from?: string | Promise<string> }
382
+ ): Promise<ContractTransaction>;
383
+
384
+ symbol(overrides?: CallOverrides): Promise<string>;
385
+
386
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
387
+
388
+ transfer(
389
+ to: string,
390
+ amount: BigNumberish,
391
+ overrides?: Overrides & { from?: string | Promise<string> }
392
+ ): Promise<ContractTransaction>;
393
+
394
+ transferFrom(
395
+ from: string,
396
+ to: string,
397
+ amount: BigNumberish,
398
+ overrides?: Overrides & { from?: string | Promise<string> }
399
+ ): Promise<ContractTransaction>;
400
+
401
+ transferOwnership(
402
+ newOwner: string,
403
+ overrides?: Overrides & { from?: string | Promise<string> }
404
+ ): Promise<ContractTransaction>;
405
+
406
+ callStatic: {
407
+ allowance(
408
+ owner: string,
409
+ spender: string,
410
+ overrides?: CallOverrides
411
+ ): Promise<BigNumber>;
412
+
413
+ approve(
414
+ spender: string,
415
+ amount: BigNumberish,
416
+ overrides?: CallOverrides
417
+ ): Promise<boolean>;
418
+
419
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
420
+
421
+ burn(
422
+ to: string,
423
+ amount: BigNumberish,
424
+ chainId: BigNumberish,
425
+ overrides?: CallOverrides
426
+ ): Promise<void>;
427
+
428
+ decimals(overrides?: CallOverrides): Promise<number>;
429
+
430
+ decreaseAllowance(
431
+ spender: string,
432
+ subtractedValue: BigNumberish,
433
+ overrides?: CallOverrides
434
+ ): Promise<boolean>;
435
+
436
+ increaseAllowance(
437
+ spender: string,
438
+ addedValue: BigNumberish,
439
+ overrides?: CallOverrides
440
+ ): Promise<boolean>;
441
+
442
+ mint(
443
+ to: string,
444
+ amount: BigNumberish,
445
+ chainId: BigNumberish,
446
+ transactionHash: BytesLike,
447
+ overrides?: CallOverrides
448
+ ): Promise<void>;
449
+
450
+ name(overrides?: CallOverrides): Promise<string>;
451
+
452
+ owner(overrides?: CallOverrides): Promise<string>;
453
+
454
+ renounceOwnership(overrides?: CallOverrides): Promise<void>;
455
+
456
+ symbol(overrides?: CallOverrides): Promise<string>;
457
+
458
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
459
+
460
+ transfer(
461
+ to: string,
462
+ amount: BigNumberish,
463
+ overrides?: CallOverrides
464
+ ): Promise<boolean>;
465
+
466
+ transferFrom(
467
+ from: string,
468
+ to: string,
469
+ amount: BigNumberish,
470
+ overrides?: CallOverrides
471
+ ): Promise<boolean>;
472
+
473
+ transferOwnership(
474
+ newOwner: string,
475
+ overrides?: CallOverrides
476
+ ): Promise<void>;
477
+ };
478
+
479
+ filters: {
480
+ "Approval(address,address,uint256)"(
481
+ owner?: string | null,
482
+ spender?: string | null,
483
+ value?: null
484
+ ): ApprovalEventFilter;
485
+ Approval(
486
+ owner?: string | null,
487
+ spender?: string | null,
488
+ value?: null
489
+ ): ApprovalEventFilter;
490
+
491
+ "Burn(address,uint256,uint32,uint32)"(
492
+ to?: string | null,
493
+ amount?: null,
494
+ sourceChainId?: null,
495
+ targetChainId?: BigNumberish | null
496
+ ): BurnEventFilter;
497
+ Burn(
498
+ to?: string | null,
499
+ amount?: null,
500
+ sourceChainId?: null,
501
+ targetChainId?: BigNumberish | null
502
+ ): BurnEventFilter;
503
+
504
+ "Mint(address,uint256,uint32,uint32,bytes32)"(
505
+ to?: string | null,
506
+ amount?: null,
507
+ sourceChainId?: BigNumberish | null,
508
+ targetChainId?: null,
509
+ submitTransactionHash?: BytesLike | null
510
+ ): MintEventFilter;
511
+ Mint(
512
+ to?: string | null,
513
+ amount?: null,
514
+ sourceChainId?: BigNumberish | null,
515
+ targetChainId?: null,
516
+ submitTransactionHash?: BytesLike | null
517
+ ): MintEventFilter;
518
+
519
+ "OwnershipTransferred(address,address)"(
520
+ previousOwner?: string | null,
521
+ newOwner?: string | null
522
+ ): OwnershipTransferredEventFilter;
523
+ OwnershipTransferred(
524
+ previousOwner?: string | null,
525
+ newOwner?: string | null
526
+ ): OwnershipTransferredEventFilter;
527
+
528
+ "Transfer(address,address,uint256)"(
529
+ from?: string | null,
530
+ to?: string | null,
531
+ value?: null
532
+ ): TransferEventFilter;
533
+ Transfer(
534
+ from?: string | null,
535
+ to?: string | null,
536
+ value?: null
537
+ ): TransferEventFilter;
538
+ };
539
+
540
+ estimateGas: {
541
+ allowance(
542
+ owner: string,
543
+ spender: string,
544
+ overrides?: CallOverrides
545
+ ): Promise<BigNumber>;
546
+
547
+ approve(
548
+ spender: string,
549
+ amount: BigNumberish,
550
+ overrides?: Overrides & { from?: string | Promise<string> }
551
+ ): Promise<BigNumber>;
552
+
553
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
554
+
555
+ burn(
556
+ to: string,
557
+ amount: BigNumberish,
558
+ chainId: BigNumberish,
559
+ overrides?: Overrides & { from?: string | Promise<string> }
560
+ ): Promise<BigNumber>;
561
+
562
+ decimals(overrides?: CallOverrides): Promise<BigNumber>;
563
+
564
+ decreaseAllowance(
565
+ spender: string,
566
+ subtractedValue: BigNumberish,
567
+ overrides?: Overrides & { from?: string | Promise<string> }
568
+ ): Promise<BigNumber>;
569
+
570
+ increaseAllowance(
571
+ spender: string,
572
+ addedValue: BigNumberish,
573
+ overrides?: Overrides & { from?: string | Promise<string> }
574
+ ): Promise<BigNumber>;
575
+
576
+ mint(
577
+ to: string,
578
+ amount: BigNumberish,
579
+ chainId: BigNumberish,
580
+ transactionHash: BytesLike,
581
+ overrides?: Overrides & { from?: string | Promise<string> }
582
+ ): Promise<BigNumber>;
583
+
584
+ name(overrides?: CallOverrides): Promise<BigNumber>;
585
+
586
+ owner(overrides?: CallOverrides): Promise<BigNumber>;
587
+
588
+ renounceOwnership(
589
+ overrides?: Overrides & { from?: string | Promise<string> }
590
+ ): Promise<BigNumber>;
591
+
592
+ symbol(overrides?: CallOverrides): Promise<BigNumber>;
593
+
594
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
595
+
596
+ transfer(
597
+ to: string,
598
+ amount: BigNumberish,
599
+ overrides?: Overrides & { from?: string | Promise<string> }
600
+ ): Promise<BigNumber>;
601
+
602
+ transferFrom(
603
+ from: string,
604
+ to: string,
605
+ amount: BigNumberish,
606
+ overrides?: Overrides & { from?: string | Promise<string> }
607
+ ): Promise<BigNumber>;
608
+
609
+ transferOwnership(
610
+ newOwner: string,
611
+ overrides?: Overrides & { from?: string | Promise<string> }
612
+ ): Promise<BigNumber>;
613
+ };
614
+
615
+ populateTransaction: {
616
+ allowance(
617
+ owner: string,
618
+ spender: string,
619
+ overrides?: CallOverrides
620
+ ): Promise<PopulatedTransaction>;
621
+
622
+ approve(
623
+ spender: string,
624
+ amount: BigNumberish,
625
+ overrides?: Overrides & { from?: string | Promise<string> }
626
+ ): Promise<PopulatedTransaction>;
627
+
628
+ balanceOf(
629
+ account: string,
630
+ overrides?: CallOverrides
631
+ ): Promise<PopulatedTransaction>;
632
+
633
+ burn(
634
+ to: string,
635
+ amount: BigNumberish,
636
+ chainId: BigNumberish,
637
+ overrides?: Overrides & { from?: string | Promise<string> }
638
+ ): Promise<PopulatedTransaction>;
639
+
640
+ decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
641
+
642
+ decreaseAllowance(
643
+ spender: string,
644
+ subtractedValue: BigNumberish,
645
+ overrides?: Overrides & { from?: string | Promise<string> }
646
+ ): Promise<PopulatedTransaction>;
647
+
648
+ increaseAllowance(
649
+ spender: string,
650
+ addedValue: BigNumberish,
651
+ overrides?: Overrides & { from?: string | Promise<string> }
652
+ ): Promise<PopulatedTransaction>;
653
+
654
+ mint(
655
+ to: string,
656
+ amount: BigNumberish,
657
+ chainId: BigNumberish,
658
+ transactionHash: BytesLike,
659
+ overrides?: Overrides & { from?: string | Promise<string> }
660
+ ): Promise<PopulatedTransaction>;
661
+
662
+ name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
663
+
664
+ owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
665
+
666
+ renounceOwnership(
667
+ overrides?: Overrides & { from?: string | Promise<string> }
668
+ ): Promise<PopulatedTransaction>;
669
+
670
+ symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
671
+
672
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
673
+
674
+ transfer(
675
+ to: string,
676
+ amount: BigNumberish,
677
+ overrides?: Overrides & { from?: string | Promise<string> }
678
+ ): Promise<PopulatedTransaction>;
679
+
680
+ transferFrom(
681
+ from: string,
682
+ to: string,
683
+ amount: BigNumberish,
684
+ overrides?: Overrides & { from?: string | Promise<string> }
685
+ ): Promise<PopulatedTransaction>;
686
+
687
+ transferOwnership(
688
+ newOwner: string,
689
+ overrides?: Overrides & { from?: string | Promise<string> }
690
+ ): Promise<PopulatedTransaction>;
691
+ };
692
+ }