@across-protocol/contracts 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/build/artfacts.json +342 -0
  2. package/contract-types/ethers/AVMBridgeDepositBox.ts +780 -0
  3. package/contract-types/ethers/AVMCrossDomainEnabled.ts +75 -0
  4. package/contract-types/ethers/AccessControl.ts +353 -0
  5. package/contract-types/ethers/AddressWhitelistInterface.ts +184 -0
  6. package/contract-types/ethers/ArbSys.ts +354 -0
  7. package/contract-types/ethers/ArbitrumBridgeMock.ts +159 -0
  8. package/contract-types/ethers/ArbitrumCrossDomainEnabled.ts +74 -0
  9. package/contract-types/ethers/ArbitrumInboxMock.ts +155 -0
  10. package/contract-types/ethers/ArbitrumMessenger.ts +297 -0
  11. package/contract-types/ethers/ArbitrumOutboxMock.ts +80 -0
  12. package/contract-types/ethers/ArbitrumParentMessenger.ts +1028 -0
  13. package/contract-types/ethers/Bridge.ts +1537 -0
  14. package/contract-types/ethers/BridgeAdmin.ts +1011 -0
  15. package/contract-types/ethers/BridgeAdminInterface.ts +409 -0
  16. package/contract-types/ethers/BridgeDepositBox.ts +557 -0
  17. package/contract-types/ethers/BridgeDepositBoxMock.ts +739 -0
  18. package/contract-types/ethers/BridgePool.ts +1741 -0
  19. package/contract-types/ethers/BridgePoolInterface.ts +173 -0
  20. package/contract-types/ethers/BridgePoolProd.ts +1741 -0
  21. package/contract-types/ethers/CrossDomainEnabled.ts +74 -0
  22. package/contract-types/ethers/ERC165.ts +95 -0
  23. package/contract-types/ethers/ERC20.ts +410 -0
  24. package/contract-types/ethers/FinderInterface.ts +136 -0
  25. package/contract-types/ethers/FxBaseChildTunnel.ts +185 -0
  26. package/contract-types/ethers/FxBaseRootTunnel.ts +234 -0
  27. package/contract-types/ethers/FxChildMock.ts +182 -0
  28. package/contract-types/ethers/FxRootMock.ts +159 -0
  29. package/contract-types/ethers/GenericHandler.ts +502 -0
  30. package/contract-types/ethers/IAccessControl.ts +235 -0
  31. package/contract-types/ethers/IArbitrumInbox.ts +155 -0
  32. package/contract-types/ethers/IArbitrumOutbox.ts +80 -0
  33. package/contract-types/ethers/IBridge.ts +126 -0
  34. package/contract-types/ethers/ICheckpointManager.ts +120 -0
  35. package/contract-types/ethers/ICrossDomainMessenger.ts +189 -0
  36. package/contract-types/ethers/IDepositExecute.ts +154 -0
  37. package/contract-types/ethers/IERC165.ts +95 -0
  38. package/contract-types/ethers/IERC20.ts +293 -0
  39. package/contract-types/ethers/IERC20Metadata.ts +332 -0
  40. package/contract-types/ethers/IERCHandler.ts +175 -0
  41. package/contract-types/ethers/IFxMessageProcessor.ts +108 -0
  42. package/contract-types/ethers/IFxStateSender.ts +102 -0
  43. package/contract-types/ethers/IGenericHandler.ts +112 -0
  44. package/contract-types/ethers/IL2ERC20Bridge.ts +350 -0
  45. package/contract-types/ethers/IOVMCrossDomainMessenger.ts +164 -0
  46. package/contract-types/ethers/IStateReceiver.ts +103 -0
  47. package/contract-types/ethers/IStateSender.ts +99 -0
  48. package/contract-types/ethers/IdentifierWhitelistInterface.ts +165 -0
  49. package/contract-types/ethers/Lockable.ts +50 -0
  50. package/contract-types/ethers/MessengerInterface.ts +136 -0
  51. package/contract-types/ethers/MessengerMock.ts +160 -0
  52. package/contract-types/ethers/MultiCaller.ts +91 -0
  53. package/contract-types/ethers/OVMBridgeDepositBox.ts +751 -0
  54. package/contract-types/ethers/OVMCrossDomainEnabled.ts +74 -0
  55. package/contract-types/ethers/OVML1CrossDomainMessengerMock.ts +190 -0
  56. package/contract-types/ethers/OVMOETHBridgeDepositBox.ts +783 -0
  57. package/contract-types/ethers/OptimismMessenger.ts +245 -0
  58. package/contract-types/ethers/OptimismWrapper.ts +264 -0
  59. package/contract-types/ethers/OptimisticOracleConstraints.ts +82 -0
  60. package/contract-types/ethers/OptimisticOracleInterface.ts +804 -0
  61. package/contract-types/ethers/OracleInterfaces.ts +235 -0
  62. package/contract-types/ethers/Ownable.ts +158 -0
  63. package/contract-types/ethers/ParentMessengerBase.ts +554 -0
  64. package/contract-types/ethers/ParentMessengerConsumerInterface.ts +104 -0
  65. package/contract-types/ethers/ParentMessengerInterface.ts +116 -0
  66. package/contract-types/ethers/Pausable.ts +94 -0
  67. package/contract-types/ethers/SkinnyOptimisticOracleInterface.ts +727 -0
  68. package/contract-types/ethers/StandardBridgeLike.ts +113 -0
  69. package/contract-types/ethers/StateSyncMock.ts +122 -0
  70. package/contract-types/ethers/StoreInterface.ts +228 -0
  71. package/contract-types/ethers/Testable.ts +136 -0
  72. package/contract-types/ethers/Timer.ts +117 -0
  73. package/contract-types/ethers/TokenLike.ts +88 -0
  74. package/contract-types/ethers/WETH9Like.ts +138 -0
  75. package/contract-types/ethers/common.ts +44 -0
  76. package/contract-types/ethers/factories/AVMBridgeDepositBox__factory.ts +649 -0
  77. package/contract-types/ethers/factories/AVMCrossDomainEnabled__factory.ts +61 -0
  78. package/contract-types/ethers/factories/AccessControl__factory.ts +227 -0
  79. package/contract-types/ethers/factories/AddressWhitelistInterface__factory.ts +88 -0
  80. package/contract-types/ethers/factories/ArbSys__factory.ts +244 -0
  81. package/contract-types/ethers/factories/ArbitrumBridgeMock__factory.ts +118 -0
  82. package/contract-types/ethers/factories/ArbitrumCrossDomainEnabled__factory.ts +43 -0
  83. package/contract-types/ethers/factories/ArbitrumInboxMock__factory.ts +128 -0
  84. package/contract-types/ethers/factories/ArbitrumMessenger__factory.ts +243 -0
  85. package/contract-types/ethers/factories/ArbitrumOutboxMock__factory.ts +74 -0
  86. package/contract-types/ethers/factories/ArbitrumParentMessenger__factory.ts +680 -0
  87. package/contract-types/ethers/factories/BridgeAdminInterface__factory.ts +338 -0
  88. package/contract-types/ethers/factories/BridgeAdmin__factory.ts +737 -0
  89. package/contract-types/ethers/factories/BridgeDepositBoxMock__factory.ts +591 -0
  90. package/contract-types/ethers/factories/BridgeDepositBox__factory.ts +406 -0
  91. package/contract-types/ethers/factories/BridgePoolInterface__factory.ts +78 -0
  92. package/contract-types/ethers/factories/BridgePoolProd__factory.ts +1798 -0
  93. package/contract-types/ethers/factories/BridgePool__factory.ts +1795 -0
  94. package/contract-types/ethers/factories/Bridge__factory.ts +1094 -0
  95. package/contract-types/ethers/factories/CrossDomainEnabled__factory.ts +90 -0
  96. package/contract-types/ethers/factories/ERC165__factory.ts +39 -0
  97. package/contract-types/ethers/factories/ERC20__factory.ts +345 -0
  98. package/contract-types/ethers/factories/FinderInterface__factory.ts +63 -0
  99. package/contract-types/ethers/factories/FxBaseChildTunnel__factory.ts +101 -0
  100. package/contract-types/ethers/factories/FxBaseRootTunnel__factory.ts +123 -0
  101. package/contract-types/ethers/factories/FxChildMock__factory.ts +153 -0
  102. package/contract-types/ethers/factories/FxRootMock__factory.ts +128 -0
  103. package/contract-types/ethers/factories/GenericHandler__factory.ts +395 -0
  104. package/contract-types/ethers/factories/IAccessControl__factory.ts +123 -0
  105. package/contract-types/ethers/factories/IArbitrumInbox__factory.ts +93 -0
  106. package/contract-types/ethers/factories/IArbitrumOutbox__factory.ts +39 -0
  107. package/contract-types/ethers/factories/IBridge__factory.ts +59 -0
  108. package/contract-types/ethers/factories/ICheckpointManager__factory.ts +100 -0
  109. package/contract-types/ethers/factories/ICrossDomainMessenger__factory.ts +129 -0
  110. package/contract-types/ethers/factories/IDepositExecute__factory.ts +77 -0
  111. package/contract-types/ethers/factories/IERC165__factory.ts +42 -0
  112. package/contract-types/ethers/factories/IERC20Metadata__factory.ts +248 -0
  113. package/contract-types/ethers/factories/IERC20__factory.ts +203 -0
  114. package/contract-types/ethers/factories/IERCHandler__factory.ts +77 -0
  115. package/contract-types/ethers/factories/IFxMessageProcessor__factory.ts +49 -0
  116. package/contract-types/ethers/factories/IFxStateSender__factory.ts +44 -0
  117. package/contract-types/ethers/factories/IGenericHandler__factory.ts +54 -0
  118. package/contract-types/ethers/factories/IL2ERC20Bridge__factory.ts +267 -0
  119. package/contract-types/ethers/factories/IOVMCrossDomainMessenger__factory.ts +105 -0
  120. package/contract-types/ethers/factories/IStateReceiver__factory.ts +44 -0
  121. package/contract-types/ethers/factories/IStateSender__factory.ts +41 -0
  122. package/contract-types/ethers/factories/IdentifierWhitelistInterface__factory.ts +75 -0
  123. package/contract-types/ethers/factories/Lockable__factory.ts +63 -0
  124. package/contract-types/ethers/factories/MessengerInterface__factory.ts +69 -0
  125. package/contract-types/ethers/factories/MessengerMock__factory.ts +132 -0
  126. package/contract-types/ethers/factories/MultiCaller__factory.ts +77 -0
  127. package/contract-types/ethers/factories/OVMBridgeDepositBox__factory.ts +609 -0
  128. package/contract-types/ethers/factories/OVMCrossDomainEnabled__factory.ts +94 -0
  129. package/contract-types/ethers/factories/OVML1CrossDomainMessengerMock__factory.ts +166 -0
  130. package/contract-types/ethers/factories/OVMOETHBridgeDepositBox__factory.ts +665 -0
  131. package/contract-types/ethers/factories/OptimismMessenger__factory.ts +185 -0
  132. package/contract-types/ethers/factories/OptimismWrapper__factory.ts +200 -0
  133. package/contract-types/ethers/factories/OptimisticOracleConstraints__factory.ts +80 -0
  134. package/contract-types/ethers/factories/OptimisticOracleInterface__factory.ts +574 -0
  135. package/contract-types/ethers/factories/OracleInterfaces__factory.ts +191 -0
  136. package/contract-types/ethers/factories/Ownable__factory.ts +75 -0
  137. package/contract-types/ethers/factories/ParentMessengerBase__factory.ts +312 -0
  138. package/contract-types/ethers/factories/ParentMessengerConsumerInterface__factory.ts +50 -0
  139. package/contract-types/ethers/factories/ParentMessengerInterface__factory.ts +56 -0
  140. package/contract-types/ethers/factories/Pausable__factory.ts +62 -0
  141. package/contract-types/ethers/factories/SkinnyOptimisticOracleInterface__factory.ts +874 -0
  142. package/contract-types/ethers/factories/StandardBridgeLike__factory.ts +60 -0
  143. package/contract-types/ethers/factories/StateSyncMock__factory.ts +101 -0
  144. package/contract-types/ethers/factories/StoreInterface__factory.ts +139 -0
  145. package/contract-types/ethers/factories/Testable__factory.ts +62 -0
  146. package/contract-types/ethers/factories/Timer__factory.ts +86 -0
  147. package/contract-types/ethers/factories/TokenLike__factory.ts +42 -0
  148. package/contract-types/ethers/factories/WETH9Like__factory.ts +67 -0
  149. package/contract-types/ethers/hardhat.d.ts +798 -0
  150. package/contract-types/ethers/index.ts +150 -0
  151. package/contract-types/web3/AVM_BridgeDepositBox.ts +269 -0
  152. package/contract-types/web3/AVM_CrossDomainEnabled.ts +62 -0
  153. package/contract-types/web3/AccessControl.ts +127 -0
  154. package/contract-types/web3/AddressWhitelistInterface.ts +43 -0
  155. package/contract-types/web3/ArbSys.ts +112 -0
  156. package/contract-types/web3/Arbitrum_BridgeMock.ts +46 -0
  157. package/contract-types/web3/Arbitrum_CrossDomainEnabled.ts +37 -0
  158. package/contract-types/web3/Arbitrum_InboxMock.ts +48 -0
  159. package/contract-types/web3/Arbitrum_Messenger.ts +106 -0
  160. package/contract-types/web3/Arbitrum_OutboxMock.ts +37 -0
  161. package/contract-types/web3/Arbitrum_ParentMessenger.ts +348 -0
  162. package/contract-types/web3/Bridge.ts +401 -0
  163. package/contract-types/web3/BridgeAdmin.ts +357 -0
  164. package/contract-types/web3/BridgeAdminInterface.ts +265 -0
  165. package/contract-types/web3/BridgeDepositBox.ts +203 -0
  166. package/contract-types/web3/BridgeDepositBoxMock.ts +241 -0
  167. package/contract-types/web3/BridgePool.ts +520 -0
  168. package/contract-types/web3/BridgePoolInterface.ts +47 -0
  169. package/contract-types/web3/BridgePoolProd.ts +520 -0
  170. package/contract-types/web3/CrossDomainEnabled.ts +37 -0
  171. package/contract-types/web3/ERC165.ts +39 -0
  172. package/contract-types/web3/ERC20.ts +105 -0
  173. package/contract-types/web3/FinderInterface.ts +44 -0
  174. package/contract-types/web3/FxBaseChildTunnel.ts +65 -0
  175. package/contract-types/web3/FxBaseRootTunnel.ts +53 -0
  176. package/contract-types/web3/FxChildMock.ts +68 -0
  177. package/contract-types/web3/FxRootMock.ts +46 -0
  178. package/contract-types/web3/GenericHandler.ts +94 -0
  179. package/contract-types/web3/IAccessControl.ts +57 -0
  180. package/contract-types/web3/IBridge.ts +43 -0
  181. package/contract-types/web3/ICheckpointManager.ts +48 -0
  182. package/contract-types/web3/ICrossDomainMessenger.ts +103 -0
  183. package/contract-types/web3/IDepositExecute.ts +48 -0
  184. package/contract-types/web3/IERC165.ts +39 -0
  185. package/contract-types/web3/IERC20.ts +89 -0
  186. package/contract-types/web3/IERC20Metadata.ts +95 -0
  187. package/contract-types/web3/IERCHandler.ts +48 -0
  188. package/contract-types/web3/IFxMessageProcessor.ts +41 -0
  189. package/contract-types/web3/IFxStateSender.ts +40 -0
  190. package/contract-types/web3/IGenericHandler.ts +42 -0
  191. package/contract-types/web3/IL2ERC20Bridge.ts +143 -0
  192. package/contract-types/web3/IStateReceiver.ts +40 -0
  193. package/contract-types/web3/IStateSender.ts +40 -0
  194. package/contract-types/web3/IdentifierWhitelistInterface.ts +47 -0
  195. package/contract-types/web3/Lockable.ts +35 -0
  196. package/contract-types/web3/MessengerInterface.ts +45 -0
  197. package/contract-types/web3/MessengerMock.ts +69 -0
  198. package/contract-types/web3/MultiCaller.ts +37 -0
  199. package/contract-types/web3/OVM_BridgeDepositBox.ts +243 -0
  200. package/contract-types/web3/OVM_CrossDomainEnabled.ts +37 -0
  201. package/contract-types/web3/OVM_L1CrossDomainMessengerMock.ts +103 -0
  202. package/contract-types/web3/OVM_OETH_BridgeDepositBox.ts +247 -0
  203. package/contract-types/web3/Optimism_Messenger.ts +73 -0
  204. package/contract-types/web3/Optimism_Wrapper.ts +86 -0
  205. package/contract-types/web3/OptimisticOracleConstraints.ts +37 -0
  206. package/contract-types/web3/OptimisticOracleInterface.ts +151 -0
  207. package/contract-types/web3/OracleInterfaces.ts +55 -0
  208. package/contract-types/web3/Ownable.ts +61 -0
  209. package/contract-types/web3/ParentMessengerBase.ts +178 -0
  210. package/contract-types/web3/ParentMessengerConsumerInterface.ts +40 -0
  211. package/contract-types/web3/ParentMessengerInterface.ts +41 -0
  212. package/contract-types/web3/Pausable.ts +58 -0
  213. package/contract-types/web3/SkinnyOptimisticOracleInterface.ts +213 -0
  214. package/contract-types/web3/StandardBridgeLike.ts +42 -0
  215. package/contract-types/web3/StateSyncMock.ts +62 -0
  216. package/contract-types/web3/StoreInterface.ts +55 -0
  217. package/contract-types/web3/Testable.ts +43 -0
  218. package/contract-types/web3/Timer.ts +41 -0
  219. package/contract-types/web3/TokenLike.ts +37 -0
  220. package/contract-types/web3/WETH9Like.ts +44 -0
  221. package/contract-types/web3/iArbitrum_Inbox.ts +48 -0
  222. package/contract-types/web3/iArbitrum_Outbox.ts +37 -0
  223. package/contract-types/web3/iOVM_CrossDomainMessenger.ts +95 -0
  224. package/contract-types/web3/types.ts +73 -0
  225. package/networks/1.json +33 -0
  226. package/networks/10.json +6 -0
  227. package/networks/42161.json +6 -0
  228. package/package.json +12 -5
