fix: update sdk version for uniswapv3/v4 and ekubo (#227)
This is following the bugfix in https://github.com/propeller-heads/tycho-protocol-sdk/pull/213 Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "ethereum-uniswap-v3"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
@@ -14,8 +14,8 @@ prost = "0.11"
|
||||
ethabi = "18.0.0"
|
||||
anyhow = "1.0.75"
|
||||
hex-literal = "0.4.1"
|
||||
substreams-helper = { git = "https://github.com/propeller-heads/tycho-protocol-sdk.git", rev = "b8aeaa3" }
|
||||
tycho-substreams = { git = "https://github.com/propeller-heads/tycho-protocol-sdk.git", rev = "b8aeaa3" }
|
||||
substreams-helper = { git = "https://github.com/propeller-heads/tycho-protocol-sdk.git", tag = "0.4.0" }
|
||||
tycho-substreams = { git = "https://github.com/propeller-heads/tycho-protocol-sdk.git", tag = "0.4.0" }
|
||||
num-bigint = "0.4.4"
|
||||
hex = "0.4.3"
|
||||
tiny-keccak = "2.0"
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
specVersion: v0.1.0
|
||||
package:
|
||||
name: "arbitrum_uniswap_v3"
|
||||
version: v0.3.0
|
||||
version: v0.3.1
|
||||
url: "https://github.com/propeller-heads/tycho-protocol-sdk/tree/main/substreams/ethereum-uniswap-v3"
|
||||
|
||||
|
||||
protobuf:
|
||||
files:
|
||||
- tycho/evm/v1/common.proto
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
specVersion: v0.1.0
|
||||
package:
|
||||
name: "ethereum_uniswap_v3"
|
||||
version: v0.3.0
|
||||
version: v0.3.1
|
||||
url: "https://github.com/propeller-heads/tycho-protocol-sdk/tree/main/substreams/ethereum-uniswap-v3"
|
||||
|
||||
protobuf:
|
||||
|
||||
@@ -19,7 +19,7 @@ pub fn map_pools_created(
|
||||
|
||||
get_new_pools(&block, &mut new_pools, factory_address);
|
||||
|
||||
Ok(BlockChanges { block: Some((&block).into()), changes: new_pools })
|
||||
Ok(BlockChanges { block: Some((&block).into()), changes: new_pools, ..Default::default() })
|
||||
}
|
||||
|
||||
// Extract new pools from PoolCreated events
|
||||
@@ -83,9 +83,9 @@ fn get_new_pools(
|
||||
attribute_schema: vec![],
|
||||
implementation_type: ImplementationType::Custom.into(),
|
||||
}),
|
||||
tx: Some(tycho_tx),
|
||||
}],
|
||||
balance_changes: vec![],
|
||||
..Default::default()
|
||||
})
|
||||
};
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ pub fn map_pool_events(
|
||||
let tycho_block: Block = (&block).into();
|
||||
|
||||
let block_entity_changes =
|
||||
BlockChanges { block: Some(tycho_block), changes: tx_entity_changes };
|
||||
BlockChanges { block: Some(tycho_block), changes: tx_entity_changes, ..Default::default() };
|
||||
|
||||
Ok(block_entity_changes)
|
||||
}
|
||||
@@ -146,6 +146,7 @@ fn update_tx_changes_map(
|
||||
entity_changes,
|
||||
balance_changes,
|
||||
component_changes: vec![],
|
||||
..Default::default()
|
||||
};
|
||||
tx_changes_map.insert(tx_hash, tx_changes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user