openzeppelin_rs/contracts/
IERC5267.rs

1pub use ierc5267::*;
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 ierc5267 {
13    #[rustfmt::skip]
14    const __ABI: &str = "[{\"inputs\":[],\"type\":\"event\",\"name\":\"EIP712DomainChanged\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"eip712Domain\",\"outputs\":[{\"internalType\":\"bytes1\",\"name\":\"fields\",\"type\":\"bytes1\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"verifyingContract\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"uint256[]\",\"name\":\"extensions\",\"type\":\"uint256[]\",\"components\":[]}]}]";
15    ///The parsed JSON ABI of the contract.
16    pub static IERC5267_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 IERC5267<M>(::ethers_contract::Contract<M>);
19    impl<M> ::core::clone::Clone for IERC5267<M> {
20        fn clone(&self) -> Self {
21            Self(::core::clone::Clone::clone(&self.0))
22        }
23    }
24    impl<M> ::core::ops::Deref for IERC5267<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 IERC5267<M> {
31        fn deref_mut(&mut self) -> &mut Self::Target {
32            &mut self.0
33        }
34    }
35    impl<M> ::core::fmt::Debug for IERC5267<M> {
36        fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
37            f.debug_tuple(stringify!(IERC5267)).field(&self.address()).finish()
38        }
39    }
40    impl<M: ::ethers_providers::Middleware> IERC5267<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                    IERC5267_ABI.clone(),
51                    client,
52                ),
53            )
54        }
55        ///Calls the contract's `eip712Domain` (0x84b0196e) function
56        pub fn eip_712_domain(
57            &self,
58        ) -> ::ethers_contract::builders::ContractCall<
59            M,
60            (
61                [u8; 1],
62                ::std::string::String,
63                ::std::string::String,
64                ::ethers_core::types::U256,
65                ::ethers_core::types::Address,
66                [u8; 32],
67                ::std::vec::Vec<::ethers_core::types::U256>,
68            ),
69        > {
70            self.0
71                .method_hash([132, 176, 25, 110], ())
72                .expect("method not found (this should never happen)")
73        }
74        ///Gets the contract's `EIP712DomainChanged` event
75        pub fn eip712_domain_changed_filter(
76            &self,
77        ) -> ::ethers_contract::builders::Event<
78            ::std::sync::Arc<M>,
79            M,
80            Eip712DomainChangedFilter,
81        > {
82            self.0.event()
83        }
84        /// Returns an `Event` builder for all the events of this contract.
85        pub fn events(
86            &self,
87        ) -> ::ethers_contract::builders::Event<
88            ::std::sync::Arc<M>,
89            M,
90            Eip712DomainChangedFilter,
91        > {
92            self.0.event_with_filter(::core::default::Default::default())
93        }
94    }
95    impl<M: ::ethers_providers::Middleware> From<::ethers_contract::Contract<M>>
96    for IERC5267<M> {
97        fn from(contract: ::ethers_contract::Contract<M>) -> Self {
98            Self::new(contract.address(), contract.client())
99        }
100    }
101    #[derive(
102        Clone,
103        ::ethers_contract::EthEvent,
104        ::ethers_contract::EthDisplay,
105        Default,
106        Debug,
107        PartialEq,
108        Eq,
109        Hash
110    )]
111    #[ethevent(name = "EIP712DomainChanged", abi = "EIP712DomainChanged()")]
112    pub struct Eip712DomainChangedFilter;
113    ///Container type for all input parameters for the `eip712Domain` function with signature `eip712Domain()` and selector `0x84b0196e`
114    #[derive(
115        Clone,
116        ::ethers_contract::EthCall,
117        ::ethers_contract::EthDisplay,
118        Default,
119        Debug,
120        PartialEq,
121        Eq,
122        Hash
123    )]
124    #[ethcall(name = "eip712Domain", abi = "eip712Domain()")]
125    pub struct Eip712DomainCall;
126    ///Container type for all return fields from the `eip712Domain` function with signature `eip712Domain()` and selector `0x84b0196e`
127    #[derive(
128        Clone,
129        ::ethers_contract::EthAbiType,
130        ::ethers_contract::EthAbiCodec,
131        Default,
132        Debug,
133        PartialEq,
134        Eq,
135        Hash
136    )]
137    pub struct Eip712DomainReturn {
138        pub fields: [u8; 1],
139        pub name: ::std::string::String,
140        pub version: ::std::string::String,
141        pub chain_id: ::ethers_core::types::U256,
142        pub verifying_contract: ::ethers_core::types::Address,
143        pub salt: [u8; 32],
144        pub extensions: ::std::vec::Vec<::ethers_core::types::U256>,
145    }
146}