Add prelude; Move pb implementations.

Else the implementations would get overwritten.
This commit is contained in:
kayibal
2024-03-13 23:49:40 +00:00
parent ba2a4ced08
commit 29e5984a3a
5 changed files with 141 additions and 146 deletions

View File

@@ -1,11 +1,9 @@
use substreams_ethereum::pb::eth::v2::{Call, Log};
use substreams_ethereum::{Event, Function};
use crate::abi;
use substreams::hex;
use tycho_substreams::pb::tycho::evm::v1::{ImplementationType, ProtocolComponent, Transaction};
use substreams::scalar::BigInt;
use substreams_ethereum::pb::eth::v2::{Call, Log};
use substreams_ethereum::{Event, Function};
use tycho_substreams::prelude::*;
/// This trait defines some helpers for serializing and deserializing `Vec<BigInt` which is needed
/// to be able to encode the `normalized_weights` and `weights` `Attribute`s. This should also be