Skip to content

Commit

Permalink
Uniswap unique trade id + version (#1247)
Browse files Browse the repository at this point in the history
* unique trade id + version
  • Loading branch information
dot2dotseurat authored Jul 5, 2022
1 parent 8891e0c commit 16bd2ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spellbook/models/uniswap/ethereum/uniswap_ethereum_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 16bd2ec

Please sign in to comment.