fix(curve): index two crypto factory (#114)

* fix: index two crypto factory

* ci: make clippy happy

---------

Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
This commit is contained in:
Zizou
2024-11-18 18:16:08 +01:00
committed by GitHub
parent fa9e5180fc
commit 9561cc9b8a
5 changed files with 12 additions and 7 deletions

2
substreams/Cargo.lock generated
View File

@@ -241,7 +241,7 @@ dependencies = [
[[package]]
name = "ethereum-curve"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"anyhow",
"bytes",

View File

@@ -290,7 +290,7 @@ fn map_changes(
tx_change
.tx
.as_ref()
.map_or(false, |tx| tx.hash == tx_hash)
.is_some_and(|tx| tx.hash == tx_hash)
})
{
tx_change
@@ -342,7 +342,7 @@ fn map_changes(
tx_change
.tx
.as_ref()
.map_or(false, |tx| tx.hash == tx_hash)
.is_some_and(|tx| tx.hash == tx_hash)
})
{
tx_change

View File

@@ -1,6 +1,6 @@
[package]
name = "ethereum-curve"
version = "0.3.0"
version = "0.3.1"
edition = "2021"
[lib]

View File

@@ -20,5 +20,10 @@ pub const NEW_SUSD: [u8; 20] = hex!("57ab1ec28d129707052df4df418d58a2d46d5f51");
pub const TRICRYPTO_2_LP: [u8; 20] = hex!("c4ad29ba4b3c580e6d59105fff484999997675ff");
pub const TRICRYPTO_2_MATH_CONTRACT: [u8; 20] = hex!("40745803c2faa8e8402e2ae935933d07ca8f355c");
pub const CONTRACTS_TO_INDEX: [[u8; 20]; 4] =
[CRYPTO_SWAP_NG_FACTORY, TRICRYPTO_FACTORY, TRICRYPTO_2_LP, TRICRYPTO_2_MATH_CONTRACT];
pub const CONTRACTS_TO_INDEX: [[u8; 20]; 5] = [
CRYPTO_SWAP_NG_FACTORY,
TRICRYPTO_FACTORY,
TRICRYPTO_2_LP,
TRICRYPTO_2_MATH_CONTRACT,
TWOCRYPTO_FACTORY,
];

View File

@@ -1,7 +1,7 @@
specVersion: v0.1.0
package:
name: "substreams_curve"
version: v0.3.0
version: v0.3.1
protobuf:
files: