1pub use hopr_wrapper::*;
2#[allow(
5 clippy::enum_variant_names,
6 clippy::too_many_arguments,
7 clippy::upper_case_acronyms,
8 clippy::type_complexity,
9 dead_code,
10 non_camel_case_types,
11)]
12pub mod hopr_wrapper {
13 #[allow(deprecated)]
14 fn __abi() -> ::ethers::core::abi::Abi {
15 ::ethers::core::abi::ethabi::Contract {
16 constructor: ::core::option::Option::Some(::ethers::core::abi::ethabi::Constructor {
17 inputs: ::std::vec![
18 ::ethers::core::abi::ethabi::Param {
19 name: ::std::borrow::ToOwned::to_owned("_xHOPR"),
20 kind: ::ethers::core::abi::ethabi::ParamType::Address,
21 internal_type: ::core::option::Option::Some(
22 ::std::borrow::ToOwned::to_owned("contract IERC20"),
23 ),
24 },
25 ::ethers::core::abi::ethabi::Param {
26 name: ::std::borrow::ToOwned::to_owned("_wxHOPR"),
27 kind: ::ethers::core::abi::ethabi::ParamType::Address,
28 internal_type: ::core::option::Option::Some(
29 ::std::borrow::ToOwned::to_owned("contract HoprToken"),
30 ),
31 },
32 ],
33 }),
34 functions: ::core::convert::From::from([
35 (
36 ::std::borrow::ToOwned::to_owned("TOKENS_RECIPIENT_INTERFACE_HASH"),
37 ::std::vec![
38 ::ethers::core::abi::ethabi::Function {
39 name: ::std::borrow::ToOwned::to_owned(
40 "TOKENS_RECIPIENT_INTERFACE_HASH",
41 ),
42 inputs: ::std::vec![],
43 outputs: ::std::vec![
44 ::ethers::core::abi::ethabi::Param {
45 name: ::std::string::String::new(),
46 kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes(
47 32usize,
48 ),
49 internal_type: ::core::option::Option::Some(
50 ::std::borrow::ToOwned::to_owned("bytes32"),
51 ),
52 },
53 ],
54 constant: ::core::option::Option::None,
55 state_mutability: ::ethers::core::abi::ethabi::StateMutability::View,
56 },
57 ],
58 ),
59 (
60 ::std::borrow::ToOwned::to_owned("canImplementInterfaceForAddress"),
61 ::std::vec![
62 ::ethers::core::abi::ethabi::Function {
63 name: ::std::borrow::ToOwned::to_owned(
64 "canImplementInterfaceForAddress",
65 ),
66 inputs: ::std::vec![
67 ::ethers::core::abi::ethabi::Param {
68 name: ::std::borrow::ToOwned::to_owned("interfaceHash"),
69 kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes(
70 32usize,
71 ),
72 internal_type: ::core::option::Option::Some(
73 ::std::borrow::ToOwned::to_owned("bytes32"),
74 ),
75 },
76 ::ethers::core::abi::ethabi::Param {
77 name: ::std::borrow::ToOwned::to_owned("account"),
78 kind: ::ethers::core::abi::ethabi::ParamType::Address,
79 internal_type: ::core::option::Option::Some(
80 ::std::borrow::ToOwned::to_owned("address"),
81 ),
82 },
83 ],
84 outputs: ::std::vec![
85 ::ethers::core::abi::ethabi::Param {
86 name: ::std::string::String::new(),
87 kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes(
88 32usize,
89 ),
90 internal_type: ::core::option::Option::Some(
91 ::std::borrow::ToOwned::to_owned("bytes32"),
92 ),
93 },
94 ],
95 constant: ::core::option::Option::None,
96 state_mutability: ::ethers::core::abi::ethabi::StateMutability::View,
97 },
98 ],
99 ),
100 (
101 ::std::borrow::ToOwned::to_owned("onTokenTransfer"),
102 ::std::vec![
103 ::ethers::core::abi::ethabi::Function {
104 name: ::std::borrow::ToOwned::to_owned("onTokenTransfer"),
105 inputs: ::std::vec![
106 ::ethers::core::abi::ethabi::Param {
107 name: ::std::borrow::ToOwned::to_owned("from"),
108 kind: ::ethers::core::abi::ethabi::ParamType::Address,
109 internal_type: ::core::option::Option::Some(
110 ::std::borrow::ToOwned::to_owned("address"),
111 ),
112 },
113 ::ethers::core::abi::ethabi::Param {
114 name: ::std::borrow::ToOwned::to_owned("amount"),
115 kind: ::ethers::core::abi::ethabi::ParamType::Uint(
116 256usize,
117 ),
118 internal_type: ::core::option::Option::Some(
119 ::std::borrow::ToOwned::to_owned("uint256"),
120 ),
121 },
122 ::ethers::core::abi::ethabi::Param {
123 name: ::std::string::String::new(),
124 kind: ::ethers::core::abi::ethabi::ParamType::Bytes,
125 internal_type: ::core::option::Option::Some(
126 ::std::borrow::ToOwned::to_owned("bytes"),
127 ),
128 },
129 ],
130 outputs: ::std::vec![
131 ::ethers::core::abi::ethabi::Param {
132 name: ::std::borrow::ToOwned::to_owned("success"),
133 kind: ::ethers::core::abi::ethabi::ParamType::Bool,
134 internal_type: ::core::option::Option::Some(
135 ::std::borrow::ToOwned::to_owned("bool"),
136 ),
137 },
138 ],
139 constant: ::core::option::Option::None,
140 state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable,
141 },
142 ],
143 ),
144 (
145 ::std::borrow::ToOwned::to_owned("owner"),
146 ::std::vec![
147 ::ethers::core::abi::ethabi::Function {
148 name: ::std::borrow::ToOwned::to_owned("owner"),
149 inputs: ::std::vec![],
150 outputs: ::std::vec![
151 ::ethers::core::abi::ethabi::Param {
152 name: ::std::string::String::new(),
153 kind: ::ethers::core::abi::ethabi::ParamType::Address,
154 internal_type: ::core::option::Option::Some(
155 ::std::borrow::ToOwned::to_owned("address"),
156 ),
157 },
158 ],
159 constant: ::core::option::Option::None,
160 state_mutability: ::ethers::core::abi::ethabi::StateMutability::View,
161 },
162 ],
163 ),
164 (
165 ::std::borrow::ToOwned::to_owned("recoverTokens"),
166 ::std::vec![
167 ::ethers::core::abi::ethabi::Function {
168 name: ::std::borrow::ToOwned::to_owned("recoverTokens"),
169 inputs: ::std::vec![],
170 outputs: ::std::vec![],
171 constant: ::core::option::Option::None,
172 state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable,
173 },
174 ],
175 ),
176 (
177 ::std::borrow::ToOwned::to_owned("renounceOwnership"),
178 ::std::vec![
179 ::ethers::core::abi::ethabi::Function {
180 name: ::std::borrow::ToOwned::to_owned("renounceOwnership"),
181 inputs: ::std::vec![],
182 outputs: ::std::vec![],
183 constant: ::core::option::Option::None,
184 state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable,
185 },
186 ],
187 ),
188 (
189 ::std::borrow::ToOwned::to_owned("tokensReceived"),
190 ::std::vec![
191 ::ethers::core::abi::ethabi::Function {
192 name: ::std::borrow::ToOwned::to_owned("tokensReceived"),
193 inputs: ::std::vec![
194 ::ethers::core::abi::ethabi::Param {
195 name: ::std::string::String::new(),
196 kind: ::ethers::core::abi::ethabi::ParamType::Address,
197 internal_type: ::core::option::Option::Some(
198 ::std::borrow::ToOwned::to_owned("address"),
199 ),
200 },
201 ::ethers::core::abi::ethabi::Param {
202 name: ::std::borrow::ToOwned::to_owned("from"),
203 kind: ::ethers::core::abi::ethabi::ParamType::Address,
204 internal_type: ::core::option::Option::Some(
205 ::std::borrow::ToOwned::to_owned("address"),
206 ),
207 },
208 ::ethers::core::abi::ethabi::Param {
209 name: ::std::borrow::ToOwned::to_owned("to"),
210 kind: ::ethers::core::abi::ethabi::ParamType::Address,
211 internal_type: ::core::option::Option::Some(
212 ::std::borrow::ToOwned::to_owned("address"),
213 ),
214 },
215 ::ethers::core::abi::ethabi::Param {
216 name: ::std::borrow::ToOwned::to_owned("amount"),
217 kind: ::ethers::core::abi::ethabi::ParamType::Uint(
218 256usize,
219 ),
220 internal_type: ::core::option::Option::Some(
221 ::std::borrow::ToOwned::to_owned("uint256"),
222 ),
223 },
224 ::ethers::core::abi::ethabi::Param {
225 name: ::std::string::String::new(),
226 kind: ::ethers::core::abi::ethabi::ParamType::Bytes,
227 internal_type: ::core::option::Option::Some(
228 ::std::borrow::ToOwned::to_owned("bytes"),
229 ),
230 },
231 ::ethers::core::abi::ethabi::Param {
232 name: ::std::string::String::new(),
233 kind: ::ethers::core::abi::ethabi::ParamType::Bytes,
234 internal_type: ::core::option::Option::Some(
235 ::std::borrow::ToOwned::to_owned("bytes"),
236 ),
237 },
238 ],
239 outputs: ::std::vec![],
240 constant: ::core::option::Option::None,
241 state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable,
242 },
243 ],
244 ),
245 (
246 ::std::borrow::ToOwned::to_owned("transferOwnership"),
247 ::std::vec![
248 ::ethers::core::abi::ethabi::Function {
249 name: ::std::borrow::ToOwned::to_owned("transferOwnership"),
250 inputs: ::std::vec![
251 ::ethers::core::abi::ethabi::Param {
252 name: ::std::borrow::ToOwned::to_owned("newOwner"),
253 kind: ::ethers::core::abi::ethabi::ParamType::Address,
254 internal_type: ::core::option::Option::Some(
255 ::std::borrow::ToOwned::to_owned("address"),
256 ),
257 },
258 ],
259 outputs: ::std::vec![],
260 constant: ::core::option::Option::None,
261 state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable,
262 },
263 ],
264 ),
265 (
266 ::std::borrow::ToOwned::to_owned("wxHOPR"),
267 ::std::vec![
268 ::ethers::core::abi::ethabi::Function {
269 name: ::std::borrow::ToOwned::to_owned("wxHOPR"),
270 inputs: ::std::vec![],
271 outputs: ::std::vec![
272 ::ethers::core::abi::ethabi::Param {
273 name: ::std::string::String::new(),
274 kind: ::ethers::core::abi::ethabi::ParamType::Address,
275 internal_type: ::core::option::Option::Some(
276 ::std::borrow::ToOwned::to_owned("contract HoprToken"),
277 ),
278 },
279 ],
280 constant: ::core::option::Option::None,
281 state_mutability: ::ethers::core::abi::ethabi::StateMutability::View,
282 },
283 ],
284 ),
285 (
286 ::std::borrow::ToOwned::to_owned("xHOPR"),
287 ::std::vec![
288 ::ethers::core::abi::ethabi::Function {
289 name: ::std::borrow::ToOwned::to_owned("xHOPR"),
290 inputs: ::std::vec![],
291 outputs: ::std::vec![
292 ::ethers::core::abi::ethabi::Param {
293 name: ::std::string::String::new(),
294 kind: ::ethers::core::abi::ethabi::ParamType::Address,
295 internal_type: ::core::option::Option::Some(
296 ::std::borrow::ToOwned::to_owned("contract IERC20"),
297 ),
298 },
299 ],
300 constant: ::core::option::Option::None,
301 state_mutability: ::ethers::core::abi::ethabi::StateMutability::View,
302 },
303 ],
304 ),
305 (
306 ::std::borrow::ToOwned::to_owned("xHoprAmount"),
307 ::std::vec![
308 ::ethers::core::abi::ethabi::Function {
309 name: ::std::borrow::ToOwned::to_owned("xHoprAmount"),
310 inputs: ::std::vec![],
311 outputs: ::std::vec![
312 ::ethers::core::abi::ethabi::Param {
313 name: ::std::string::String::new(),
314 kind: ::ethers::core::abi::ethabi::ParamType::Uint(
315 256usize,
316 ),
317 internal_type: ::core::option::Option::Some(
318 ::std::borrow::ToOwned::to_owned("uint256"),
319 ),
320 },
321 ],
322 constant: ::core::option::Option::None,
323 state_mutability: ::ethers::core::abi::ethabi::StateMutability::View,
324 },
325 ],
326 ),
327 ]),
328 events: ::core::convert::From::from([
329 (
330 ::std::borrow::ToOwned::to_owned("OwnershipTransferred"),
331 ::std::vec![
332 ::ethers::core::abi::ethabi::Event {
333 name: ::std::borrow::ToOwned::to_owned(
334 "OwnershipTransferred",
335 ),
336 inputs: ::std::vec![
337 ::ethers::core::abi::ethabi::EventParam {
338 name: ::std::borrow::ToOwned::to_owned("previousOwner"),
339 kind: ::ethers::core::abi::ethabi::ParamType::Address,
340 indexed: true,
341 },
342 ::ethers::core::abi::ethabi::EventParam {
343 name: ::std::borrow::ToOwned::to_owned("newOwner"),
344 kind: ::ethers::core::abi::ethabi::ParamType::Address,
345 indexed: true,
346 },
347 ],
348 anonymous: false,
349 },
350 ],
351 ),
352 (
353 ::std::borrow::ToOwned::to_owned("Unwrapped"),
354 ::std::vec![
355 ::ethers::core::abi::ethabi::Event {
356 name: ::std::borrow::ToOwned::to_owned("Unwrapped"),
357 inputs: ::std::vec![
358 ::ethers::core::abi::ethabi::EventParam {
359 name: ::std::borrow::ToOwned::to_owned("account"),
360 kind: ::ethers::core::abi::ethabi::ParamType::Address,
361 indexed: true,
362 },
363 ::ethers::core::abi::ethabi::EventParam {
364 name: ::std::borrow::ToOwned::to_owned("amount"),
365 kind: ::ethers::core::abi::ethabi::ParamType::Uint(
366 256usize,
367 ),
368 indexed: false,
369 },
370 ],
371 anonymous: false,
372 },
373 ],
374 ),
375 (
376 ::std::borrow::ToOwned::to_owned("Wrapped"),
377 ::std::vec![
378 ::ethers::core::abi::ethabi::Event {
379 name: ::std::borrow::ToOwned::to_owned("Wrapped"),
380 inputs: ::std::vec![
381 ::ethers::core::abi::ethabi::EventParam {
382 name: ::std::borrow::ToOwned::to_owned("account"),
383 kind: ::ethers::core::abi::ethabi::ParamType::Address,
384 indexed: true,
385 },
386 ::ethers::core::abi::ethabi::EventParam {
387 name: ::std::borrow::ToOwned::to_owned("amount"),
388 kind: ::ethers::core::abi::ethabi::ParamType::Uint(
389 256usize,
390 ),
391 indexed: false,
392 },
393 ],
394 anonymous: false,
395 },
396 ],
397 ),
398 ]),
399 errors: ::std::collections::BTreeMap::new(),
400 receive: false,
401 fallback: false,
402 }
403 }
404 pub static HOPRWRAPPER_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = ::ethers::contract::Lazy::new(
406 __abi,
407 );
408 #[rustfmt::skip]
409 const __BYTECODE: &[u8] = b"`\x80`@R`\0`\x03U4\x80\x15a\0\x15W`\0\x80\xFD[P`@Qa\x0E\xF28\x03\x80a\x0E\xF2\x839\x81\x01`@\x81\x90Ra\x004\x91a\x01pV[a\0=3a\x01\x08V[`\x01`\x02U`\x04\x80T`\x01`\x01`\xA0\x1B\x03\x84\x81\x16`\x01`\x01`\xA0\x1B\x03\x19\x92\x83\x16\x17\x83U`\x05\x80T\x91\x85\x16\x91\x90\x92\x16\x17\x90U`@Qc)\x96Z\x1D`\xE0\x1B\x81R0\x91\x81\x01\x82\x90R\x7F\xB2\x81\xFC\x8C\x12\x95M\"TM\xB4]\xE3\x15\x9A9'(\x95\xB1i\xA8R\xB3\x14\xF9\xCCv.D\xC5;`$\x82\x01R`D\x81\x01\x91\x90\x91Rs\x18 \xA4\xB7a\x8B\xDEq\xDC\xE8\xCD\xC7:\xABl\x95\x90_\xAD$\x90c)\x96Z\x1D\x90`d\x01`\0`@Q\x80\x83\x03\x81`\0\x87\x80;\x15\x80\x15a\0\xE9W`\0\x80\xFD[PZ\xF1\x15\x80\x15a\0\xFDW=`\0\x80>=`\0\xFD[PPPPPPa\x01\xAAV[`\0\x80T`\x01`\x01`\xA0\x1B\x03\x83\x81\x16`\x01`\x01`\xA0\x1B\x03\x19\x83\x16\x81\x17\x84U`@Q\x91\x90\x92\x16\x92\x83\x91\x7F\x8B\xE0\x07\x9CS\x16Y\x14\x13D\xCD\x1F\xD0\xA4\xF2\x84\x19I\x7F\x97\"\xA3\xDA\xAF\xE3\xB4\x18okdW\xE0\x91\x90\xA3PPV[`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x14a\x01mW`\0\x80\xFD[PV[`\0\x80`@\x83\x85\x03\x12\x15a\x01\x83W`\0\x80\xFD[\x82Qa\x01\x8E\x81a\x01XV[` \x84\x01Q\x90\x92Pa\x01\x9F\x81a\x01XV[\x80\x91PP\x92P\x92\x90PV[a\r9\x80a\x01\xB9`\09`\0\xF3\xFE`\x80`@R4\x80\x15a\0\x10W`\0\x80\xFD[P`\x046\x10a\0\xA8W`\x005`\xE0\x1C\x80c\x8D\xA5\xCB[\x11a\0qW\x80c\x8D\xA5\xCB[\x14a\x01BW\x80c\xA4\xC0\xED6\x14a\x01SW\x80c\xB7\x7F9\xFE\x14a\x01vW\x80c\xD9\xA4e\xAA\x14a\x01~W\x80c\xDE'\x9A\xFE\x14a\x01\x91W\x80c\xF2\xFD\xE3\x8B\x14a\x01\x9AW`\0\x80\xFD[\x80b#\xDE)\x14a\0\xADW\x80c\x1AU\x18\xB1\x14a\0\xC2W\x80c$\x9C\xB3\xFA\x14a\0\xF2W\x80cqP\x18\xA6\x14a\x01\x13W\x80crX\x1C\xC0\x14a\x01\x1BW[`\0\x80\xFD[a\0\xC0a\0\xBB6`\x04a\n\x98V[a\x01\xADV[\0[`\x04Ta\0\xD5\x90`\x01`\x01`\xA0\x1B\x03\x16\x81V[`@Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x01[`@Q\x80\x91\x03\x90\xF3[a\x01\x05a\x01\x006`\x04a\x0BCV[a\x03\xA7V[`@Q\x90\x81R` \x01a\0\xE9V[a\0\xC0a\x04\x03V[a\x01\x05\x7F\xB2\x81\xFC\x8C\x12\x95M\"TM\xB4]\xE3\x15\x9A9'(\x95\xB1i\xA8R\xB3\x14\xF9\xCCv.D\xC5;\x81V[`\0T`\x01`\x01`\xA0\x1B\x03\x16a\0\xD5V[a\x01fa\x01a6`\x04a\x0BoV[a\x049V[`@Q\x90\x15\x15\x81R` \x01a\0\xE9V[a\0\xC0a\x05\xC5V[`\x05Ta\0\xD5\x90`\x01`\x01`\xA0\x1B\x03\x16\x81V[a\x01\x05`\x03T\x81V[a\0\xC0a\x01\xA86`\x04a\x0B\xC9V[a\x06\x90V[`\x02\x80T\x03a\x02\x03W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1F`$\x82\x01R\x7FReentrancyGuard: reentrant call\0`D\x82\x01R`d\x01[`@Q\x80\x91\x03\x90\xFD[`\x02\x80U`\x05T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x02YW`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x15`$\x82\x01Rt)\xB2\xB722\xB9\x106\xBA\xB9\xBA\x1012\x90;\xBC$'\xA8)`Y\x1B`D\x82\x01R`d\x01a\x01\xFAV[`\x01`\x01`\xA0\x1B\x03\x86\x160\x14a\x02\xBFW`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`%`$\x82\x01R\x7FMust be sending tokens to HoprWr`D\x82\x01Rd0\xB882\xB9`\xD9\x1B`d\x82\x01R`\x84\x01a\x01\xFAV[`\x03Ta\x02\xCC\x90\x86a\x07(V[`\x03U`\x05T`@\x80Qc\xFE\x9D\x93\x03`\xE0\x1B\x81R`\x04\x81\x01\x88\x90R`$\x81\x01\x91\x90\x91R`\0`D\x82\x01R`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x90c\xFE\x9D\x93\x03\x90`d\x01`\0`@Q\x80\x83\x03\x81`\0\x87\x80;\x15\x80\x15a\x03%W`\0\x80\xFD[PZ\xF1\x15\x80\x15a\x039W=`\0\x80>=`\0\xFD[PP`\x04Ta\x03U\x92P`\x01`\x01`\xA0\x1B\x03\x16\x90P\x88\x87a\x074V[\x86`\x01`\x01`\xA0\x1B\x03\x16\x7F\x95\xAEd\x9B\xFA\xAE\xF9\xDE\xF5jR\xF4\xFB-\x9E\x8F\xA5Ik\xB7\x08)0\xE4B\xC7L\xC7k\x03\xDC\xB3\x86`@Qa\x03\x90\x91\x81R` \x01\x90V[`@Q\x80\x91\x03\x90\xA2PP`\x01`\x02UPPPPPPV[`\0\x82\x81R`\x01` \x90\x81R`@\x80\x83 `\x01`\x01`\xA0\x1B\x03\x85\x16\x84R\x90\x91R\x81 T`\xFF\x16a\x03\xD8W`\0a\x03\xFAV[\x7F\xA2\xEFF\0\xD7B\x02-S-GG\xCB5GGFg\xD6\xF18\x04\x90%\x13\xB2\xEC\x01\xC8H\xF4\xB4[\x90P[\x92\x91PPV[`\0T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x04-W`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01\xFA\x90a\x0B\xE4V[a\x047`\0a\x07\x8BV[V[`\0`\x02\x80T\x03a\x04\x8CW`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1F`$\x82\x01R\x7FReentrancyGuard: reentrant call\0`D\x82\x01R`d\x01a\x01\xFAV[`\x02\x80U`\x04T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x04\xE1W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x14`$\x82\x01Rs)\xB2\xB722\xB9\x106\xBA\xB9\xBA\x1012\x90<$'\xA8)`a\x1B`D\x82\x01R`d\x01a\x01\xFAV[`\x03Ta\x04\xEE\x90\x85a\x07\xDBV[`\x03U`\x05T`@Qc\r\xCD\xC7\xDD`\xE4\x1B\x81R`\x01`\x01`\xA0\x1B\x03\x87\x81\x16`\x04\x83\x01R`$\x82\x01\x87\x90R`\x80`D\x83\x01R`\0`\x84\x83\x01\x81\x90R`\xA0`d\x84\x01R`\xA4\x83\x01R\x90\x91\x16\x90c\xDC\xDC}\xD0\x90`\xC4\x01`\0`@Q\x80\x83\x03\x81`\0\x87\x80;\x15\x80\x15a\x05[W`\0\x80\xFD[PZ\xF1\x15\x80\x15a\x05oW=`\0\x80>=`\0\xFD[PPPP\x84`\x01`\x01`\xA0\x1B\x03\x16\x7FG\0\xC1rkA\x98\x07|\xD4\x03 \xA3,E&Z\x19\x10R\x1E\xB0\xEFq=\xD1\xD8A$\x13\xD7\xFC\x85`@Qa\x05\xAE\x91\x81R` \x01\x90V[`@Q\x80\x91\x03\x90\xA2P`\x01\x80`\x02U\x94\x93PPPPV[`\0T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x05\xEFW`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01\xFA\x90a\x0B\xE4V[`\x03T`\x04\x80T`@Qcp\xA0\x821`\xE0\x1B\x81R0\x92\x81\x01\x92\x90\x92R`\0\x92a\x06n\x92\x90\x91`\x01`\x01`\xA0\x1B\x03\x16\x90cp\xA0\x821\x90`$\x01` `@Q\x80\x83\x03\x81\x86Z\xFA\x15\x80\x15a\x06DW=`\0\x80>=`\0\xFD[PPPP`@Q=`\x1F\x19`\x1F\x82\x01\x16\x82\x01\x80`@RP\x81\x01\x90a\x06h\x91\x90a\x0C\x19V[\x90a\x07(V[\x90P\x80\x15a\x06\x8DW`\x04Ta\x06\x8D\x90`\x01`\x01`\xA0\x1B\x03\x163\x83a\x074V[PV[`\0T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x06\xBAW`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01\xFA\x90a\x0B\xE4V[`\x01`\x01`\xA0\x1B\x03\x81\x16a\x07\x1FW`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`&`$\x82\x01R\x7FOwnable: new owner is the zero a`D\x82\x01Reddress`\xD0\x1B`d\x82\x01R`\x84\x01a\x01\xFAV[a\x06\x8D\x81a\x07\x8BV[`\0a\x03\xFA\x82\x84a\x0CHV[`@\x80Q`\x01`\x01`\xA0\x1B\x03\x84\x16`$\x82\x01R`D\x80\x82\x01\x84\x90R\x82Q\x80\x83\x03\x90\x91\x01\x81R`d\x90\x91\x01\x90\x91R` \x81\x01\x80Q`\x01`\x01`\xE0\x1B\x03\x16c\xA9\x05\x9C\xBB`\xE0\x1B\x17\x90Ra\x07\x86\x90\x84\x90a\x07\xE7V[PPPV[`\0\x80T`\x01`\x01`\xA0\x1B\x03\x83\x81\x16`\x01`\x01`\xA0\x1B\x03\x19\x83\x16\x81\x17\x84U`@Q\x91\x90\x92\x16\x92\x83\x91\x7F\x8B\xE0\x07\x9CS\x16Y\x14\x13D\xCD\x1F\xD0\xA4\xF2\x84\x19I\x7F\x97\"\xA3\xDA\xAF\xE3\xB4\x18okdW\xE0\x91\x90\xA3PPV[`\0a\x03\xFA\x82\x84a\x0C[V[`\0a\x08<\x82`@Q\x80`@\x01`@R\x80` \x81R` \x01\x7FSafeERC20: low-level call failed\x81RP\x85`\x01`\x01`\xA0\x1B\x03\x16a\x08\xB9\x90\x92\x91\x90c\xFF\xFF\xFF\xFF\x16V[\x80Q\x90\x91P\x15a\x07\x86W\x80\x80` \x01\x90Q\x81\x01\x90a\x08Z\x91\x90a\x0CnV[a\x07\x86W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`*`$\x82\x01R\x7FSafeERC20: ERC20 operation did n`D\x82\x01Ri\x1B\xDD\x08\x1C\xDDX\xD8\xD9YY`\xB2\x1B`d\x82\x01R`\x84\x01a\x01\xFAV[``a\x08\xC8\x84\x84`\0\x85a\x08\xD2V[\x90P[\x93\x92PPPV[``\x82G\x10\x15a\t3W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`&`$\x82\x01R\x7FAddress: insufficient balance fo`D\x82\x01Re\x1C\x88\x18\xD8[\x1B`\xD2\x1B`d\x82\x01R`\x84\x01a\x01\xFAV[\x84;a\t\x81W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1D`$\x82\x01R\x7FAddress: call to non-contract\0\0\0`D\x82\x01R`d\x01a\x01\xFAV[`\0\x80\x86`\x01`\x01`\xA0\x1B\x03\x16\x85\x87`@Qa\t\x9D\x91\x90a\x0C\xB4V[`\0`@Q\x80\x83\x03\x81\x85\x87Z\xF1\x92PPP=\x80`\0\x81\x14a\t\xDAW`@Q\x91P`\x1F\x19`?=\x01\x16\x82\x01`@R=\x82R=`\0` \x84\x01>a\t\xDFV[``\x91P[P\x91P\x91Pa\t\xEF\x82\x82\x86a\t\xFAV[\x97\x96PPPPPPPV[``\x83\x15a\n\tWP\x81a\x08\xCBV[\x82Q\x15a\n\x19W\x82Q\x80\x84` \x01\xFD[\x81`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01\xFA\x91\x90a\x0C\xD0V[\x805`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x14a\nJW`\0\x80\xFD[\x91\x90PV[`\0\x80\x83`\x1F\x84\x01\x12a\naW`\0\x80\xFD[P\x815g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\nyW`\0\x80\xFD[` \x83\x01\x91P\x83` \x82\x85\x01\x01\x11\x15a\n\x91W`\0\x80\xFD[\x92P\x92\x90PV[`\0\x80`\0\x80`\0\x80`\0\x80`\xC0\x89\x8B\x03\x12\x15a\n\xB4W`\0\x80\xFD[a\n\xBD\x89a\n3V[\x97Pa\n\xCB` \x8A\x01a\n3V[\x96Pa\n\xD9`@\x8A\x01a\n3V[\x95P``\x89\x015\x94P`\x80\x89\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x80\x82\x11\x15a\n\xFDW`\0\x80\xFD[a\x0B\t\x8C\x83\x8D\x01a\nOV[\x90\x96P\x94P`\xA0\x8B\x015\x91P\x80\x82\x11\x15a\x0B\"W`\0\x80\xFD[Pa\x0B/\x8B\x82\x8C\x01a\nOV[\x99\x9C\x98\x9BP\x96\x99P\x94\x97\x93\x96\x92\x95\x94PPPV[`\0\x80`@\x83\x85\x03\x12\x15a\x0BVW`\0\x80\xFD[\x825\x91Pa\x0Bf` \x84\x01a\n3V[\x90P\x92P\x92\x90PV[`\0\x80`\0\x80``\x85\x87\x03\x12\x15a\x0B\x85W`\0\x80\xFD[a\x0B\x8E\x85a\n3V[\x93P` \x85\x015\x92P`@\x85\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\x0B\xB1W`\0\x80\xFD[a\x0B\xBD\x87\x82\x88\x01a\nOV[\x95\x98\x94\x97P\x95PPPPV[`\0` \x82\x84\x03\x12\x15a\x0B\xDBW`\0\x80\xFD[a\x03\xFA\x82a\n3V[` \x80\x82R\x81\x81\x01R\x7FOwnable: caller is not the owner`@\x82\x01R``\x01\x90V[`\0` \x82\x84\x03\x12\x15a\x0C+W`\0\x80\xFD[PQ\x91\x90PV[cNH{q`\xE0\x1B`\0R`\x11`\x04R`$`\0\xFD[\x81\x81\x03\x81\x81\x11\x15a\x03\xFDWa\x03\xFDa\x0C2V[\x80\x82\x01\x80\x82\x11\x15a\x03\xFDWa\x03\xFDa\x0C2V[`\0` \x82\x84\x03\x12\x15a\x0C\x80W`\0\x80\xFD[\x81Q\x80\x15\x15\x81\x14a\x08\xCBW`\0\x80\xFD[`\0[\x83\x81\x10\x15a\x0C\xABW\x81\x81\x01Q\x83\x82\x01R` \x01a\x0C\x93V[PP`\0\x91\x01RV[`\0\x82Qa\x0C\xC6\x81\x84` \x87\x01a\x0C\x90V[\x91\x90\x91\x01\x92\x91PPV[` \x81R`\0\x82Q\x80` \x84\x01Ra\x0C\xEF\x81`@\x85\x01` \x87\x01a\x0C\x90V[`\x1F\x01`\x1F\x19\x16\x91\x90\x91\x01`@\x01\x92\x91PPV\xFE\xA2dipfsX\"\x12 \x1C\xF4\xE1\xE2\xA4r\xCEC\x8C\x10\xD16\xAB\xBA\x82|\xCBM(\xA0\x0B\xDD\x11v\xDD\xAFihg4\xA35dsolcC\0\x08\x13\x003";
410 pub static HOPRWRAPPER_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static(
412 __BYTECODE,
413 );
414 #[rustfmt::skip]
415 const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@R4\x80\x15a\0\x10W`\0\x80\xFD[P`\x046\x10a\0\xA8W`\x005`\xE0\x1C\x80c\x8D\xA5\xCB[\x11a\0qW\x80c\x8D\xA5\xCB[\x14a\x01BW\x80c\xA4\xC0\xED6\x14a\x01SW\x80c\xB7\x7F9\xFE\x14a\x01vW\x80c\xD9\xA4e\xAA\x14a\x01~W\x80c\xDE'\x9A\xFE\x14a\x01\x91W\x80c\xF2\xFD\xE3\x8B\x14a\x01\x9AW`\0\x80\xFD[\x80b#\xDE)\x14a\0\xADW\x80c\x1AU\x18\xB1\x14a\0\xC2W\x80c$\x9C\xB3\xFA\x14a\0\xF2W\x80cqP\x18\xA6\x14a\x01\x13W\x80crX\x1C\xC0\x14a\x01\x1BW[`\0\x80\xFD[a\0\xC0a\0\xBB6`\x04a\n\x98V[a\x01\xADV[\0[`\x04Ta\0\xD5\x90`\x01`\x01`\xA0\x1B\x03\x16\x81V[`@Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x01[`@Q\x80\x91\x03\x90\xF3[a\x01\x05a\x01\x006`\x04a\x0BCV[a\x03\xA7V[`@Q\x90\x81R` \x01a\0\xE9V[a\0\xC0a\x04\x03V[a\x01\x05\x7F\xB2\x81\xFC\x8C\x12\x95M\"TM\xB4]\xE3\x15\x9A9'(\x95\xB1i\xA8R\xB3\x14\xF9\xCCv.D\xC5;\x81V[`\0T`\x01`\x01`\xA0\x1B\x03\x16a\0\xD5V[a\x01fa\x01a6`\x04a\x0BoV[a\x049V[`@Q\x90\x15\x15\x81R` \x01a\0\xE9V[a\0\xC0a\x05\xC5V[`\x05Ta\0\xD5\x90`\x01`\x01`\xA0\x1B\x03\x16\x81V[a\x01\x05`\x03T\x81V[a\0\xC0a\x01\xA86`\x04a\x0B\xC9V[a\x06\x90V[`\x02\x80T\x03a\x02\x03W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1F`$\x82\x01R\x7FReentrancyGuard: reentrant call\0`D\x82\x01R`d\x01[`@Q\x80\x91\x03\x90\xFD[`\x02\x80U`\x05T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x02YW`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x15`$\x82\x01Rt)\xB2\xB722\xB9\x106\xBA\xB9\xBA\x1012\x90;\xBC$'\xA8)`Y\x1B`D\x82\x01R`d\x01a\x01\xFAV[`\x01`\x01`\xA0\x1B\x03\x86\x160\x14a\x02\xBFW`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`%`$\x82\x01R\x7FMust be sending tokens to HoprWr`D\x82\x01Rd0\xB882\xB9`\xD9\x1B`d\x82\x01R`\x84\x01a\x01\xFAV[`\x03Ta\x02\xCC\x90\x86a\x07(V[`\x03U`\x05T`@\x80Qc\xFE\x9D\x93\x03`\xE0\x1B\x81R`\x04\x81\x01\x88\x90R`$\x81\x01\x91\x90\x91R`\0`D\x82\x01R`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x90c\xFE\x9D\x93\x03\x90`d\x01`\0`@Q\x80\x83\x03\x81`\0\x87\x80;\x15\x80\x15a\x03%W`\0\x80\xFD[PZ\xF1\x15\x80\x15a\x039W=`\0\x80>=`\0\xFD[PP`\x04Ta\x03U\x92P`\x01`\x01`\xA0\x1B\x03\x16\x90P\x88\x87a\x074V[\x86`\x01`\x01`\xA0\x1B\x03\x16\x7F\x95\xAEd\x9B\xFA\xAE\xF9\xDE\xF5jR\xF4\xFB-\x9E\x8F\xA5Ik\xB7\x08)0\xE4B\xC7L\xC7k\x03\xDC\xB3\x86`@Qa\x03\x90\x91\x81R` \x01\x90V[`@Q\x80\x91\x03\x90\xA2PP`\x01`\x02UPPPPPPV[`\0\x82\x81R`\x01` \x90\x81R`@\x80\x83 `\x01`\x01`\xA0\x1B\x03\x85\x16\x84R\x90\x91R\x81 T`\xFF\x16a\x03\xD8W`\0a\x03\xFAV[\x7F\xA2\xEFF\0\xD7B\x02-S-GG\xCB5GGFg\xD6\xF18\x04\x90%\x13\xB2\xEC\x01\xC8H\xF4\xB4[\x90P[\x92\x91PPV[`\0T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x04-W`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01\xFA\x90a\x0B\xE4V[a\x047`\0a\x07\x8BV[V[`\0`\x02\x80T\x03a\x04\x8CW`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1F`$\x82\x01R\x7FReentrancyGuard: reentrant call\0`D\x82\x01R`d\x01a\x01\xFAV[`\x02\x80U`\x04T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x04\xE1W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x14`$\x82\x01Rs)\xB2\xB722\xB9\x106\xBA\xB9\xBA\x1012\x90<$'\xA8)`a\x1B`D\x82\x01R`d\x01a\x01\xFAV[`\x03Ta\x04\xEE\x90\x85a\x07\xDBV[`\x03U`\x05T`@Qc\r\xCD\xC7\xDD`\xE4\x1B\x81R`\x01`\x01`\xA0\x1B\x03\x87\x81\x16`\x04\x83\x01R`$\x82\x01\x87\x90R`\x80`D\x83\x01R`\0`\x84\x83\x01\x81\x90R`\xA0`d\x84\x01R`\xA4\x83\x01R\x90\x91\x16\x90c\xDC\xDC}\xD0\x90`\xC4\x01`\0`@Q\x80\x83\x03\x81`\0\x87\x80;\x15\x80\x15a\x05[W`\0\x80\xFD[PZ\xF1\x15\x80\x15a\x05oW=`\0\x80>=`\0\xFD[PPPP\x84`\x01`\x01`\xA0\x1B\x03\x16\x7FG\0\xC1rkA\x98\x07|\xD4\x03 \xA3,E&Z\x19\x10R\x1E\xB0\xEFq=\xD1\xD8A$\x13\xD7\xFC\x85`@Qa\x05\xAE\x91\x81R` \x01\x90V[`@Q\x80\x91\x03\x90\xA2P`\x01\x80`\x02U\x94\x93PPPPV[`\0T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x05\xEFW`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01\xFA\x90a\x0B\xE4V[`\x03T`\x04\x80T`@Qcp\xA0\x821`\xE0\x1B\x81R0\x92\x81\x01\x92\x90\x92R`\0\x92a\x06n\x92\x90\x91`\x01`\x01`\xA0\x1B\x03\x16\x90cp\xA0\x821\x90`$\x01` `@Q\x80\x83\x03\x81\x86Z\xFA\x15\x80\x15a\x06DW=`\0\x80>=`\0\xFD[PPPP`@Q=`\x1F\x19`\x1F\x82\x01\x16\x82\x01\x80`@RP\x81\x01\x90a\x06h\x91\x90a\x0C\x19V[\x90a\x07(V[\x90P\x80\x15a\x06\x8DW`\x04Ta\x06\x8D\x90`\x01`\x01`\xA0\x1B\x03\x163\x83a\x074V[PV[`\0T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x06\xBAW`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01\xFA\x90a\x0B\xE4V[`\x01`\x01`\xA0\x1B\x03\x81\x16a\x07\x1FW`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`&`$\x82\x01R\x7FOwnable: new owner is the zero a`D\x82\x01Reddress`\xD0\x1B`d\x82\x01R`\x84\x01a\x01\xFAV[a\x06\x8D\x81a\x07\x8BV[`\0a\x03\xFA\x82\x84a\x0CHV[`@\x80Q`\x01`\x01`\xA0\x1B\x03\x84\x16`$\x82\x01R`D\x80\x82\x01\x84\x90R\x82Q\x80\x83\x03\x90\x91\x01\x81R`d\x90\x91\x01\x90\x91R` \x81\x01\x80Q`\x01`\x01`\xE0\x1B\x03\x16c\xA9\x05\x9C\xBB`\xE0\x1B\x17\x90Ra\x07\x86\x90\x84\x90a\x07\xE7V[PPPV[`\0\x80T`\x01`\x01`\xA0\x1B\x03\x83\x81\x16`\x01`\x01`\xA0\x1B\x03\x19\x83\x16\x81\x17\x84U`@Q\x91\x90\x92\x16\x92\x83\x91\x7F\x8B\xE0\x07\x9CS\x16Y\x14\x13D\xCD\x1F\xD0\xA4\xF2\x84\x19I\x7F\x97\"\xA3\xDA\xAF\xE3\xB4\x18okdW\xE0\x91\x90\xA3PPV[`\0a\x03\xFA\x82\x84a\x0C[V[`\0a\x08<\x82`@Q\x80`@\x01`@R\x80` \x81R` \x01\x7FSafeERC20: low-level call failed\x81RP\x85`\x01`\x01`\xA0\x1B\x03\x16a\x08\xB9\x90\x92\x91\x90c\xFF\xFF\xFF\xFF\x16V[\x80Q\x90\x91P\x15a\x07\x86W\x80\x80` \x01\x90Q\x81\x01\x90a\x08Z\x91\x90a\x0CnV[a\x07\x86W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`*`$\x82\x01R\x7FSafeERC20: ERC20 operation did n`D\x82\x01Ri\x1B\xDD\x08\x1C\xDDX\xD8\xD9YY`\xB2\x1B`d\x82\x01R`\x84\x01a\x01\xFAV[``a\x08\xC8\x84\x84`\0\x85a\x08\xD2V[\x90P[\x93\x92PPPV[``\x82G\x10\x15a\t3W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`&`$\x82\x01R\x7FAddress: insufficient balance fo`D\x82\x01Re\x1C\x88\x18\xD8[\x1B`\xD2\x1B`d\x82\x01R`\x84\x01a\x01\xFAV[\x84;a\t\x81W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1D`$\x82\x01R\x7FAddress: call to non-contract\0\0\0`D\x82\x01R`d\x01a\x01\xFAV[`\0\x80\x86`\x01`\x01`\xA0\x1B\x03\x16\x85\x87`@Qa\t\x9D\x91\x90a\x0C\xB4V[`\0`@Q\x80\x83\x03\x81\x85\x87Z\xF1\x92PPP=\x80`\0\x81\x14a\t\xDAW`@Q\x91P`\x1F\x19`?=\x01\x16\x82\x01`@R=\x82R=`\0` \x84\x01>a\t\xDFV[``\x91P[P\x91P\x91Pa\t\xEF\x82\x82\x86a\t\xFAV[\x97\x96PPPPPPPV[``\x83\x15a\n\tWP\x81a\x08\xCBV[\x82Q\x15a\n\x19W\x82Q\x80\x84` \x01\xFD[\x81`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01\xFA\x91\x90a\x0C\xD0V[\x805`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x14a\nJW`\0\x80\xFD[\x91\x90PV[`\0\x80\x83`\x1F\x84\x01\x12a\naW`\0\x80\xFD[P\x815g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\nyW`\0\x80\xFD[` \x83\x01\x91P\x83` \x82\x85\x01\x01\x11\x15a\n\x91W`\0\x80\xFD[\x92P\x92\x90PV[`\0\x80`\0\x80`\0\x80`\0\x80`\xC0\x89\x8B\x03\x12\x15a\n\xB4W`\0\x80\xFD[a\n\xBD\x89a\n3V[\x97Pa\n\xCB` \x8A\x01a\n3V[\x96Pa\n\xD9`@\x8A\x01a\n3V[\x95P``\x89\x015\x94P`\x80\x89\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x80\x82\x11\x15a\n\xFDW`\0\x80\xFD[a\x0B\t\x8C\x83\x8D\x01a\nOV[\x90\x96P\x94P`\xA0\x8B\x015\x91P\x80\x82\x11\x15a\x0B\"W`\0\x80\xFD[Pa\x0B/\x8B\x82\x8C\x01a\nOV[\x99\x9C\x98\x9BP\x96\x99P\x94\x97\x93\x96\x92\x95\x94PPPV[`\0\x80`@\x83\x85\x03\x12\x15a\x0BVW`\0\x80\xFD[\x825\x91Pa\x0Bf` \x84\x01a\n3V[\x90P\x92P\x92\x90PV[`\0\x80`\0\x80``\x85\x87\x03\x12\x15a\x0B\x85W`\0\x80\xFD[a\x0B\x8E\x85a\n3V[\x93P` \x85\x015\x92P`@\x85\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\x0B\xB1W`\0\x80\xFD[a\x0B\xBD\x87\x82\x88\x01a\nOV[\x95\x98\x94\x97P\x95PPPPV[`\0` \x82\x84\x03\x12\x15a\x0B\xDBW`\0\x80\xFD[a\x03\xFA\x82a\n3V[` \x80\x82R\x81\x81\x01R\x7FOwnable: caller is not the owner`@\x82\x01R``\x01\x90V[`\0` \x82\x84\x03\x12\x15a\x0C+W`\0\x80\xFD[PQ\x91\x90PV[cNH{q`\xE0\x1B`\0R`\x11`\x04R`$`\0\xFD[\x81\x81\x03\x81\x81\x11\x15a\x03\xFDWa\x03\xFDa\x0C2V[\x80\x82\x01\x80\x82\x11\x15a\x03\xFDWa\x03\xFDa\x0C2V[`\0` \x82\x84\x03\x12\x15a\x0C\x80W`\0\x80\xFD[\x81Q\x80\x15\x15\x81\x14a\x08\xCBW`\0\x80\xFD[`\0[\x83\x81\x10\x15a\x0C\xABW\x81\x81\x01Q\x83\x82\x01R` \x01a\x0C\x93V[PP`\0\x91\x01RV[`\0\x82Qa\x0C\xC6\x81\x84` \x87\x01a\x0C\x90V[\x91\x90\x91\x01\x92\x91PPV[` \x81R`\0\x82Q\x80` \x84\x01Ra\x0C\xEF\x81`@\x85\x01` \x87\x01a\x0C\x90V[`\x1F\x01`\x1F\x19\x16\x91\x90\x91\x01`@\x01\x92\x91PPV\xFE\xA2dipfsX\"\x12 \x1C\xF4\xE1\xE2\xA4r\xCEC\x8C\x10\xD16\xAB\xBA\x82|\xCBM(\xA0\x0B\xDD\x11v\xDD\xAFihg4\xA35dsolcC\0\x08\x13\x003";
416 pub static HOPRWRAPPER_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static(
418 __DEPLOYED_BYTECODE,
419 );
420 pub struct HoprWrapper<M>(::ethers::contract::Contract<M>);
421 impl<M> ::core::clone::Clone for HoprWrapper<M> {
422 fn clone(&self) -> Self {
423 Self(::core::clone::Clone::clone(&self.0))
424 }
425 }
426 impl<M> ::core::ops::Deref for HoprWrapper<M> {
427 type Target = ::ethers::contract::Contract<M>;
428 fn deref(&self) -> &Self::Target {
429 &self.0
430 }
431 }
432 impl<M> ::core::ops::DerefMut for HoprWrapper<M> {
433 fn deref_mut(&mut self) -> &mut Self::Target {
434 &mut self.0
435 }
436 }
437 impl<M> ::core::fmt::Debug for HoprWrapper<M> {
438 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
439 f.debug_tuple(::core::stringify!(HoprWrapper))
440 .field(&self.address())
441 .finish()
442 }
443 }
444 impl<M: ::ethers::providers::Middleware> HoprWrapper<M> {
445 pub fn new<T: Into<::ethers::core::types::Address>>(
448 address: T,
449 client: ::std::sync::Arc<M>,
450 ) -> Self {
451 Self(
452 ::ethers::contract::Contract::new(
453 address.into(),
454 HOPRWRAPPER_ABI.clone(),
455 client,
456 ),
457 )
458 }
459 pub fn deploy<T: ::ethers::core::abi::Tokenize>(
483 client: ::std::sync::Arc<M>,
484 constructor_args: T,
485 ) -> ::core::result::Result<
486 ::ethers::contract::builders::ContractDeployer<M, Self>,
487 ::ethers::contract::ContractError<M>,
488 > {
489 let factory = ::ethers::contract::ContractFactory::new(
490 HOPRWRAPPER_ABI.clone(),
491 HOPRWRAPPER_BYTECODE.clone().into(),
492 client,
493 );
494 let deployer = factory.deploy(constructor_args)?;
495 let deployer = ::ethers::contract::ContractDeployer::new(deployer);
496 Ok(deployer)
497 }
498 pub fn tokens_recipient_interface_hash(
500 &self,
501 ) -> ::ethers::contract::builders::ContractCall<M, [u8; 32]> {
502 self.0
503 .method_hash([114, 88, 28, 192], ())
504 .expect("method not found (this should never happen)")
505 }
506 pub fn can_implement_interface_for_address(
508 &self,
509 interface_hash: [u8; 32],
510 account: ::ethers::core::types::Address,
511 ) -> ::ethers::contract::builders::ContractCall<M, [u8; 32]> {
512 self.0
513 .method_hash([36, 156, 179, 250], (interface_hash, account))
514 .expect("method not found (this should never happen)")
515 }
516 pub fn on_token_transfer(
518 &self,
519 from: ::ethers::core::types::Address,
520 amount: ::ethers::core::types::U256,
521 p2: ::ethers::core::types::Bytes,
522 ) -> ::ethers::contract::builders::ContractCall<M, bool> {
523 self.0
524 .method_hash([164, 192, 237, 54], (from, amount, p2))
525 .expect("method not found (this should never happen)")
526 }
527 pub fn owner(
529 &self,
530 ) -> ::ethers::contract::builders::ContractCall<
531 M,
532 ::ethers::core::types::Address,
533 > {
534 self.0
535 .method_hash([141, 165, 203, 91], ())
536 .expect("method not found (this should never happen)")
537 }
538 pub fn recover_tokens(
540 &self,
541 ) -> ::ethers::contract::builders::ContractCall<M, ()> {
542 self.0
543 .method_hash([183, 127, 57, 254], ())
544 .expect("method not found (this should never happen)")
545 }
546 pub fn renounce_ownership(
548 &self,
549 ) -> ::ethers::contract::builders::ContractCall<M, ()> {
550 self.0
551 .method_hash([113, 80, 24, 166], ())
552 .expect("method not found (this should never happen)")
553 }
554 pub fn tokens_received(
556 &self,
557 p0: ::ethers::core::types::Address,
558 from: ::ethers::core::types::Address,
559 to: ::ethers::core::types::Address,
560 amount: ::ethers::core::types::U256,
561 p4: ::ethers::core::types::Bytes,
562 p5: ::ethers::core::types::Bytes,
563 ) -> ::ethers::contract::builders::ContractCall<M, ()> {
564 self.0
565 .method_hash([0, 35, 222, 41], (p0, from, to, amount, p4, p5))
566 .expect("method not found (this should never happen)")
567 }
568 pub fn transfer_ownership(
570 &self,
571 new_owner: ::ethers::core::types::Address,
572 ) -> ::ethers::contract::builders::ContractCall<M, ()> {
573 self.0
574 .method_hash([242, 253, 227, 139], new_owner)
575 .expect("method not found (this should never happen)")
576 }
577 pub fn wx_hopr(
579 &self,
580 ) -> ::ethers::contract::builders::ContractCall<
581 M,
582 ::ethers::core::types::Address,
583 > {
584 self.0
585 .method_hash([217, 164, 101, 170], ())
586 .expect("method not found (this should never happen)")
587 }
588 pub fn x_hopr(
590 &self,
591 ) -> ::ethers::contract::builders::ContractCall<
592 M,
593 ::ethers::core::types::Address,
594 > {
595 self.0
596 .method_hash([26, 85, 24, 177], ())
597 .expect("method not found (this should never happen)")
598 }
599 pub fn x_hopr_amount(
601 &self,
602 ) -> ::ethers::contract::builders::ContractCall<M, ::ethers::core::types::U256> {
603 self.0
604 .method_hash([222, 39, 154, 254], ())
605 .expect("method not found (this should never happen)")
606 }
607 pub fn ownership_transferred_filter(
609 &self,
610 ) -> ::ethers::contract::builders::Event<
611 ::std::sync::Arc<M>,
612 M,
613 OwnershipTransferredFilter,
614 > {
615 self.0.event()
616 }
617 pub fn unwrapped_filter(
619 &self,
620 ) -> ::ethers::contract::builders::Event<
621 ::std::sync::Arc<M>,
622 M,
623 UnwrappedFilter,
624 > {
625 self.0.event()
626 }
627 pub fn wrapped_filter(
629 &self,
630 ) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, WrappedFilter> {
631 self.0.event()
632 }
633 pub fn events(
635 &self,
636 ) -> ::ethers::contract::builders::Event<
637 ::std::sync::Arc<M>,
638 M,
639 HoprWrapperEvents,
640 > {
641 self.0.event_with_filter(::core::default::Default::default())
642 }
643 }
644 impl<M: ::ethers::providers::Middleware> From<::ethers::contract::Contract<M>>
645 for HoprWrapper<M> {
646 fn from(contract: ::ethers::contract::Contract<M>) -> Self {
647 Self::new(contract.address(), contract.client())
648 }
649 }
650 #[derive(
651 Clone,
652 ::ethers::contract::EthEvent,
653 ::ethers::contract::EthDisplay,
654 serde::Serialize,
655 serde::Deserialize,
656 Default,
657 Debug,
658 PartialEq,
659 Eq,
660 Hash
661 )]
662 #[ethevent(
663 name = "OwnershipTransferred",
664 abi = "OwnershipTransferred(address,address)"
665 )]
666 pub struct OwnershipTransferredFilter {
667 #[ethevent(indexed)]
668 pub previous_owner: ::ethers::core::types::Address,
669 #[ethevent(indexed)]
670 pub new_owner: ::ethers::core::types::Address,
671 }
672 #[derive(
673 Clone,
674 ::ethers::contract::EthEvent,
675 ::ethers::contract::EthDisplay,
676 serde::Serialize,
677 serde::Deserialize,
678 Default,
679 Debug,
680 PartialEq,
681 Eq,
682 Hash
683 )]
684 #[ethevent(name = "Unwrapped", abi = "Unwrapped(address,uint256)")]
685 pub struct UnwrappedFilter {
686 #[ethevent(indexed)]
687 pub account: ::ethers::core::types::Address,
688 pub amount: ::ethers::core::types::U256,
689 }
690 #[derive(
691 Clone,
692 ::ethers::contract::EthEvent,
693 ::ethers::contract::EthDisplay,
694 serde::Serialize,
695 serde::Deserialize,
696 Default,
697 Debug,
698 PartialEq,
699 Eq,
700 Hash
701 )]
702 #[ethevent(name = "Wrapped", abi = "Wrapped(address,uint256)")]
703 pub struct WrappedFilter {
704 #[ethevent(indexed)]
705 pub account: ::ethers::core::types::Address,
706 pub amount: ::ethers::core::types::U256,
707 }
708 #[derive(
710 Clone,
711 ::ethers::contract::EthAbiType,
712 serde::Serialize,
713 serde::Deserialize,
714 Debug,
715 PartialEq,
716 Eq,
717 Hash
718 )]
719 pub enum HoprWrapperEvents {
720 OwnershipTransferredFilter(OwnershipTransferredFilter),
721 UnwrappedFilter(UnwrappedFilter),
722 WrappedFilter(WrappedFilter),
723 }
724 impl ::ethers::contract::EthLogDecode for HoprWrapperEvents {
725 fn decode_log(
726 log: &::ethers::core::abi::RawLog,
727 ) -> ::core::result::Result<Self, ::ethers::core::abi::Error> {
728 if let Ok(decoded) = OwnershipTransferredFilter::decode_log(log) {
729 return Ok(HoprWrapperEvents::OwnershipTransferredFilter(decoded));
730 }
731 if let Ok(decoded) = UnwrappedFilter::decode_log(log) {
732 return Ok(HoprWrapperEvents::UnwrappedFilter(decoded));
733 }
734 if let Ok(decoded) = WrappedFilter::decode_log(log) {
735 return Ok(HoprWrapperEvents::WrappedFilter(decoded));
736 }
737 Err(::ethers::core::abi::Error::InvalidData)
738 }
739 }
740 impl ::core::fmt::Display for HoprWrapperEvents {
741 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
742 match self {
743 Self::OwnershipTransferredFilter(element) => {
744 ::core::fmt::Display::fmt(element, f)
745 }
746 Self::UnwrappedFilter(element) => ::core::fmt::Display::fmt(element, f),
747 Self::WrappedFilter(element) => ::core::fmt::Display::fmt(element, f),
748 }
749 }
750 }
751 impl ::core::convert::From<OwnershipTransferredFilter> for HoprWrapperEvents {
752 fn from(value: OwnershipTransferredFilter) -> Self {
753 Self::OwnershipTransferredFilter(value)
754 }
755 }
756 impl ::core::convert::From<UnwrappedFilter> for HoprWrapperEvents {
757 fn from(value: UnwrappedFilter) -> Self {
758 Self::UnwrappedFilter(value)
759 }
760 }
761 impl ::core::convert::From<WrappedFilter> for HoprWrapperEvents {
762 fn from(value: WrappedFilter) -> Self {
763 Self::WrappedFilter(value)
764 }
765 }
766 #[derive(
768 Clone,
769 ::ethers::contract::EthCall,
770 ::ethers::contract::EthDisplay,
771 serde::Serialize,
772 serde::Deserialize,
773 Default,
774 Debug,
775 PartialEq,
776 Eq,
777 Hash
778 )]
779 #[ethcall(
780 name = "TOKENS_RECIPIENT_INTERFACE_HASH",
781 abi = "TOKENS_RECIPIENT_INTERFACE_HASH()"
782 )]
783 pub struct TokensRecipientInterfaceHashCall;
784 #[derive(
786 Clone,
787 ::ethers::contract::EthCall,
788 ::ethers::contract::EthDisplay,
789 serde::Serialize,
790 serde::Deserialize,
791 Default,
792 Debug,
793 PartialEq,
794 Eq,
795 Hash
796 )]
797 #[ethcall(
798 name = "canImplementInterfaceForAddress",
799 abi = "canImplementInterfaceForAddress(bytes32,address)"
800 )]
801 pub struct CanImplementInterfaceForAddressCall {
802 pub interface_hash: [u8; 32],
803 pub account: ::ethers::core::types::Address,
804 }
805 #[derive(
807 Clone,
808 ::ethers::contract::EthCall,
809 ::ethers::contract::EthDisplay,
810 serde::Serialize,
811 serde::Deserialize,
812 Default,
813 Debug,
814 PartialEq,
815 Eq,
816 Hash
817 )]
818 #[ethcall(name = "onTokenTransfer", abi = "onTokenTransfer(address,uint256,bytes)")]
819 pub struct OnTokenTransferCall {
820 pub from: ::ethers::core::types::Address,
821 pub amount: ::ethers::core::types::U256,
822 pub p2: ::ethers::core::types::Bytes,
823 }
824 #[derive(
826 Clone,
827 ::ethers::contract::EthCall,
828 ::ethers::contract::EthDisplay,
829 serde::Serialize,
830 serde::Deserialize,
831 Default,
832 Debug,
833 PartialEq,
834 Eq,
835 Hash
836 )]
837 #[ethcall(name = "owner", abi = "owner()")]
838 pub struct OwnerCall;
839 #[derive(
841 Clone,
842 ::ethers::contract::EthCall,
843 ::ethers::contract::EthDisplay,
844 serde::Serialize,
845 serde::Deserialize,
846 Default,
847 Debug,
848 PartialEq,
849 Eq,
850 Hash
851 )]
852 #[ethcall(name = "recoverTokens", abi = "recoverTokens()")]
853 pub struct RecoverTokensCall;
854 #[derive(
856 Clone,
857 ::ethers::contract::EthCall,
858 ::ethers::contract::EthDisplay,
859 serde::Serialize,
860 serde::Deserialize,
861 Default,
862 Debug,
863 PartialEq,
864 Eq,
865 Hash
866 )]
867 #[ethcall(name = "renounceOwnership", abi = "renounceOwnership()")]
868 pub struct RenounceOwnershipCall;
869 #[derive(
871 Clone,
872 ::ethers::contract::EthCall,
873 ::ethers::contract::EthDisplay,
874 serde::Serialize,
875 serde::Deserialize,
876 Default,
877 Debug,
878 PartialEq,
879 Eq,
880 Hash
881 )]
882 #[ethcall(
883 name = "tokensReceived",
884 abi = "tokensReceived(address,address,address,uint256,bytes,bytes)"
885 )]
886 pub struct TokensReceivedCall {
887 pub p0: ::ethers::core::types::Address,
888 pub from: ::ethers::core::types::Address,
889 pub to: ::ethers::core::types::Address,
890 pub amount: ::ethers::core::types::U256,
891 pub p4: ::ethers::core::types::Bytes,
892 pub p5: ::ethers::core::types::Bytes,
893 }
894 #[derive(
896 Clone,
897 ::ethers::contract::EthCall,
898 ::ethers::contract::EthDisplay,
899 serde::Serialize,
900 serde::Deserialize,
901 Default,
902 Debug,
903 PartialEq,
904 Eq,
905 Hash
906 )]
907 #[ethcall(name = "transferOwnership", abi = "transferOwnership(address)")]
908 pub struct TransferOwnershipCall {
909 pub new_owner: ::ethers::core::types::Address,
910 }
911 #[derive(
913 Clone,
914 ::ethers::contract::EthCall,
915 ::ethers::contract::EthDisplay,
916 serde::Serialize,
917 serde::Deserialize,
918 Default,
919 Debug,
920 PartialEq,
921 Eq,
922 Hash
923 )]
924 #[ethcall(name = "wxHOPR", abi = "wxHOPR()")]
925 pub struct WxHOPRCall;
926 #[derive(
928 Clone,
929 ::ethers::contract::EthCall,
930 ::ethers::contract::EthDisplay,
931 serde::Serialize,
932 serde::Deserialize,
933 Default,
934 Debug,
935 PartialEq,
936 Eq,
937 Hash
938 )]
939 #[ethcall(name = "xHOPR", abi = "xHOPR()")]
940 pub struct XhoprCall;
941 #[derive(
943 Clone,
944 ::ethers::contract::EthCall,
945 ::ethers::contract::EthDisplay,
946 serde::Serialize,
947 serde::Deserialize,
948 Default,
949 Debug,
950 PartialEq,
951 Eq,
952 Hash
953 )]
954 #[ethcall(name = "xHoprAmount", abi = "xHoprAmount()")]
955 pub struct XhoprAmountCall;
956 #[derive(
958 Clone,
959 ::ethers::contract::EthAbiType,
960 serde::Serialize,
961 serde::Deserialize,
962 Debug,
963 PartialEq,
964 Eq,
965 Hash
966 )]
967 pub enum HoprWrapperCalls {
968 TokensRecipientInterfaceHash(TokensRecipientInterfaceHashCall),
969 CanImplementInterfaceForAddress(CanImplementInterfaceForAddressCall),
970 OnTokenTransfer(OnTokenTransferCall),
971 Owner(OwnerCall),
972 RecoverTokens(RecoverTokensCall),
973 RenounceOwnership(RenounceOwnershipCall),
974 TokensReceived(TokensReceivedCall),
975 TransferOwnership(TransferOwnershipCall),
976 WxHOPR(WxHOPRCall),
977 Xhopr(XhoprCall),
978 XhoprAmount(XhoprAmountCall),
979 }
980 impl ::ethers::core::abi::AbiDecode for HoprWrapperCalls {
981 fn decode(
982 data: impl AsRef<[u8]>,
983 ) -> ::core::result::Result<Self, ::ethers::core::abi::AbiError> {
984 let data = data.as_ref();
985 if let Ok(decoded) = <TokensRecipientInterfaceHashCall as ::ethers::core::abi::AbiDecode>::decode(
986 data,
987 ) {
988 return Ok(Self::TokensRecipientInterfaceHash(decoded));
989 }
990 if let Ok(decoded) = <CanImplementInterfaceForAddressCall as ::ethers::core::abi::AbiDecode>::decode(
991 data,
992 ) {
993 return Ok(Self::CanImplementInterfaceForAddress(decoded));
994 }
995 if let Ok(decoded) = <OnTokenTransferCall as ::ethers::core::abi::AbiDecode>::decode(
996 data,
997 ) {
998 return Ok(Self::OnTokenTransfer(decoded));
999 }
1000 if let Ok(decoded) = <OwnerCall as ::ethers::core::abi::AbiDecode>::decode(
1001 data,
1002 ) {
1003 return Ok(Self::Owner(decoded));
1004 }
1005 if let Ok(decoded) = <RecoverTokensCall as ::ethers::core::abi::AbiDecode>::decode(
1006 data,
1007 ) {
1008 return Ok(Self::RecoverTokens(decoded));
1009 }
1010 if let Ok(decoded) = <RenounceOwnershipCall as ::ethers::core::abi::AbiDecode>::decode(
1011 data,
1012 ) {
1013 return Ok(Self::RenounceOwnership(decoded));
1014 }
1015 if let Ok(decoded) = <TokensReceivedCall as ::ethers::core::abi::AbiDecode>::decode(
1016 data,
1017 ) {
1018 return Ok(Self::TokensReceived(decoded));
1019 }
1020 if let Ok(decoded) = <TransferOwnershipCall as ::ethers::core::abi::AbiDecode>::decode(
1021 data,
1022 ) {
1023 return Ok(Self::TransferOwnership(decoded));
1024 }
1025 if let Ok(decoded) = <WxHOPRCall as ::ethers::core::abi::AbiDecode>::decode(
1026 data,
1027 ) {
1028 return Ok(Self::WxHOPR(decoded));
1029 }
1030 if let Ok(decoded) = <XhoprCall as ::ethers::core::abi::AbiDecode>::decode(
1031 data,
1032 ) {
1033 return Ok(Self::Xhopr(decoded));
1034 }
1035 if let Ok(decoded) = <XhoprAmountCall as ::ethers::core::abi::AbiDecode>::decode(
1036 data,
1037 ) {
1038 return Ok(Self::XhoprAmount(decoded));
1039 }
1040 Err(::ethers::core::abi::Error::InvalidData.into())
1041 }
1042 }
1043 impl ::ethers::core::abi::AbiEncode for HoprWrapperCalls {
1044 fn encode(self) -> Vec<u8> {
1045 match self {
1046 Self::TokensRecipientInterfaceHash(element) => {
1047 ::ethers::core::abi::AbiEncode::encode(element)
1048 }
1049 Self::CanImplementInterfaceForAddress(element) => {
1050 ::ethers::core::abi::AbiEncode::encode(element)
1051 }
1052 Self::OnTokenTransfer(element) => {
1053 ::ethers::core::abi::AbiEncode::encode(element)
1054 }
1055 Self::Owner(element) => ::ethers::core::abi::AbiEncode::encode(element),
1056 Self::RecoverTokens(element) => {
1057 ::ethers::core::abi::AbiEncode::encode(element)
1058 }
1059 Self::RenounceOwnership(element) => {
1060 ::ethers::core::abi::AbiEncode::encode(element)
1061 }
1062 Self::TokensReceived(element) => {
1063 ::ethers::core::abi::AbiEncode::encode(element)
1064 }
1065 Self::TransferOwnership(element) => {
1066 ::ethers::core::abi::AbiEncode::encode(element)
1067 }
1068 Self::WxHOPR(element) => ::ethers::core::abi::AbiEncode::encode(element),
1069 Self::Xhopr(element) => ::ethers::core::abi::AbiEncode::encode(element),
1070 Self::XhoprAmount(element) => {
1071 ::ethers::core::abi::AbiEncode::encode(element)
1072 }
1073 }
1074 }
1075 }
1076 impl ::core::fmt::Display for HoprWrapperCalls {
1077 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1078 match self {
1079 Self::TokensRecipientInterfaceHash(element) => {
1080 ::core::fmt::Display::fmt(element, f)
1081 }
1082 Self::CanImplementInterfaceForAddress(element) => {
1083 ::core::fmt::Display::fmt(element, f)
1084 }
1085 Self::OnTokenTransfer(element) => ::core::fmt::Display::fmt(element, f),
1086 Self::Owner(element) => ::core::fmt::Display::fmt(element, f),
1087 Self::RecoverTokens(element) => ::core::fmt::Display::fmt(element, f),
1088 Self::RenounceOwnership(element) => ::core::fmt::Display::fmt(element, f),
1089 Self::TokensReceived(element) => ::core::fmt::Display::fmt(element, f),
1090 Self::TransferOwnership(element) => ::core::fmt::Display::fmt(element, f),
1091 Self::WxHOPR(element) => ::core::fmt::Display::fmt(element, f),
1092 Self::Xhopr(element) => ::core::fmt::Display::fmt(element, f),
1093 Self::XhoprAmount(element) => ::core::fmt::Display::fmt(element, f),
1094 }
1095 }
1096 }
1097 impl ::core::convert::From<TokensRecipientInterfaceHashCall> for HoprWrapperCalls {
1098 fn from(value: TokensRecipientInterfaceHashCall) -> Self {
1099 Self::TokensRecipientInterfaceHash(value)
1100 }
1101 }
1102 impl ::core::convert::From<CanImplementInterfaceForAddressCall>
1103 for HoprWrapperCalls {
1104 fn from(value: CanImplementInterfaceForAddressCall) -> Self {
1105 Self::CanImplementInterfaceForAddress(value)
1106 }
1107 }
1108 impl ::core::convert::From<OnTokenTransferCall> for HoprWrapperCalls {
1109 fn from(value: OnTokenTransferCall) -> Self {
1110 Self::OnTokenTransfer(value)
1111 }
1112 }
1113 impl ::core::convert::From<OwnerCall> for HoprWrapperCalls {
1114 fn from(value: OwnerCall) -> Self {
1115 Self::Owner(value)
1116 }
1117 }
1118 impl ::core::convert::From<RecoverTokensCall> for HoprWrapperCalls {
1119 fn from(value: RecoverTokensCall) -> Self {
1120 Self::RecoverTokens(value)
1121 }
1122 }
1123 impl ::core::convert::From<RenounceOwnershipCall> for HoprWrapperCalls {
1124 fn from(value: RenounceOwnershipCall) -> Self {
1125 Self::RenounceOwnership(value)
1126 }
1127 }
1128 impl ::core::convert::From<TokensReceivedCall> for HoprWrapperCalls {
1129 fn from(value: TokensReceivedCall) -> Self {
1130 Self::TokensReceived(value)
1131 }
1132 }
1133 impl ::core::convert::From<TransferOwnershipCall> for HoprWrapperCalls {
1134 fn from(value: TransferOwnershipCall) -> Self {
1135 Self::TransferOwnership(value)
1136 }
1137 }
1138 impl ::core::convert::From<WxHOPRCall> for HoprWrapperCalls {
1139 fn from(value: WxHOPRCall) -> Self {
1140 Self::WxHOPR(value)
1141 }
1142 }
1143 impl ::core::convert::From<XhoprCall> for HoprWrapperCalls {
1144 fn from(value: XhoprCall) -> Self {
1145 Self::Xhopr(value)
1146 }
1147 }
1148 impl ::core::convert::From<XhoprAmountCall> for HoprWrapperCalls {
1149 fn from(value: XhoprAmountCall) -> Self {
1150 Self::XhoprAmount(value)
1151 }
1152 }
1153 #[derive(
1155 Clone,
1156 ::ethers::contract::EthAbiType,
1157 ::ethers::contract::EthAbiCodec,
1158 serde::Serialize,
1159 serde::Deserialize,
1160 Default,
1161 Debug,
1162 PartialEq,
1163 Eq,
1164 Hash
1165 )]
1166 pub struct TokensRecipientInterfaceHashReturn(pub [u8; 32]);
1167 #[derive(
1169 Clone,
1170 ::ethers::contract::EthAbiType,
1171 ::ethers::contract::EthAbiCodec,
1172 serde::Serialize,
1173 serde::Deserialize,
1174 Default,
1175 Debug,
1176 PartialEq,
1177 Eq,
1178 Hash
1179 )]
1180 pub struct CanImplementInterfaceForAddressReturn(pub [u8; 32]);
1181 #[derive(
1183 Clone,
1184 ::ethers::contract::EthAbiType,
1185 ::ethers::contract::EthAbiCodec,
1186 serde::Serialize,
1187 serde::Deserialize,
1188 Default,
1189 Debug,
1190 PartialEq,
1191 Eq,
1192 Hash
1193 )]
1194 pub struct OnTokenTransferReturn {
1195 pub success: bool,
1196 }
1197 #[derive(
1199 Clone,
1200 ::ethers::contract::EthAbiType,
1201 ::ethers::contract::EthAbiCodec,
1202 serde::Serialize,
1203 serde::Deserialize,
1204 Default,
1205 Debug,
1206 PartialEq,
1207 Eq,
1208 Hash
1209 )]
1210 pub struct OwnerReturn(pub ::ethers::core::types::Address);
1211 #[derive(
1213 Clone,
1214 ::ethers::contract::EthAbiType,
1215 ::ethers::contract::EthAbiCodec,
1216 serde::Serialize,
1217 serde::Deserialize,
1218 Default,
1219 Debug,
1220 PartialEq,
1221 Eq,
1222 Hash
1223 )]
1224 pub struct WxHOPRReturn(pub ::ethers::core::types::Address);
1225 #[derive(
1227 Clone,
1228 ::ethers::contract::EthAbiType,
1229 ::ethers::contract::EthAbiCodec,
1230 serde::Serialize,
1231 serde::Deserialize,
1232 Default,
1233 Debug,
1234 PartialEq,
1235 Eq,
1236 Hash
1237 )]
1238 pub struct XhoprReturn(pub ::ethers::core::types::Address);
1239 #[derive(
1241 Clone,
1242 ::ethers::contract::EthAbiType,
1243 ::ethers::contract::EthAbiCodec,
1244 serde::Serialize,
1245 serde::Deserialize,
1246 Default,
1247 Debug,
1248 PartialEq,
1249 Eq,
1250 Hash
1251 )]
1252 pub struct XhoprAmountReturn(pub ::ethers::core::types::U256);
1253}