openzeppelin_rs/contracts/
IERC2309.rs1pub use ierc2309::*;
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 ierc2309 {
13 #[rustfmt::skip]
14 const __ABI: &str = "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fromTokenId\",\"type\":\"uint256\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"toTokenId\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"address\",\"name\":\"fromAddress\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"ConsecutiveTransfer\",\"outputs\":[],\"anonymous\":false}]";
15 pub static IERC2309_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 IERC2309<M>(::ethers_contract::Contract<M>);
19 impl<M> ::core::clone::Clone for IERC2309<M> {
20 fn clone(&self) -> Self {
21 Self(::core::clone::Clone::clone(&self.0))
22 }
23 }
24 impl<M> ::core::ops::Deref for IERC2309<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 IERC2309<M> {
31 fn deref_mut(&mut self) -> &mut Self::Target {
32 &mut self.0
33 }
34 }
35 impl<M> ::core::fmt::Debug for IERC2309<M> {
36 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
37 f.debug_tuple(stringify!(IERC2309)).field(&self.address()).finish()
38 }
39 }
40 impl<M: ::ethers_providers::Middleware> IERC2309<M> {
41 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 IERC2309_ABI.clone(),
51 client,
52 ),
53 )
54 }
55 pub fn consecutive_transfer_filter(
57 &self,
58 ) -> ::ethers_contract::builders::Event<
59 ::std::sync::Arc<M>,
60 M,
61 ConsecutiveTransferFilter,
62 > {
63 self.0.event()
64 }
65 pub fn events(
67 &self,
68 ) -> ::ethers_contract::builders::Event<
69 ::std::sync::Arc<M>,
70 M,
71 ConsecutiveTransferFilter,
72 > {
73 self.0.event_with_filter(::core::default::Default::default())
74 }
75 }
76 impl<M: ::ethers_providers::Middleware> From<::ethers_contract::Contract<M>>
77 for IERC2309<M> {
78 fn from(contract: ::ethers_contract::Contract<M>) -> Self {
79 Self::new(contract.address(), contract.client())
80 }
81 }
82 #[derive(
83 Clone,
84 ::ethers_contract::EthEvent,
85 ::ethers_contract::EthDisplay,
86 Default,
87 Debug,
88 PartialEq,
89 Eq,
90 Hash
91 )]
92 #[ethevent(
93 name = "ConsecutiveTransfer",
94 abi = "ConsecutiveTransfer(uint256,uint256,address,address)"
95 )]
96 pub struct ConsecutiveTransferFilter {
97 #[ethevent(indexed)]
98 pub from_token_id: ::ethers_core::types::U256,
99 pub to_token_id: ::ethers_core::types::U256,
100 #[ethevent(indexed)]
101 pub from_address: ::ethers_core::types::Address,
102 #[ethevent(indexed)]
103 pub to_address: ::ethers_core::types::Address,
104 }
105}