@across-protocol/contracts 0.1.3 → 0.1.4

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.
Files changed (199) hide show
  1. package/contract-types/ethers/{AVMBridgeDepositBox.ts → AVMBridgeDepositBox.d.ts} +100 -152
  2. package/contract-types/ethers/AVMCrossDomainEnabled.d.ts +92 -0
  3. package/contract-types/ethers/{AccessControl.ts → AccessControl.d.ts} +58 -66
  4. package/contract-types/ethers/{AddressWhitelistInterface.ts → AddressWhitelistInterface.d.ts} +46 -26
  5. package/contract-types/ethers/{ArbSys.ts → ArbSys.d.ts} +75 -81
  6. package/contract-types/ethers/{ArbitrumBridgeMock.ts → ArbitrumBridgeMock.d.ts} +46 -26
  7. package/contract-types/ethers/ArbitrumCrossDomainEnabled.d.ts +95 -0
  8. package/contract-types/ethers/{ArbitrumInboxMock.ts → ArbitrumInboxMock.d.ts} +45 -26
  9. package/contract-types/ethers/{ArbitrumMessenger.ts → ArbitrumMessenger.d.ts} +73 -78
  10. package/contract-types/ethers/ArbitrumOutboxMock.d.ts +101 -0
  11. package/contract-types/ethers/{ArbitrumParentMessenger.ts → ArbitrumParentMessenger.d.ts} +90 -185
  12. package/contract-types/ethers/{Bridge.ts → Bridge.d.ts} +125 -185
  13. package/contract-types/ethers/{BridgeAdmin.ts → BridgeAdmin.d.ts} +103 -180
  14. package/contract-types/ethers/{BridgeAdminInterface.ts → BridgeAdminInterface.d.ts} +99 -166
  15. package/contract-types/ethers/{BridgeDepositBox.ts → BridgeDepositBox.d.ts} +94 -130
  16. package/contract-types/ethers/{BridgeDepositBoxMock.ts → BridgeDepositBoxMock.d.ts} +97 -139
  17. package/contract-types/ethers/{BridgePool.ts → BridgePool.d.ts} +824 -306
  18. package/contract-types/ethers/{BridgePoolInterface.ts → BridgePoolInterface.d.ts} +45 -26
  19. package/contract-types/ethers/{BridgePoolProd.ts → BridgePoolProd.d.ts} +824 -306
  20. package/contract-types/ethers/CrossDomainEnabled.d.ts +95 -0
  21. package/contract-types/ethers/ERC165.d.ts +116 -0
  22. package/contract-types/ethers/{ERC20.ts → ERC20.d.ts} +53 -52
  23. package/contract-types/ethers/{FinderInterface.ts → FinderInterface.d.ts} +46 -26
  24. package/contract-types/ethers/{FxBaseChildTunnel.ts → FxBaseChildTunnel.d.ts} +48 -32
  25. package/contract-types/ethers/{FxBaseRootTunnel.ts → FxBaseRootTunnel.d.ts} +46 -26
  26. package/contract-types/ethers/{FxChildMock.ts → FxChildMock.d.ts} +49 -39
  27. package/contract-types/ethers/{FxRootMock.ts → FxRootMock.d.ts} +46 -26
  28. package/contract-types/ethers/{GenericHandler.ts → GenericHandler.d.ts} +72 -44
  29. package/contract-types/ethers/{IAccessControl.ts → IAccessControl.d.ts} +46 -26
  30. package/contract-types/ethers/{IArbitrumInbox.ts → IArbitrumInbox.d.ts} +45 -26
  31. package/contract-types/ethers/IArbitrumOutbox.d.ts +101 -0
  32. package/contract-types/ethers/{IBridge.ts → IBridge.d.ts} +45 -26
  33. package/contract-types/ethers/{ICheckpointManager.ts → ICheckpointManager.d.ts} +45 -25
  34. package/contract-types/ethers/{ICrossDomainMessenger.ts → ICrossDomainMessenger.d.ts} +58 -66
  35. package/contract-types/ethers/{IDepositExecute.ts → IDepositExecute.d.ts} +45 -26
  36. package/contract-types/ethers/IERC165.d.ts +116 -0
  37. package/contract-types/ethers/{IERC20.ts → IERC20.d.ts} +53 -52
  38. package/contract-types/ethers/{IERC20Metadata.ts → IERC20Metadata.d.ts} +53 -52
  39. package/contract-types/ethers/{IERCHandler.ts → IERCHandler.d.ts} +45 -26
  40. package/contract-types/ethers/{IFxMessageProcessor.ts → IFxMessageProcessor.d.ts} +45 -26
  41. package/contract-types/ethers/{IFxStateSender.ts → IFxStateSender.d.ts} +46 -26
  42. package/contract-types/ethers/{IGenericHandler.ts → IGenericHandler.d.ts} +46 -26
  43. package/contract-types/ethers/{IL2ERC20Bridge.ts → IL2ERC20Bridge.d.ts} +78 -97
  44. package/contract-types/ethers/{IOVMCrossDomainMessenger.ts → IOVMCrossDomainMessenger.d.ts} +53 -49
  45. package/contract-types/ethers/{IStateReceiver.ts → IStateReceiver.d.ts} +45 -26
  46. package/contract-types/ethers/IStateSender.d.ts +119 -0
  47. package/contract-types/ethers/{IdentifierWhitelistInterface.ts → IdentifierWhitelistInterface.d.ts} +46 -26
  48. package/contract-types/ethers/Lockable.d.ts +78 -0
  49. package/contract-types/ethers/{MessengerInterface.ts → MessengerInterface.d.ts} +45 -26
  50. package/contract-types/ethers/{MessengerMock.ts → MessengerMock.d.ts} +54 -40
  51. package/contract-types/ethers/MultiCaller.d.ts +111 -0
  52. package/contract-types/ethers/{OVMBridgeDepositBox.ts → OVMBridgeDepositBox.d.ts} +96 -137
  53. package/contract-types/ethers/OVMCrossDomainEnabled.d.ts +95 -0
  54. package/contract-types/ethers/{OVML1CrossDomainMessengerMock.ts → OVML1CrossDomainMessengerMock.d.ts} +59 -67
  55. package/contract-types/ethers/{OVMOETHBridgeDepositBox.ts → OVMOETHBridgeDepositBox.d.ts} +96 -137
  56. package/contract-types/ethers/{OptimismMessenger.ts → OptimismMessenger.d.ts} +49 -39
  57. package/contract-types/ethers/{OptimismWrapper.ts → OptimismWrapper.d.ts} +52 -50
  58. package/contract-types/ethers/OptimisticOracleConstraints.d.ts +103 -0
  59. package/contract-types/ethers/{OptimisticOracleInterface.ts → OptimisticOracleInterface.d.ts} +135 -73
  60. package/contract-types/ethers/{OracleInterfaces.ts → OracleInterfaces.d.ts} +46 -25
  61. package/contract-types/ethers/{Ownable.ts → Ownable.d.ts} +50 -39
  62. package/contract-types/ethers/{ParentMessengerBase.ts → ParentMessengerBase.d.ts} +59 -83
  63. package/contract-types/ethers/{ParentMessengerConsumerInterface.ts → ParentMessengerConsumerInterface.d.ts} +46 -27
  64. package/contract-types/ethers/{ParentMessengerInterface.ts → ParentMessengerInterface.d.ts} +46 -26
  65. package/contract-types/ethers/Pausable.d.ts +105 -0
  66. package/contract-types/ethers/{RateModelStore.ts → RateModelStore.d.ts} +54 -52
  67. package/contract-types/ethers/SkinnyOptimisticOracleInterface.d.ts +1241 -0
  68. package/contract-types/ethers/{StandardBridgeLike.ts → StandardBridgeLike.d.ts} +45 -26
  69. package/contract-types/ethers/{StateSyncMock.ts → StateSyncMock.d.ts} +49 -39
  70. package/contract-types/ethers/{StoreInterface.ts → StoreInterface.d.ts} +80 -56
  71. package/contract-types/ethers/{Testable.ts → Testable.d.ts} +45 -26
  72. package/contract-types/ethers/{Timer.ts → Timer.d.ts} +45 -26
  73. package/contract-types/ethers/TokenLike.d.ts +108 -0
  74. package/contract-types/ethers/{WETH9Like.ts → WETH9Like.d.ts} +45 -26
  75. package/contract-types/ethers/commons.ts +36 -0
  76. package/contract-types/ethers/factories/AVMBridgeDepositBox__factory.ts +4 -15
  77. package/contract-types/ethers/factories/ArbitrumBridgeMock__factory.ts +3 -14
  78. package/contract-types/ethers/factories/ArbitrumInboxMock__factory.ts +3 -14
  79. package/contract-types/ethers/factories/ArbitrumMessenger__factory.ts +3 -14
  80. package/contract-types/ethers/factories/ArbitrumOutboxMock__factory.ts +3 -14
  81. package/contract-types/ethers/factories/ArbitrumParentMessenger__factory.ts +4 -15
  82. package/contract-types/ethers/factories/BridgeAdmin__factory.ts +5 -16
  83. package/contract-types/ethers/factories/BridgeDepositBoxMock__factory.ts +4 -15
  84. package/contract-types/ethers/factories/BridgePoolProd__factory.ts +4 -15
  85. package/contract-types/ethers/factories/BridgePool__factory.ts +4 -15
  86. package/contract-types/ethers/factories/Bridge__factory.ts +4 -15
  87. package/contract-types/ethers/factories/CrossDomainEnabled__factory.ts +3 -14
  88. package/contract-types/ethers/factories/ERC20__factory.ts +3 -14
  89. package/contract-types/ethers/factories/FxChildMock__factory.ts +3 -14
  90. package/contract-types/ethers/factories/FxRootMock__factory.ts +3 -14
  91. package/contract-types/ethers/factories/GenericHandler__factory.ts +4 -15
  92. package/contract-types/ethers/factories/ICheckpointManager__factory.ts +3 -14
  93. package/contract-types/ethers/factories/Lockable__factory.ts +3 -14
  94. package/contract-types/ethers/factories/MessengerMock__factory.ts +3 -14
  95. package/contract-types/ethers/factories/MultiCaller__factory.ts +3 -14
  96. package/contract-types/ethers/factories/OVMBridgeDepositBox__factory.ts +4 -15
  97. package/contract-types/ethers/factories/OVMCrossDomainEnabled__factory.ts +3 -14
  98. package/contract-types/ethers/factories/OVML1CrossDomainMessengerMock__factory.ts +3 -14
  99. package/contract-types/ethers/factories/OVMOETHBridgeDepositBox__factory.ts +4 -15
  100. package/contract-types/ethers/factories/OptimismMessenger__factory.ts +3 -14
  101. package/contract-types/ethers/factories/OptimismWrapper__factory.ts +3 -14
  102. package/contract-types/ethers/factories/OptimisticOracleConstraints__factory.ts +3 -14
  103. package/contract-types/ethers/factories/OracleInterfaces__factory.ts +3 -14
  104. package/contract-types/ethers/factories/RateModelStore__factory.ts +3 -14
  105. package/contract-types/ethers/factories/StateSyncMock__factory.ts +3 -14
  106. package/contract-types/ethers/factories/Timer__factory.ts +3 -14
  107. package/contract-types/ethers/hardhat.d.ts +0 -436
  108. package/contract-types/web3/AVM_BridgeDepositBox.d.ts +269 -0
  109. package/contract-types/web3/AVM_CrossDomainEnabled.d.ts +62 -0
  110. package/contract-types/web3/AccessControl.d.ts +127 -0
  111. package/contract-types/web3/AddressWhitelistInterface.d.ts +43 -0
  112. package/contract-types/web3/ArbSys.d.ts +112 -0
  113. package/contract-types/web3/Arbitrum_BridgeMock.d.ts +46 -0
  114. package/contract-types/web3/Arbitrum_CrossDomainEnabled.d.ts +37 -0
  115. package/contract-types/web3/Arbitrum_InboxMock.d.ts +48 -0
  116. package/contract-types/web3/Arbitrum_Messenger.d.ts +106 -0
  117. package/contract-types/web3/Arbitrum_OutboxMock.d.ts +37 -0
  118. package/contract-types/web3/Arbitrum_ParentMessenger.d.ts +348 -0
  119. package/contract-types/web3/Bridge.d.ts +401 -0
  120. package/contract-types/web3/BridgeAdmin.d.ts +357 -0
  121. package/contract-types/web3/BridgeAdminInterface.d.ts +265 -0
  122. package/contract-types/web3/BridgeDepositBox.d.ts +203 -0
  123. package/contract-types/web3/BridgeDepositBoxMock.d.ts +241 -0
  124. package/contract-types/web3/BridgePool.d.ts +520 -0
  125. package/contract-types/web3/BridgePoolInterface.d.ts +47 -0
  126. package/contract-types/web3/BridgePoolProd.d.ts +520 -0
  127. package/contract-types/web3/CrossDomainEnabled.d.ts +37 -0
  128. package/contract-types/web3/ERC165.d.ts +39 -0
  129. package/contract-types/web3/ERC20.d.ts +105 -0
  130. package/contract-types/web3/FinderInterface.d.ts +44 -0
  131. package/contract-types/web3/FxBaseChildTunnel.d.ts +65 -0
  132. package/contract-types/web3/FxBaseRootTunnel.d.ts +53 -0
  133. package/contract-types/web3/FxChildMock.d.ts +68 -0
  134. package/contract-types/web3/FxRootMock.d.ts +46 -0
  135. package/contract-types/web3/GenericHandler.d.ts +94 -0
  136. package/contract-types/web3/IAccessControl.d.ts +57 -0
  137. package/contract-types/web3/IBridge.d.ts +43 -0
  138. package/contract-types/web3/ICheckpointManager.d.ts +48 -0
  139. package/contract-types/web3/ICrossDomainMessenger.d.ts +103 -0
  140. package/contract-types/web3/IDepositExecute.d.ts +48 -0
  141. package/contract-types/web3/IERC165.d.ts +39 -0
  142. package/contract-types/web3/IERC20.d.ts +89 -0
  143. package/contract-types/web3/IERC20Metadata.d.ts +95 -0
  144. package/contract-types/web3/IERCHandler.d.ts +48 -0
  145. package/contract-types/web3/IFxMessageProcessor.d.ts +41 -0
  146. package/contract-types/web3/IFxStateSender.d.ts +40 -0
  147. package/contract-types/web3/IGenericHandler.d.ts +42 -0
  148. package/contract-types/web3/IL2ERC20Bridge.d.ts +143 -0
  149. package/contract-types/web3/IStateReceiver.d.ts +40 -0
  150. package/contract-types/web3/IStateSender.d.ts +40 -0
  151. package/contract-types/web3/IdentifierWhitelistInterface.d.ts +47 -0
  152. package/contract-types/web3/Lockable.d.ts +35 -0
  153. package/contract-types/web3/MessengerInterface.d.ts +45 -0
  154. package/contract-types/web3/MessengerMock.d.ts +69 -0
  155. package/contract-types/web3/MultiCaller.d.ts +37 -0
  156. package/contract-types/web3/OVM_BridgeDepositBox.d.ts +243 -0
  157. package/contract-types/web3/OVM_CrossDomainEnabled.d.ts +37 -0
  158. package/contract-types/web3/OVM_L1CrossDomainMessengerMock.d.ts +103 -0
  159. package/contract-types/web3/OVM_OETH_BridgeDepositBox.d.ts +247 -0
  160. package/contract-types/web3/Optimism_Messenger.d.ts +73 -0
  161. package/contract-types/web3/Optimism_Wrapper.d.ts +86 -0
  162. package/contract-types/web3/OptimisticOracleConstraints.d.ts +37 -0
  163. package/contract-types/web3/OptimisticOracleInterface.d.ts +151 -0
  164. package/contract-types/web3/OracleInterfaces.d.ts +55 -0
  165. package/contract-types/web3/Ownable.d.ts +61 -0
  166. package/contract-types/web3/ParentMessengerBase.d.ts +178 -0
  167. package/contract-types/web3/ParentMessengerConsumerInterface.d.ts +40 -0
  168. package/contract-types/web3/ParentMessengerInterface.d.ts +41 -0
  169. package/contract-types/web3/Pausable.d.ts +58 -0
  170. package/contract-types/web3/RateModelStore.d.ts +89 -0
  171. package/contract-types/web3/SkinnyOptimisticOracleInterface.d.ts +213 -0
  172. package/contract-types/web3/StandardBridgeLike.d.ts +42 -0
  173. package/contract-types/web3/StateSyncMock.d.ts +62 -0
  174. package/contract-types/web3/StoreInterface.d.ts +55 -0
  175. package/contract-types/web3/Testable.d.ts +43 -0
  176. package/contract-types/web3/Timer.d.ts +41 -0
  177. package/contract-types/web3/TokenLike.d.ts +37 -0
  178. package/contract-types/web3/WETH9Like.d.ts +44 -0
  179. package/contract-types/web3/iArbitrum_Inbox.d.ts +48 -0
  180. package/contract-types/web3/iArbitrum_Outbox.d.ts +37 -0
  181. package/contract-types/web3/iOVM_CrossDomainMessenger.d.ts +95 -0
  182. package/contract-types/web3/types.d.ts +71 -0
  183. package/package.json +5 -5
  184. package/contract-types/ethers/AVMCrossDomainEnabled.ts +0 -75
  185. package/contract-types/ethers/ArbitrumCrossDomainEnabled.ts +0 -74
  186. package/contract-types/ethers/ArbitrumOutboxMock.ts +0 -80
  187. package/contract-types/ethers/CrossDomainEnabled.ts +0 -74
  188. package/contract-types/ethers/ERC165.ts +0 -95
  189. package/contract-types/ethers/IArbitrumOutbox.ts +0 -80
  190. package/contract-types/ethers/IERC165.ts +0 -95
  191. package/contract-types/ethers/IStateSender.ts +0 -99
  192. package/contract-types/ethers/Lockable.ts +0 -50
  193. package/contract-types/ethers/MultiCaller.ts +0 -91
  194. package/contract-types/ethers/OVMCrossDomainEnabled.ts +0 -74
  195. package/contract-types/ethers/OptimisticOracleConstraints.ts +0 -82
  196. package/contract-types/ethers/Pausable.ts +0 -94
  197. package/contract-types/ethers/SkinnyOptimisticOracleInterface.ts +0 -727
  198. package/contract-types/ethers/TokenLike.ts +0 -88
  199. package/contract-types/ethers/common.ts +0 -44
