Initial pools.rs function for handling custom parameters

This commit is contained in:
0xMochan
2024-04-11 19:41:56 -05:00
parent 8dcae829b5
commit 7c75c8d3d6
9 changed files with 1525 additions and 28 deletions

View File

@@ -17,7 +17,7 @@ use itertools::Itertools;
use substreams_ethereum::Event;
use crate::{abi, pb};
use crate::abi;
use tycho_substreams::{
balances::store_balance_changes, contract::extract_contract_changes, prelude::*,
@@ -95,7 +95,12 @@ pub fn map_components(block: eth::v2::Block) -> Result<BlockTransactionProtocolC
},
],
change: ChangeType::Creation.into(),
..Default::default()
protocol_type: Some(ProtocolType {
name: "maverick_pool".into(),
financial_type: FinancialType::Swap.into(),
attribute_schema: Vec::new(),
implementation_type: ImplementationType::Vm.into(),
}),
})
})
.collect::<Vec<_>>();