openzeppelin_rs/contracts/
AccessControlDefaultAdminRules.rs

1pub use access_control_default_admin_rules::*;
2/// This module was auto-generated with ethers-rs Abigen.
3/// More information at: <https://github.com/gakonst/ethers-rs>
4#[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 access_control_default_admin_rules {
13    #[rustfmt::skip]
14    const __ABI: &str = "[{\"inputs\":[],\"type\":\"event\",\"name\":\"DefaultAdminDelayChangeCanceled\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"uint48\",\"name\":\"newDelay\",\"type\":\"uint48\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint48\",\"name\":\"effectSchedule\",\"type\":\"uint48\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"DefaultAdminDelayChangeScheduled\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[],\"type\":\"event\",\"name\":\"DefaultAdminTransferCanceled\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint48\",\"name\":\"acceptSchedule\",\"type\":\"uint48\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"DefaultAdminTransferScheduled\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[],\"indexed\":true},{\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\",\"components\":[],\"indexed\":true},{\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"RoleAdminChanged\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"RoleGranted\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"RoleRevoked\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"acceptDefaultAdminTransfer\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"beginDefaultAdminTransfer\",\"outputs\":[]},{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"cancelDefaultAdminTransfer\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"uint48\",\"name\":\"newDelay\",\"type\":\"uint48\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"changeDefaultAdminDelay\",\"outputs\":[]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"defaultAdmin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"defaultAdminDelay\",\"outputs\":[{\"internalType\":\"uint48\",\"name\":\"\",\"type\":\"uint48\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"defaultAdminDelayIncreaseWait\",\"outputs\":[{\"internalType\":\"uint48\",\"name\":\"\",\"type\":\"uint48\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"grantRole\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"pendingDefaultAdmin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint48\",\"name\":\"schedule\",\"type\":\"uint48\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"pendingDefaultAdminDelay\",\"outputs\":[{\"internalType\":\"uint48\",\"name\":\"newDelay\",\"type\":\"uint48\",\"components\":[]},{\"internalType\":\"uint48\",\"name\":\"schedule\",\"type\":\"uint48\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"renounceRole\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"revokeRole\",\"outputs\":[]},{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"rollbackDefaultAdminDelay\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]}]";
15    ///The parsed JSON ABI of the contract.
16    pub static ACCESSCONTROLDEFAULTADMINRULES_ABI: ::ethers_contract::Lazy<
17        ::ethers_core::abi::Abi,
18    > = ::ethers_contract::Lazy::new(|| {
19        ::ethers_core::utils::__serde_json::from_str(__ABI).expect("ABI is always valid")
20    });
21    pub struct AccessControlDefaultAdminRules<M>(::ethers_contract::Contract<M>);
22    impl<M> ::core::clone::Clone for AccessControlDefaultAdminRules<M> {
23        fn clone(&self) -> Self {
24            Self(::core::clone::Clone::clone(&self.0))
25        }
26    }
27    impl<M> ::core::ops::Deref for AccessControlDefaultAdminRules<M> {
28        type Target = ::ethers_contract::Contract<M>;
29        fn deref(&self) -> &Self::Target {
30            &self.0
31        }
32    }
33    impl<M> ::core::ops::DerefMut for AccessControlDefaultAdminRules<M> {
34        fn deref_mut(&mut self) -> &mut Self::Target {
35            &mut self.0
36        }
37    }
38    impl<M> ::core::fmt::Debug for AccessControlDefaultAdminRules<M> {
39        fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
40            f.debug_tuple(stringify!(AccessControlDefaultAdminRules))
41                .field(&self.address())
42                .finish()
43        }
44    }
45    impl<M: ::ethers_providers::Middleware> AccessControlDefaultAdminRules<M> {
46        /// Creates a new contract instance with the specified `ethers` client at
47        /// `address`. The contract derefs to a `ethers::Contract` object.
48        pub fn new<T: Into<::ethers_core::types::Address>>(
49            address: T,
50            client: ::std::sync::Arc<M>,
51        ) -> Self {
52            Self(
53                ::ethers_contract::Contract::new(
54                    address.into(),
55                    ACCESSCONTROLDEFAULTADMINRULES_ABI.clone(),
56                    client,
57                ),
58            )
59        }
60        ///Calls the contract's `DEFAULT_ADMIN_ROLE` (0xa217fddf) function
61        pub fn default_admin_role(
62            &self,
63        ) -> ::ethers_contract::builders::ContractCall<M, [u8; 32]> {
64            self.0
65                .method_hash([162, 23, 253, 223], ())
66                .expect("method not found (this should never happen)")
67        }
68        ///Calls the contract's `acceptDefaultAdminTransfer` (0xcefc1429) function
69        pub fn accept_default_admin_transfer(
70            &self,
71        ) -> ::ethers_contract::builders::ContractCall<M, ()> {
72            self.0
73                .method_hash([206, 252, 20, 41], ())
74                .expect("method not found (this should never happen)")
75        }
76        ///Calls the contract's `beginDefaultAdminTransfer` (0x634e93da) function
77        pub fn begin_default_admin_transfer(
78            &self,
79            new_admin: ::ethers_core::types::Address,
80        ) -> ::ethers_contract::builders::ContractCall<M, ()> {
81            self.0
82                .method_hash([99, 78, 147, 218], new_admin)
83                .expect("method not found (this should never happen)")
84        }
85        ///Calls the contract's `cancelDefaultAdminTransfer` (0xd602b9fd) function
86        pub fn cancel_default_admin_transfer(
87            &self,
88        ) -> ::ethers_contract::builders::ContractCall<M, ()> {
89            self.0
90                .method_hash([214, 2, 185, 253], ())
91                .expect("method not found (this should never happen)")
92        }
93        ///Calls the contract's `changeDefaultAdminDelay` (0x649a5ec7) function
94        pub fn change_default_admin_delay(
95            &self,
96            new_delay: u64,
97        ) -> ::ethers_contract::builders::ContractCall<M, ()> {
98            self.0
99                .method_hash([100, 154, 94, 199], new_delay)
100                .expect("method not found (this should never happen)")
101        }
102        ///Calls the contract's `defaultAdmin` (0x84ef8ffc) function
103        pub fn default_admin(
104            &self,
105        ) -> ::ethers_contract::builders::ContractCall<
106            M,
107            ::ethers_core::types::Address,
108        > {
109            self.0
110                .method_hash([132, 239, 143, 252], ())
111                .expect("method not found (this should never happen)")
112        }
113        ///Calls the contract's `defaultAdminDelay` (0xcc8463c8) function
114        pub fn default_admin_delay(
115            &self,
116        ) -> ::ethers_contract::builders::ContractCall<M, u64> {
117            self.0
118                .method_hash([204, 132, 99, 200], ())
119                .expect("method not found (this should never happen)")
120        }
121        ///Calls the contract's `defaultAdminDelayIncreaseWait` (0x022d63fb) function
122        pub fn default_admin_delay_increase_wait(
123            &self,
124        ) -> ::ethers_contract::builders::ContractCall<M, u64> {
125            self.0
126                .method_hash([2, 45, 99, 251], ())
127                .expect("method not found (this should never happen)")
128        }
129        ///Calls the contract's `getRoleAdmin` (0x248a9ca3) function
130        pub fn get_role_admin(
131            &self,
132            role: [u8; 32],
133        ) -> ::ethers_contract::builders::ContractCall<M, [u8; 32]> {
134            self.0
135                .method_hash([36, 138, 156, 163], role)
136                .expect("method not found (this should never happen)")
137        }
138        ///Calls the contract's `grantRole` (0x2f2ff15d) function
139        pub fn grant_role(
140            &self,
141            role: [u8; 32],
142            account: ::ethers_core::types::Address,
143        ) -> ::ethers_contract::builders::ContractCall<M, ()> {
144            self.0
145                .method_hash([47, 47, 241, 93], (role, account))
146                .expect("method not found (this should never happen)")
147        }
148        ///Calls the contract's `hasRole` (0x91d14854) function
149        pub fn has_role(
150            &self,
151            role: [u8; 32],
152            account: ::ethers_core::types::Address,
153        ) -> ::ethers_contract::builders::ContractCall<M, bool> {
154            self.0
155                .method_hash([145, 209, 72, 84], (role, account))
156                .expect("method not found (this should never happen)")
157        }
158        ///Calls the contract's `owner` (0x8da5cb5b) function
159        pub fn owner(
160            &self,
161        ) -> ::ethers_contract::builders::ContractCall<
162            M,
163            ::ethers_core::types::Address,
164        > {
165            self.0
166                .method_hash([141, 165, 203, 91], ())
167                .expect("method not found (this should never happen)")
168        }
169        ///Calls the contract's `pendingDefaultAdmin` (0xcf6eefb7) function
170        pub fn pending_default_admin(
171            &self,
172        ) -> ::ethers_contract::builders::ContractCall<
173            M,
174            (::ethers_core::types::Address, u64),
175        > {
176            self.0
177                .method_hash([207, 110, 239, 183], ())
178                .expect("method not found (this should never happen)")
179        }
180        ///Calls the contract's `pendingDefaultAdminDelay` (0xa1eda53c) function
181        pub fn pending_default_admin_delay(
182            &self,
183        ) -> ::ethers_contract::builders::ContractCall<M, (u64, u64)> {
184            self.0
185                .method_hash([161, 237, 165, 60], ())
186                .expect("method not found (this should never happen)")
187        }
188        ///Calls the contract's `renounceRole` (0x36568abe) function
189        pub fn renounce_role(
190            &self,
191            role: [u8; 32],
192            account: ::ethers_core::types::Address,
193        ) -> ::ethers_contract::builders::ContractCall<M, ()> {
194            self.0
195                .method_hash([54, 86, 138, 190], (role, account))
196                .expect("method not found (this should never happen)")
197        }
198        ///Calls the contract's `revokeRole` (0xd547741f) function
199        pub fn revoke_role(
200            &self,
201            role: [u8; 32],
202            account: ::ethers_core::types::Address,
203        ) -> ::ethers_contract::builders::ContractCall<M, ()> {
204            self.0
205                .method_hash([213, 71, 116, 31], (role, account))
206                .expect("method not found (this should never happen)")
207        }
208        ///Calls the contract's `rollbackDefaultAdminDelay` (0x0aa6220b) function
209        pub fn rollback_default_admin_delay(
210            &self,
211        ) -> ::ethers_contract::builders::ContractCall<M, ()> {
212            self.0
213                .method_hash([10, 166, 34, 11], ())
214                .expect("method not found (this should never happen)")
215        }
216        ///Calls the contract's `supportsInterface` (0x01ffc9a7) function
217        pub fn supports_interface(
218            &self,
219            interface_id: [u8; 4],
220        ) -> ::ethers_contract::builders::ContractCall<M, bool> {
221            self.0
222                .method_hash([1, 255, 201, 167], interface_id)
223                .expect("method not found (this should never happen)")
224        }
225        ///Gets the contract's `DefaultAdminDelayChangeCanceled` event
226        pub fn default_admin_delay_change_canceled_filter(
227            &self,
228        ) -> ::ethers_contract::builders::Event<
229            ::std::sync::Arc<M>,
230            M,
231            DefaultAdminDelayChangeCanceledFilter,
232        > {
233            self.0.event()
234        }
235        ///Gets the contract's `DefaultAdminDelayChangeScheduled` event
236        pub fn default_admin_delay_change_scheduled_filter(
237            &self,
238        ) -> ::ethers_contract::builders::Event<
239            ::std::sync::Arc<M>,
240            M,
241            DefaultAdminDelayChangeScheduledFilter,
242        > {
243            self.0.event()
244        }
245        ///Gets the contract's `DefaultAdminTransferCanceled` event
246        pub fn default_admin_transfer_canceled_filter(
247            &self,
248        ) -> ::ethers_contract::builders::Event<
249            ::std::sync::Arc<M>,
250            M,
251            DefaultAdminTransferCanceledFilter,
252        > {
253            self.0.event()
254        }
255        ///Gets the contract's `DefaultAdminTransferScheduled` event
256        pub fn default_admin_transfer_scheduled_filter(
257            &self,
258        ) -> ::ethers_contract::builders::Event<
259            ::std::sync::Arc<M>,
260            M,
261            DefaultAdminTransferScheduledFilter,
262        > {
263            self.0.event()
264        }
265        ///Gets the contract's `RoleAdminChanged` event
266        pub fn role_admin_changed_filter(
267            &self,
268        ) -> ::ethers_contract::builders::Event<
269            ::std::sync::Arc<M>,
270            M,
271            RoleAdminChangedFilter,
272        > {
273            self.0.event()
274        }
275        ///Gets the contract's `RoleGranted` event
276        pub fn role_granted_filter(
277            &self,
278        ) -> ::ethers_contract::builders::Event<
279            ::std::sync::Arc<M>,
280            M,
281            RoleGrantedFilter,
282        > {
283            self.0.event()
284        }
285        ///Gets the contract's `RoleRevoked` event
286        pub fn role_revoked_filter(
287            &self,
288        ) -> ::ethers_contract::builders::Event<
289            ::std::sync::Arc<M>,
290            M,
291            RoleRevokedFilter,
292        > {
293            self.0.event()
294        }
295        /// Returns an `Event` builder for all the events of this contract.
296        pub fn events(
297            &self,
298        ) -> ::ethers_contract::builders::Event<
299            ::std::sync::Arc<M>,
300            M,
301            AccessControlDefaultAdminRulesEvents,
302        > {
303            self.0.event_with_filter(::core::default::Default::default())
304        }
305    }
306    impl<M: ::ethers_providers::Middleware> From<::ethers_contract::Contract<M>>
307    for AccessControlDefaultAdminRules<M> {
308        fn from(contract: ::ethers_contract::Contract<M>) -> Self {
309            Self::new(contract.address(), contract.client())
310        }
311    }
312    #[derive(
313        Clone,
314        ::ethers_contract::EthEvent,
315        ::ethers_contract::EthDisplay,
316        Default,
317        Debug,
318        PartialEq,
319        Eq,
320        Hash
321    )]
322    #[ethevent(
323        name = "DefaultAdminDelayChangeCanceled",
324        abi = "DefaultAdminDelayChangeCanceled()"
325    )]
326    pub struct DefaultAdminDelayChangeCanceledFilter;
327    #[derive(
328        Clone,
329        ::ethers_contract::EthEvent,
330        ::ethers_contract::EthDisplay,
331        Default,
332        Debug,
333        PartialEq,
334        Eq,
335        Hash
336    )]
337    #[ethevent(
338        name = "DefaultAdminDelayChangeScheduled",
339        abi = "DefaultAdminDelayChangeScheduled(uint48,uint48)"
340    )]
341    pub struct DefaultAdminDelayChangeScheduledFilter {
342        pub new_delay: u64,
343        pub effect_schedule: u64,
344    }
345    #[derive(
346        Clone,
347        ::ethers_contract::EthEvent,
348        ::ethers_contract::EthDisplay,
349        Default,
350        Debug,
351        PartialEq,
352        Eq,
353        Hash
354    )]
355    #[ethevent(
356        name = "DefaultAdminTransferCanceled",
357        abi = "DefaultAdminTransferCanceled()"
358    )]
359    pub struct DefaultAdminTransferCanceledFilter;
360    #[derive(
361        Clone,
362        ::ethers_contract::EthEvent,
363        ::ethers_contract::EthDisplay,
364        Default,
365        Debug,
366        PartialEq,
367        Eq,
368        Hash
369    )]
370    #[ethevent(
371        name = "DefaultAdminTransferScheduled",
372        abi = "DefaultAdminTransferScheduled(address,uint48)"
373    )]
374    pub struct DefaultAdminTransferScheduledFilter {
375        #[ethevent(indexed)]
376        pub new_admin: ::ethers_core::types::Address,
377        pub accept_schedule: u64,
378    }
379    #[derive(
380        Clone,
381        ::ethers_contract::EthEvent,
382        ::ethers_contract::EthDisplay,
383        Default,
384        Debug,
385        PartialEq,
386        Eq,
387        Hash
388    )]
389    #[ethevent(
390        name = "RoleAdminChanged",
391        abi = "RoleAdminChanged(bytes32,bytes32,bytes32)"
392    )]
393    pub struct RoleAdminChangedFilter {
394        #[ethevent(indexed)]
395        pub role: [u8; 32],
396        #[ethevent(indexed)]
397        pub previous_admin_role: [u8; 32],
398        #[ethevent(indexed)]
399        pub new_admin_role: [u8; 32],
400    }
401    #[derive(
402        Clone,
403        ::ethers_contract::EthEvent,
404        ::ethers_contract::EthDisplay,
405        Default,
406        Debug,
407        PartialEq,
408        Eq,
409        Hash
410    )]
411    #[ethevent(name = "RoleGranted", abi = "RoleGranted(bytes32,address,address)")]
412    pub struct RoleGrantedFilter {
413        #[ethevent(indexed)]
414        pub role: [u8; 32],
415        #[ethevent(indexed)]
416        pub account: ::ethers_core::types::Address,
417        #[ethevent(indexed)]
418        pub sender: ::ethers_core::types::Address,
419    }
420    #[derive(
421        Clone,
422        ::ethers_contract::EthEvent,
423        ::ethers_contract::EthDisplay,
424        Default,
425        Debug,
426        PartialEq,
427        Eq,
428        Hash
429    )]
430    #[ethevent(name = "RoleRevoked", abi = "RoleRevoked(bytes32,address,address)")]
431    pub struct RoleRevokedFilter {
432        #[ethevent(indexed)]
433        pub role: [u8; 32],
434        #[ethevent(indexed)]
435        pub account: ::ethers_core::types::Address,
436        #[ethevent(indexed)]
437        pub sender: ::ethers_core::types::Address,
438    }
439    ///Container type for all of the contract's events
440    #[derive(Clone, ::ethers_contract::EthAbiType, Debug, PartialEq, Eq, Hash)]
441    pub enum AccessControlDefaultAdminRulesEvents {
442        DefaultAdminDelayChangeCanceledFilter(DefaultAdminDelayChangeCanceledFilter),
443        DefaultAdminDelayChangeScheduledFilter(DefaultAdminDelayChangeScheduledFilter),
444        DefaultAdminTransferCanceledFilter(DefaultAdminTransferCanceledFilter),
445        DefaultAdminTransferScheduledFilter(DefaultAdminTransferScheduledFilter),
446        RoleAdminChangedFilter(RoleAdminChangedFilter),
447        RoleGrantedFilter(RoleGrantedFilter),
448        RoleRevokedFilter(RoleRevokedFilter),
449    }
450    impl ::ethers_contract::EthLogDecode for AccessControlDefaultAdminRulesEvents {
451        fn decode_log(
452            log: &::ethers_core::abi::RawLog,
453        ) -> ::core::result::Result<Self, ::ethers_core::abi::Error> {
454            if let Ok(decoded) = DefaultAdminDelayChangeCanceledFilter::decode_log(log) {
455                return Ok(
456                    AccessControlDefaultAdminRulesEvents::DefaultAdminDelayChangeCanceledFilter(
457                        decoded,
458                    ),
459                );
460            }
461            if let Ok(decoded)
462                = DefaultAdminDelayChangeScheduledFilter::decode_log(log) {
463                return Ok(
464                    AccessControlDefaultAdminRulesEvents::DefaultAdminDelayChangeScheduledFilter(
465                        decoded,
466                    ),
467                );
468            }
469            if let Ok(decoded) = DefaultAdminTransferCanceledFilter::decode_log(log) {
470                return Ok(
471                    AccessControlDefaultAdminRulesEvents::DefaultAdminTransferCanceledFilter(
472                        decoded,
473                    ),
474                );
475            }
476            if let Ok(decoded) = DefaultAdminTransferScheduledFilter::decode_log(log) {
477                return Ok(
478                    AccessControlDefaultAdminRulesEvents::DefaultAdminTransferScheduledFilter(
479                        decoded,
480                    ),
481                );
482            }
483            if let Ok(decoded) = RoleAdminChangedFilter::decode_log(log) {
484                return Ok(
485                    AccessControlDefaultAdminRulesEvents::RoleAdminChangedFilter(decoded),
486                );
487            }
488            if let Ok(decoded) = RoleGrantedFilter::decode_log(log) {
489                return Ok(
490                    AccessControlDefaultAdminRulesEvents::RoleGrantedFilter(decoded),
491                );
492            }
493            if let Ok(decoded) = RoleRevokedFilter::decode_log(log) {
494                return Ok(
495                    AccessControlDefaultAdminRulesEvents::RoleRevokedFilter(decoded),
496                );
497            }
498            Err(::ethers_core::abi::Error::InvalidData)
499        }
500    }
501    impl ::core::fmt::Display for AccessControlDefaultAdminRulesEvents {
502        fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
503            match self {
504                Self::DefaultAdminDelayChangeCanceledFilter(element) => {
505                    ::core::fmt::Display::fmt(element, f)
506                }
507                Self::DefaultAdminDelayChangeScheduledFilter(element) => {
508                    ::core::fmt::Display::fmt(element, f)
509                }
510                Self::DefaultAdminTransferCanceledFilter(element) => {
511                    ::core::fmt::Display::fmt(element, f)
512                }
513                Self::DefaultAdminTransferScheduledFilter(element) => {
514                    ::core::fmt::Display::fmt(element, f)
515                }
516                Self::RoleAdminChangedFilter(element) => {
517                    ::core::fmt::Display::fmt(element, f)
518                }
519                Self::RoleGrantedFilter(element) => ::core::fmt::Display::fmt(element, f),
520                Self::RoleRevokedFilter(element) => ::core::fmt::Display::fmt(element, f),
521            }
522        }
523    }
524    impl ::core::convert::From<DefaultAdminDelayChangeCanceledFilter>
525    for AccessControlDefaultAdminRulesEvents {
526        fn from(value: DefaultAdminDelayChangeCanceledFilter) -> Self {
527            Self::DefaultAdminDelayChangeCanceledFilter(value)
528        }
529    }
530    impl ::core::convert::From<DefaultAdminDelayChangeScheduledFilter>
531    for AccessControlDefaultAdminRulesEvents {
532        fn from(value: DefaultAdminDelayChangeScheduledFilter) -> Self {
533            Self::DefaultAdminDelayChangeScheduledFilter(value)
534        }
535    }
536    impl ::core::convert::From<DefaultAdminTransferCanceledFilter>
537    for AccessControlDefaultAdminRulesEvents {
538        fn from(value: DefaultAdminTransferCanceledFilter) -> Self {
539            Self::DefaultAdminTransferCanceledFilter(value)
540        }
541    }
542    impl ::core::convert::From<DefaultAdminTransferScheduledFilter>
543    for AccessControlDefaultAdminRulesEvents {
544        fn from(value: DefaultAdminTransferScheduledFilter) -> Self {
545            Self::DefaultAdminTransferScheduledFilter(value)
546        }
547    }
548    impl ::core::convert::From<RoleAdminChangedFilter>
549    for AccessControlDefaultAdminRulesEvents {
550        fn from(value: RoleAdminChangedFilter) -> Self {
551            Self::RoleAdminChangedFilter(value)
552        }
553    }
554    impl ::core::convert::From<RoleGrantedFilter>
555    for AccessControlDefaultAdminRulesEvents {
556        fn from(value: RoleGrantedFilter) -> Self {
557            Self::RoleGrantedFilter(value)
558        }
559    }
560    impl ::core::convert::From<RoleRevokedFilter>
561    for AccessControlDefaultAdminRulesEvents {
562        fn from(value: RoleRevokedFilter) -> Self {
563            Self::RoleRevokedFilter(value)
564        }
565    }
566    ///Container type for all input parameters for the `DEFAULT_ADMIN_ROLE` function with signature `DEFAULT_ADMIN_ROLE()` and selector `0xa217fddf`
567    #[derive(
568        Clone,
569        ::ethers_contract::EthCall,
570        ::ethers_contract::EthDisplay,
571        Default,
572        Debug,
573        PartialEq,
574        Eq,
575        Hash
576    )]
577    #[ethcall(name = "DEFAULT_ADMIN_ROLE", abi = "DEFAULT_ADMIN_ROLE()")]
578    pub struct DefaultAdminRoleCall;
579    ///Container type for all input parameters for the `acceptDefaultAdminTransfer` function with signature `acceptDefaultAdminTransfer()` and selector `0xcefc1429`
580    #[derive(
581        Clone,
582        ::ethers_contract::EthCall,
583        ::ethers_contract::EthDisplay,
584        Default,
585        Debug,
586        PartialEq,
587        Eq,
588        Hash
589    )]
590    #[ethcall(name = "acceptDefaultAdminTransfer", abi = "acceptDefaultAdminTransfer()")]
591    pub struct AcceptDefaultAdminTransferCall;
592    ///Container type for all input parameters for the `beginDefaultAdminTransfer` function with signature `beginDefaultAdminTransfer(address)` and selector `0x634e93da`
593    #[derive(
594        Clone,
595        ::ethers_contract::EthCall,
596        ::ethers_contract::EthDisplay,
597        Default,
598        Debug,
599        PartialEq,
600        Eq,
601        Hash
602    )]
603    #[ethcall(
604        name = "beginDefaultAdminTransfer",
605        abi = "beginDefaultAdminTransfer(address)"
606    )]
607    pub struct BeginDefaultAdminTransferCall {
608        pub new_admin: ::ethers_core::types::Address,
609    }
610    ///Container type for all input parameters for the `cancelDefaultAdminTransfer` function with signature `cancelDefaultAdminTransfer()` and selector `0xd602b9fd`
611    #[derive(
612        Clone,
613        ::ethers_contract::EthCall,
614        ::ethers_contract::EthDisplay,
615        Default,
616        Debug,
617        PartialEq,
618        Eq,
619        Hash
620    )]
621    #[ethcall(name = "cancelDefaultAdminTransfer", abi = "cancelDefaultAdminTransfer()")]
622    pub struct CancelDefaultAdminTransferCall;
623    ///Container type for all input parameters for the `changeDefaultAdminDelay` function with signature `changeDefaultAdminDelay(uint48)` and selector `0x649a5ec7`
624    #[derive(
625        Clone,
626        ::ethers_contract::EthCall,
627        ::ethers_contract::EthDisplay,
628        Default,
629        Debug,
630        PartialEq,
631        Eq,
632        Hash
633    )]
634    #[ethcall(name = "changeDefaultAdminDelay", abi = "changeDefaultAdminDelay(uint48)")]
635    pub struct ChangeDefaultAdminDelayCall {
636        pub new_delay: u64,
637    }
638    ///Container type for all input parameters for the `defaultAdmin` function with signature `defaultAdmin()` and selector `0x84ef8ffc`
639    #[derive(
640        Clone,
641        ::ethers_contract::EthCall,
642        ::ethers_contract::EthDisplay,
643        Default,
644        Debug,
645        PartialEq,
646        Eq,
647        Hash
648    )]
649    #[ethcall(name = "defaultAdmin", abi = "defaultAdmin()")]
650    pub struct DefaultAdminCall;
651    ///Container type for all input parameters for the `defaultAdminDelay` function with signature `defaultAdminDelay()` and selector `0xcc8463c8`
652    #[derive(
653        Clone,
654        ::ethers_contract::EthCall,
655        ::ethers_contract::EthDisplay,
656        Default,
657        Debug,
658        PartialEq,
659        Eq,
660        Hash
661    )]
662    #[ethcall(name = "defaultAdminDelay", abi = "defaultAdminDelay()")]
663    pub struct DefaultAdminDelayCall;
664    ///Container type for all input parameters for the `defaultAdminDelayIncreaseWait` function with signature `defaultAdminDelayIncreaseWait()` and selector `0x022d63fb`
665    #[derive(
666        Clone,
667        ::ethers_contract::EthCall,
668        ::ethers_contract::EthDisplay,
669        Default,
670        Debug,
671        PartialEq,
672        Eq,
673        Hash
674    )]
675    #[ethcall(
676        name = "defaultAdminDelayIncreaseWait",
677        abi = "defaultAdminDelayIncreaseWait()"
678    )]
679    pub struct DefaultAdminDelayIncreaseWaitCall;
680    ///Container type for all input parameters for the `getRoleAdmin` function with signature `getRoleAdmin(bytes32)` and selector `0x248a9ca3`
681    #[derive(
682        Clone,
683        ::ethers_contract::EthCall,
684        ::ethers_contract::EthDisplay,
685        Default,
686        Debug,
687        PartialEq,
688        Eq,
689        Hash
690    )]
691    #[ethcall(name = "getRoleAdmin", abi = "getRoleAdmin(bytes32)")]
692    pub struct GetRoleAdminCall {
693        pub role: [u8; 32],
694    }
695    ///Container type for all input parameters for the `grantRole` function with signature `grantRole(bytes32,address)` and selector `0x2f2ff15d`
696    #[derive(
697        Clone,
698        ::ethers_contract::EthCall,
699        ::ethers_contract::EthDisplay,
700        Default,
701        Debug,
702        PartialEq,
703        Eq,
704        Hash
705    )]
706    #[ethcall(name = "grantRole", abi = "grantRole(bytes32,address)")]
707    pub struct GrantRoleCall {
708        pub role: [u8; 32],
709        pub account: ::ethers_core::types::Address,
710    }
711    ///Container type for all input parameters for the `hasRole` function with signature `hasRole(bytes32,address)` and selector `0x91d14854`
712    #[derive(
713        Clone,
714        ::ethers_contract::EthCall,
715        ::ethers_contract::EthDisplay,
716        Default,
717        Debug,
718        PartialEq,
719        Eq,
720        Hash
721    )]
722    #[ethcall(name = "hasRole", abi = "hasRole(bytes32,address)")]
723    pub struct HasRoleCall {
724        pub role: [u8; 32],
725        pub account: ::ethers_core::types::Address,
726    }
727    ///Container type for all input parameters for the `owner` function with signature `owner()` and selector `0x8da5cb5b`
728    #[derive(
729        Clone,
730        ::ethers_contract::EthCall,
731        ::ethers_contract::EthDisplay,
732        Default,
733        Debug,
734        PartialEq,
735        Eq,
736        Hash
737    )]
738    #[ethcall(name = "owner", abi = "owner()")]
739    pub struct OwnerCall;
740    ///Container type for all input parameters for the `pendingDefaultAdmin` function with signature `pendingDefaultAdmin()` and selector `0xcf6eefb7`
741    #[derive(
742        Clone,
743        ::ethers_contract::EthCall,
744        ::ethers_contract::EthDisplay,
745        Default,
746        Debug,
747        PartialEq,
748        Eq,
749        Hash
750    )]
751    #[ethcall(name = "pendingDefaultAdmin", abi = "pendingDefaultAdmin()")]
752    pub struct PendingDefaultAdminCall;
753    ///Container type for all input parameters for the `pendingDefaultAdminDelay` function with signature `pendingDefaultAdminDelay()` and selector `0xa1eda53c`
754    #[derive(
755        Clone,
756        ::ethers_contract::EthCall,
757        ::ethers_contract::EthDisplay,
758        Default,
759        Debug,
760        PartialEq,
761        Eq,
762        Hash
763    )]
764    #[ethcall(name = "pendingDefaultAdminDelay", abi = "pendingDefaultAdminDelay()")]
765    pub struct PendingDefaultAdminDelayCall;
766    ///Container type for all input parameters for the `renounceRole` function with signature `renounceRole(bytes32,address)` and selector `0x36568abe`
767    #[derive(
768        Clone,
769        ::ethers_contract::EthCall,
770        ::ethers_contract::EthDisplay,
771        Default,
772        Debug,
773        PartialEq,
774        Eq,
775        Hash
776    )]
777    #[ethcall(name = "renounceRole", abi = "renounceRole(bytes32,address)")]
778    pub struct RenounceRoleCall {
779        pub role: [u8; 32],
780        pub account: ::ethers_core::types::Address,
781    }
782    ///Container type for all input parameters for the `revokeRole` function with signature `revokeRole(bytes32,address)` and selector `0xd547741f`
783    #[derive(
784        Clone,
785        ::ethers_contract::EthCall,
786        ::ethers_contract::EthDisplay,
787        Default,
788        Debug,
789        PartialEq,
790        Eq,
791        Hash
792    )]
793    #[ethcall(name = "revokeRole", abi = "revokeRole(bytes32,address)")]
794    pub struct RevokeRoleCall {
795        pub role: [u8; 32],
796        pub account: ::ethers_core::types::Address,
797    }
798    ///Container type for all input parameters for the `rollbackDefaultAdminDelay` function with signature `rollbackDefaultAdminDelay()` and selector `0x0aa6220b`
799    #[derive(
800        Clone,
801        ::ethers_contract::EthCall,
802        ::ethers_contract::EthDisplay,
803        Default,
804        Debug,
805        PartialEq,
806        Eq,
807        Hash
808    )]
809    #[ethcall(name = "rollbackDefaultAdminDelay", abi = "rollbackDefaultAdminDelay()")]
810    pub struct RollbackDefaultAdminDelayCall;
811    ///Container type for all input parameters for the `supportsInterface` function with signature `supportsInterface(bytes4)` and selector `0x01ffc9a7`
812    #[derive(
813        Clone,
814        ::ethers_contract::EthCall,
815        ::ethers_contract::EthDisplay,
816        Default,
817        Debug,
818        PartialEq,
819        Eq,
820        Hash
821    )]
822    #[ethcall(name = "supportsInterface", abi = "supportsInterface(bytes4)")]
823    pub struct SupportsInterfaceCall {
824        pub interface_id: [u8; 4],
825    }
826    ///Container type for all of the contract's call
827    #[derive(Clone, ::ethers_contract::EthAbiType, Debug, PartialEq, Eq, Hash)]
828    pub enum AccessControlDefaultAdminRulesCalls {
829        DefaultAdminRole(DefaultAdminRoleCall),
830        AcceptDefaultAdminTransfer(AcceptDefaultAdminTransferCall),
831        BeginDefaultAdminTransfer(BeginDefaultAdminTransferCall),
832        CancelDefaultAdminTransfer(CancelDefaultAdminTransferCall),
833        ChangeDefaultAdminDelay(ChangeDefaultAdminDelayCall),
834        DefaultAdmin(DefaultAdminCall),
835        DefaultAdminDelay(DefaultAdminDelayCall),
836        DefaultAdminDelayIncreaseWait(DefaultAdminDelayIncreaseWaitCall),
837        GetRoleAdmin(GetRoleAdminCall),
838        GrantRole(GrantRoleCall),
839        HasRole(HasRoleCall),
840        Owner(OwnerCall),
841        PendingDefaultAdmin(PendingDefaultAdminCall),
842        PendingDefaultAdminDelay(PendingDefaultAdminDelayCall),
843        RenounceRole(RenounceRoleCall),
844        RevokeRole(RevokeRoleCall),
845        RollbackDefaultAdminDelay(RollbackDefaultAdminDelayCall),
846        SupportsInterface(SupportsInterfaceCall),
847    }
848    impl ::ethers_core::abi::AbiDecode for AccessControlDefaultAdminRulesCalls {
849        fn decode(
850            data: impl AsRef<[u8]>,
851        ) -> ::core::result::Result<Self, ::ethers_core::abi::AbiError> {
852            let data = data.as_ref();
853            if let Ok(decoded)
854                = <DefaultAdminRoleCall as ::ethers_core::abi::AbiDecode>::decode(data) {
855                return Ok(Self::DefaultAdminRole(decoded));
856            }
857            if let Ok(decoded)
858                = <AcceptDefaultAdminTransferCall as ::ethers_core::abi::AbiDecode>::decode(
859                    data,
860                ) {
861                return Ok(Self::AcceptDefaultAdminTransfer(decoded));
862            }
863            if let Ok(decoded)
864                = <BeginDefaultAdminTransferCall as ::ethers_core::abi::AbiDecode>::decode(
865                    data,
866                ) {
867                return Ok(Self::BeginDefaultAdminTransfer(decoded));
868            }
869            if let Ok(decoded)
870                = <CancelDefaultAdminTransferCall as ::ethers_core::abi::AbiDecode>::decode(
871                    data,
872                ) {
873                return Ok(Self::CancelDefaultAdminTransfer(decoded));
874            }
875            if let Ok(decoded)
876                = <ChangeDefaultAdminDelayCall as ::ethers_core::abi::AbiDecode>::decode(
877                    data,
878                ) {
879                return Ok(Self::ChangeDefaultAdminDelay(decoded));
880            }
881            if let Ok(decoded)
882                = <DefaultAdminCall as ::ethers_core::abi::AbiDecode>::decode(data) {
883                return Ok(Self::DefaultAdmin(decoded));
884            }
885            if let Ok(decoded)
886                = <DefaultAdminDelayCall as ::ethers_core::abi::AbiDecode>::decode(
887                    data,
888                ) {
889                return Ok(Self::DefaultAdminDelay(decoded));
890            }
891            if let Ok(decoded)
892                = <DefaultAdminDelayIncreaseWaitCall as ::ethers_core::abi::AbiDecode>::decode(
893                    data,
894                ) {
895                return Ok(Self::DefaultAdminDelayIncreaseWait(decoded));
896            }
897            if let Ok(decoded)
898                = <GetRoleAdminCall as ::ethers_core::abi::AbiDecode>::decode(data) {
899                return Ok(Self::GetRoleAdmin(decoded));
900            }
901            if let Ok(decoded)
902                = <GrantRoleCall as ::ethers_core::abi::AbiDecode>::decode(data) {
903                return Ok(Self::GrantRole(decoded));
904            }
905            if let Ok(decoded)
906                = <HasRoleCall as ::ethers_core::abi::AbiDecode>::decode(data) {
907                return Ok(Self::HasRole(decoded));
908            }
909            if let Ok(decoded)
910                = <OwnerCall as ::ethers_core::abi::AbiDecode>::decode(data) {
911                return Ok(Self::Owner(decoded));
912            }
913            if let Ok(decoded)
914                = <PendingDefaultAdminCall as ::ethers_core::abi::AbiDecode>::decode(
915                    data,
916                ) {
917                return Ok(Self::PendingDefaultAdmin(decoded));
918            }
919            if let Ok(decoded)
920                = <PendingDefaultAdminDelayCall as ::ethers_core::abi::AbiDecode>::decode(
921                    data,
922                ) {
923                return Ok(Self::PendingDefaultAdminDelay(decoded));
924            }
925            if let Ok(decoded)
926                = <RenounceRoleCall as ::ethers_core::abi::AbiDecode>::decode(data) {
927                return Ok(Self::RenounceRole(decoded));
928            }
929            if let Ok(decoded)
930                = <RevokeRoleCall as ::ethers_core::abi::AbiDecode>::decode(data) {
931                return Ok(Self::RevokeRole(decoded));
932            }
933            if let Ok(decoded)
934                = <RollbackDefaultAdminDelayCall as ::ethers_core::abi::AbiDecode>::decode(
935                    data,
936                ) {
937                return Ok(Self::RollbackDefaultAdminDelay(decoded));
938            }
939            if let Ok(decoded)
940                = <SupportsInterfaceCall as ::ethers_core::abi::AbiDecode>::decode(
941                    data,
942                ) {
943                return Ok(Self::SupportsInterface(decoded));
944            }
945            Err(::ethers_core::abi::Error::InvalidData.into())
946        }
947    }
948    impl ::ethers_core::abi::AbiEncode for AccessControlDefaultAdminRulesCalls {
949        fn encode(self) -> Vec<u8> {
950            match self {
951                Self::DefaultAdminRole(element) => {
952                    ::ethers_core::abi::AbiEncode::encode(element)
953                }
954                Self::AcceptDefaultAdminTransfer(element) => {
955                    ::ethers_core::abi::AbiEncode::encode(element)
956                }
957                Self::BeginDefaultAdminTransfer(element) => {
958                    ::ethers_core::abi::AbiEncode::encode(element)
959                }
960                Self::CancelDefaultAdminTransfer(element) => {
961                    ::ethers_core::abi::AbiEncode::encode(element)
962                }
963                Self::ChangeDefaultAdminDelay(element) => {
964                    ::ethers_core::abi::AbiEncode::encode(element)
965                }
966                Self::DefaultAdmin(element) => {
967                    ::ethers_core::abi::AbiEncode::encode(element)
968                }
969                Self::DefaultAdminDelay(element) => {
970                    ::ethers_core::abi::AbiEncode::encode(element)
971                }
972                Self::DefaultAdminDelayIncreaseWait(element) => {
973                    ::ethers_core::abi::AbiEncode::encode(element)
974                }
975                Self::GetRoleAdmin(element) => {
976                    ::ethers_core::abi::AbiEncode::encode(element)
977                }
978                Self::GrantRole(element) => {
979                    ::ethers_core::abi::AbiEncode::encode(element)
980                }
981                Self::HasRole(element) => ::ethers_core::abi::AbiEncode::encode(element),
982                Self::Owner(element) => ::ethers_core::abi::AbiEncode::encode(element),
983                Self::PendingDefaultAdmin(element) => {
984                    ::ethers_core::abi::AbiEncode::encode(element)
985                }
986                Self::PendingDefaultAdminDelay(element) => {
987                    ::ethers_core::abi::AbiEncode::encode(element)
988                }
989                Self::RenounceRole(element) => {
990                    ::ethers_core::abi::AbiEncode::encode(element)
991                }
992                Self::RevokeRole(element) => {
993                    ::ethers_core::abi::AbiEncode::encode(element)
994                }
995                Self::RollbackDefaultAdminDelay(element) => {
996                    ::ethers_core::abi::AbiEncode::encode(element)
997                }
998                Self::SupportsInterface(element) => {
999                    ::ethers_core::abi::AbiEncode::encode(element)
1000                }
1001            }
1002        }
1003    }
1004    impl ::core::fmt::Display for AccessControlDefaultAdminRulesCalls {
1005        fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1006            match self {
1007                Self::DefaultAdminRole(element) => ::core::fmt::Display::fmt(element, f),
1008                Self::AcceptDefaultAdminTransfer(element) => {
1009                    ::core::fmt::Display::fmt(element, f)
1010                }
1011                Self::BeginDefaultAdminTransfer(element) => {
1012                    ::core::fmt::Display::fmt(element, f)
1013                }
1014                Self::CancelDefaultAdminTransfer(element) => {
1015                    ::core::fmt::Display::fmt(element, f)
1016                }
1017                Self::ChangeDefaultAdminDelay(element) => {
1018                    ::core::fmt::Display::fmt(element, f)
1019                }
1020                Self::DefaultAdmin(element) => ::core::fmt::Display::fmt(element, f),
1021                Self::DefaultAdminDelay(element) => ::core::fmt::Display::fmt(element, f),
1022                Self::DefaultAdminDelayIncreaseWait(element) => {
1023                    ::core::fmt::Display::fmt(element, f)
1024                }
1025                Self::GetRoleAdmin(element) => ::core::fmt::Display::fmt(element, f),
1026                Self::GrantRole(element) => ::core::fmt::Display::fmt(element, f),
1027                Self::HasRole(element) => ::core::fmt::Display::fmt(element, f),
1028                Self::Owner(element) => ::core::fmt::Display::fmt(element, f),
1029                Self::PendingDefaultAdmin(element) => {
1030                    ::core::fmt::Display::fmt(element, f)
1031                }
1032                Self::PendingDefaultAdminDelay(element) => {
1033                    ::core::fmt::Display::fmt(element, f)
1034                }
1035                Self::RenounceRole(element) => ::core::fmt::Display::fmt(element, f),
1036                Self::RevokeRole(element) => ::core::fmt::Display::fmt(element, f),
1037                Self::RollbackDefaultAdminDelay(element) => {
1038                    ::core::fmt::Display::fmt(element, f)
1039                }
1040                Self::SupportsInterface(element) => ::core::fmt::Display::fmt(element, f),
1041            }
1042        }
1043    }
1044    impl ::core::convert::From<DefaultAdminRoleCall>
1045    for AccessControlDefaultAdminRulesCalls {
1046        fn from(value: DefaultAdminRoleCall) -> Self {
1047            Self::DefaultAdminRole(value)
1048        }
1049    }
1050    impl ::core::convert::From<AcceptDefaultAdminTransferCall>
1051    for AccessControlDefaultAdminRulesCalls {
1052        fn from(value: AcceptDefaultAdminTransferCall) -> Self {
1053            Self::AcceptDefaultAdminTransfer(value)
1054        }
1055    }
1056    impl ::core::convert::From<BeginDefaultAdminTransferCall>
1057    for AccessControlDefaultAdminRulesCalls {
1058        fn from(value: BeginDefaultAdminTransferCall) -> Self {
1059            Self::BeginDefaultAdminTransfer(value)
1060        }
1061    }
1062    impl ::core::convert::From<CancelDefaultAdminTransferCall>
1063    for AccessControlDefaultAdminRulesCalls {
1064        fn from(value: CancelDefaultAdminTransferCall) -> Self {
1065            Self::CancelDefaultAdminTransfer(value)
1066        }
1067    }
1068    impl ::core::convert::From<ChangeDefaultAdminDelayCall>
1069    for AccessControlDefaultAdminRulesCalls {
1070        fn from(value: ChangeDefaultAdminDelayCall) -> Self {
1071            Self::ChangeDefaultAdminDelay(value)
1072        }
1073    }
1074    impl ::core::convert::From<DefaultAdminCall>
1075    for AccessControlDefaultAdminRulesCalls {
1076        fn from(value: DefaultAdminCall) -> Self {
1077            Self::DefaultAdmin(value)
1078        }
1079    }
1080    impl ::core::convert::From<DefaultAdminDelayCall>
1081    for AccessControlDefaultAdminRulesCalls {
1082        fn from(value: DefaultAdminDelayCall) -> Self {
1083            Self::DefaultAdminDelay(value)
1084        }
1085    }
1086    impl ::core::convert::From<DefaultAdminDelayIncreaseWaitCall>
1087    for AccessControlDefaultAdminRulesCalls {
1088        fn from(value: DefaultAdminDelayIncreaseWaitCall) -> Self {
1089            Self::DefaultAdminDelayIncreaseWait(value)
1090        }
1091    }
1092    impl ::core::convert::From<GetRoleAdminCall>
1093    for AccessControlDefaultAdminRulesCalls {
1094        fn from(value: GetRoleAdminCall) -> Self {
1095            Self::GetRoleAdmin(value)
1096        }
1097    }
1098    impl ::core::convert::From<GrantRoleCall> for AccessControlDefaultAdminRulesCalls {
1099        fn from(value: GrantRoleCall) -> Self {
1100            Self::GrantRole(value)
1101        }
1102    }
1103    impl ::core::convert::From<HasRoleCall> for AccessControlDefaultAdminRulesCalls {
1104        fn from(value: HasRoleCall) -> Self {
1105            Self::HasRole(value)
1106        }
1107    }
1108    impl ::core::convert::From<OwnerCall> for AccessControlDefaultAdminRulesCalls {
1109        fn from(value: OwnerCall) -> Self {
1110            Self::Owner(value)
1111        }
1112    }
1113    impl ::core::convert::From<PendingDefaultAdminCall>
1114    for AccessControlDefaultAdminRulesCalls {
1115        fn from(value: PendingDefaultAdminCall) -> Self {
1116            Self::PendingDefaultAdmin(value)
1117        }
1118    }
1119    impl ::core::convert::From<PendingDefaultAdminDelayCall>
1120    for AccessControlDefaultAdminRulesCalls {
1121        fn from(value: PendingDefaultAdminDelayCall) -> Self {
1122            Self::PendingDefaultAdminDelay(value)
1123        }
1124    }
1125    impl ::core::convert::From<RenounceRoleCall>
1126    for AccessControlDefaultAdminRulesCalls {
1127        fn from(value: RenounceRoleCall) -> Self {
1128            Self::RenounceRole(value)
1129        }
1130    }
1131    impl ::core::convert::From<RevokeRoleCall> for AccessControlDefaultAdminRulesCalls {
1132        fn from(value: RevokeRoleCall) -> Self {
1133            Self::RevokeRole(value)
1134        }
1135    }
1136    impl ::core::convert::From<RollbackDefaultAdminDelayCall>
1137    for AccessControlDefaultAdminRulesCalls {
1138        fn from(value: RollbackDefaultAdminDelayCall) -> Self {
1139            Self::RollbackDefaultAdminDelay(value)
1140        }
1141    }
1142    impl ::core::convert::From<SupportsInterfaceCall>
1143    for AccessControlDefaultAdminRulesCalls {
1144        fn from(value: SupportsInterfaceCall) -> Self {
1145            Self::SupportsInterface(value)
1146        }
1147    }
1148    ///Container type for all return fields from the `DEFAULT_ADMIN_ROLE` function with signature `DEFAULT_ADMIN_ROLE()` and selector `0xa217fddf`
1149    #[derive(
1150        Clone,
1151        ::ethers_contract::EthAbiType,
1152        ::ethers_contract::EthAbiCodec,
1153        Default,
1154        Debug,
1155        PartialEq,
1156        Eq,
1157        Hash
1158    )]
1159    pub struct DefaultAdminRoleReturn(pub [u8; 32]);
1160    ///Container type for all return fields from the `defaultAdmin` function with signature `defaultAdmin()` and selector `0x84ef8ffc`
1161    #[derive(
1162        Clone,
1163        ::ethers_contract::EthAbiType,
1164        ::ethers_contract::EthAbiCodec,
1165        Default,
1166        Debug,
1167        PartialEq,
1168        Eq,
1169        Hash
1170    )]
1171    pub struct DefaultAdminReturn(pub ::ethers_core::types::Address);
1172    ///Container type for all return fields from the `defaultAdminDelay` function with signature `defaultAdminDelay()` and selector `0xcc8463c8`
1173    #[derive(
1174        Clone,
1175        ::ethers_contract::EthAbiType,
1176        ::ethers_contract::EthAbiCodec,
1177        Default,
1178        Debug,
1179        PartialEq,
1180        Eq,
1181        Hash
1182    )]
1183    pub struct DefaultAdminDelayReturn(pub u64);
1184    ///Container type for all return fields from the `defaultAdminDelayIncreaseWait` function with signature `defaultAdminDelayIncreaseWait()` and selector `0x022d63fb`
1185    #[derive(
1186        Clone,
1187        ::ethers_contract::EthAbiType,
1188        ::ethers_contract::EthAbiCodec,
1189        Default,
1190        Debug,
1191        PartialEq,
1192        Eq,
1193        Hash
1194    )]
1195    pub struct DefaultAdminDelayIncreaseWaitReturn(pub u64);
1196    ///Container type for all return fields from the `getRoleAdmin` function with signature `getRoleAdmin(bytes32)` and selector `0x248a9ca3`
1197    #[derive(
1198        Clone,
1199        ::ethers_contract::EthAbiType,
1200        ::ethers_contract::EthAbiCodec,
1201        Default,
1202        Debug,
1203        PartialEq,
1204        Eq,
1205        Hash
1206    )]
1207    pub struct GetRoleAdminReturn(pub [u8; 32]);
1208    ///Container type for all return fields from the `hasRole` function with signature `hasRole(bytes32,address)` and selector `0x91d14854`
1209    #[derive(
1210        Clone,
1211        ::ethers_contract::EthAbiType,
1212        ::ethers_contract::EthAbiCodec,
1213        Default,
1214        Debug,
1215        PartialEq,
1216        Eq,
1217        Hash
1218    )]
1219    pub struct HasRoleReturn(pub bool);
1220    ///Container type for all return fields from the `owner` function with signature `owner()` and selector `0x8da5cb5b`
1221    #[derive(
1222        Clone,
1223        ::ethers_contract::EthAbiType,
1224        ::ethers_contract::EthAbiCodec,
1225        Default,
1226        Debug,
1227        PartialEq,
1228        Eq,
1229        Hash
1230    )]
1231    pub struct OwnerReturn(pub ::ethers_core::types::Address);
1232    ///Container type for all return fields from the `pendingDefaultAdmin` function with signature `pendingDefaultAdmin()` and selector `0xcf6eefb7`
1233    #[derive(
1234        Clone,
1235        ::ethers_contract::EthAbiType,
1236        ::ethers_contract::EthAbiCodec,
1237        Default,
1238        Debug,
1239        PartialEq,
1240        Eq,
1241        Hash
1242    )]
1243    pub struct PendingDefaultAdminReturn {
1244        pub new_admin: ::ethers_core::types::Address,
1245        pub schedule: u64,
1246    }
1247    ///Container type for all return fields from the `pendingDefaultAdminDelay` function with signature `pendingDefaultAdminDelay()` and selector `0xa1eda53c`
1248    #[derive(
1249        Clone,
1250        ::ethers_contract::EthAbiType,
1251        ::ethers_contract::EthAbiCodec,
1252        Default,
1253        Debug,
1254        PartialEq,
1255        Eq,
1256        Hash
1257    )]
1258    pub struct PendingDefaultAdminDelayReturn {
1259        pub new_delay: u64,
1260        pub schedule: u64,
1261    }
1262    ///Container type for all return fields from the `supportsInterface` function with signature `supportsInterface(bytes4)` and selector `0x01ffc9a7`
1263    #[derive(
1264        Clone,
1265        ::ethers_contract::EthAbiType,
1266        ::ethers_contract::EthAbiCodec,
1267        Default,
1268        Debug,
1269        PartialEq,
1270        Eq,
1271        Hash
1272    )]
1273    pub struct SupportsInterfaceReturn(pub bool);
1274}