@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,649 @@
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
+ AVMBridgeDepositBox,
15
+ AVMBridgeDepositBoxInterface,
16
+ } from "../AVMBridgeDepositBox";
17
+
18
+ const _abi = [
19
+ {
20
+ inputs: [
21
+ {
22
+ internalType: "address",
23
+ name: "_l2GatewayRouter",
24
+ type: "address",
25
+ },
26
+ {
27
+ internalType: "address",
28
+ name: "_crossDomainAdmin",
29
+ type: "address",
30
+ },
31
+ {
32
+ internalType: "uint64",
33
+ name: "_minimumBridgingDelay",
34
+ type: "uint64",
35
+ },
36
+ {
37
+ internalType: "uint256",
38
+ name: "_chainId",
39
+ type: "uint256",
40
+ },
41
+ {
42
+ internalType: "address",
43
+ name: "_l1Weth",
44
+ type: "address",
45
+ },
46
+ {
47
+ internalType: "address",
48
+ name: "timerAddress",
49
+ type: "address",
50
+ },
51
+ ],
52
+ stateMutability: "nonpayable",
53
+ type: "constructor",
54
+ },
55
+ {
56
+ anonymous: false,
57
+ inputs: [
58
+ {
59
+ indexed: false,
60
+ internalType: "address",
61
+ name: "l2Token",
62
+ type: "address",
63
+ },
64
+ {
65
+ indexed: false,
66
+ internalType: "bool",
67
+ name: "depositsEnabled",
68
+ type: "bool",
69
+ },
70
+ ],
71
+ name: "DepositsEnabled",
72
+ type: "event",
73
+ },
74
+ {
75
+ anonymous: false,
76
+ inputs: [
77
+ {
78
+ indexed: false,
79
+ internalType: "uint256",
80
+ name: "chainId",
81
+ type: "uint256",
82
+ },
83
+ {
84
+ indexed: false,
85
+ internalType: "uint256",
86
+ name: "depositId",
87
+ type: "uint256",
88
+ },
89
+ {
90
+ indexed: false,
91
+ internalType: "address",
92
+ name: "l1Recipient",
93
+ type: "address",
94
+ },
95
+ {
96
+ indexed: false,
97
+ internalType: "address",
98
+ name: "l2Sender",
99
+ type: "address",
100
+ },
101
+ {
102
+ indexed: false,
103
+ internalType: "address",
104
+ name: "l1Token",
105
+ type: "address",
106
+ },
107
+ {
108
+ indexed: false,
109
+ internalType: "address",
110
+ name: "l2Token",
111
+ type: "address",
112
+ },
113
+ {
114
+ indexed: false,
115
+ internalType: "uint256",
116
+ name: "amount",
117
+ type: "uint256",
118
+ },
119
+ {
120
+ indexed: false,
121
+ internalType: "uint64",
122
+ name: "slowRelayFeePct",
123
+ type: "uint64",
124
+ },
125
+ {
126
+ indexed: false,
127
+ internalType: "uint64",
128
+ name: "instantRelayFeePct",
129
+ type: "uint64",
130
+ },
131
+ {
132
+ indexed: false,
133
+ internalType: "uint64",
134
+ name: "quoteTimestamp",
135
+ type: "uint64",
136
+ },
137
+ ],
138
+ name: "FundsDeposited",
139
+ type: "event",
140
+ },
141
+ {
142
+ anonymous: false,
143
+ inputs: [
144
+ {
145
+ indexed: true,
146
+ internalType: "address",
147
+ name: "from",
148
+ type: "address",
149
+ },
150
+ {
151
+ indexed: true,
152
+ internalType: "address",
153
+ name: "to",
154
+ type: "address",
155
+ },
156
+ {
157
+ indexed: true,
158
+ internalType: "uint256",
159
+ name: "id",
160
+ type: "uint256",
161
+ },
162
+ {
163
+ indexed: false,
164
+ internalType: "bytes",
165
+ name: "data",
166
+ type: "bytes",
167
+ },
168
+ ],
169
+ name: "SentCrossDomainMessage",
170
+ type: "event",
171
+ },
172
+ {
173
+ anonymous: false,
174
+ inputs: [
175
+ {
176
+ indexed: false,
177
+ internalType: "uint64",
178
+ name: "newMinimumBridgingDelay",
179
+ type: "uint64",
180
+ },
181
+ ],
182
+ name: "SetMinimumBridgingDelay",
183
+ type: "event",
184
+ },
185
+ {
186
+ anonymous: false,
187
+ inputs: [
188
+ {
189
+ indexed: true,
190
+ internalType: "address",
191
+ name: "newAdmin",
192
+ type: "address",
193
+ },
194
+ ],
195
+ name: "SetXDomainAdmin",
196
+ type: "event",
197
+ },
198
+ {
199
+ anonymous: false,
200
+ inputs: [
201
+ {
202
+ indexed: true,
203
+ internalType: "address",
204
+ name: "l2Token",
205
+ type: "address",
206
+ },
207
+ {
208
+ indexed: false,
209
+ internalType: "uint256",
210
+ name: "numberOfTokensBridged",
211
+ type: "uint256",
212
+ },
213
+ {
214
+ indexed: false,
215
+ internalType: "uint256",
216
+ name: "l1Gas",
217
+ type: "uint256",
218
+ },
219
+ {
220
+ indexed: true,
221
+ internalType: "address",
222
+ name: "caller",
223
+ type: "address",
224
+ },
225
+ ],
226
+ name: "TokensBridged",
227
+ type: "event",
228
+ },
229
+ {
230
+ anonymous: false,
231
+ inputs: [
232
+ {
233
+ indexed: false,
234
+ internalType: "address",
235
+ name: "l1Token",
236
+ type: "address",
237
+ },
238
+ {
239
+ indexed: false,
240
+ internalType: "address",
241
+ name: "l2Token",
242
+ type: "address",
243
+ },
244
+ {
245
+ indexed: false,
246
+ internalType: "uint64",
247
+ name: "lastBridgeTime",
248
+ type: "uint64",
249
+ },
250
+ {
251
+ indexed: false,
252
+ internalType: "address",
253
+ name: "bridgePool",
254
+ type: "address",
255
+ },
256
+ ],
257
+ name: "WhitelistToken",
258
+ type: "event",
259
+ },
260
+ {
261
+ inputs: [
262
+ {
263
+ internalType: "address",
264
+ name: "l2Token",
265
+ type: "address",
266
+ },
267
+ {
268
+ internalType: "uint32",
269
+ name: "l1Gas",
270
+ type: "uint32",
271
+ },
272
+ ],
273
+ name: "bridgeTokens",
274
+ outputs: [],
275
+ stateMutability: "nonpayable",
276
+ type: "function",
277
+ },
278
+ {
279
+ inputs: [
280
+ {
281
+ internalType: "address",
282
+ name: "l2Token",
283
+ type: "address",
284
+ },
285
+ ],
286
+ name: "canBridge",
287
+ outputs: [
288
+ {
289
+ internalType: "bool",
290
+ name: "",
291
+ type: "bool",
292
+ },
293
+ ],
294
+ stateMutability: "view",
295
+ type: "function",
296
+ },
297
+ {
298
+ inputs: [],
299
+ name: "chainId",
300
+ outputs: [
301
+ {
302
+ internalType: "uint256",
303
+ name: "",
304
+ type: "uint256",
305
+ },
306
+ ],
307
+ stateMutability: "view",
308
+ type: "function",
309
+ },
310
+ {
311
+ inputs: [],
312
+ name: "crossDomainAdmin",
313
+ outputs: [
314
+ {
315
+ internalType: "address",
316
+ name: "",
317
+ type: "address",
318
+ },
319
+ ],
320
+ stateMutability: "view",
321
+ type: "function",
322
+ },
323
+ {
324
+ inputs: [
325
+ {
326
+ internalType: "address",
327
+ name: "l1Recipient",
328
+ type: "address",
329
+ },
330
+ {
331
+ internalType: "address",
332
+ name: "l2Token",
333
+ type: "address",
334
+ },
335
+ {
336
+ internalType: "uint256",
337
+ name: "amount",
338
+ type: "uint256",
339
+ },
340
+ {
341
+ internalType: "uint64",
342
+ name: "slowRelayFeePct",
343
+ type: "uint64",
344
+ },
345
+ {
346
+ internalType: "uint64",
347
+ name: "instantRelayFeePct",
348
+ type: "uint64",
349
+ },
350
+ {
351
+ internalType: "uint64",
352
+ name: "quoteTimestamp",
353
+ type: "uint64",
354
+ },
355
+ ],
356
+ name: "deposit",
357
+ outputs: [],
358
+ stateMutability: "payable",
359
+ type: "function",
360
+ },
361
+ {
362
+ inputs: [],
363
+ name: "getCurrentTime",
364
+ outputs: [
365
+ {
366
+ internalType: "uint256",
367
+ name: "",
368
+ type: "uint256",
369
+ },
370
+ ],
371
+ stateMutability: "view",
372
+ type: "function",
373
+ },
374
+ {
375
+ inputs: [
376
+ {
377
+ internalType: "address",
378
+ name: "l2Token",
379
+ type: "address",
380
+ },
381
+ ],
382
+ name: "isWhitelistToken",
383
+ outputs: [
384
+ {
385
+ internalType: "bool",
386
+ name: "",
387
+ type: "bool",
388
+ },
389
+ ],
390
+ stateMutability: "view",
391
+ type: "function",
392
+ },
393
+ {
394
+ inputs: [],
395
+ name: "l1Weth",
396
+ outputs: [
397
+ {
398
+ internalType: "address",
399
+ name: "",
400
+ type: "address",
401
+ },
402
+ ],
403
+ stateMutability: "view",
404
+ type: "function",
405
+ },
406
+ {
407
+ inputs: [],
408
+ name: "l2GatewayRouter",
409
+ outputs: [
410
+ {
411
+ internalType: "address",
412
+ name: "",
413
+ type: "address",
414
+ },
415
+ ],
416
+ stateMutability: "view",
417
+ type: "function",
418
+ },
419
+ {
420
+ inputs: [],
421
+ name: "minimumBridgingDelay",
422
+ outputs: [
423
+ {
424
+ internalType: "uint64",
425
+ name: "",
426
+ type: "uint64",
427
+ },
428
+ ],
429
+ stateMutability: "view",
430
+ type: "function",
431
+ },
432
+ {
433
+ inputs: [],
434
+ name: "numberOfDeposits",
435
+ outputs: [
436
+ {
437
+ internalType: "uint256",
438
+ name: "",
439
+ type: "uint256",
440
+ },
441
+ ],
442
+ stateMutability: "view",
443
+ type: "function",
444
+ },
445
+ {
446
+ inputs: [
447
+ {
448
+ internalType: "address",
449
+ name: "newCrossDomainAdmin",
450
+ type: "address",
451
+ },
452
+ ],
453
+ name: "setCrossDomainAdmin",
454
+ outputs: [],
455
+ stateMutability: "nonpayable",
456
+ type: "function",
457
+ },
458
+ {
459
+ inputs: [
460
+ {
461
+ internalType: "uint256",
462
+ name: "time",
463
+ type: "uint256",
464
+ },
465
+ ],
466
+ name: "setCurrentTime",
467
+ outputs: [],
468
+ stateMutability: "nonpayable",
469
+ type: "function",
470
+ },
471
+ {
472
+ inputs: [
473
+ {
474
+ internalType: "address",
475
+ name: "l2Token",
476
+ type: "address",
477
+ },
478
+ {
479
+ internalType: "bool",
480
+ name: "depositsEnabled",
481
+ type: "bool",
482
+ },
483
+ ],
484
+ name: "setEnableDeposits",
485
+ outputs: [],
486
+ stateMutability: "nonpayable",
487
+ type: "function",
488
+ },
489
+ {
490
+ inputs: [
491
+ {
492
+ internalType: "uint64",
493
+ name: "newMinimumBridgingDelay",
494
+ type: "uint64",
495
+ },
496
+ ],
497
+ name: "setMinimumBridgingDelay",
498
+ outputs: [],
499
+ stateMutability: "nonpayable",
500
+ type: "function",
501
+ },
502
+ {
503
+ inputs: [],
504
+ name: "timerAddress",
505
+ outputs: [
506
+ {
507
+ internalType: "address",
508
+ name: "",
509
+ type: "address",
510
+ },
511
+ ],
512
+ stateMutability: "view",
513
+ type: "function",
514
+ },
515
+ {
516
+ inputs: [
517
+ {
518
+ internalType: "address",
519
+ name: "l1Token",
520
+ type: "address",
521
+ },
522
+ {
523
+ internalType: "address",
524
+ name: "l2Token",
525
+ type: "address",
526
+ },
527
+ {
528
+ internalType: "address",
529
+ name: "l1BridgePool",
530
+ type: "address",
531
+ },
532
+ ],
533
+ name: "whitelistToken",
534
+ outputs: [],
535
+ stateMutability: "nonpayable",
536
+ type: "function",
537
+ },
538
+ {
539
+ inputs: [
540
+ {
541
+ internalType: "address",
542
+ name: "",
543
+ type: "address",
544
+ },
545
+ ],
546
+ name: "whitelistedTokens",
547
+ outputs: [
548
+ {
549
+ internalType: "address",
550
+ name: "l1Token",
551
+ type: "address",
552
+ },
553
+ {
554
+ internalType: "address",
555
+ name: "l1BridgePool",
556
+ type: "address",
557
+ },
558
+ {
559
+ internalType: "uint64",
560
+ name: "lastBridgeTime",
561
+ type: "uint64",
562
+ },
563
+ {
564
+ internalType: "bool",
565
+ name: "depositsEnabled",
566
+ type: "bool",
567
+ },
568
+ ],
569
+ stateMutability: "view",
570
+ type: "function",
571
+ },
572
+ ];
573
+
574
+ const _bytecode =
575
+ "0x60806040523480156200001157600080fd5b5060405162002302380380620023028339810160408190526200003491620001ce565b600080546001600160a81b0319166001600160a01b03831617600160a01b179055838383836200006484620000b2565b50600191909155600280546001600160a01b03199081166001600160a01b03938416179091556006805490911691891691909117905550620000a68562000106565b50505050505062000255565b600580546001600160401b0319166001600160401b0383169081179091556040519081527f3f27163d4f4fe7a27a9d79683adf471b236f49fe9e8808717b3cc3c05a27611f9060200160405180910390a150565b6001600160a01b038116620001515760405162461bcd60e51b815260206004820152600d60248201526c456d707479206164647265737360981b604482015260640160405180910390fd5b60058054600160401b600160e01b031916680100000000000000006001600160a01b0384811682029290921792839055604051920416907fa9e8c42c9e7fca7f62755189a16b2f5314d43d8fb24e91ba54e6d65f9314e84990600090a250565b80516001600160a01b0381168114620001c957600080fd5b919050565b60008060008060008060c08789031215620001e857600080fd5b620001f387620001b1565b95506200020360208801620001b1565b60408801519095506001600160401b03811681146200022157600080fd5b606088015190945092506200023960808801620001b1565b91506200024960a08801620001b1565b90509295509295509295565b61209d80620002656000396000f3fe6080604052600436106101295760003560e01c80639a8a0592116100a5578063c2d9dca911610074578063daf9c21011610059578063daf9c21014610386578063de7eba7814610465578063fbb9fcf71461048557600080fd5b8063c2d9dca914610346578063c83568591461035957600080fd5b80639a8a0592146102c05780639bfd2cdc146102d6578063a1244c67146102f6578063b2d6f4d41461030c57600080fd5b80632ec35b31116100fc5780635285e058116100e15780635285e05814610237578063563c7f601461027057806363635fd91461029057600080fd5b80632ec35b31146101f75780634dedca281461021757600080fd5b8063146bf4b11461012e5780631c39c38d1461018557806322f8e566146101b257806329cb924d146101d4575b600080fd5b34801561013a57600080fd5b5060025461015b9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561019157600080fd5b5060005461015b9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156101be57600080fd5b506101d26101cd366004611c21565b6104ef565b005b3480156101e057600080fd5b506101e9610598565b60405190815260200161017c565b34801561020357600080fd5b506101d2610212366004611c57565b61065f565b34801561022357600080fd5b506101d2610232366004611c96565b610733565b34801561024357600080fd5b5060055461015b9068010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b34801561027c57600080fd5b506101d261028b366004611cea565b610806565b34801561029c57600080fd5b506102b06102ab366004611d21565b6108d7565b604051901515815260200161017c565b3480156102cc57600080fd5b506101e960015481565b3480156102e257600080fd5b506101d26102f1366004611d3c565b61093a565b34801561030257600080fd5b506101e960035481565b34801561031857600080fd5b5060055461032d9067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161017c565b6101d2610354366004611d71565b610d0b565b34801561036557600080fd5b5060065461015b9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561039257600080fd5b5061041c6103a1366004611d21565b6004602052600090815260409020805460019091015473ffffffffffffffffffffffffffffffffffffffff9182169181169074010000000000000000000000000000000000000000810467ffffffffffffffff16907c0100000000000000000000000000000000000000000000000000000000900460ff1684565b6040805173ffffffffffffffffffffffffffffffffffffffff958616815294909316602085015267ffffffffffffffff909116918301919091521515606082015260800161017c565b34801561047157600080fd5b506101d2610480366004611d21565b6112b5565b34801561049157600080fd5b506102b06104a0366004611d21565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090206001015474010000000000000000000000000000000000000000900467ffffffffffffffff16151590565b60005473ffffffffffffffffffffffffffffffffffffffff1661051157600080fd5b6000546040517f22f8e5660000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff909116906322f8e56690602401600060405180830381600087803b15801561057d57600080fd5b505af1158015610591573d6000803e3d6000fd5b5050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff161561065a5760008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166329cb924d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561061d57600080fd5b505afa158015610631573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106559190611dde565b905090565b504290565b60055468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1661068d81611380565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4f4e4c595f434f554e544552504152545f47415445574159000000000000000060448201526064015b60405180910390fd5b61072f826113a0565b5050565b60055468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1661076181611380565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4f4e4c595f434f554e544552504152545f474154455741590000000000000000604482015260640161071d565b61080084848461140d565b50505050565b60055468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1661083481611380565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4f4e4c595f434f554e544552504152545f474154455741590000000000000000604482015260640161071d565b6108d283836115e5565b505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602052604081206001015474010000000000000000000000000000000000000000900467ffffffffffffffff1615158015610934575061093482611698565b92915050565b61094261170f565b61096f600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381600087803b1580156109d957600080fd5b505af11580156109ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a119190611dde565b905060008111610a7d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f63616e277420627269646765207a65726f20746f6b656e730000000000000000604482015260640161071d565b610a86836108d7565b610b12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f6e6f6e2d77686974656c697374656420746f6b656e206f72206c61737420627260448201527f6964676520746f6f20726563656e740000000000000000000000000000000000606482015260840161071d565b610b1a610598565b73ffffffffffffffffffffffffffffffffffffffff848116600090815260046020819052604080832060018101805467ffffffffffffffff9790971674010000000000000000000000000000000000000000027fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff88168117909155600654915492517f7b3a3c8b00000000000000000000000000000000000000000000000000000000815292861693830193909352918416948416949094176024850152604484018590526080606485015260848401919091521690637b3a3c8b9060a401600060405180830381600087803b158015610c1357600080fd5b505af1158015610c27573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610c6d9190810190611e52565b506040805182815263ffffffff84166020820152339173ffffffffffffffffffffffffffffffffffffffff8616917f95b5ec953bd38fbaa6f859725352bf73202c155a6809e5622c95ceef331eac6c910160405180910390a35061072f600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b73ffffffffffffffffffffffffffffffffffffffff851660009081526004602052604090206001015485907c0100000000000000000000000000000000000000000000000000000000900460ff16610dbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f436f6e74726163742069732064697361626c6564000000000000000000000000604482015260640161071d565b610dc761170f565b610df4600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055565b73ffffffffffffffffffffffffffffffffffffffff861660009081526004602052604090206001015474010000000000000000000000000000000000000000900467ffffffffffffffff16610ea5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f6465706f73697420746f6b656e206e6f742077686974656c6973746564000000604482015260640161071d565b6703782dace9d900008467ffffffffffffffff161115610f21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f736c6f7752656c6179466565506374206d757374206265203c3d203235250000604482015260640161071d565b6703782dace9d900008367ffffffffffffffff161115610fc3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f696e7374616e7452656c6179466565506374206d757374206265203c3d20323560448201527f2500000000000000000000000000000000000000000000000000000000000000606482015260840161071d565b610fcf61025883611f41565b67ffffffffffffffff16610fe1610598565b1015801561100b5750610ff682610258611f6a565b67ffffffffffffffff16611008610598565b11155b611071576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6465706f736974206d696e656420616674657220646561646c696e6500000000604482015260640161071d565b60025473ffffffffffffffffffffffffffffffffffffffff878116600090815260046020526040902054811691161480156110ac5750600034115b156111805784341461111a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6d73672e76616c7565206d757374206d6174636820616d6f756e740000000000604482015260640161071d565b8573ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561116257600080fd5b505af1158015611176573d6000803e3d6000fd5b50505050506111a2565b6111a273ffffffffffffffffffffffffffffffffffffffff8716333088611795565b60015460035473ffffffffffffffffffffffffffffffffffffffff888116600081815260046020908152604091829020548251968752908601949094528b8316908501523360608501529116608083015260a082015260c0810186905267ffffffffffffffff80861660e083015280851661010083015283166101208201527fab77617f2b9bdbb101fc328e585470fb3c845c92b25c4b080cb7b66f7163cf72906101400160405180910390a16001600360008282546112629190611f96565b909155506112ac9050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b50505050505050565b60055468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff166112e381611380565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611377576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4f4e4c595f434f554e544552504152545f474154455741590000000000000000604482015260640161071d565b61072f8261182a565b600061093473111100000000000000000000000000000000111183611fae565b600580547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff83169081179091556040519081527f3f27163d4f4fe7a27a9d79683adf471b236f49fe9e8808717b3cc3c05a27611f9060200160405180910390a150565b60405180608001604052808473ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff168152602001611458610598565b67ffffffffffffffff90811682526001602092830181905273ffffffffffffffffffffffffffffffffffffffff868116600090815260048552604090819020865181547fffffffffffffffffffffffff0000000000000000000000000000000000000000169084161781559486015194909201805492860151606090960151949091167fffffffff0000000000000000000000000000000000000000000000000000000090921691909117740100000000000000000000000000000000000000009490921693909302177fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c0100000000000000000000000000000000000000000000000000000000911515919091021790557f93f23add56b90352ea2ef3bc2123262792af300dc6060c99f6ee06a7026863bd8383611597610598565b6040805173ffffffffffffffffffffffffffffffffffffffff9485168152928416602084015267ffffffffffffffff90911690820152908316606082015260800160405180910390a1505050565b73ffffffffffffffffffffffffffffffffffffffff821660008181526004602090815260409182902060010180547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c0100000000000000000000000000000000000000000000000000000000861515908102919091179091558251938452908301527ff84482204ff927822d3068d71e16e14b51cb1b2adafa7d6e11edc1b8dfd8c0db910160405180910390a15050565b60055473ffffffffffffffffffffffffffffffffffffffff821660009081526004602052604081206001015490916116f69167ffffffffffffffff918216917401000000000000000000000000000000000000000090910416611f6a565b67ffffffffffffffff16611708610598565b1192915050565b60005474010000000000000000000000000000000000000000900460ff16611793576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161071d565b565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610800908590611929565b73ffffffffffffffffffffffffffffffffffffffff81166118a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f456d707479206164647265737300000000000000000000000000000000000000604482015260640161071d565b600580547fffffffff0000000000000000000000000000000000000000ffffffffffffffff166801000000000000000073ffffffffffffffffffffffffffffffffffffffff84811682029290921792839055604051920416907fa9e8c42c9e7fca7f62755189a16b2f5314d43d8fb24e91ba54e6d65f9314e84990600090a250565b600061198b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a359092919063ffffffff16565b8051909150156108d257808060200190518101906119a99190611fdd565b6108d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161071d565b6060611a448484600085611a4e565b90505b9392505050565b606082471015611ae0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161071d565b843b611b48576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161071d565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611b719190611ffa565b60006040518083038185875af1925050503d8060008114611bae576040519150601f19603f3d011682016040523d82523d6000602084013e611bb3565b606091505b5091509150611bc3828286611bce565b979650505050505050565b60608315611bdd575081611a47565b825115611bed5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071d9190612016565b600060208284031215611c3357600080fd5b5035919050565b803567ffffffffffffffff81168114611c5257600080fd5b919050565b600060208284031215611c6957600080fd5b611a4782611c3a565b803573ffffffffffffffffffffffffffffffffffffffff81168114611c5257600080fd5b600080600060608486031215611cab57600080fd5b611cb484611c72565b9250611cc260208501611c72565b9150611cd060408501611c72565b90509250925092565b8015158114611ce757600080fd5b50565b60008060408385031215611cfd57600080fd5b611d0683611c72565b91506020830135611d1681611cd9565b809150509250929050565b600060208284031215611d3357600080fd5b611a4782611c72565b60008060408385031215611d4f57600080fd5b611d5883611c72565b9150602083013563ffffffff81168114611d1657600080fd5b60008060008060008060c08789031215611d8a57600080fd5b611d9387611c72565b9550611da160208801611c72565b945060408701359350611db660608801611c3a565b9250611dc460808801611c3a565b9150611dd260a08801611c3a565b90509295509295509295565b600060208284031215611df057600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60005b83811015611e41578181015183820152602001611e29565b838111156108005750506000910152565b600060208284031215611e6457600080fd5b815167ffffffffffffffff80821115611e7c57600080fd5b818401915084601f830112611e9057600080fd5b815181811115611ea257611ea2611df7565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715611ee857611ee8611df7565b81604052828152876020848701011115611f0157600080fd5b611bc3836020830160208801611e26565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600067ffffffffffffffff83811690831681811015611f6257611f62611f12565b039392505050565b600067ffffffffffffffff808316818516808303821115611f8d57611f8d611f12565b01949350505050565b60008219821115611fa957611fa9611f12565b500190565b600073ffffffffffffffffffffffffffffffffffffffff808316818516808303821115611f8d57611f8d611f12565b600060208284031215611fef57600080fd5b8151611a4781611cd9565b6000825161200c818460208701611e26565b9190910192915050565b6020815260008251806020840152612035816040850160208701611e26565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212206879f651a1ded06aa976c85f28b0500a44e7c6a812b3a840054191e1dd69dd7064736f6c63430008090033";
576
+
577
+ type AVMBridgeDepositBoxConstructorParams =
578
+ | [signer?: Signer]
579
+ | ConstructorParameters<typeof ContractFactory>;
580
+
581
+ const isSuperArgs = (
582
+ xs: AVMBridgeDepositBoxConstructorParams
583
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
584
+
585
+ export class AVMBridgeDepositBox__factory extends ContractFactory {
586
+ constructor(...args: AVMBridgeDepositBoxConstructorParams) {
587
+ if (isSuperArgs(args)) {
588
+ super(...args);
589
+ } else {
590
+ super(_abi, _bytecode, args[0]);
591
+ }
592
+ }
593
+
594
+ deploy(
595
+ _l2GatewayRouter: string,
596
+ _crossDomainAdmin: string,
597
+ _minimumBridgingDelay: BigNumberish,
598
+ _chainId: BigNumberish,
599
+ _l1Weth: string,
600
+ timerAddress: string,
601
+ overrides?: Overrides & { from?: string | Promise<string> }
602
+ ): Promise<AVMBridgeDepositBox> {
603
+ return super.deploy(
604
+ _l2GatewayRouter,
605
+ _crossDomainAdmin,
606
+ _minimumBridgingDelay,
607
+ _chainId,
608
+ _l1Weth,
609
+ timerAddress,
610
+ overrides || {}
611
+ ) as Promise<AVMBridgeDepositBox>;
612
+ }
613
+ getDeployTransaction(
614
+ _l2GatewayRouter: string,
615
+ _crossDomainAdmin: string,
616
+ _minimumBridgingDelay: BigNumberish,
617
+ _chainId: BigNumberish,
618
+ _l1Weth: string,
619
+ timerAddress: string,
620
+ overrides?: Overrides & { from?: string | Promise<string> }
621
+ ): TransactionRequest {
622
+ return super.getDeployTransaction(
623
+ _l2GatewayRouter,
624
+ _crossDomainAdmin,
625
+ _minimumBridgingDelay,
626
+ _chainId,
627
+ _l1Weth,
628
+ timerAddress,
629
+ overrides || {}
630
+ );
631
+ }
632
+ attach(address: string): AVMBridgeDepositBox {
633
+ return super.attach(address) as AVMBridgeDepositBox;
634
+ }
635
+ connect(signer: Signer): AVMBridgeDepositBox__factory {
636
+ return super.connect(signer) as AVMBridgeDepositBox__factory;
637
+ }
638
+ static readonly bytecode = _bytecode;
639
+ static readonly abi = _abi;
640
+ static createInterface(): AVMBridgeDepositBoxInterface {
641
+ return new utils.Interface(_abi) as AVMBridgeDepositBoxInterface;
642
+ }
643
+ static connect(
644
+ address: string,
645
+ signerOrProvider: Signer | Provider
646
+ ): AVMBridgeDepositBox {
647
+ return new Contract(address, _abi, signerOrProvider) as AVMBridgeDepositBox;
648
+ }
649
+ }