@@ -0,0 +1,39 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export interface IERC165 extends BaseContract {
25
+ constructor(
26
+ jsonInterface: any[],
27
+ address?: string,
28
+ options?: ContractOptions
29
+ ): IERC165;
30
+ clone(): IERC165;
31
+ methods: {
32
+ supportsInterface(
33
+ interfaceId: string | number[]
34
+ ): NonPayableTransactionObject<boolean>;
35
+ };
36
+ events: {
37
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
38
+ };
39
+ }
@@ -0,0 +1,89 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export type Approval = ContractEventLog<{
25
+ owner: string;
26
+ spender: string;
27
+ value: string;
28
+ 0: string;
29
+ 1: string;
30
+ 2: string;
31
+ }>;
32
+ export type Transfer = ContractEventLog<{
33
+ from: string;
34
+ to: string;
35
+ value: string;
36
+ 0: string;
37
+ 1: string;
38
+ 2: string;
39
+ }>;
40
+
41
+ export interface IERC20 extends BaseContract {
42
+ constructor(
43
+ jsonInterface: any[],
44
+ address?: string,
45
+ options?: ContractOptions
46
+ ): IERC20;
47
+ clone(): IERC20;
48
+ methods: {
49
+ allowance(
50
+ owner: string,
51
+ spender: string
52
+ ): NonPayableTransactionObject<string>;
53
+
54
+ approve(
55
+ spender: string,
56
+ amount: number | string | BN
57
+ ): NonPayableTransactionObject<boolean>;
58
+
59
+ balanceOf(account: string): NonPayableTransactionObject<string>;
60
+
61
+ totalSupply(): NonPayableTransactionObject<string>;
62
+
63
+ transfer(
64
+ recipient: string,
65
+ amount: number | string | BN
66
+ ): NonPayableTransactionObject<boolean>;
67
+
68
+ transferFrom(
69
+ sender: string,
70
+ recipient: string,
71
+ amount: number | string | BN
72
+ ): NonPayableTransactionObject<boolean>;
73
+ };
74
+ events: {
75
+ Approval(cb?: Callback<Approval>): EventEmitter;
76
+ Approval(options?: EventOptions, cb?: Callback<Approval>): EventEmitter;
77
+
78
+ Transfer(cb?: Callback<Transfer>): EventEmitter;
79
+ Transfer(options?: EventOptions, cb?: Callback<Transfer>): EventEmitter;
80
+
81
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
82
+ };
83
+
84
+ once(event: "Approval", cb: Callback<Approval>): void;
85
+ once(event: "Approval", options: EventOptions, cb: Callback<Approval>): void;
86
+
87
+ once(event: "Transfer", cb: Callback<Transfer>): void;
88
+ once(event: "Transfer", options: EventOptions, cb: Callback<Transfer>): void;
89
+ }
@@ -0,0 +1,95 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export type Approval = ContractEventLog<{
25
+ owner: string;
26
+ spender: string;
27
+ value: string;
28
+ 0: string;
29
+ 1: string;
30
+ 2: string;
31
+ }>;
32
+ export type Transfer = ContractEventLog<{
33
+ from: string;
34
+ to: string;
35
+ value: string;
36
+ 0: string;
37
+ 1: string;
38
+ 2: string;
39
+ }>;
40
+
41
+ export interface IERC20Metadata extends BaseContract {
42
+ constructor(
43
+ jsonInterface: any[],
44
+ address?: string,
45
+ options?: ContractOptions
46
+ ): IERC20Metadata;
47
+ clone(): IERC20Metadata;
48
+ methods: {
49
+ allowance(
50
+ owner: string,
51
+ spender: string
52
+ ): NonPayableTransactionObject<string>;
53
+
54
+ approve(
55
+ spender: string,
56
+ amount: number | string | BN
57
+ ): NonPayableTransactionObject<boolean>;
58
+
59
+ balanceOf(account: string): NonPayableTransactionObject<string>;
60
+
61
+ decimals(): NonPayableTransactionObject<string>;
62
+
63
+ name(): NonPayableTransactionObject<string>;
64
+
65
+ symbol(): NonPayableTransactionObject<string>;
66
+
67
+ totalSupply(): NonPayableTransactionObject<string>;
68
+
69
+ transfer(
70
+ recipient: string,
71
+ amount: number | string | BN
72
+ ): NonPayableTransactionObject<boolean>;
73
+
74
+ transferFrom(
75
+ sender: string,
76
+ recipient: string,
77
+ amount: number | string | BN
78
+ ): NonPayableTransactionObject<boolean>;
79
+ };
80
+ events: {
81
+ Approval(cb?: Callback<Approval>): EventEmitter;
82
+ Approval(options?: EventOptions, cb?: Callback<Approval>): EventEmitter;
83
+
84
+ Transfer(cb?: Callback<Transfer>): EventEmitter;
85
+ Transfer(options?: EventOptions, cb?: Callback<Transfer>): EventEmitter;
86
+
87
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
88
+ };
89
+
90
+ once(event: "Approval", cb: Callback<Approval>): void;
91
+ once(event: "Approval", options: EventOptions, cb: Callback<Approval>): void;
92
+
93
+ once(event: "Transfer", cb: Callback<Transfer>): void;
94
+ once(event: "Transfer", options: EventOptions, cb: Callback<Transfer>): void;
95
+ }
@@ -0,0 +1,48 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export interface IERCHandler extends BaseContract {
25
+ constructor(
26
+ jsonInterface: any[],
27
+ address?: string,
28
+ options?: ContractOptions
29
+ ): IERCHandler;
30
+ clone(): IERCHandler;
31
+ methods: {
32
+ setBurnable(contractAddress: string): NonPayableTransactionObject<void>;
33
+
34
+ setResource(
35
+ resourceID: string | number[],
36
+ contractAddress: string
37
+ ): NonPayableTransactionObject<void>;
38
+
39
+ withdraw(
40
+ tokenAddress: string,
41
+ recipient: string,
42
+ amountOrTokenID: number | string | BN
43
+ ): NonPayableTransactionObject<void>;
44
+ };
45
+ events: {
46
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
47
+ };
48
+ }
@@ -0,0 +1,41 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export interface IFxMessageProcessor extends BaseContract {
25
+ constructor(
26
+ jsonInterface: any[],
27
+ address?: string,
28
+ options?: ContractOptions
29
+ ): IFxMessageProcessor;
30
+ clone(): IFxMessageProcessor;
31
+ methods: {
32
+ processMessageFromRoot(
33
+ stateId: number | string | BN,
34
+ rootMessageSender: string,
35
+ data: string | number[]
36
+ ): NonPayableTransactionObject<void>;
37
+ };
38
+ events: {
39
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
40
+ };
41
+ }
@@ -0,0 +1,40 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export interface IFxStateSender extends BaseContract {
25
+ constructor(
26
+ jsonInterface: any[],
27
+ address?: string,
28
+ options?: ContractOptions
29
+ ): IFxStateSender;
30
+ clone(): IFxStateSender;
31
+ methods: {
32
+ sendMessageToChild(
33
+ _receiver: string,
34
+ _data: string | number[]
35
+ ): NonPayableTransactionObject<void>;
36
+ };
37
+ events: {
38
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
39
+ };
40
+ }
@@ -0,0 +1,42 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export interface IGenericHandler extends BaseContract {
25
+ constructor(
26
+ jsonInterface: any[],
27
+ address?: string,
28
+ options?: ContractOptions
29
+ ): IGenericHandler;
30
+ clone(): IGenericHandler;
31
+ methods: {
32
+ setResource(
33
+ resourceID: string | number[],
34
+ contractAddress: string,
35
+ depositFunctionSig: string | number[],
36
+ executeFunctionSig: string | number[]
37
+ ): NonPayableTransactionObject<void>;
38
+ };
39
+ events: {
40
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
41
+ };
42
+ }
@@ -0,0 +1,143 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export type DepositFailed = ContractEventLog<{
25
+ _l1Token: string;
26
+ _l2Token: string;
27
+ _from: string;
28
+ _to: string;
29
+ _amount: string;
30
+ _data: string;
31
+ 0: string;
32
+ 1: string;
33
+ 2: string;
34
+ 3: string;
35
+ 4: string;
36
+ 5: string;
37
+ }>;
38
+ export type DepositFinalized = ContractEventLog<{
39
+ _l1Token: string;
40
+ _l2Token: string;
41
+ _from: string;
42
+ _to: string;
43
+ _amount: string;
44
+ _data: string;
45
+ 0: string;
46
+ 1: string;
47
+ 2: string;
48
+ 3: string;
49
+ 4: string;
50
+ 5: string;
51
+ }>;
52
+ export type WithdrawalInitiated = ContractEventLog<{
53
+ _l1Token: string;
54
+ _l2Token: string;
55
+ _from: string;
56
+ _to: string;
57
+ _amount: string;
58
+ _data: string;
59
+ 0: string;
60
+ 1: string;
61
+ 2: string;
62
+ 3: string;
63
+ 4: string;
64
+ 5: string;
65
+ }>;
66
+
67
+ export interface IL2ERC20Bridge extends BaseContract {
68
+ constructor(
69
+ jsonInterface: any[],
70
+ address?: string,
71
+ options?: ContractOptions
72
+ ): IL2ERC20Bridge;
73
+ clone(): IL2ERC20Bridge;
74
+ methods: {
75
+ finalizeDeposit(
76
+ _l1Token: string,
77
+ _l2Token: string,
78
+ _from: string,
79
+ _to: string,
80
+ _amount: number | string | BN,
81
+ _data: string | number[]
82
+ ): NonPayableTransactionObject<void>;
83
+
84
+ l1TokenBridge(): NonPayableTransactionObject<string>;
85
+
86
+ withdraw(
87
+ _l2Token: string,
88
+ _amount: number | string | BN,
89
+ _l1Gas: number | string | BN,
90
+ _data: string | number[]
91
+ ): NonPayableTransactionObject<void>;
92
+
93
+ withdrawTo(
94
+ _l2Token: string,
95
+ _to: string,
96
+ _amount: number | string | BN,
97
+ _l1Gas: number | string | BN,
98
+ _data: string | number[]
99
+ ): NonPayableTransactionObject<void>;
100
+ };
101
+ events: {
102
+ DepositFailed(cb?: Callback<DepositFailed>): EventEmitter;
103
+ DepositFailed(
104
+ options?: EventOptions,
105
+ cb?: Callback<DepositFailed>
106
+ ): EventEmitter;
107
+
108
+ DepositFinalized(cb?: Callback<DepositFinalized>): EventEmitter;
109
+ DepositFinalized(
110
+ options?: EventOptions,
111
+ cb?: Callback<DepositFinalized>
112
+ ): EventEmitter;
113
+
114
+ WithdrawalInitiated(cb?: Callback<WithdrawalInitiated>): EventEmitter;
115
+ WithdrawalInitiated(
116
+ options?: EventOptions,
117
+ cb?: Callback<WithdrawalInitiated>
118
+ ): EventEmitter;
119
+
120
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
121
+ };
122
+
123
+ once(event: "DepositFailed", cb: Callback<DepositFailed>): void;
124
+ once(
125
+ event: "DepositFailed",
126
+ options: EventOptions,
127
+ cb: Callback<DepositFailed>
128
+ ): void;
129
+
130
+ once(event: "DepositFinalized", cb: Callback<DepositFinalized>): void;
131
+ once(
132
+ event: "DepositFinalized",
133
+ options: EventOptions,
134
+ cb: Callback<DepositFinalized>
135
+ ): void;
136
+
137
+ once(event: "WithdrawalInitiated", cb: Callback<WithdrawalInitiated>): void;
138
+ once(
139
+ event: "WithdrawalInitiated",
140
+ options: EventOptions,
141
+ cb: Callback<WithdrawalInitiated>
142
+ ): void;
143
+ }
@@ -0,0 +1,40 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export interface IStateReceiver extends BaseContract {
25
+ constructor(
26
+ jsonInterface: any[],
27
+ address?: string,
28
+ options?: ContractOptions
29
+ ): IStateReceiver;
30
+ clone(): IStateReceiver;
31
+ methods: {
32
+ onStateReceive(
33
+ stateId: number | string | BN,
34
+ data: string | number[]
35
+ ): NonPayableTransactionObject<void>;
36
+ };
37
+ events: {
38
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
39
+ };
40
+ }
@@ -0,0 +1,40 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export interface IStateSender extends BaseContract {
25
+ constructor(
26
+ jsonInterface: any[],
27
+ address?: string,
28
+ options?: ContractOptions
29
+ ): IStateSender;
30
+ clone(): IStateSender;
31
+ methods: {
32
+ syncState(
33
+ receiver: string,
34
+ data: string | number[]
35
+ ): NonPayableTransactionObject<void>;
36
+ };
37
+ events: {
38
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
39
+ };
40
+ }
@@ -0,0 +1,47 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export interface IdentifierWhitelistInterface extends BaseContract {
25
+ constructor(
26
+ jsonInterface: any[],
27
+ address?: string,
28
+ options?: ContractOptions
29
+ ): IdentifierWhitelistInterface;
30
+ clone(): IdentifierWhitelistInterface;
31
+ methods: {
32
+ addSupportedIdentifier(
33
+ identifier: string | number[]
34
+ ): NonPayableTransactionObject<void>;
35
+
36
+ isIdentifierSupported(
37
+ identifier: string | number[]
38
+ ): NonPayableTransactionObject<boolean>;
39
+
40
+ removeSupportedIdentifier(
41
+ identifier: string | number[]
42
+ ): NonPayableTransactionObject<void>;
43
+ };
44
+ events: {
45
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
46
+ };
47
+ }
@@ -0,0 +1,35 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import BN from "bn.js";
6
+ import { ContractOptions } from "web3-eth-contract";
7
+ import { EventLog } from "web3-core";
8
+ import { EventEmitter } from "events";
9
+ import {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export interface Lockable extends BaseContract {
25
+ constructor(
26
+ jsonInterface: any[],
27
+ address?: string,
28
+ options?: ContractOptions
29
+ ): Lockable;
30
+ clone(): Lockable;
31
+ methods: {};
32
+ events: {
33
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
34
+ };
35
+ }