* feat: Add Pancakeswap V3 Substreams module At this point it's just hard copy of Uniswap V3. It will be adapted in the following commits to make reviewing easier. * refactor: adapt uniswapv3 module logic for pancakeswap v3 The main change is how they handle protocol fees. Protocol fees are set by default depending on the fee of the pool. * refactor: use new protobuf structs The "EntityChanges" got deprecated in favor of the hybrid messages. This commit makes PancakeswapV3 module use the new structs. * fix: set correct factory address --------- Co-authored-by: zizou <111426680+flopell@users.noreply.github.com> Co-authored-by: Louise Poole <louise@datarevenue.com>
13 lines
337 B
Rust
13 lines
337 B
Rust
use anyhow::{Ok, Result};
|
|
use substreams_ethereum::Abigen;
|
|
|
|
fn main() -> Result<(), anyhow::Error> {
|
|
Abigen::new("Factory", "abi/Factory.json")?
|
|
.generate()?
|
|
.write_to_file("src/abi/factory.rs")?;
|
|
Abigen::new("Pool", "abi/Pool.json")?
|
|
.generate()?
|
|
.write_to_file("src/abi/pool.rs")?;
|
|
Ok(())
|
|
}
|