pub struct Initialize {
pub id: <PoolId as SolType>::RustType,
pub currency0: <Currency as SolType>::RustType,
pub currency1: <Currency as SolType>::RustType,
pub fee: U24,
pub tickSpacing: I24,
pub hooks: <Hooks as SolType>::RustType,
}
Expand description
@notice Emitted when a new pool is initialized
@param id The abi encoded hash of the pool key struct for the new pool
@param currency0 The first currency of the pool by address sort order
@param currency1 The second currency of the pool by address sort order
@param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
@param tickSpacing The minimum number of ticks between initialized ticks
@param hooks The hooks contract address for the pool, or address(0) if none
Event with signature Initialize(bytes32,address,address,uint24,int24,address)
and selector 0x3fd553db44f207b1f41348cfc4d251860814af9eadc470e8e7895e4d120511f4
.
event Initialize(PoolId indexed id, Currency indexed currency0, Currency indexed currency1, uint24 fee, int24 tickSpacing, Hooks hooks);
Fields§
§id: <PoolId as SolType>::RustType
§currency0: <Currency as SolType>::RustType
§currency1: <Currency as SolType>::RustType
§fee: U24
§tickSpacing: I24
§hooks: <Hooks as SolType>::RustType
Trait Implementations§
Source§impl Clone for Initialize
impl Clone for Initialize
Source§fn clone(&self) -> Initialize
fn clone(&self) -> Initialize
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Initialize
impl Debug for Initialize
Source§impl From<&Initialize> for LogData
impl From<&Initialize> for LogData
Source§fn from(this: &Initialize) -> LogData
fn from(this: &Initialize) -> LogData
Source§impl IntoLogData for Initialize
impl IntoLogData for Initialize
Source§fn to_log_data(&self) -> LogData
fn to_log_data(&self) -> LogData
LogData
] object.Source§fn into_log_data(self) -> LogData
fn into_log_data(self) -> LogData
LogData
] object.Source§impl PartialEq for Initialize
impl PartialEq for Initialize
Source§impl SolEvent for Initialize
impl SolEvent for Initialize
Source§const SIGNATURE: &'static str = "Initialize(bytes32,address,address,uint24,int24,address)"
const SIGNATURE: &'static str = "Initialize(bytes32,address,address,uint24,int24,address)"
Source§const SIGNATURE_HASH: B256 = _
const SIGNATURE_HASH: B256 = _
keccak256(SIGNATURE)
Read moreSource§type DataTuple<'a> = (Uint<24>, Int<24>, Hooks)
type DataTuple<'a> = (Uint<24>, Int<24>, Hooks)
Source§type DataToken<'a> = <<Initialize as SolEvent>::DataTuple<'a> as SolType>::Token<'a>
type DataToken<'a> = <<Initialize as SolEvent>::DataTuple<'a> as SolType>::Token<'a>
TokenSeq
] type corresponding to the tuple.Source§type TopicList = (FixedBytes<32>, PoolId, Currency, Currency)
type TopicList = (FixedBytes<32>, PoolId, Currency, Currency)
Source§fn new(
topics: <Self::TopicList as SolType>::RustType,
data: <Self::DataTuple<'_> as SolType>::RustType,
) -> Self
fn new( topics: <Self::TopicList as SolType>::RustType, data: <Self::DataTuple<'_> as SolType>::RustType, ) -> Self
Source§fn check_signature(
topics: &<Self::TopicList as SolType>::RustType,
) -> Result<()>
fn check_signature( topics: &<Self::TopicList as SolType>::RustType, ) -> Result<()>
Source§fn tokenize_body(&self) -> Self::DataToken<'_>
fn tokenize_body(&self) -> Self::DataToken<'_>
Source§fn encode_topics_raw(&self, out: &mut [WordToken]) -> Result<()>
fn encode_topics_raw(&self, out: &mut [WordToken]) -> Result<()>
§fn new_checked(
topics: <Self::TopicList as SolType>::RustType,
data: <Self::DataTuple<'_> as SolType>::RustType,
) -> Result<Self, Error>
fn new_checked( topics: <Self::TopicList as SolType>::RustType, data: <Self::DataTuple<'_> as SolType>::RustType, ) -> Result<Self, Error>
§fn abi_encoded_size(&self) -> usize
fn abi_encoded_size(&self) -> usize
§fn encode_data_to(&self, out: &mut Vec<u8>)
fn encode_data_to(&self, out: &mut Vec<u8>)
§fn encode_data(&self) -> Vec<u8> ⓘ
fn encode_data(&self) -> Vec<u8> ⓘ
§fn encode_topics(&self) -> Vec<WordToken>
fn encode_topics(&self) -> Vec<WordToken>
§fn encode_topics_array<const LEN: usize>(&self) -> [WordToken; LEN]
fn encode_topics_array<const LEN: usize>(&self) -> [WordToken; LEN]
§fn encode_log_data(&self) -> LogData
fn encode_log_data(&self) -> LogData
LogData
].§fn encode_log(log: &Log<Self>) -> Log
fn encode_log(log: &Log<Self>) -> Log
Log
] containing this event into a [Log
] containing
[LogData
].§fn decode_topics<I, D>(
topics: I,
) -> Result<<Self::TopicList as SolType>::RustType, Error>where
I: IntoIterator<Item = D>,
D: Into<WordToken>,
fn decode_topics<I, D>(
topics: I,
) -> Result<<Self::TopicList as SolType>::RustType, Error>where
I: IntoIterator<Item = D>,
D: Into<WordToken>,
§fn abi_decode_data<'a>(
data: &'a [u8],
validate: bool,
) -> Result<<Self::DataTuple<'a> as SolType>::RustType, Error>
fn abi_decode_data<'a>( data: &'a [u8], validate: bool, ) -> Result<<Self::DataTuple<'a> as SolType>::RustType, Error>
§fn decode_raw_log<I, D>(
topics: I,
data: &[u8],
validate: bool,
) -> Result<Self, Error>where
I: IntoIterator<Item = D>,
D: Into<WordToken>,
fn decode_raw_log<I, D>(
topics: I,
data: &[u8],
validate: bool,
) -> Result<Self, Error>where
I: IntoIterator<Item = D>,
D: Into<WordToken>,
§fn decode_log_data(log: &LogData, validate: bool) -> Result<Self, Error>
fn decode_log_data(log: &LogData, validate: bool) -> Result<Self, Error>
§fn decode_log(log: &Log, validate: bool) -> Result<Log<Self>, Error>
fn decode_log(log: &Log, validate: bool) -> Result<Log<Self>, Error>
impl Eq for Initialize
impl StructuralPartialEq for Initialize
Auto Trait Implementations§
impl Freeze for Initialize
impl RefUnwindSafe for Initialize
impl Send for Initialize
impl Sync for Initialize
impl Unpin for Initialize
impl UnwindSafe for Initialize
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 112 bytes