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