1pub use hopr_node_stake_factory::*;
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_node_stake_factory {
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 }),
19 functions: ::core::convert::From::from([
20 (
21 ::std::borrow::ToOwned::to_owned("clone"),
22 ::std::vec![
23 ::ethers::core::abi::ethabi::Function {
24 name: ::std::borrow::ToOwned::to_owned("clone"),
25 inputs: ::std::vec![
26 ::ethers::core::abi::ethabi::Param {
27 name: ::std::borrow::ToOwned::to_owned(
28 "moduleSingletonAddress",
29 ),
30 kind: ::ethers::core::abi::ethabi::ParamType::Address,
31 internal_type: ::core::option::Option::Some(
32 ::std::borrow::ToOwned::to_owned("address"),
33 ),
34 },
35 ::ethers::core::abi::ethabi::Param {
36 name: ::std::borrow::ToOwned::to_owned("admins"),
37 kind: ::ethers::core::abi::ethabi::ParamType::Array(
38 ::std::boxed::Box::new(
39 ::ethers::core::abi::ethabi::ParamType::Address,
40 ),
41 ),
42 internal_type: ::core::option::Option::Some(
43 ::std::borrow::ToOwned::to_owned("address[]"),
44 ),
45 },
46 ::ethers::core::abi::ethabi::Param {
47 name: ::std::borrow::ToOwned::to_owned("nonce"),
48 kind: ::ethers::core::abi::ethabi::ParamType::Uint(
49 256usize,
50 ),
51 internal_type: ::core::option::Option::Some(
52 ::std::borrow::ToOwned::to_owned("uint256"),
53 ),
54 },
55 ::ethers::core::abi::ethabi::Param {
56 name: ::std::borrow::ToOwned::to_owned("defaultTarget"),
57 kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes(
58 32usize,
59 ),
60 internal_type: ::core::option::Option::Some(
61 ::std::borrow::ToOwned::to_owned("bytes32"),
62 ),
63 },
64 ],
65 outputs: ::std::vec![
66 ::ethers::core::abi::ethabi::Param {
67 name: ::std::string::String::new(),
68 kind: ::ethers::core::abi::ethabi::ParamType::Address,
69 internal_type: ::core::option::Option::Some(
70 ::std::borrow::ToOwned::to_owned("address"),
71 ),
72 },
73 ::ethers::core::abi::ethabi::Param {
74 name: ::std::string::String::new(),
75 kind: ::ethers::core::abi::ethabi::ParamType::Address,
76 internal_type: ::core::option::Option::Some(
77 ::std::borrow::ToOwned::to_owned("address payable"),
78 ),
79 },
80 ],
81 constant: ::core::option::Option::None,
82 state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable,
83 },
84 ],
85 ),
86 (
87 ::std::borrow::ToOwned::to_owned("predictDeterministicAddress"),
88 ::std::vec![
89 ::ethers::core::abi::ethabi::Function {
90 name: ::std::borrow::ToOwned::to_owned(
91 "predictDeterministicAddress",
92 ),
93 inputs: ::std::vec![
94 ::ethers::core::abi::ethabi::Param {
95 name: ::std::borrow::ToOwned::to_owned("implementation"),
96 kind: ::ethers::core::abi::ethabi::ParamType::Address,
97 internal_type: ::core::option::Option::Some(
98 ::std::borrow::ToOwned::to_owned("address"),
99 ),
100 },
101 ::ethers::core::abi::ethabi::Param {
102 name: ::std::borrow::ToOwned::to_owned("salt"),
103 kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes(
104 32usize,
105 ),
106 internal_type: ::core::option::Option::Some(
107 ::std::borrow::ToOwned::to_owned("bytes32"),
108 ),
109 },
110 ],
111 outputs: ::std::vec![
112 ::ethers::core::abi::ethabi::Param {
113 name: ::std::borrow::ToOwned::to_owned("predicted"),
114 kind: ::ethers::core::abi::ethabi::ParamType::Address,
115 internal_type: ::core::option::Option::Some(
116 ::std::borrow::ToOwned::to_owned("address"),
117 ),
118 },
119 ],
120 constant: ::core::option::Option::None,
121 state_mutability: ::ethers::core::abi::ethabi::StateMutability::View,
122 },
123 ],
124 ),
125 (
126 ::std::borrow::ToOwned::to_owned("safeVersion"),
127 ::std::vec![
128 ::ethers::core::abi::ethabi::Function {
129 name: ::std::borrow::ToOwned::to_owned("safeVersion"),
130 inputs: ::std::vec![],
131 outputs: ::std::vec![
132 ::ethers::core::abi::ethabi::Param {
133 name: ::std::string::String::new(),
134 kind: ::ethers::core::abi::ethabi::ParamType::String,
135 internal_type: ::core::option::Option::Some(
136 ::std::borrow::ToOwned::to_owned("string"),
137 ),
138 },
139 ],
140 constant: ::core::option::Option::None,
141 state_mutability: ::ethers::core::abi::ethabi::StateMutability::Pure,
142 },
143 ],
144 ),
145 ]),
146 events: ::core::convert::From::from([
147 (
148 ::std::borrow::ToOwned::to_owned("NewHoprNodeStakeModule"),
149 ::std::vec![
150 ::ethers::core::abi::ethabi::Event {
151 name: ::std::borrow::ToOwned::to_owned(
152 "NewHoprNodeStakeModule",
153 ),
154 inputs: ::std::vec![
155 ::ethers::core::abi::ethabi::EventParam {
156 name: ::std::borrow::ToOwned::to_owned(
157 "moduleImplementation",
158 ),
159 kind: ::ethers::core::abi::ethabi::ParamType::Address,
160 indexed: true,
161 },
162 ::ethers::core::abi::ethabi::EventParam {
163 name: ::std::borrow::ToOwned::to_owned("instance"),
164 kind: ::ethers::core::abi::ethabi::ParamType::Address,
165 indexed: false,
166 },
167 ],
168 anonymous: false,
169 },
170 ],
171 ),
172 (
173 ::std::borrow::ToOwned::to_owned("NewHoprNodeStakeSafe"),
174 ::std::vec![
175 ::ethers::core::abi::ethabi::Event {
176 name: ::std::borrow::ToOwned::to_owned(
177 "NewHoprNodeStakeSafe",
178 ),
179 inputs: ::std::vec![
180 ::ethers::core::abi::ethabi::EventParam {
181 name: ::std::borrow::ToOwned::to_owned("instance"),
182 kind: ::ethers::core::abi::ethabi::ParamType::Address,
183 indexed: false,
184 },
185 ],
186 anonymous: false,
187 },
188 ],
189 ),
190 ]),
191 errors: ::core::convert::From::from([
192 (
193 ::std::borrow::ToOwned::to_owned("TooFewOwners"),
194 ::std::vec![
195 ::ethers::core::abi::ethabi::AbiError {
196 name: ::std::borrow::ToOwned::to_owned("TooFewOwners"),
197 inputs: ::std::vec![],
198 },
199 ],
200 ),
201 ]),
202 receive: false,
203 fallback: false,
204 }
205 }
206 pub static HOPRNODESTAKEFACTORY_ABI: ::ethers::contract::Lazy<
208 ::ethers::core::abi::Abi,
209 > = ::ethers::contract::Lazy::new(__abi);
210 #[rustfmt::skip]
211 const __BYTECODE: &[u8] = b"`\xA0`@R4\x80\x15b\0\0\x11W`\0\x80\xFD[P0`\x80\x81\x90R`@\x80Q` \x81\x01\x92\x90\x92R`\0\x90\x82\x01R``\x01`@\x80Q`\x1F\x19\x81\x84\x03\x01\x81R\x90\x82\x90Rb\0\0R\x91`\x01`\xF8\x1B\x90` \x01b\0\0xV[`@Q` \x81\x83\x03\x03\x81R\x90`@R`\0\x90\x81b\0\0q\x91\x90b\0\x01vV[Pb\0\x02BV[`\0\x83Q`\0[\x81\x81\x10\x15b\0\0\x9BW` \x81\x87\x01\x81\x01Q\x85\x83\x01R\x01b\0\0\x7FV[P\x7F\xFF\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x93\x90\x93\x16\x91\x90\x92\x01\x90\x81R`\x01\x01\x92\x91PPV[cNH{q`\xE0\x1B`\0R`A`\x04R`$`\0\xFD[`\x01\x81\x81\x1C\x90\x82\x16\x80b\0\0\xFCW`\x7F\x82\x16\x91P[` \x82\x10\x81\x03b\0\x01\x1DWcNH{q`\xE0\x1B`\0R`\"`\x04R`$`\0\xFD[P\x91\x90PV[`\x1F\x82\x11\x15b\0\x01qW`\0\x81\x81R` \x81 `\x1F\x85\x01`\x05\x1C\x81\x01` \x86\x10\x15b\0\x01LWP\x80[`\x1F\x85\x01`\x05\x1C\x82\x01\x91P[\x81\x81\x10\x15b\0\x01mW\x82\x81U`\x01\x01b\0\x01XV[PPP[PPPV[\x81Q`\x01`\x01`@\x1B\x03\x81\x11\x15b\0\x01\x92Wb\0\x01\x92b\0\0\xD1V[b\0\x01\xAA\x81b\0\x01\xA3\x84Tb\0\0\xE7V[\x84b\0\x01#V[` \x80`\x1F\x83\x11`\x01\x81\x14b\0\x01\xE2W`\0\x84\x15b\0\x01\xC9WP\x85\x83\x01Q[`\0\x19`\x03\x86\x90\x1B\x1C\x19\x16`\x01\x85\x90\x1B\x17\x85Ub\0\x01mV[`\0\x85\x81R` \x81 `\x1F\x19\x86\x16\x91[\x82\x81\x10\x15b\0\x02\x13W\x88\x86\x01Q\x82U\x94\x84\x01\x94`\x01\x90\x91\x01\x90\x84\x01b\0\x01\xF2V[P\x85\x82\x10\x15b\0\x022W\x87\x85\x01Q`\0\x19`\x03\x88\x90\x1B`\xF8\x16\x1C\x19\x16\x81U[PPPPP`\x01\x90\x81\x1B\x01\x90UPV[`\x80Qa\r\xE6b\0\x02[`\09`\0PPa\r\xE6`\0\xF3\xFE`\x80`@R4\x80\x15a\0\x10W`\0\x80\xFD[P`\x046\x10a\0AW`\x005`\xE0\x1C\x80c6\r\x0F\xAD\x14a\0FW\x80c~\xF2r\x1F\x14a\0vW\x80c\x93\x0FBj\x14a\0\x9DW[`\0\x80\xFD[a\0Ya\0T6`\x04a\x08\xEEV[a\0\xD0V[`@Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x01[`@Q\x80\x91\x03\x90\xF3[`@\x80Q\x80\x82\x01\x82R`\x05\x81Rd1.4.1`\xD8\x1B` \x82\x01R\x90Qa\0m\x91\x90a\tjV[a\0\xB0a\0\xAB6`\x04a\t\x93V[a\0\xEEV[`@\x80Q`\x01`\x01`\xA0\x1B\x03\x93\x84\x16\x81R\x92\x90\x91\x16` \x83\x01R\x01a\0mV[`\0a\0\xE5`\x01`\x01`\xA0\x1B\x03\x84\x16\x83a\x04\x9DV[\x90P[\x92\x91PPV[`\0\x80\x84Q`\0\x03a\x01\x13W`@Qc\x06\xBF\xE8\xD5`\xE1\x1B\x81R`\x04\x01`@Q\x80\x91\x03\x90\xFD[`@Qk\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x193``\x1B\x16` \x82\x01R`4\x81\x01\x85\x90R`\0\x90`T\x01`@\x80Q`\x1F\x19\x81\x84\x03\x01\x81R\x91\x90R\x80Q` \x90\x91\x01 \x90P`\0a\x01j`\x01`\x01`\xA0\x1B\x03\x89\x16\x83a\x04\xFDV[\x90P`\0\x87`\0\x81Q\x81\x10a\x01\x81Wa\x01\x81a\n{V[` \x02` \x01\x01Q\x90P0\x88`\0\x81Q\x81\x10a\x01\x9FWa\x01\x9Fa\n{V[` \x02` \x01\x01\x90`\x01`\x01`\xA0\x1B\x03\x16\x90\x81`\x01`\x01`\xA0\x1B\x03\x16\x81RPP`\0\x88`\x01`\0s*\x15\xDED\x10\xD4\xC8\xAF\n{l\x12\x801 \xF4<B\xB8 `\0\x80`\0`@Q`$\x01a\x01\xF6\x97\x96\x95\x94\x93\x92\x91\x90a\n\x91V[`@\x80Q`\x1F\x19\x81\x84\x03\x01\x81R\x91\x81R` \x82\x01\x80Q`\x01`\x01`\xE0\x1B\x03\x16c\xB6>\x80\r`\xE0\x1B\x17\x90RQc\x16\x88\xF0\xB9`\xE0\x1B\x81R\x90\x91P`\0\x90sN\x1D\xCFz\xD4\xE4`\xCF\xD3\x07\x91\xCC\xC4\xF9\xC8\xA4\xF8 \xECg\x90c\x16\x88\xF0\xB9\x90a\x02s\x90sAg\\\t\x9F24\x1B\xF8K\xFCS\x82\xAFSM\xF5\xC7F\x1A\x90\x86\x90\x8E\x90`\x04\x01a\x0BRV[` `@Q\x80\x83\x03\x81`\0\x87Z\xF1\x15\x80\x15a\x02\x92W=`\0\x80>=`\0\xFD[PPPP`@Q=`\x1F\x19`\x1F\x82\x01\x16\x82\x01\x80`@RP\x81\x01\x90a\x02\xB6\x91\x90a\x0B\x86V[`@\x80Q`\x01`\x01`\xA0\x1B\x03\x83\x16` \x82\x01Rs\x96A\xD7d\xFC\x13\xC8\xB6$\xC0D0\xC75l\x1C|\x81\x02\xE2\x81\x83\x01R``\x80\x82\x01\x8C\x90R\x82Q\x80\x83\x03\x90\x91\x01\x81R`\x80\x82\x01\x90\x92R\x91\x92P\x82\x91`\0\x91a\x03\x0F\x91`\xA4\x01a\tjV[`@\x80Q`\x1F\x19\x81\x84\x03\x01\x81R\x91\x90R` \x81\x01\x80Q`\x01`\x01`\xE0\x1B\x03\x16cC\x9F\xAB\x91`\xE0\x1B\x17\x90R\x90Pa\x03N`\x01`\x01`\xA0\x1B\x03\x87\x16\x82a\x05\x9FV[P`@Q`\x01`\x01`\xA0\x1B\x03\x87\x16`$\x82\x01R`\0\x90`D\x01`@\x80Q`\x1F\x19\x81\x84\x03\x01\x81R\x91\x90R` \x81\x01\x80Q`\x01`\x01`\xE0\x1B\x03\x16ca\x0BY%`\xE0\x1B\x17\x90R\x90Pa\x03\x9F\x83`\0\x83a\x05\xE3V[`@Q`\x01`$\x82\x01R0`D\x82\x01R`\x01`\x01`\xA0\x1B\x03\x87\x16`d\x82\x01R`\0\x90`\x84\x01`@\x80Q`\x1F\x19\x81\x84\x03\x01\x81R\x91\x90R` \x81\x01\x80Q`\x01`\x01`\xE0\x1B\x03\x16c\xE3\x18\xB5+`\xE0\x1B\x17\x90R\x90Pa\x03\xFC\x84`\x01\x83a\x05\xE3V[\x8E`\x01`\x01`\xA0\x1B\x03\x16\x7F\x81=9\x1D\xC4\x90\xD6\xC1\xDA\xE7\xD3\xFD\xD5U\xF37S=\x1D\xA2\xC9\x08\xC6\xEF\xD3mL\xF5W\xA62\x06\x89`@Qa\x04D\x91\x90`\x01`\x01`\xA0\x1B\x03\x91\x90\x91\x16\x81R` \x01\x90V[`@Q\x80\x91\x03\x90\xA2`@Q`\x01`\x01`\xA0\x1B\x03\x86\x16\x81R\x7F\x821\xD1i\xF4\x16\xB6f\xAE\x7F\xA4?\xAA$\xA1\x88\x99s\x80u\xA5?2\xC9v\x17\xD1s\xB1\x89\xE3\x86\x90` \x01`@Q\x80\x91\x03\x90\xA1P\x95\x9D\x91\x9CP\x90\x9APPPPPPPPPPPV[`@Q0`8\x82\x01RoZ\xF4=\x82\x80>\x90=\x91`+W\xFD[\xF3\xFF`$\x82\x01R`\x14\x81\x01\x83\x90Rs=`-\x80`\n=9\x81\xF36==7===6=s\x81R`X\x81\x01\x82\x90R`7`\x0C\x82\x01 `x\x82\x01R`U`C\x90\x91\x01 `\0\x90a\0\xE5V[`\0v=`-\x80`\n=9\x81\xF36==7===6=s\0\0\0\x83``\x1B`\xE8\x1C\x17`\0RnZ\xF4=\x82\x80>\x90=\x91`+W\xFD[\xF3\x83`x\x1B\x17` R\x81`7`\t`\0\xF5\x90P`\x01`\x01`\xA0\x1B\x03\x81\x16a\0\xE8W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x17`$\x82\x01R\x7FERC1167: create2 failed\0\0\0\0\0\0\0\0\0`D\x82\x01R`d\x01[`@Q\x80\x91\x03\x90\xFD[``a\0\xE5\x83\x83`\0`@Q\x80`@\x01`@R\x80`\x1E\x81R` \x01\x7FAddress: low-level call failed\0\0\x81RPa\x07KV[`@Qc\x1B\x1A#\xEF`\xE3\x1B\x81R`\0\x90`\x01`\x01`\xA0\x1B\x03\x85\x16\x90c\xD8\xD1\x1Fx\x90a\x06$\x90\x87\x90\x85\x90\x87\x90\x82\x90\x81\x90\x81\x90\x81\x90\x81\x903\x90\x8F\x90`\x04\x01a\x0B\xCCV[` `@Q\x80\x83\x03\x81\x86Z\xFA\x15\x80\x15a\x06AW=`\0\x80>=`\0\xFD[PPPP`@Q=`\x1F\x19`\x1F\x82\x01\x16\x82\x01\x80`@RP\x81\x01\x90a\x06e\x91\x90a\x0CBV[`@Qc\xD4\xD9\xBD\xCD`\xE0\x1B\x81R`\x04\x81\x01\x82\x90R\x90\x91P`\x01`\x01`\xA0\x1B\x03\x85\x16\x90c\xD4\xD9\xBD\xCD\x90`$\x01`\0`@Q\x80\x83\x03\x81`\0\x87\x80;\x15\x80\x15a\x06\xAAW`\0\x80\xFD[PZ\xF1\x15\x80\x15a\x06\xBEW=`\0\x80>=`\0\xFD[PP`@Qc5;\t\x01`\xE1\x1B\x81R`\x01`\x01`\xA0\x1B\x03\x87\x16\x92Pcjv\x12\x02\x91Pa\x07\x01\x90\x87\x90`\0\x90\x87\x90\x82\x90\x81\x90\x81\x90\x81\x90\x81\x903\x90\x82\x90`\x04\x01a\x0C[V[` `@Q\x80\x83\x03\x81`\0\x87Z\xF1\x15\x80\x15a\x07 W=`\0\x80>=`\0\xFD[PPPP`@Q=`\x1F\x19`\x1F\x82\x01\x16\x82\x01\x80`@RP\x81\x01\x90a\x07D\x91\x90a\rrV[PPPPPV[``\x82G\x10\x15a\x07\xACW`@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\x05\x96V[`\0\x80\x86`\x01`\x01`\xA0\x1B\x03\x16\x85\x87`@Qa\x07\xC8\x91\x90a\r\x94V[`\0`@Q\x80\x83\x03\x81\x85\x87Z\xF1\x92PPP=\x80`\0\x81\x14a\x08\x05W`@Q\x91P`\x1F\x19`?=\x01\x16\x82\x01`@R=\x82R=`\0` \x84\x01>a\x08\nV[``\x91P[P\x91P\x91Pa\x08\x1B\x87\x83\x83\x87a\x08(V[\x92PPP[\x94\x93PPPPV[``\x83\x15a\x08\x97W\x82Q`\0\x03a\x08\x90W`\x01`\x01`\xA0\x1B\x03\x85\x16;a\x08\x90W`@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\x05\x96V[P\x81a\x08 V[a\x08 \x83\x83\x81Q\x15a\x08\xACW\x81Q\x80\x83` \x01\xFD[\x80`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x05\x96\x91\x90a\tjV[`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x14a\x08\xDBW`\0\x80\xFD[PV[\x805a\x08\xE9\x81a\x08\xC6V[\x91\x90PV[`\0\x80`@\x83\x85\x03\x12\x15a\t\x01W`\0\x80\xFD[\x825a\t\x0C\x81a\x08\xC6V[\x94` \x93\x90\x93\x015\x93PPPV[`\0[\x83\x81\x10\x15a\t5W\x81\x81\x01Q\x83\x82\x01R` \x01a\t\x1DV[PP`\0\x91\x01RV[`\0\x81Q\x80\x84Ra\tV\x81` \x86\x01` \x86\x01a\t\x1AV[`\x1F\x01`\x1F\x19\x16\x92\x90\x92\x01` \x01\x92\x91PPV[` \x81R`\0a\0\xE5` \x83\x01\x84a\t>V[cNH{q`\xE0\x1B`\0R`A`\x04R`$`\0\xFD[`\0\x80`\0\x80`\x80\x85\x87\x03\x12\x15a\t\xA9W`\0\x80\xFD[\x845a\t\xB4\x81a\x08\xC6V[\x93P` \x85\x81\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x80\x82\x11\x15a\t\xD2W`\0\x80\xFD[\x81\x88\x01\x91P\x88`\x1F\x83\x01\x12a\t\xE6W`\0\x80\xFD[\x815\x81\x81\x11\x15a\t\xF8Wa\t\xF8a\t}V[\x80`\x05\x1B`@Q`\x1F\x19`?\x83\x01\x16\x81\x01\x81\x81\x10\x85\x82\x11\x17\x15a\n\x1DWa\n\x1Da\t}V[`@R\x91\x82R\x84\x82\x01\x92P\x83\x81\x01\x85\x01\x91\x8B\x83\x11\x15a\n;W`\0\x80\xFD[\x93\x85\x01\x93[\x82\x85\x10\x15a\n`Wa\nQ\x85a\x08\xDEV[\x84R\x93\x85\x01\x93\x92\x85\x01\x92a\n@V[\x98\x9B\x98\x9APPPP`@\x87\x015\x96``\x015\x95\x94PPPPPV[cNH{q`\xE0\x1B`\0R`2`\x04R`$`\0\xFD[a\x01\0\x80\x82R\x88Q\x90\x82\x01\x81\x90R`\0\x90a\x01 \x83\x01\x90` \x90\x81\x8C\x01\x84[\x82\x81\x10\x15a\n\xD5W\x81Q`\x01`\x01`\xA0\x1B\x03\x16\x85R\x93\x83\x01\x93\x90\x83\x01\x90`\x01\x01a\n\xB0V[PPP`\xFF\x8A\x16\x84\x82\x01RP`\x01`\x01`\xA0\x1B\x03\x88\x16`@\x84\x01R\x82\x81\x03``\x84\x01R`\x01\x81R`\0` \x82\x01R`@\x81\x01\x91PPa\x0B\x1F`\x80\x83\x01\x87`\x01`\x01`\xA0\x1B\x03\x16\x90RV[`\x01`\x01`\xA0\x1B\x03\x85\x16`\xA0\x83\x01R`\xFF\x84\x16`\xC0\x83\x01R`\x01`\x01`\xA0\x1B\x03\x83\x16`\xE0\x83\x01R\x98\x97PPPPPPPPV[`\x01`\x01`\xA0\x1B\x03\x84\x16\x81R``` \x82\x01\x81\x90R`\0\x90a\x0Bv\x90\x83\x01\x85a\t>V[\x90P\x82`@\x83\x01R\x94\x93PPPPV[`\0` \x82\x84\x03\x12\x15a\x0B\x98W`\0\x80\xFD[\x81Qa\x0B\xA3\x81a\x08\xC6V[\x93\x92PPPV[`\x02\x81\x10a\x0B\xC8WcNH{q`\xE0\x1B`\0R`!`\x04R`$`\0\xFD[\x90RV[`\x01`\x01`\xA0\x1B\x03\x8B\x81\x16\x82R` \x82\x01\x8B\x90Ra\x01@`@\x83\x01\x81\x90R`\0\x91a\x0B\xF9\x84\x83\x01\x8Da\t>V[\x92Pa\x0C\x08``\x85\x01\x8Ca\x0B\xAAV[`\x80\x84\x01\x99\x90\x99RP`\xA0\x82\x01\x96\x90\x96R`\xC0\x81\x01\x94\x90\x94R\x91\x85\x16`\xE0\x84\x01R\x90\x93\x16a\x01\0\x82\x01Ra\x01 \x01\x91\x90\x91R\x94\x93PPPPV[`\0` \x82\x84\x03\x12\x15a\x0CTW`\0\x80\xFD[PQ\x91\x90PV[`\0a\x01@`\x01\x80`\xA0\x1B\x03\x80\x8E\x16\x84R` \x8D\x81\x86\x01R\x82`@\x86\x01Ra\x0C\x85\x83\x86\x01\x8Ea\t>V[\x92Pa\x0C\x94``\x86\x01\x8Da\x0B\xAAV[\x8A`\x80\x86\x01R\x89`\xA0\x86\x01R\x88`\xC0\x86\x01R\x81\x88\x16`\xE0\x86\x01R\x81\x87\x16a\x01\0\x86\x01R\x84\x83\x03a\x01 \x86\x01R`\0\x91P\x85T\x82`\x01\x82\x81\x1C\x91P\x80\x83\x16\x80a\x0C\xDDW`\x7F\x83\x16\x92P[\x84\x83\x10\x81\x03a\x0C\xFAWcNH{q`\xE0\x1B\x86R`\"`\x04R`$\x86\xFD[\x82\x87R` \x87\x01\x96P\x80\x80\x15a\r\x17W`\x01\x81\x14a\r-Wa\rXV[`\xFF\x19\x85\x16\x88R\x83\x15\x15`\x05\x1B\x88\x01\x96Pa\rXV[`\0\x8B\x81R` \x90 `\0[\x85\x81\x10\x15a\rRW\x81T\x8A\x82\x01R\x90\x84\x01\x90\x87\x01a\r9V[\x89\x01\x97PP[PPPPPP\x80\x92PPP\x9B\x9APPPPPPPPPPPV[`\0` \x82\x84\x03\x12\x15a\r\x84W`\0\x80\xFD[\x81Q\x80\x15\x15\x81\x14a\x0B\xA3W`\0\x80\xFD[`\0\x82Qa\r\xA6\x81\x84` \x87\x01a\t\x1AV[\x91\x90\x91\x01\x92\x91PPV\xFE\xA2dipfsX\"\x12 \x98\x86ik)\t\xC8\xEF\xE8\x18\x02\xF6\xE7_\xD0\xD1\x07.\x9BW\xE0\xCAV\x80\xD6\x16\x8A\xAF_\xAEK\xC3dsolcC\0\x08\x13\x003";
212 pub static HOPRNODESTAKEFACTORY_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static(
214 __BYTECODE,
215 );
216 #[rustfmt::skip]
217 const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@R4\x80\x15a\0\x10W`\0\x80\xFD[P`\x046\x10a\0AW`\x005`\xE0\x1C\x80c6\r\x0F\xAD\x14a\0FW\x80c~\xF2r\x1F\x14a\0vW\x80c\x93\x0FBj\x14a\0\x9DW[`\0\x80\xFD[a\0Ya\0T6`\x04a\x08\xEEV[a\0\xD0V[`@Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x01[`@Q\x80\x91\x03\x90\xF3[`@\x80Q\x80\x82\x01\x82R`\x05\x81Rd1.4.1`\xD8\x1B` \x82\x01R\x90Qa\0m\x91\x90a\tjV[a\0\xB0a\0\xAB6`\x04a\t\x93V[a\0\xEEV[`@\x80Q`\x01`\x01`\xA0\x1B\x03\x93\x84\x16\x81R\x92\x90\x91\x16` \x83\x01R\x01a\0mV[`\0a\0\xE5`\x01`\x01`\xA0\x1B\x03\x84\x16\x83a\x04\x9DV[\x90P[\x92\x91PPV[`\0\x80\x84Q`\0\x03a\x01\x13W`@Qc\x06\xBF\xE8\xD5`\xE1\x1B\x81R`\x04\x01`@Q\x80\x91\x03\x90\xFD[`@Qk\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x193``\x1B\x16` \x82\x01R`4\x81\x01\x85\x90R`\0\x90`T\x01`@\x80Q`\x1F\x19\x81\x84\x03\x01\x81R\x91\x90R\x80Q` \x90\x91\x01 \x90P`\0a\x01j`\x01`\x01`\xA0\x1B\x03\x89\x16\x83a\x04\xFDV[\x90P`\0\x87`\0\x81Q\x81\x10a\x01\x81Wa\x01\x81a\n{V[` \x02` \x01\x01Q\x90P0\x88`\0\x81Q\x81\x10a\x01\x9FWa\x01\x9Fa\n{V[` \x02` \x01\x01\x90`\x01`\x01`\xA0\x1B\x03\x16\x90\x81`\x01`\x01`\xA0\x1B\x03\x16\x81RPP`\0\x88`\x01`\0s*\x15\xDED\x10\xD4\xC8\xAF\n{l\x12\x801 \xF4<B\xB8 `\0\x80`\0`@Q`$\x01a\x01\xF6\x97\x96\x95\x94\x93\x92\x91\x90a\n\x91V[`@\x80Q`\x1F\x19\x81\x84\x03\x01\x81R\x91\x81R` \x82\x01\x80Q`\x01`\x01`\xE0\x1B\x03\x16c\xB6>\x80\r`\xE0\x1B\x17\x90RQc\x16\x88\xF0\xB9`\xE0\x1B\x81R\x90\x91P`\0\x90sN\x1D\xCFz\xD4\xE4`\xCF\xD3\x07\x91\xCC\xC4\xF9\xC8\xA4\xF8 \xECg\x90c\x16\x88\xF0\xB9\x90a\x02s\x90sAg\\\t\x9F24\x1B\xF8K\xFCS\x82\xAFSM\xF5\xC7F\x1A\x90\x86\x90\x8E\x90`\x04\x01a\x0BRV[` `@Q\x80\x83\x03\x81`\0\x87Z\xF1\x15\x80\x15a\x02\x92W=`\0\x80>=`\0\xFD[PPPP`@Q=`\x1F\x19`\x1F\x82\x01\x16\x82\x01\x80`@RP\x81\x01\x90a\x02\xB6\x91\x90a\x0B\x86V[`@\x80Q`\x01`\x01`\xA0\x1B\x03\x83\x16` \x82\x01Rs\x96A\xD7d\xFC\x13\xC8\xB6$\xC0D0\xC75l\x1C|\x81\x02\xE2\x81\x83\x01R``\x80\x82\x01\x8C\x90R\x82Q\x80\x83\x03\x90\x91\x01\x81R`\x80\x82\x01\x90\x92R\x91\x92P\x82\x91`\0\x91a\x03\x0F\x91`\xA4\x01a\tjV[`@\x80Q`\x1F\x19\x81\x84\x03\x01\x81R\x91\x90R` \x81\x01\x80Q`\x01`\x01`\xE0\x1B\x03\x16cC\x9F\xAB\x91`\xE0\x1B\x17\x90R\x90Pa\x03N`\x01`\x01`\xA0\x1B\x03\x87\x16\x82a\x05\x9FV[P`@Q`\x01`\x01`\xA0\x1B\x03\x87\x16`$\x82\x01R`\0\x90`D\x01`@\x80Q`\x1F\x19\x81\x84\x03\x01\x81R\x91\x90R` \x81\x01\x80Q`\x01`\x01`\xE0\x1B\x03\x16ca\x0BY%`\xE0\x1B\x17\x90R\x90Pa\x03\x9F\x83`\0\x83a\x05\xE3V[`@Q`\x01`$\x82\x01R0`D\x82\x01R`\x01`\x01`\xA0\x1B\x03\x87\x16`d\x82\x01R`\0\x90`\x84\x01`@\x80Q`\x1F\x19\x81\x84\x03\x01\x81R\x91\x90R` \x81\x01\x80Q`\x01`\x01`\xE0\x1B\x03\x16c\xE3\x18\xB5+`\xE0\x1B\x17\x90R\x90Pa\x03\xFC\x84`\x01\x83a\x05\xE3V[\x8E`\x01`\x01`\xA0\x1B\x03\x16\x7F\x81=9\x1D\xC4\x90\xD6\xC1\xDA\xE7\xD3\xFD\xD5U\xF37S=\x1D\xA2\xC9\x08\xC6\xEF\xD3mL\xF5W\xA62\x06\x89`@Qa\x04D\x91\x90`\x01`\x01`\xA0\x1B\x03\x91\x90\x91\x16\x81R` \x01\x90V[`@Q\x80\x91\x03\x90\xA2`@Q`\x01`\x01`\xA0\x1B\x03\x86\x16\x81R\x7F\x821\xD1i\xF4\x16\xB6f\xAE\x7F\xA4?\xAA$\xA1\x88\x99s\x80u\xA5?2\xC9v\x17\xD1s\xB1\x89\xE3\x86\x90` \x01`@Q\x80\x91\x03\x90\xA1P\x95\x9D\x91\x9CP\x90\x9APPPPPPPPPPPV[`@Q0`8\x82\x01RoZ\xF4=\x82\x80>\x90=\x91`+W\xFD[\xF3\xFF`$\x82\x01R`\x14\x81\x01\x83\x90Rs=`-\x80`\n=9\x81\xF36==7===6=s\x81R`X\x81\x01\x82\x90R`7`\x0C\x82\x01 `x\x82\x01R`U`C\x90\x91\x01 `\0\x90a\0\xE5V[`\0v=`-\x80`\n=9\x81\xF36==7===6=s\0\0\0\x83``\x1B`\xE8\x1C\x17`\0RnZ\xF4=\x82\x80>\x90=\x91`+W\xFD[\xF3\x83`x\x1B\x17` R\x81`7`\t`\0\xF5\x90P`\x01`\x01`\xA0\x1B\x03\x81\x16a\0\xE8W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x17`$\x82\x01R\x7FERC1167: create2 failed\0\0\0\0\0\0\0\0\0`D\x82\x01R`d\x01[`@Q\x80\x91\x03\x90\xFD[``a\0\xE5\x83\x83`\0`@Q\x80`@\x01`@R\x80`\x1E\x81R` \x01\x7FAddress: low-level call failed\0\0\x81RPa\x07KV[`@Qc\x1B\x1A#\xEF`\xE3\x1B\x81R`\0\x90`\x01`\x01`\xA0\x1B\x03\x85\x16\x90c\xD8\xD1\x1Fx\x90a\x06$\x90\x87\x90\x85\x90\x87\x90\x82\x90\x81\x90\x81\x90\x81\x90\x81\x903\x90\x8F\x90`\x04\x01a\x0B\xCCV[` `@Q\x80\x83\x03\x81\x86Z\xFA\x15\x80\x15a\x06AW=`\0\x80>=`\0\xFD[PPPP`@Q=`\x1F\x19`\x1F\x82\x01\x16\x82\x01\x80`@RP\x81\x01\x90a\x06e\x91\x90a\x0CBV[`@Qc\xD4\xD9\xBD\xCD`\xE0\x1B\x81R`\x04\x81\x01\x82\x90R\x90\x91P`\x01`\x01`\xA0\x1B\x03\x85\x16\x90c\xD4\xD9\xBD\xCD\x90`$\x01`\0`@Q\x80\x83\x03\x81`\0\x87\x80;\x15\x80\x15a\x06\xAAW`\0\x80\xFD[PZ\xF1\x15\x80\x15a\x06\xBEW=`\0\x80>=`\0\xFD[PP`@Qc5;\t\x01`\xE1\x1B\x81R`\x01`\x01`\xA0\x1B\x03\x87\x16\x92Pcjv\x12\x02\x91Pa\x07\x01\x90\x87\x90`\0\x90\x87\x90\x82\x90\x81\x90\x81\x90\x81\x90\x81\x903\x90\x82\x90`\x04\x01a\x0C[V[` `@Q\x80\x83\x03\x81`\0\x87Z\xF1\x15\x80\x15a\x07 W=`\0\x80>=`\0\xFD[PPPP`@Q=`\x1F\x19`\x1F\x82\x01\x16\x82\x01\x80`@RP\x81\x01\x90a\x07D\x91\x90a\rrV[PPPPPV[``\x82G\x10\x15a\x07\xACW`@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\x05\x96V[`\0\x80\x86`\x01`\x01`\xA0\x1B\x03\x16\x85\x87`@Qa\x07\xC8\x91\x90a\r\x94V[`\0`@Q\x80\x83\x03\x81\x85\x87Z\xF1\x92PPP=\x80`\0\x81\x14a\x08\x05W`@Q\x91P`\x1F\x19`?=\x01\x16\x82\x01`@R=\x82R=`\0` \x84\x01>a\x08\nV[``\x91P[P\x91P\x91Pa\x08\x1B\x87\x83\x83\x87a\x08(V[\x92PPP[\x94\x93PPPPV[``\x83\x15a\x08\x97W\x82Q`\0\x03a\x08\x90W`\x01`\x01`\xA0\x1B\x03\x85\x16;a\x08\x90W`@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\x05\x96V[P\x81a\x08 V[a\x08 \x83\x83\x81Q\x15a\x08\xACW\x81Q\x80\x83` \x01\xFD[\x80`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x05\x96\x91\x90a\tjV[`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x14a\x08\xDBW`\0\x80\xFD[PV[\x805a\x08\xE9\x81a\x08\xC6V[\x91\x90PV[`\0\x80`@\x83\x85\x03\x12\x15a\t\x01W`\0\x80\xFD[\x825a\t\x0C\x81a\x08\xC6V[\x94` \x93\x90\x93\x015\x93PPPV[`\0[\x83\x81\x10\x15a\t5W\x81\x81\x01Q\x83\x82\x01R` \x01a\t\x1DV[PP`\0\x91\x01RV[`\0\x81Q\x80\x84Ra\tV\x81` \x86\x01` \x86\x01a\t\x1AV[`\x1F\x01`\x1F\x19\x16\x92\x90\x92\x01` \x01\x92\x91PPV[` \x81R`\0a\0\xE5` \x83\x01\x84a\t>V[cNH{q`\xE0\x1B`\0R`A`\x04R`$`\0\xFD[`\0\x80`\0\x80`\x80\x85\x87\x03\x12\x15a\t\xA9W`\0\x80\xFD[\x845a\t\xB4\x81a\x08\xC6V[\x93P` \x85\x81\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x80\x82\x11\x15a\t\xD2W`\0\x80\xFD[\x81\x88\x01\x91P\x88`\x1F\x83\x01\x12a\t\xE6W`\0\x80\xFD[\x815\x81\x81\x11\x15a\t\xF8Wa\t\xF8a\t}V[\x80`\x05\x1B`@Q`\x1F\x19`?\x83\x01\x16\x81\x01\x81\x81\x10\x85\x82\x11\x17\x15a\n\x1DWa\n\x1Da\t}V[`@R\x91\x82R\x84\x82\x01\x92P\x83\x81\x01\x85\x01\x91\x8B\x83\x11\x15a\n;W`\0\x80\xFD[\x93\x85\x01\x93[\x82\x85\x10\x15a\n`Wa\nQ\x85a\x08\xDEV[\x84R\x93\x85\x01\x93\x92\x85\x01\x92a\n@V[\x98\x9B\x98\x9APPPP`@\x87\x015\x96``\x015\x95\x94PPPPPV[cNH{q`\xE0\x1B`\0R`2`\x04R`$`\0\xFD[a\x01\0\x80\x82R\x88Q\x90\x82\x01\x81\x90R`\0\x90a\x01 \x83\x01\x90` \x90\x81\x8C\x01\x84[\x82\x81\x10\x15a\n\xD5W\x81Q`\x01`\x01`\xA0\x1B\x03\x16\x85R\x93\x83\x01\x93\x90\x83\x01\x90`\x01\x01a\n\xB0V[PPP`\xFF\x8A\x16\x84\x82\x01RP`\x01`\x01`\xA0\x1B\x03\x88\x16`@\x84\x01R\x82\x81\x03``\x84\x01R`\x01\x81R`\0` \x82\x01R`@\x81\x01\x91PPa\x0B\x1F`\x80\x83\x01\x87`\x01`\x01`\xA0\x1B\x03\x16\x90RV[`\x01`\x01`\xA0\x1B\x03\x85\x16`\xA0\x83\x01R`\xFF\x84\x16`\xC0\x83\x01R`\x01`\x01`\xA0\x1B\x03\x83\x16`\xE0\x83\x01R\x98\x97PPPPPPPPV[`\x01`\x01`\xA0\x1B\x03\x84\x16\x81R``` \x82\x01\x81\x90R`\0\x90a\x0Bv\x90\x83\x01\x85a\t>V[\x90P\x82`@\x83\x01R\x94\x93PPPPV[`\0` \x82\x84\x03\x12\x15a\x0B\x98W`\0\x80\xFD[\x81Qa\x0B\xA3\x81a\x08\xC6V[\x93\x92PPPV[`\x02\x81\x10a\x0B\xC8WcNH{q`\xE0\x1B`\0R`!`\x04R`$`\0\xFD[\x90RV[`\x01`\x01`\xA0\x1B\x03\x8B\x81\x16\x82R` \x82\x01\x8B\x90Ra\x01@`@\x83\x01\x81\x90R`\0\x91a\x0B\xF9\x84\x83\x01\x8Da\t>V[\x92Pa\x0C\x08``\x85\x01\x8Ca\x0B\xAAV[`\x80\x84\x01\x99\x90\x99RP`\xA0\x82\x01\x96\x90\x96R`\xC0\x81\x01\x94\x90\x94R\x91\x85\x16`\xE0\x84\x01R\x90\x93\x16a\x01\0\x82\x01Ra\x01 \x01\x91\x90\x91R\x94\x93PPPPV[`\0` \x82\x84\x03\x12\x15a\x0CTW`\0\x80\xFD[PQ\x91\x90PV[`\0a\x01@`\x01\x80`\xA0\x1B\x03\x80\x8E\x16\x84R` \x8D\x81\x86\x01R\x82`@\x86\x01Ra\x0C\x85\x83\x86\x01\x8Ea\t>V[\x92Pa\x0C\x94``\x86\x01\x8Da\x0B\xAAV[\x8A`\x80\x86\x01R\x89`\xA0\x86\x01R\x88`\xC0\x86\x01R\x81\x88\x16`\xE0\x86\x01R\x81\x87\x16a\x01\0\x86\x01R\x84\x83\x03a\x01 \x86\x01R`\0\x91P\x85T\x82`\x01\x82\x81\x1C\x91P\x80\x83\x16\x80a\x0C\xDDW`\x7F\x83\x16\x92P[\x84\x83\x10\x81\x03a\x0C\xFAWcNH{q`\xE0\x1B\x86R`\"`\x04R`$\x86\xFD[\x82\x87R` \x87\x01\x96P\x80\x80\x15a\r\x17W`\x01\x81\x14a\r-Wa\rXV[`\xFF\x19\x85\x16\x88R\x83\x15\x15`\x05\x1B\x88\x01\x96Pa\rXV[`\0\x8B\x81R` \x90 `\0[\x85\x81\x10\x15a\rRW\x81T\x8A\x82\x01R\x90\x84\x01\x90\x87\x01a\r9V[\x89\x01\x97PP[PPPPPP\x80\x92PPP\x9B\x9APPPPPPPPPPPV[`\0` \x82\x84\x03\x12\x15a\r\x84W`\0\x80\xFD[\x81Q\x80\x15\x15\x81\x14a\x0B\xA3W`\0\x80\xFD[`\0\x82Qa\r\xA6\x81\x84` \x87\x01a\t\x1AV[\x91\x90\x91\x01\x92\x91PPV\xFE\xA2dipfsX\"\x12 \x98\x86ik)\t\xC8\xEF\xE8\x18\x02\xF6\xE7_\xD0\xD1\x07.\x9BW\xE0\xCAV\x80\xD6\x16\x8A\xAF_\xAEK\xC3dsolcC\0\x08\x13\x003";
218 pub static HOPRNODESTAKEFACTORY_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static(
220 __DEPLOYED_BYTECODE,
221 );
222 pub struct HoprNodeStakeFactory<M>(::ethers::contract::Contract<M>);
223 impl<M> ::core::clone::Clone for HoprNodeStakeFactory<M> {
224 fn clone(&self) -> Self {
225 Self(::core::clone::Clone::clone(&self.0))
226 }
227 }
228 impl<M> ::core::ops::Deref for HoprNodeStakeFactory<M> {
229 type Target = ::ethers::contract::Contract<M>;
230 fn deref(&self) -> &Self::Target {
231 &self.0
232 }
233 }
234 impl<M> ::core::ops::DerefMut for HoprNodeStakeFactory<M> {
235 fn deref_mut(&mut self) -> &mut Self::Target {
236 &mut self.0
237 }
238 }
239 impl<M> ::core::fmt::Debug for HoprNodeStakeFactory<M> {
240 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
241 f.debug_tuple(::core::stringify!(HoprNodeStakeFactory))
242 .field(&self.address())
243 .finish()
244 }
245 }
246 impl<M: ::ethers::providers::Middleware> HoprNodeStakeFactory<M> {
247 pub fn new<T: Into<::ethers::core::types::Address>>(
250 address: T,
251 client: ::std::sync::Arc<M>,
252 ) -> Self {
253 Self(
254 ::ethers::contract::Contract::new(
255 address.into(),
256 HOPRNODESTAKEFACTORY_ABI.clone(),
257 client,
258 ),
259 )
260 }
261 pub fn deploy<T: ::ethers::core::abi::Tokenize>(
285 client: ::std::sync::Arc<M>,
286 constructor_args: T,
287 ) -> ::core::result::Result<
288 ::ethers::contract::builders::ContractDeployer<M, Self>,
289 ::ethers::contract::ContractError<M>,
290 > {
291 let factory = ::ethers::contract::ContractFactory::new(
292 HOPRNODESTAKEFACTORY_ABI.clone(),
293 HOPRNODESTAKEFACTORY_BYTECODE.clone().into(),
294 client,
295 );
296 let deployer = factory.deploy(constructor_args)?;
297 let deployer = ::ethers::contract::ContractDeployer::new(deployer);
298 Ok(deployer)
299 }
300 pub fn clone(
302 &self,
303 module_singleton_address: ::ethers::core::types::Address,
304 admins: ::std::vec::Vec<::ethers::core::types::Address>,
305 nonce: ::ethers::core::types::U256,
306 default_target: [u8; 32],
307 ) -> ::ethers::contract::builders::ContractCall<
308 M,
309 (::ethers::core::types::Address, ::ethers::core::types::Address),
310 > {
311 self.0
312 .method_hash(
313 [147, 15, 66, 106],
314 (module_singleton_address, admins, nonce, default_target),
315 )
316 .expect("method not found (this should never happen)")
317 }
318 pub fn predict_deterministic_address(
320 &self,
321 implementation: ::ethers::core::types::Address,
322 salt: [u8; 32],
323 ) -> ::ethers::contract::builders::ContractCall<
324 M,
325 ::ethers::core::types::Address,
326 > {
327 self.0
328 .method_hash([54, 13, 15, 173], (implementation, salt))
329 .expect("method not found (this should never happen)")
330 }
331 pub fn safe_version(
333 &self,
334 ) -> ::ethers::contract::builders::ContractCall<M, ::std::string::String> {
335 self.0
336 .method_hash([126, 242, 114, 31], ())
337 .expect("method not found (this should never happen)")
338 }
339 pub fn new_hopr_node_stake_module_filter(
341 &self,
342 ) -> ::ethers::contract::builders::Event<
343 ::std::sync::Arc<M>,
344 M,
345 NewHoprNodeStakeModuleFilter,
346 > {
347 self.0.event()
348 }
349 pub fn new_hopr_node_stake_safe_filter(
351 &self,
352 ) -> ::ethers::contract::builders::Event<
353 ::std::sync::Arc<M>,
354 M,
355 NewHoprNodeStakeSafeFilter,
356 > {
357 self.0.event()
358 }
359 pub fn events(
361 &self,
362 ) -> ::ethers::contract::builders::Event<
363 ::std::sync::Arc<M>,
364 M,
365 HoprNodeStakeFactoryEvents,
366 > {
367 self.0.event_with_filter(::core::default::Default::default())
368 }
369 }
370 impl<M: ::ethers::providers::Middleware> From<::ethers::contract::Contract<M>>
371 for HoprNodeStakeFactory<M> {
372 fn from(contract: ::ethers::contract::Contract<M>) -> Self {
373 Self::new(contract.address(), contract.client())
374 }
375 }
376 #[derive(
378 Clone,
379 ::ethers::contract::EthError,
380 ::ethers::contract::EthDisplay,
381 serde::Serialize,
382 serde::Deserialize,
383 Default,
384 Debug,
385 PartialEq,
386 Eq,
387 Hash
388 )]
389 #[etherror(name = "TooFewOwners", abi = "TooFewOwners()")]
390 pub struct TooFewOwners;
391 #[derive(
392 Clone,
393 ::ethers::contract::EthEvent,
394 ::ethers::contract::EthDisplay,
395 serde::Serialize,
396 serde::Deserialize,
397 Default,
398 Debug,
399 PartialEq,
400 Eq,
401 Hash
402 )]
403 #[ethevent(
404 name = "NewHoprNodeStakeModule",
405 abi = "NewHoprNodeStakeModule(address,address)"
406 )]
407 pub struct NewHoprNodeStakeModuleFilter {
408 #[ethevent(indexed)]
409 pub module_implementation: ::ethers::core::types::Address,
410 pub instance: ::ethers::core::types::Address,
411 }
412 #[derive(
413 Clone,
414 ::ethers::contract::EthEvent,
415 ::ethers::contract::EthDisplay,
416 serde::Serialize,
417 serde::Deserialize,
418 Default,
419 Debug,
420 PartialEq,
421 Eq,
422 Hash
423 )]
424 #[ethevent(name = "NewHoprNodeStakeSafe", abi = "NewHoprNodeStakeSafe(address)")]
425 pub struct NewHoprNodeStakeSafeFilter {
426 pub instance: ::ethers::core::types::Address,
427 }
428 #[derive(
430 Clone,
431 ::ethers::contract::EthAbiType,
432 serde::Serialize,
433 serde::Deserialize,
434 Debug,
435 PartialEq,
436 Eq,
437 Hash
438 )]
439 pub enum HoprNodeStakeFactoryEvents {
440 NewHoprNodeStakeModuleFilter(NewHoprNodeStakeModuleFilter),
441 NewHoprNodeStakeSafeFilter(NewHoprNodeStakeSafeFilter),
442 }
443 impl ::ethers::contract::EthLogDecode for HoprNodeStakeFactoryEvents {
444 fn decode_log(
445 log: &::ethers::core::abi::RawLog,
446 ) -> ::core::result::Result<Self, ::ethers::core::abi::Error> {
447 if let Ok(decoded) = NewHoprNodeStakeModuleFilter::decode_log(log) {
448 return Ok(
449 HoprNodeStakeFactoryEvents::NewHoprNodeStakeModuleFilter(decoded),
450 );
451 }
452 if let Ok(decoded) = NewHoprNodeStakeSafeFilter::decode_log(log) {
453 return Ok(
454 HoprNodeStakeFactoryEvents::NewHoprNodeStakeSafeFilter(decoded),
455 );
456 }
457 Err(::ethers::core::abi::Error::InvalidData)
458 }
459 }
460 impl ::core::fmt::Display for HoprNodeStakeFactoryEvents {
461 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
462 match self {
463 Self::NewHoprNodeStakeModuleFilter(element) => {
464 ::core::fmt::Display::fmt(element, f)
465 }
466 Self::NewHoprNodeStakeSafeFilter(element) => {
467 ::core::fmt::Display::fmt(element, f)
468 }
469 }
470 }
471 }
472 impl ::core::convert::From<NewHoprNodeStakeModuleFilter>
473 for HoprNodeStakeFactoryEvents {
474 fn from(value: NewHoprNodeStakeModuleFilter) -> Self {
475 Self::NewHoprNodeStakeModuleFilter(value)
476 }
477 }
478 impl ::core::convert::From<NewHoprNodeStakeSafeFilter>
479 for HoprNodeStakeFactoryEvents {
480 fn from(value: NewHoprNodeStakeSafeFilter) -> Self {
481 Self::NewHoprNodeStakeSafeFilter(value)
482 }
483 }
484 #[derive(
486 Clone,
487 ::ethers::contract::EthCall,
488 ::ethers::contract::EthDisplay,
489 serde::Serialize,
490 serde::Deserialize,
491 Default,
492 Debug,
493 PartialEq,
494 Eq,
495 Hash
496 )]
497 #[ethcall(name = "clone", abi = "clone(address,address[],uint256,bytes32)")]
498 pub struct CloneCall {
499 pub module_singleton_address: ::ethers::core::types::Address,
500 pub admins: ::std::vec::Vec<::ethers::core::types::Address>,
501 pub nonce: ::ethers::core::types::U256,
502 pub default_target: [u8; 32],
503 }
504 #[derive(
506 Clone,
507 ::ethers::contract::EthCall,
508 ::ethers::contract::EthDisplay,
509 serde::Serialize,
510 serde::Deserialize,
511 Default,
512 Debug,
513 PartialEq,
514 Eq,
515 Hash
516 )]
517 #[ethcall(
518 name = "predictDeterministicAddress",
519 abi = "predictDeterministicAddress(address,bytes32)"
520 )]
521 pub struct PredictDeterministicAddressCall {
522 pub implementation: ::ethers::core::types::Address,
523 pub salt: [u8; 32],
524 }
525 #[derive(
527 Clone,
528 ::ethers::contract::EthCall,
529 ::ethers::contract::EthDisplay,
530 serde::Serialize,
531 serde::Deserialize,
532 Default,
533 Debug,
534 PartialEq,
535 Eq,
536 Hash
537 )]
538 #[ethcall(name = "safeVersion", abi = "safeVersion()")]
539 pub struct SafeVersionCall;
540 #[derive(
542 Clone,
543 ::ethers::contract::EthAbiType,
544 serde::Serialize,
545 serde::Deserialize,
546 Debug,
547 PartialEq,
548 Eq,
549 Hash
550 )]
551 pub enum HoprNodeStakeFactoryCalls {
552 Clone(CloneCall),
553 PredictDeterministicAddress(PredictDeterministicAddressCall),
554 SafeVersion(SafeVersionCall),
555 }
556 impl ::ethers::core::abi::AbiDecode for HoprNodeStakeFactoryCalls {
557 fn decode(
558 data: impl AsRef<[u8]>,
559 ) -> ::core::result::Result<Self, ::ethers::core::abi::AbiError> {
560 let data = data.as_ref();
561 if let Ok(decoded) = <CloneCall as ::ethers::core::abi::AbiDecode>::decode(
562 data,
563 ) {
564 return Ok(Self::Clone(decoded));
565 }
566 if let Ok(decoded) = <PredictDeterministicAddressCall as ::ethers::core::abi::AbiDecode>::decode(
567 data,
568 ) {
569 return Ok(Self::PredictDeterministicAddress(decoded));
570 }
571 if let Ok(decoded) = <SafeVersionCall as ::ethers::core::abi::AbiDecode>::decode(
572 data,
573 ) {
574 return Ok(Self::SafeVersion(decoded));
575 }
576 Err(::ethers::core::abi::Error::InvalidData.into())
577 }
578 }
579 impl ::ethers::core::abi::AbiEncode for HoprNodeStakeFactoryCalls {
580 fn encode(self) -> Vec<u8> {
581 match self {
582 Self::Clone(element) => ::ethers::core::abi::AbiEncode::encode(element),
583 Self::PredictDeterministicAddress(element) => {
584 ::ethers::core::abi::AbiEncode::encode(element)
585 }
586 Self::SafeVersion(element) => {
587 ::ethers::core::abi::AbiEncode::encode(element)
588 }
589 }
590 }
591 }
592 impl ::core::fmt::Display for HoprNodeStakeFactoryCalls {
593 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
594 match self {
595 Self::Clone(element) => ::core::fmt::Display::fmt(element, f),
596 Self::PredictDeterministicAddress(element) => {
597 ::core::fmt::Display::fmt(element, f)
598 }
599 Self::SafeVersion(element) => ::core::fmt::Display::fmt(element, f),
600 }
601 }
602 }
603 impl ::core::convert::From<CloneCall> for HoprNodeStakeFactoryCalls {
604 fn from(value: CloneCall) -> Self {
605 Self::Clone(value)
606 }
607 }
608 impl ::core::convert::From<PredictDeterministicAddressCall>
609 for HoprNodeStakeFactoryCalls {
610 fn from(value: PredictDeterministicAddressCall) -> Self {
611 Self::PredictDeterministicAddress(value)
612 }
613 }
614 impl ::core::convert::From<SafeVersionCall> for HoprNodeStakeFactoryCalls {
615 fn from(value: SafeVersionCall) -> Self {
616 Self::SafeVersion(value)
617 }
618 }
619 #[derive(
621 Clone,
622 ::ethers::contract::EthAbiType,
623 ::ethers::contract::EthAbiCodec,
624 serde::Serialize,
625 serde::Deserialize,
626 Default,
627 Debug,
628 PartialEq,
629 Eq,
630 Hash
631 )]
632 pub struct CloneReturn(
633 pub ::ethers::core::types::Address,
634 pub ::ethers::core::types::Address,
635 );
636 #[derive(
638 Clone,
639 ::ethers::contract::EthAbiType,
640 ::ethers::contract::EthAbiCodec,
641 serde::Serialize,
642 serde::Deserialize,
643 Default,
644 Debug,
645 PartialEq,
646 Eq,
647 Hash
648 )]
649 pub struct PredictDeterministicAddressReturn {
650 pub predicted: ::ethers::core::types::Address,
651 }
652 #[derive(
654 Clone,
655 ::ethers::contract::EthAbiType,
656 ::ethers::contract::EthAbiCodec,
657 serde::Serialize,
658 serde::Deserialize,
659 Default,
660 Debug,
661 PartialEq,
662 Eq,
663 Hash
664 )]
665 pub struct SafeVersionReturn(pub ::std::string::String);
666}