openzeppelin_rs/contracts/
IERC1822Proxiable.rs

1pub use ierc1822_proxiable::*;
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 ierc1822_proxiable {
13    #[rustfmt::skip]
14    const __ABI: &str = "[{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\",\"components\":[]}]}]";
15    ///The parsed JSON ABI of the contract.
16    pub static IERC1822PROXIABLE_ABI: ::ethers_contract::Lazy<::ethers_core::abi::Abi> = ::ethers_contract::Lazy::new(||
17    ::ethers_core::utils::__serde_json::from_str(__ABI).expect("ABI is always valid"));
18    pub struct IERC1822Proxiable<M>(::ethers_contract::Contract<M>);
19    impl<M> ::core::clone::Clone for IERC1822Proxiable<M> {
20        fn clone(&self) -> Self {
21            Self(::core::clone::Clone::clone(&self.0))
22        }
23    }
24    impl<M> ::core::ops::Deref for IERC1822Proxiable<M> {
25        type Target = ::ethers_contract::Contract<M>;
26        fn deref(&self) -> &Self::Target {
27            &self.0
28        }
29    }
30    impl<M> ::core::ops::DerefMut for IERC1822Proxiable<M> {
31        fn deref_mut(&mut self) -> &mut Self::Target {
32            &mut self.0
33        }
34    }
35    impl<M> ::core::fmt::Debug for IERC1822Proxiable<M> {
36        fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
37            f.debug_tuple(stringify!(IERC1822Proxiable)).field(&self.address()).finish()
38        }
39    }
40    impl<M: ::ethers_providers::Middleware> IERC1822Proxiable<M> {
41        /// Creates a new contract instance with the specified `ethers` client at
42        /// `address`. The contract derefs to a `ethers::Contract` object.
43        pub fn new<T: Into<::ethers_core::types::Address>>(
44            address: T,
45            client: ::std::sync::Arc<M>,
46        ) -> Self {
47            Self(
48                ::ethers_contract::Contract::new(
49                    address.into(),
50                    IERC1822PROXIABLE_ABI.clone(),
51                    client,
52                ),
53            )
54        }
55        ///Calls the contract's `proxiableUUID` (0x52d1902d) function
56        pub fn proxiable_uuid(
57            &self,
58        ) -> ::ethers_contract::builders::ContractCall<M, [u8; 32]> {
59            self.0
60                .method_hash([82, 209, 144, 45], ())
61                .expect("method not found (this should never happen)")
62        }
63    }
64    impl<M: ::ethers_providers::Middleware> From<::ethers_contract::Contract<M>>
65    for IERC1822Proxiable<M> {
66        fn from(contract: ::ethers_contract::Contract<M>) -> Self {
67            Self::new(contract.address(), contract.client())
68        }
69    }
70    ///Container type for all input parameters for the `proxiableUUID` function with signature `proxiableUUID()` and selector `0x52d1902d`
71    #[derive(
72        Clone,
73        ::ethers_contract::EthCall,
74        ::ethers_contract::EthDisplay,
75        Default,
76        Debug,
77        PartialEq,
78        Eq,
79        Hash
80    )]
81    #[ethcall(name = "proxiableUUID", abi = "proxiableUUID()")]
82    pub struct ProxiableUUIDCall;
83    ///Container type for all return fields from the `proxiableUUID` function with signature `proxiableUUID()` and selector `0x52d1902d`
84    #[derive(
85        Clone,
86        ::ethers_contract::EthAbiType,
87        ::ethers_contract::EthAbiCodec,
88        Default,
89        Debug,
90        PartialEq,
91        Eq,
92        Hash
93    )]
94    pub struct ProxiableUUIDReturn(pub [u8; 32]);
95}