@@ -0,0 +1,665 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ Signer,
6
+ utils,
7
+ Contract,
8
+ ContractFactory,
9
+ Overrides,
10
+ BigNumberish,
11
+ } from "ethers";
12
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
13
+ import type {
14
+ OVMOETHBridgeDepositBox,
15
+ OVMOETHBridgeDepositBoxInterface,
16
+ } from "../OVMOETHBridgeDepositBox";
17
+
18
+ const _abi = [
19
+ {
20
+ inputs: [
21
+ {
22
+ internalType: "address",
23
+ name: "_crossDomainAdmin",
24
+ type: "address",
25
+ },
26
+ {
27
+ internalType: "uint64",
28
+ name: "_minimumBridgingDelay",
29
+ type: "uint64",
30
+ },
31
+ {
32
+ internalType: "uint256",
33
+ name: "_chainId",
34
+ type: "uint256",
35
+ },
36
+ {
37
+ internalType: "address",
38
+ name: "_l1Weth",
39
+ type: "address",
40
+ },
41
+ {
42
+ internalType: "address",
43
+ name: "_l2Eth",
44
+ type: "address",
45
+ },
46
+ {
47
+ internalType: "address",
48
+ name: "_l1EthWrapper",
49
+ type: "address",
50
+ },
51
+ {
52
+ internalType: "address",
53
+ name: "timerAddress",
54
+ type: "address",
55
+ },
56
+ ],
57
+ stateMutability: "nonpayable",
58
+ type: "constructor",
59
+ },
60
+ {
61
+ anonymous: false,
62
+ inputs: [
63
+ {
64
+ indexed: false,
65
+ internalType: "address",
66
+ name: "l2Token",
67
+ type: "address",
68
+ },
69
+ {
70
+ indexed: false,
71
+ internalType: "bool",
72
+ name: "depositsEnabled",
73
+ type: "bool",
74
+ },
75
+ ],
76
+ name: "DepositsEnabled",
77
+ type: "event",
78
+ },
79
+ {
80
+ anonymous: false,
81
+ inputs: [
82
+ {
83
+ indexed: false,
84
+ internalType: "uint256",
85
+ name: "chainId",
86
+ type: "uint256",
87
+ },
88
+ {
89
+ indexed: false,
90
+ internalType: "uint256",
91
+ name: "depositId",
92
+ type: "uint256",
93
+ },
94
+ {
95
+ indexed: false,
96
+ internalType: "address",
97
+ name: "l1Recipient",
98
+ type: "address",
99
+ },
100
+ {
101
+ indexed: false,
102
+ internalType: "address",
103
+ name: "l2Sender",
104
+ type: "address",
105
+ },
106
+ {
107
+ indexed: false,
108
+ internalType: "address",
109
+ name: "l1Token",
110
+ type: "address",
111
+ },
112
+ {
113
+ indexed: false,
114
+ internalType: "address",
115
+ name: "l2Token",
116
+ type: "address",
117
+ },
118
+ {
119
+ indexed: false,
120
+ internalType: "uint256",
121
+ name: "amount",
122
+ type: "uint256",
123
+ },
124
+ {
125
+ indexed: false,
126
+ internalType: "uint64",
127
+ name: "slowRelayFeePct",
128
+ type: "uint64",
129
+ },
130
+ {
131
+ indexed: false,
132
+ internalType: "uint64",
133
+ name: "instantRelayFeePct",
134
+ type: "uint64",
135
+ },
136
+ {
137
+ indexed: false,
138
+ internalType: "uint64",
139
+ name: "quoteTimestamp",
140
+ type: "uint64",
141
+ },
142
+ ],
143
+ name: "FundsDeposited",
144
+ type: "event",
145
+ },
146
+ {
147
+ anonymous: false,
148
+ inputs: [
149
+ {
150
+ indexed: false,
151
+ internalType: "uint64",
152
+ name: "newMinimumBridgingDelay",
153
+ type: "uint64",
154
+ },
155
+ ],
156
+ name: "SetMinimumBridgingDelay",
157
+ type: "event",
158
+ },
159
+ {
160
+ anonymous: false,
161
+ inputs: [
162
+ {
163
+ indexed: true,
164
+ internalType: "address",
165
+ name: "newAdmin",
166
+ type: "address",
167
+ },
168
+ ],
169
+ name: "SetXDomainAdmin",
170
+ type: "event",
171
+ },
172
+ {
173
+ anonymous: false,
174
+ inputs: [
175
+ {
176
+ indexed: true,
177
+ internalType: "address",
178
+ name: "l2Token",
179
+ type: "address",
180
+ },
181
+ {
182
+ indexed: false,
183
+ internalType: "uint256",
184
+ name: "numberOfTokensBridged",
185
+ type: "uint256",
186
+ },
187
+ {
188
+ indexed: false,
189
+ internalType: "uint256",
190
+ name: "l1Gas",
191
+ type: "uint256",
192
+ },
193
+ {
194
+ indexed: true,
195
+ internalType: "address",
196
+ name: "caller",
197
+ type: "address",
198
+ },
199
+ ],
200
+ name: "TokensBridged",
201
+ type: "event",
202
+ },
203
+ {
204
+ anonymous: false,
205
+ inputs: [
206
+ {
207
+ indexed: false,
208
+ internalType: "address",
209
+ name: "l1Token",
210
+ type: "address",
211
+ },
212
+ {
213
+ indexed: false,
214
+ internalType: "address",
215
+ name: "l2Token",
216
+ type: "address",
217
+ },
218
+ {
219
+ indexed: false,
220
+ internalType: "uint64",
221
+ name: "lastBridgeTime",
222
+ type: "uint64",
223
+ },
224
+ {
225
+ indexed: false,
226
+ internalType: "address",
227
+ name: "bridgePool",
228
+ type: "address",
229
+ },
230
+ ],
231
+ name: "WhitelistToken",
232
+ type: "event",
233
+ },
234
+ {
235
+ stateMutability: "payable",
236
+ type: "fallback",
237
+ },
238
+ {
239
+ inputs: [
240
+ {
241
+ internalType: "address",
242
+ name: "l2Token",
243
+ type: "address",
244
+ },
245
+ {
246
+ internalType: "uint32",
247
+ name: "l1Gas",
248
+ type: "uint32",
249
+ },
250
+ ],
251
+ name: "bridgeTokens",
252
+ outputs: [],
253
+ stateMutability: "nonpayable",
254
+ type: "function",
255
+ },
256
+ {
257
+ inputs: [
258
+ {
259
+ internalType: "address",
260
+ name: "l2Token",
261
+ type: "address",
262
+ },
263
+ ],
264
+ name: "canBridge",
265
+ outputs: [
266
+ {
267
+ internalType: "bool",
268
+ name: "",
269
+ type: "bool",
270
+ },
271
+ ],
272
+ stateMutability: "view",
273
+ type: "function",
274
+ },
275
+ {
276
+ inputs: [],
277
+ name: "chainId",
278
+ outputs: [
279
+ {
280
+ internalType: "uint256",
281
+ name: "",
282
+ type: "uint256",
283
+ },
284
+ ],
285
+ stateMutability: "view",
286
+ type: "function",
287
+ },
288
+ {
289
+ inputs: [],
290
+ name: "crossDomainAdmin",
291
+ outputs: [
292
+ {
293
+ internalType: "address",
294
+ name: "",
295
+ type: "address",
296
+ },
297
+ ],
298
+ stateMutability: "view",
299
+ type: "function",
300
+ },
301
+ {
302
+ inputs: [
303
+ {
304
+ internalType: "address",
305
+ name: "l1Recipient",
306
+ type: "address",
307
+ },
308
+ {
309
+ internalType: "address",
310
+ name: "l2Token",
311
+ type: "address",
312
+ },
313
+ {
314
+ internalType: "uint256",
315
+ name: "amount",
316
+ type: "uint256",
317
+ },
318
+ {
319
+ internalType: "uint64",
320
+ name: "slowRelayFeePct",
321
+ type: "uint64",
322
+ },
323
+ {
324
+ internalType: "uint64",
325
+ name: "instantRelayFeePct",
326
+ type: "uint64",
327
+ },
328
+ {
329
+ internalType: "uint64",
330
+ name: "quoteTimestamp",
331
+ type: "uint64",
332
+ },
333
+ ],
334
+ name: "deposit",
335
+ outputs: [],
336
+ stateMutability: "payable",
337
+ type: "function",
338
+ },
339
+ {
340
+ inputs: [],
341
+ name: "getCurrentTime",
342
+ outputs: [
343
+ {
344
+ internalType: "uint256",
345
+ name: "",
346
+ type: "uint256",
347
+ },
348
+ ],
349
+ stateMutability: "view",
350
+ type: "function",
351
+ },
352
+ {
353
+ inputs: [
354
+ {
355
+ internalType: "address",
356
+ name: "l2Token",
357
+ type: "address",
358
+ },
359
+ ],
360
+ name: "isWhitelistToken",
361
+ outputs: [
362
+ {
363
+ internalType: "bool",
364
+ name: "",
365
+ type: "bool",
366
+ },
367
+ ],
368
+ stateMutability: "view",
369
+ type: "function",
370
+ },
371
+ {
372
+ inputs: [],
373
+ name: "l1EthWrapper",
374
+ outputs: [
375
+ {
376
+ internalType: "address",
377
+ name: "",
378
+ type: "address",
379
+ },
380
+ ],
381
+ stateMutability: "view",
382
+ type: "function",
383
+ },
384
+ {
385
+ inputs: [],
386
+ name: "l1Weth",
387
+ outputs: [
388
+ {
389
+ internalType: "address",
390
+ name: "",
391
+ type: "address",
392
+ },
393
+ ],
394
+ stateMutability: "view",
395
+ type: "function",
396
+ },
397
+ {
398
+ inputs: [],
399
+ name: "l2Eth",
400
+ outputs: [
401
+ {
402
+ internalType: "address",
403
+ name: "",
404
+ type: "address",
405
+ },
406
+ ],
407
+ stateMutability: "view",
408
+ type: "function",
409
+ },
410
+ {
411
+ inputs: [],
412
+ name: "messenger",
413
+ outputs: [
414
+ {
415
+ internalType: "address",
416
+ name: "",
417
+ type: "address",
418
+ },
419
+ ],
420
+ stateMutability: "view",
421
+ type: "function",
422
+ },
423
+ {
424
+ inputs: [],
425
+ name: "minimumBridgingDelay",
426
+ outputs: [
427
+ {
428
+ internalType: "uint64",
429
+ name: "",
430
+ type: "uint64",
431
+ },
432
+ ],
433
+ stateMutability: "view",
434
+ type: "function",
435
+ },
436
+ {
437
+ inputs: [],
438
+ name: "numberOfDeposits",
439
+ outputs: [
440
+ {
441
+ internalType: "uint256",
442
+ name: "",
443
+ type: "uint256",
444
+ },
445
+ ],
446
+ stateMutability: "view",
447
+ type: "function",
448
+ },
449
+ {
450
+ inputs: [
451
+ {
452
+ internalType: "address",
453
+ name: "newCrossDomainAdmin",
454
+ type: "address",
455
+ },
456
+ ],
457
+ name: "setCrossDomainAdmin",
458
+ outputs: [],
459
+ stateMutability: "nonpayable",
460
+ type: "function",
461
+ },
462
+ {
463
+ inputs: [
464
+ {
465
+ internalType: "uint256",
466
+ name: "time",
467
+ type: "uint256",
468
+ },
469
+ ],
470
+ name: "setCurrentTime",
471
+ outputs: [],
472
+ stateMutability: "nonpayable",
473
+ type: "function",
474
+ },
475
+ {
476
+ inputs: [
477
+ {
478
+ internalType: "address",
479
+ name: "l2Token",
480
+ type: "address",
481
+ },
482
+ {
483
+ internalType: "bool",
484
+ name: "depositsEnabled",
485
+ type: "bool",
486
+ },
487
+ ],
488
+ name: "setEnableDeposits",
489
+ outputs: [],
490
+ stateMutability: "nonpayable",
491
+ type: "function",
492
+ },
493
+ {
494
+ inputs: [
495
+ {
496
+ internalType: "uint64",
497
+ name: "newMinimumBridgingDelay",
498
+ type: "uint64",
499
+ },
500
+ ],
501
+ name: "setMinimumBridgingDelay",
502
+ outputs: [],
503
+ stateMutability: "nonpayable",
504
+ type: "function",
505
+ },
506
+ {
507
+ inputs: [],
508
+ name: "timerAddress",
509
+ outputs: [
510
+ {
511
+ internalType: "address",
512
+ name: "",
513
+ type: "address",
514
+ },
515
+ ],
516
+ stateMutability: "view",
517
+ type: "function",
518
+ },
519
+ {
520
+ inputs: [
521
+ {
522
+ internalType: "address",
523
+ name: "l1Token",
524
+ type: "address",
525
+ },
526
+ {
527
+ internalType: "address",
528
+ name: "l2Token",
529
+ type: "address",
530
+ },
531
+ {
532
+ internalType: "address",
533
+ name: "l1BridgePool",
534
+ type: "address",
535
+ },
536
+ ],
537
+ name: "whitelistToken",
538
+ outputs: [],
539
+ stateMutability: "nonpayable",
540
+ type: "function",
541
+ },
542
+ {
543
+ inputs: [
544
+ {
545
+ internalType: "address",
546
+ name: "",
547
+ type: "address",
548
+ },
549
+ ],
550
+ name: "whitelistedTokens",
551
+ outputs: [
552
+ {
553
+ internalType: "address",
554
+ name: "l1Token",
555
+ type: "address",
556
+ },
557
+ {
558
+ internalType: "address",
559
+ name: "l1BridgePool",
560
+ type: "address",
561
+ },
562
+ {
563
+ internalType: "uint64",
564
+ name: "lastBridgeTime",
565
+ type: "uint64",
566
+ },
567
+ {
568
+ internalType: "bool",
569
+ name: "depositsEnabled",
570
+ type: "bool",
571
+ },
572
+ ],
573
+ stateMutability: "view",
574
+ type: "function",
575
+ },
576
+ {
577
+ stateMutability: "payable",
578
+ type: "receive",
579
+ },
580
+ ];
581
+
582
+ const _bytecode =
583
+ "0x60806040523480156200001157600080fd5b50604051620029843803806200298483398101604081905262000034916200022b565b600080546001600160a81b0319166001600160a01b03831617600160a01b1790558686868684734200000000000000000000000000000000000007848484846200007e8462000115565b50600191909155600280546001600160a01b0319166001600160a01b0392831617905560058054600160401b600160e01b0319166801000000000000000094909216939093021790915550620000d48562000169565b5050600780546001600160a01b039788166001600160a01b031991821617909155600880549690971695169490941790945550620002c69650505050505050565b600580546001600160401b0319166001600160401b0383169081179091556040519081527f3f27163d4f4fe7a27a9d79683adf471b236f49fe9e8808717b3cc3c05a27611f9060200160405180910390a150565b6001600160a01b038116620001c45760405162461bcd60e51b815260206004820152601960248201527f4261642062726964676520726f75746572206164647265737300000000000000604482015260640160405180910390fd5b600680546001600160a01b0319166001600160a01b0383169081179091556040517fa9e8c42c9e7fca7f62755189a16b2f5314d43d8fb24e91ba54e6d65f9314e84990600090a250565b80516001600160a01b03811681146200022657600080fd5b919050565b600080600080600080600060e0888a0312156200024757600080fd5b62000252886200020e565b60208901519097506001600160401b03811681146200027057600080fd5b6040890151909650945062000288606089016200020e565b935062000298608089016200020e565b9250620002a860a089016200020e565b9150620002b860c089016200020e565b905092959891949750929550565b6126ae80620002d66000396000f3fe60806040526004361061014b5760003560e01c806363635fd9116100b4578063c2d9dca91161006e578063de7eba7811610056578063de7eba78146104b6578063e3229211146104d6578063fbb9fcf71461050357005b8063c2d9dca9146103c4578063daf9c210146103d757005b80639bfd2cdc1161009c5780639bfd2cdc14610354578063a1244c6714610374578063b2d6f4d41461038a57005b806363635fd91461030e5780639a8a05921461033e57005b80633cb747bf116101055780635285e058116100ed5780635285e05814610294578063563c7f60146102c15780635facafbd146102e157005b80633cb747bf1461023b5780634dedca281461027457005b806322f8e5661161013357806322f8e566146101d857806329cb924d146101f85780632ec35b311461021b57005b8063146bf4b1146101545780631c39c38d146101ab57005b3661015257005b005b34801561016057600080fd5b506002546101819073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156101b757600080fd5b506000546101819073ffffffffffffffffffffffffffffffffffffffff1681565b3480156101e457600080fd5b506101526101f3366004612323565b61056d565b34801561020457600080fd5b5061020d610616565b6040519081526020016101a2565b34801561022757600080fd5b50610152610236366004612359565b6106dd565b34801561024757600080fd5b506005546101819068010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b34801561028057600080fd5b5061015261028f366004612399565b610937565b3480156102a057600080fd5b506006546101819073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102cd57600080fd5b506101526102dc3660046123f2565b610b90565b3480156102ed57600080fd5b506008546101819073ffffffffffffffffffffffffffffffffffffffff1681565b34801561031a57600080fd5b5061032e61032936600461242b565b610de7565b60405190151581526020016101a2565b34801561034a57600080fd5b5061020d60015481565b34801561036057600080fd5b5061015261036f366004612448565b610e4a565b34801561038057600080fd5b5061020d60035481565b34801561039657600080fd5b506005546103ab9067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016101a2565b6101526103d236600461247f565b6112ba565b3480156103e357600080fd5b5061046d6103f236600461242b565b6004602052600090815260409020805460019091015473ffffffffffffffffffffffffffffffffffffffff9182169181169074010000000000000000000000000000000000000000810467ffffffffffffffff16907c0100000000000000000000000000000000000000000000000000000000900460ff1684565b6040805173ffffffffffffffffffffffffffffffffffffffff958616815294909316602085015267ffffffffffffffff90911691830191909152151560608201526080016101a2565b3480156104c257600080fd5b506101526104d136600461242b565b611864565b3480156104e257600080fd5b506007546101819073ffffffffffffffffffffffffffffffffffffffff1681565b34801561050f57600080fd5b5061032e61051e36600461242b565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090206001015474010000000000000000000000000000000000000000900467ffffffffffffffff16151590565b60005473ffffffffffffffffffffffffffffffffffffffff1661058f57600080fd5b6000546040517f22f8e5660000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff909116906322f8e56690602401600060405180830381600087803b1580156105fb57600080fd5b505af115801561060f573d6000803e3d6000fd5b5050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff16156106d85760008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166329cb924d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561069b57600080fd5b505afa1580156106af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d391906124f0565b905090565b504290565b60065473ffffffffffffffffffffffffffffffffffffffff1661072260055473ffffffffffffffffffffffffffffffffffffffff680100000000000000009091041690565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4f564d5f58434841494e3a206d657373656e67657220636f6e7472616374207560448201527f6e61757468656e7469636174656400000000000000000000000000000000000060648201526084015b60405180910390fd5b60055473ffffffffffffffffffffffffffffffffffffffff808316916801000000000000000090041673ffffffffffffffffffffffffffffffffffffffff16636e296e456040518163ffffffff1660e01b815260040160206040518083038186803b15801561084f57600080fd5b505afa158015610863573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108879190612509565b73ffffffffffffffffffffffffffffffffffffffff161461092a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4f564d5f58434841494e3a2077726f6e672073656e646572206f662063726f7360448201527f732d646f6d61696e206d6573736167650000000000000000000000000000000060648201526084016107d8565b61093382611ab5565b5050565b60065473ffffffffffffffffffffffffffffffffffffffff1661097c60055473ffffffffffffffffffffffffffffffffffffffff680100000000000000009091041690565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a36576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4f564d5f58434841494e3a206d657373656e67657220636f6e7472616374207560448201527f6e61757468656e7469636174656400000000000000000000000000000000000060648201526084016107d8565b60055473ffffffffffffffffffffffffffffffffffffffff808316916801000000000000000090041673ffffffffffffffffffffffffffffffffffffffff16636e296e456040518163ffffffff1660e01b815260040160206040518083038186803b158015610aa457600080fd5b505afa158015610ab8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610adc9190612509565b73ffffffffffffffffffffffffffffffffffffffff1614610b7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4f564d5f58434841494e3a2077726f6e672073656e646572206f662063726f7360448201527f732d646f6d61696e206d6573736167650000000000000000000000000000000060648201526084016107d8565b610b8a848484611b22565b50505050565b60065473ffffffffffffffffffffffffffffffffffffffff16610bd560055473ffffffffffffffffffffffffffffffffffffffff680100000000000000009091041690565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4f564d5f58434841494e3a206d657373656e67657220636f6e7472616374207560448201527f6e61757468656e7469636174656400000000000000000000000000000000000060648201526084016107d8565b60055473ffffffffffffffffffffffffffffffffffffffff808316916801000000000000000090041673ffffffffffffffffffffffffffffffffffffffff16636e296e456040518163ffffffff1660e01b815260040160206040518083038186803b158015610cfd57600080fd5b505afa158015610d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d359190612509565b73ffffffffffffffffffffffffffffffffffffffff1614610dd8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4f564d5f58434841494e3a2077726f6e672073656e646572206f662063726f7360448201527f732d646f6d61696e206d6573736167650000000000000000000000000000000060648201526084016107d8565b610de28383611cfa565b505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602052604081206001015474010000000000000000000000000000000000000000900467ffffffffffffffff1615158015610e445750610e4482611dad565b92915050565b610e52611e24565b610e7f600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381600087803b158015610ee957600080fd5b505af1158015610efd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2191906124f0565b905060008111610f8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f63616e277420627269646765207a65726f20746f6b656e73000000000000000060448201526064016107d8565b610f9683610de7565b611022576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f6e6f6e2d77686974656c697374656420746f6b656e206f72206c61737420627260448201527f6964676520746f6f20726563656e74000000000000000000000000000000000060648201526084016107d8565b61102a610616565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260046020526040902060018101805467ffffffffffffffff9490941674010000000000000000000000000000000000000000027fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff8516811790915560025491549083169383169390931792821691161415611160576040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff851690632e1a7d4d90602401600060405180830381600087803b15801561112457600080fd5b505af1158015611138573d6000803e3d6000fd5b505060075460085473ffffffffffffffffffffffffffffffffffffffff918216975016925050505b6040517fa3a7954800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8086166004830152821660248201526044810183905263ffffffff8416606482015260a06084820152600060a48201527342000000000000000000000000000000000000109063a3a795489060c401600060405180830381600087803b15801561120457600080fd5b505af1158015611218573d6000803e3d6000fd5b50506040805185815263ffffffff8716602082015233935073ffffffffffffffffffffffffffffffffffffffff881692507f95b5ec953bd38fbaa6f859725352bf73202c155a6809e5622c95ceef331eac6c910160405180910390a35050610933600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b73ffffffffffffffffffffffffffffffffffffffff851660009081526004602052604090206001015485907c0100000000000000000000000000000000000000000000000000000000900460ff1661136e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f436f6e74726163742069732064697361626c656400000000000000000000000060448201526064016107d8565b611376611e24565b6113a3600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055565b73ffffffffffffffffffffffffffffffffffffffff861660009081526004602052604090206001015474010000000000000000000000000000000000000000900467ffffffffffffffff16611454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f6465706f73697420746f6b656e206e6f742077686974656c697374656400000060448201526064016107d8565b6703782dace9d900008467ffffffffffffffff1611156114d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f736c6f7752656c6179466565506374206d757374206265203c3d20323525000060448201526064016107d8565b6703782dace9d900008367ffffffffffffffff161115611572576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f696e7374616e7452656c6179466565506374206d757374206265203c3d20323560448201527f250000000000000000000000000000000000000000000000000000000000000060648201526084016107d8565b61157e61025883612555565b67ffffffffffffffff16611590610616565b101580156115ba57506115a58261025861257e565b67ffffffffffffffff166115b7610616565b11155b611620576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6465706f736974206d696e656420616674657220646561646c696e650000000060448201526064016107d8565b60025473ffffffffffffffffffffffffffffffffffffffff8781166000908152600460205260409020548116911614801561165b5750600034115b1561172f578434146116c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6d73672e76616c7565206d757374206d6174636820616d6f756e74000000000060448201526064016107d8565b8573ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561171157600080fd5b505af1158015611725573d6000803e3d6000fd5b5050505050611751565b61175173ffffffffffffffffffffffffffffffffffffffff8716333088611eaa565b60015460035473ffffffffffffffffffffffffffffffffffffffff888116600081815260046020908152604091829020548251968752908601949094528b8316908501523360608501529116608083015260a082015260c0810186905267ffffffffffffffff80861660e083015280851661010083015283166101208201527fab77617f2b9bdbb101fc328e585470fb3c845c92b25c4b080cb7b66f7163cf72906101400160405180910390a160016003600082825461181191906125aa565b9091555061185b9050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b50505050505050565b60065473ffffffffffffffffffffffffffffffffffffffff166118a960055473ffffffffffffffffffffffffffffffffffffffff680100000000000000009091041690565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4f564d5f58434841494e3a206d657373656e67657220636f6e7472616374207560448201527f6e61757468656e7469636174656400000000000000000000000000000000000060648201526084016107d8565b60055473ffffffffffffffffffffffffffffffffffffffff808316916801000000000000000090041673ffffffffffffffffffffffffffffffffffffffff16636e296e456040518163ffffffff1660e01b815260040160206040518083038186803b1580156119d157600080fd5b505afa1580156119e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a099190612509565b73ffffffffffffffffffffffffffffffffffffffff1614611aac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4f564d5f58434841494e3a2077726f6e672073656e646572206f662063726f7360448201527f732d646f6d61696e206d6573736167650000000000000000000000000000000060648201526084016107d8565b61093382611f3f565b600580547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff83169081179091556040519081527f3f27163d4f4fe7a27a9d79683adf471b236f49fe9e8808717b3cc3c05a27611f9060200160405180910390a150565b60405180608001604052808473ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff168152602001611b6d610616565b67ffffffffffffffff90811682526001602092830181905273ffffffffffffffffffffffffffffffffffffffff868116600090815260048552604090819020865181547fffffffffffffffffffffffff0000000000000000000000000000000000000000169084161781559486015194909201805492860151606090960151949091167fffffffff0000000000000000000000000000000000000000000000000000000090921691909117740100000000000000000000000000000000000000009490921693909302177fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c0100000000000000000000000000000000000000000000000000000000911515919091021790557f93f23add56b90352ea2ef3bc2123262792af300dc6060c99f6ee06a7026863bd8383611cac610616565b6040805173ffffffffffffffffffffffffffffffffffffffff9485168152928416602084015267ffffffffffffffff90911690820152908316606082015260800160405180910390a1505050565b73ffffffffffffffffffffffffffffffffffffffff821660008181526004602090815260409182902060010180547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c0100000000000000000000000000000000000000000000000000000000861515908102919091179091558251938452908301527ff84482204ff927822d3068d71e16e14b51cb1b2adafa7d6e11edc1b8dfd8c0db910160405180910390a15050565b60055473ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120600101549091611e0b9167ffffffffffffffff91821691740100000000000000000000000000000000000000009091041661257e565b67ffffffffffffffff16611e1d610616565b1192915050565b60005474010000000000000000000000000000000000000000900460ff16611ea8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107d8565b565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610b8a90859061202b565b73ffffffffffffffffffffffffffffffffffffffff8116611fbc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4261642062726964676520726f7574657220616464726573730000000000000060448201526064016107d8565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517fa9e8c42c9e7fca7f62755189a16b2f5314d43d8fb24e91ba54e6d65f9314e84990600090a250565b600061208d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166121379092919063ffffffff16565b805190915015610de257808060200190518101906120ab91906125c2565b610de2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016107d8565b60606121468484600085612150565b90505b9392505050565b6060824710156121e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016107d8565b843b61224a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107d8565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612273919061260b565b60006040518083038185875af1925050503d80600081146122b0576040519150601f19603f3d011682016040523d82523d6000602084013e6122b5565b606091505b50915091506122c58282866122d0565b979650505050505050565b606083156122df575081612149565b8251156122ef5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d89190612627565b60006020828403121561233557600080fd5b5035919050565b803567ffffffffffffffff8116811461235457600080fd5b919050565b60006020828403121561236b57600080fd5b6121498261233c565b73ffffffffffffffffffffffffffffffffffffffff8116811461239657600080fd5b50565b6000806000606084860312156123ae57600080fd5b83356123b981612374565b925060208401356123c981612374565b915060408401356123d981612374565b809150509250925092565b801515811461239657600080fd5b6000806040838503121561240557600080fd5b823561241081612374565b91506020830135612420816123e4565b809150509250929050565b60006020828403121561243d57600080fd5b813561214981612374565b6000806040838503121561245b57600080fd5b823561246681612374565b9150602083013563ffffffff8116811461242057600080fd5b60008060008060008060c0878903121561249857600080fd5b86356124a381612374565b955060208701356124b381612374565b9450604087013593506124c86060880161233c565b92506124d66080880161233c565b91506124e460a0880161233c565b90509295509295509295565b60006020828403121561250257600080fd5b5051919050565b60006020828403121561251b57600080fd5b815161214981612374565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600067ffffffffffffffff8381169083168181101561257657612576612526565b039392505050565b600067ffffffffffffffff8083168185168083038211156125a1576125a1612526565b01949350505050565b600082198211156125bd576125bd612526565b500190565b6000602082840312156125d457600080fd5b8151612149816123e4565b60005b838110156125fa5781810151838201526020016125e2565b83811115610b8a5750506000910152565b6000825161261d8184602087016125df565b9190910192915050565b60208152600082518060208401526126468160408501602087016125df565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220bff8579e0703fae79661b0b44218007636bde40f2bd24c1c342936353367f5e064736f6c63430008090033";
584
+
585
+ type OVMOETHBridgeDepositBoxConstructorParams =
586
+ | [signer?: Signer]
587
+ | ConstructorParameters<typeof ContractFactory>;
588
+
589
+ const isSuperArgs = (
590
+ xs: OVMOETHBridgeDepositBoxConstructorParams
591
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
592
+
593
+ export class OVMOETHBridgeDepositBox__factory extends ContractFactory {
594
+ constructor(...args: OVMOETHBridgeDepositBoxConstructorParams) {
595
+ if (isSuperArgs(args)) {
596
+ super(...args);
597
+ } else {
598
+ super(_abi, _bytecode, args[0]);
599
+ }
600
+ }
601
+
602
+ deploy(
603
+ _crossDomainAdmin: string,
604
+ _minimumBridgingDelay: BigNumberish,
605
+ _chainId: BigNumberish,
606
+ _l1Weth: string,
607
+ _l2Eth: string,
608
+ _l1EthWrapper: string,
609
+ timerAddress: string,
610
+ overrides?: Overrides & { from?: string | Promise<string> }
611
+ ): Promise<OVMOETHBridgeDepositBox> {
612
+ return super.deploy(
613
+ _crossDomainAdmin,
614
+ _minimumBridgingDelay,
615
+ _chainId,
616
+ _l1Weth,
617
+ _l2Eth,
618
+ _l1EthWrapper,
619
+ timerAddress,
620
+ overrides || {}
621
+ ) as Promise<OVMOETHBridgeDepositBox>;
622
+ }
623
+ getDeployTransaction(
624
+ _crossDomainAdmin: string,
625
+ _minimumBridgingDelay: BigNumberish,
626
+ _chainId: BigNumberish,
627
+ _l1Weth: string,
628
+ _l2Eth: string,
629
+ _l1EthWrapper: string,
630
+ timerAddress: string,
631
+ overrides?: Overrides & { from?: string | Promise<string> }
632
+ ): TransactionRequest {
633
+ return super.getDeployTransaction(
634
+ _crossDomainAdmin,
635
+ _minimumBridgingDelay,
636
+ _chainId,
637
+ _l1Weth,
638
+ _l2Eth,
639
+ _l1EthWrapper,
640
+ timerAddress,
641
+ overrides || {}
642
+ );
643
+ }
644
+ attach(address: string): OVMOETHBridgeDepositBox {
645
+ return super.attach(address) as OVMOETHBridgeDepositBox;
646
+ }
647
+ connect(signer: Signer): OVMOETHBridgeDepositBox__factory {
648
+ return super.connect(signer) as OVMOETHBridgeDepositBox__factory;
649
+ }
650
+ static readonly bytecode = _bytecode;
651
+ static readonly abi = _abi;
652
+ static createInterface(): OVMOETHBridgeDepositBoxInterface {
653
+ return new utils.Interface(_abi) as OVMOETHBridgeDepositBoxInterface;
654
+ }
655
+ static connect(
656
+ address: string,
657
+ signerOrProvider: Signer | Provider
658
+ ): OVMOETHBridgeDepositBox {
659
+ return new Contract(
660
+ address,
661
+ _abi,
662
+ signerOrProvider
663
+ ) as OVMOETHBridgeDepositBox;
664
+ }
665
+ }