hopr_bindings/codegen/
hopr_ledger_events.rs1pub use hopr_ledger_events::*;
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_ledger_events {
13 #[allow(deprecated)]
14 fn __abi() -> ::ethers::core::abi::Abi {
15 ::ethers::core::abi::ethabi::Contract {
16 constructor: ::core::option::Option::None,
17 functions: ::std::collections::BTreeMap::new(),
18 events: ::core::convert::From::from([
19 (
20 ::std::borrow::ToOwned::to_owned("LedgerDomainSeparatorUpdated"),
21 ::std::vec![
22 ::ethers::core::abi::ethabi::Event {
23 name: ::std::borrow::ToOwned::to_owned(
24 "LedgerDomainSeparatorUpdated",
25 ),
26 inputs: ::std::vec![
27 ::ethers::core::abi::ethabi::EventParam {
28 name: ::std::borrow::ToOwned::to_owned(
29 "ledgerDomainSeparator",
30 ),
31 kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes(
32 32usize,
33 ),
34 indexed: true,
35 },
36 ],
37 anonymous: false,
38 },
39 ],
40 ),
41 ]),
42 errors: ::std::collections::BTreeMap::new(),
43 receive: false,
44 fallback: false,
45 }
46 }
47 pub static HOPRLEDGEREVENTS_ABI: ::ethers::contract::Lazy<
49 ::ethers::core::abi::Abi,
50 > = ::ethers::contract::Lazy::new(__abi);
51 pub struct HoprLedgerEvents<M>(::ethers::contract::Contract<M>);
52 impl<M> ::core::clone::Clone for HoprLedgerEvents<M> {
53 fn clone(&self) -> Self {
54 Self(::core::clone::Clone::clone(&self.0))
55 }
56 }
57 impl<M> ::core::ops::Deref for HoprLedgerEvents<M> {
58 type Target = ::ethers::contract::Contract<M>;
59 fn deref(&self) -> &Self::Target {
60 &self.0
61 }
62 }
63 impl<M> ::core::ops::DerefMut for HoprLedgerEvents<M> {
64 fn deref_mut(&mut self) -> &mut Self::Target {
65 &mut self.0
66 }
67 }
68 impl<M> ::core::fmt::Debug for HoprLedgerEvents<M> {
69 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
70 f.debug_tuple(::core::stringify!(HoprLedgerEvents))
71 .field(&self.address())
72 .finish()
73 }
74 }
75 impl<M: ::ethers::providers::Middleware> HoprLedgerEvents<M> {
76 pub fn new<T: Into<::ethers::core::types::Address>>(
79 address: T,
80 client: ::std::sync::Arc<M>,
81 ) -> Self {
82 Self(
83 ::ethers::contract::Contract::new(
84 address.into(),
85 HOPRLEDGEREVENTS_ABI.clone(),
86 client,
87 ),
88 )
89 }
90 pub fn ledger_domain_separator_updated_filter(
92 &self,
93 ) -> ::ethers::contract::builders::Event<
94 ::std::sync::Arc<M>,
95 M,
96 LedgerDomainSeparatorUpdatedFilter,
97 > {
98 self.0.event()
99 }
100 pub fn events(
102 &self,
103 ) -> ::ethers::contract::builders::Event<
104 ::std::sync::Arc<M>,
105 M,
106 LedgerDomainSeparatorUpdatedFilter,
107 > {
108 self.0.event_with_filter(::core::default::Default::default())
109 }
110 }
111 impl<M: ::ethers::providers::Middleware> From<::ethers::contract::Contract<M>>
112 for HoprLedgerEvents<M> {
113 fn from(contract: ::ethers::contract::Contract<M>) -> Self {
114 Self::new(contract.address(), contract.client())
115 }
116 }
117 #[derive(
118 Clone,
119 ::ethers::contract::EthEvent,
120 ::ethers::contract::EthDisplay,
121 serde::Serialize,
122 serde::Deserialize,
123 Default,
124 Debug,
125 PartialEq,
126 Eq,
127 Hash
128 )]
129 #[ethevent(
130 name = "LedgerDomainSeparatorUpdated",
131 abi = "LedgerDomainSeparatorUpdated(bytes32)"
132 )]
133 pub struct LedgerDomainSeparatorUpdatedFilter {
134 #[ethevent(indexed)]
135 pub ledger_domain_separator: [u8; 32],
136 }
137}