mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Finish Ethereum ScannerFeed
This commit is contained in:
@@ -20,8 +20,6 @@ pub(crate) struct Epoch {
|
||||
pub(crate) start: u64,
|
||||
// The hash of the last block within this Epoch.
|
||||
pub(crate) end_hash: [u8; 32],
|
||||
// The monotonic time for this Epoch.
|
||||
pub(crate) time: u64,
|
||||
}
|
||||
|
||||
impl Epoch {
|
||||
@@ -42,9 +40,9 @@ impl primitives::BlockHeader for Epoch {
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||
pub(crate) struct FullEpoch {
|
||||
epoch: Epoch,
|
||||
instructions: Vec<EthereumInInstruction>,
|
||||
executed: Vec<Executed>,
|
||||
pub(crate) epoch: Epoch,
|
||||
pub(crate) instructions: Vec<EthereumInInstruction>,
|
||||
pub(crate) executed: Vec<Executed>,
|
||||
}
|
||||
|
||||
impl primitives::Block for FullEpoch {
|
||||
|
||||
@@ -8,3 +8,5 @@ pub(crate) const DAI: [u8; 20] =
|
||||
Ok(res) => res,
|
||||
Err(_) => panic!("invalid non-test DAI hex address"),
|
||||
};
|
||||
|
||||
pub(crate) const TOKENS: [[u8; 20]; 1] = [DAI];
|
||||
|
||||
Reference in New Issue
Block a user