pub struct PoolFeeProtocolUpdate {
pub chain: SharedChain,
pub dex: SharedDex,
pub instrument_id: InstrumentId,
pub pool_identifier: PoolIdentifier,
pub block: u64,
pub transaction_hash: String,
pub transaction_index: u32,
pub log_index: u32,
pub fee_protocol0_new: u8,
pub fee_protocol1_new: u8,
pub ts_event: UnixNanos,
pub ts_init: UnixNanos,
}Expand description
Represents a protocol-fee configuration change in a Uniswap V3-style pool.
Emitted by SetFeeProtocol, this carries the new protocol-fee denominators for each token.
Only the new values are kept; the previous values in the event are not needed to rebuild state.
Fields§
§chain: SharedChainThe blockchain network where the protocol-fee change occurred.
dex: SharedDexThe decentralized exchange where the protocol-fee change occurred.
instrument_id: InstrumentIdThe instrument ID for this pool’s trading pair.
pool_identifier: PoolIdentifierThe unique identifier for this pool (could be an address or other protocol-specific hex string).
block: u64The blockchain block number where the protocol-fee change occurred.
transaction_hash: StringThe unique hash identifier of the blockchain transaction containing the protocol-fee change.
transaction_index: u32The index position of the transaction within the block.
log_index: u32The index position of the protocol-fee change event log within the transaction.
fee_protocol0_new: u8The new protocol-fee denominator for token0 (lower nibble of the packed fee_protocol).
fee_protocol1_new: u8The new protocol-fee denominator for token1 (upper nibble of the packed fee_protocol).
ts_event: UnixNanosUNIX timestamp (nanoseconds) when the protocol-fee change event occurred.
ts_init: UnixNanosUNIX timestamp (nanoseconds) when the instance was created.
Implementations§
Source§impl PoolFeeProtocolUpdate
impl PoolFeeProtocolUpdate
Sourcepub const fn new(
chain: SharedChain,
dex: SharedDex,
instrument_id: InstrumentId,
pool_identifier: PoolIdentifier,
block: u64,
transaction_hash: String,
transaction_index: u32,
log_index: u32,
fee_protocol0_new: u8,
fee_protocol1_new: u8,
ts_event: UnixNanos,
ts_init: UnixNanos,
) -> Self
pub const fn new( chain: SharedChain, dex: SharedDex, instrument_id: InstrumentId, pool_identifier: PoolIdentifier, block: u64, transaction_hash: String, transaction_index: u32, log_index: u32, fee_protocol0_new: u8, fee_protocol1_new: u8, ts_event: UnixNanos, ts_init: UnixNanos, ) -> Self
Creates a new PoolFeeProtocolUpdate instance with the specified properties.
Trait Implementations§
Source§impl Clone for PoolFeeProtocolUpdate
impl Clone for PoolFeeProtocolUpdate
Source§fn clone(&self) -> PoolFeeProtocolUpdate
fn clone(&self) -> PoolFeeProtocolUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PoolFeeProtocolUpdate
impl Debug for PoolFeeProtocolUpdate
Source§impl<'de> Deserialize<'de> for PoolFeeProtocolUpdate
impl<'de> Deserialize<'de> for PoolFeeProtocolUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for PoolFeeProtocolUpdate
impl Display for PoolFeeProtocolUpdate
Source§impl From<PoolFeeProtocolUpdate> for DefiData
impl From<PoolFeeProtocolUpdate> for DefiData
Source§fn from(value: PoolFeeProtocolUpdate) -> Self
fn from(value: PoolFeeProtocolUpdate) -> Self
Source§impl HasTsInit for PoolFeeProtocolUpdate
impl HasTsInit for PoolFeeProtocolUpdate
Source§impl PartialEq for PoolFeeProtocolUpdate
impl PartialEq for PoolFeeProtocolUpdate
Source§fn eq(&self, other: &PoolFeeProtocolUpdate) -> bool
fn eq(&self, other: &PoolFeeProtocolUpdate) -> bool
self and other values to be equal, and is used by ==.