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:
2
substreams/Cargo.lock
generated
2
substreams/Cargo.lock
generated
@@ -241,7 +241,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ethereum-curve"
|
name = "ethereum-curve"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ fn map_changes(
|
|||||||
tx_change
|
tx_change
|
||||||
.tx
|
.tx
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map_or(false, |tx| tx.hash == tx_hash)
|
.is_some_and(|tx| tx.hash == tx_hash)
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
tx_change
|
tx_change
|
||||||
@@ -342,7 +342,7 @@ fn map_changes(
|
|||||||
tx_change
|
tx_change
|
||||||
.tx
|
.tx
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map_or(false, |tx| tx.hash == tx_hash)
|
.is_some_and(|tx| tx.hash == tx_hash)
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
tx_change
|
tx_change
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ethereum-curve"
|
name = "ethereum-curve"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
|||||||
@@ -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_LP: [u8; 20] = hex!("c4ad29ba4b3c580e6d59105fff484999997675ff");
|
||||||
pub const TRICRYPTO_2_MATH_CONTRACT: [u8; 20] = hex!("40745803c2faa8e8402e2ae935933d07ca8f355c");
|
pub const TRICRYPTO_2_MATH_CONTRACT: [u8; 20] = hex!("40745803c2faa8e8402e2ae935933d07ca8f355c");
|
||||||
|
|
||||||
pub const CONTRACTS_TO_INDEX: [[u8; 20]; 4] =
|
pub const CONTRACTS_TO_INDEX: [[u8; 20]; 5] = [
|
||||||
[CRYPTO_SWAP_NG_FACTORY, TRICRYPTO_FACTORY, TRICRYPTO_2_LP, TRICRYPTO_2_MATH_CONTRACT];
|
CRYPTO_SWAP_NG_FACTORY,
|
||||||
|
TRICRYPTO_FACTORY,
|
||||||
|
TRICRYPTO_2_LP,
|
||||||
|
TRICRYPTO_2_MATH_CONTRACT,
|
||||||
|
TWOCRYPTO_FACTORY,
|
||||||
|
];
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
specVersion: v0.1.0
|
specVersion: v0.1.0
|
||||||
package:
|
package:
|
||||||
name: "substreams_curve"
|
name: "substreams_curve"
|
||||||
version: v0.3.0
|
version: v0.3.1
|
||||||
|
|
||||||
protobuf:
|
protobuf:
|
||||||
files:
|
files:
|
||||||
|
|||||||
Reference in New Issue
Block a user