From 16bd2ecd2b610a7dd3d38fe93566fbb9664b1a69 Mon Sep 17 00:00:00 2001 From: Meghan Heintz Date: Tue, 5 Jul 2022 14:45:48 -0400 Subject: [PATCH] Uniswap unique trade id + version (#1247) * unique trade id + version --- spellbook/models/uniswap/ethereum/uniswap_ethereum_schema.yml | 4 ++-- .../models/uniswap/ethereum/uniswap_v2_ethereum_trades.sql | 2 +- .../models/uniswap/ethereum/uniswap_v3_ethereum_trades.sql | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spellbook/models/uniswap/ethereum/uniswap_ethereum_schema.yml b/spellbook/models/uniswap/ethereum/uniswap_ethereum_schema.yml index 900d5e18e08..64664da27bf 100644 --- a/spellbook/models/uniswap/ethereum/uniswap_ethereum_schema.yml +++ b/spellbook/models/uniswap/ethereum/uniswap_ethereum_schema.yml @@ -72,7 +72,7 @@ models: project: uniswap_v2 contributors: masquot, soispoke config: - tags: ['ethereum','uniswap_v2','trades'] + tags: ['ethereum','uniswap_v2','trades', 'uniswap'] description: > Uniswap V2 trades on Ethereum columns: @@ -101,7 +101,7 @@ models: project: uniswap_v3 contributors: masquot, soispoke config: - tags: ['ethereum','uniswap_v3','trades'] + tags: ['ethereum','uniswap_v3', 'trades', 'uniswap'] description: > Uniswap V3 trades on Ethereum columns: diff --git a/spellbook/models/uniswap/ethereum/uniswap_v2_ethereum_trades.sql b/spellbook/models/uniswap/ethereum/uniswap_v2_ethereum_trades.sql index dbafcd36705..b6ec2152181 100644 --- a/spellbook/models/uniswap/ethereum/uniswap_v2_ethereum_trades.sql +++ b/spellbook/models/uniswap/ethereum/uniswap_v2_ethereum_trades.sql @@ -6,7 +6,7 @@ }} SELECT - tx_hash || '-' || evt_index::string as unique_trade_id, + 'v2' || '-' || tx_hash || '-' || evt_index::string as unique_trade_id, 'ethereum' as blockchain, 'uniswap' as project, 'v2' as version, diff --git a/spellbook/models/uniswap/ethereum/uniswap_v3_ethereum_trades.sql b/spellbook/models/uniswap/ethereum/uniswap_v3_ethereum_trades.sql index ca0722bdbd6..5a302518e3a 100644 --- a/spellbook/models/uniswap/ethereum/uniswap_v3_ethereum_trades.sql +++ b/spellbook/models/uniswap/ethereum/uniswap_v3_ethereum_trades.sql @@ -3,7 +3,7 @@ }} SELECT - tx_hash || '-' || evt_index::string as unique_trade_id, + 'v3' || '-' || tx_hash || '-' || evt_index::string as unique_trade_id, 'ethereum' as blockchain, 'uniswap' as project, 'v3' as version,