pub struct BlockAggregatedChanges {Show 15 fields
pub extractor: String,
pub chain: Chain,
pub block: Block,
pub finalized_block_height: u64,
pub db_committed_block_height: Option<u64>,
pub revert: bool,
pub state_deltas: HashMap<String, ProtocolComponentStateDelta>,
pub account_deltas: HashMap<Bytes, AccountDelta>,
pub new_tokens: HashMap<Address, Token>,
pub new_protocol_components: HashMap<String, ProtocolComponent>,
pub deleted_protocol_components: HashMap<String, ProtocolComponent>,
pub component_balances: HashMap<ComponentId, HashMap<Bytes, ComponentBalance>>,
pub account_balances: HashMap<Address, HashMap<Address, AccountBalance>>,
pub component_tvl: HashMap<String, f64>,
pub dci_update: DCIUpdate,
}Fields§
§extractor: String§chain: Chain§block: Block§finalized_block_height: u64§db_committed_block_height: Option<u64>§revert: bool§state_deltas: HashMap<String, ProtocolComponentStateDelta>§account_deltas: HashMap<Bytes, AccountDelta>§new_tokens: HashMap<Address, Token>§new_protocol_components: HashMap<String, ProtocolComponent>§deleted_protocol_components: HashMap<String, ProtocolComponent>§component_balances: HashMap<ComponentId, HashMap<Bytes, ComponentBalance>>§account_balances: HashMap<Address, HashMap<Address, AccountBalance>>§component_tvl: HashMap<String, f64>§dci_update: DCIUpdateImplementations§
Source§impl BlockAggregatedChanges
impl BlockAggregatedChanges
pub fn new( extractor: &str, chain: Chain, block: Block, db_committed_block_height: Option<u64>, finalized_block_height: u64, revert: bool, state_deltas: HashMap<String, ProtocolComponentStateDelta>, account_deltas: HashMap<Bytes, AccountDelta>, new_tokens: HashMap<Address, Token>, new_components: HashMap<String, ProtocolComponent>, deleted_components: HashMap<String, ProtocolComponent>, component_balances: HashMap<ComponentId, HashMap<Bytes, ComponentBalance>>, account_balances: HashMap<Address, HashMap<Address, AccountBalance>>, component_tvl: HashMap<String, f64>, dci_update: DCIUpdate, ) -> Self
Source§impl BlockAggregatedChanges
impl BlockAggregatedChanges
pub fn drop_state(&self) -> Self
Trait Implementations§
Source§impl BlockScoped for BlockAggregatedChanges
impl BlockScoped for BlockAggregatedChanges
Source§impl Clone for BlockAggregatedChanges
impl Clone for BlockAggregatedChanges
Source§fn clone(&self) -> BlockAggregatedChanges
fn clone(&self) -> BlockAggregatedChanges
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockAggregatedChanges
impl Debug for BlockAggregatedChanges
Source§impl DeepSizeOf for BlockAggregatedChanges
impl DeepSizeOf for BlockAggregatedChanges
Source§fn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of_children(&self, context: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object.
This does not include the size of the object itself. Read more
Source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the
object, including heap-managed storage. Read more
Source§impl Default for BlockAggregatedChanges
impl Default for BlockAggregatedChanges
Source§fn default() -> BlockAggregatedChanges
fn default() -> BlockAggregatedChanges
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockAggregatedChanges
impl<'de> Deserialize<'de> for BlockAggregatedChanges
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BlockAggregatedChanges
impl Display for BlockAggregatedChanges
Source§impl From<BlockAggregatedChanges> for BlockChanges
impl From<BlockAggregatedChanges> for BlockChanges
Source§fn from(value: BlockAggregatedChanges) -> Self
fn from(value: BlockAggregatedChanges) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlockAggregatedChanges
impl PartialEq for BlockAggregatedChanges
Source§impl Serialize for BlockAggregatedChanges
impl Serialize for BlockAggregatedChanges
impl StructuralPartialEq for BlockAggregatedChanges
Auto Trait Implementations§
impl !Freeze for BlockAggregatedChanges
impl RefUnwindSafe for BlockAggregatedChanges
impl Send for BlockAggregatedChanges
impl Sync for BlockAggregatedChanges
impl Unpin for BlockAggregatedChanges
impl UnwindSafe for BlockAggregatedChanges
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
Mutably borrows from an owned value. Read more