Skip to content

Commit

Permalink
Drop unique_transfer_id
Browse files Browse the repository at this point in the history
  • Loading branch information
aalan3 committed Aug 21, 2023
1 parent 240d09e commit 09e374d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions macros/models/_sector/nft/nft_transfers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ FROM(
, et."from" AS executed_by
{%- endif %}
, t.evt_tx_hash AS tx_hash
, '{{blockchain}}' || cast(t.evt_tx_hash as varchar) || '-{{token_standard_721}}-' || cast(t.contract_address as varchar) || '-' || cast(t.tokenId as varchar) || '-' || cast(t."from" as varchar) || '-' || cast(t.to as varchar) || '-1-' || cast(t.evt_index as varchar) AS unique_transfer_id
FROM {{ erc721_transfers }} t
{% if is_incremental() %}
LEFT JOIN {{this}} anti_table
Expand Down Expand Up @@ -64,7 +63,6 @@ FROM(
, et."from" AS executed_by
{%- endif %}
, t.evt_tx_hash AS tx_hash
, '{{blockchain}}' || cast(t.evt_tx_hash as varchar) || '-{{token_standard_1155}}-' || cast(t.contract_address as varchar) || '-' || cast(t.id as varchar) || '-' || cast(t."from" as varchar) || '-' || cast(t.to as varchar) || '-' || cast(t.value as varchar) || '-' || cast(t.evt_index as varchar) AS unique_transfer_id
FROM {{ erc1155_single }} t
{% if is_incremental() %}
LEFT JOIN {{this}} anti_table
Expand Down Expand Up @@ -103,7 +101,6 @@ FROM(
, et."from" AS executed_by
{%- endif %}
, t.evt_tx_hash AS tx_hash
, '{{blockchain}}' || cast(t.evt_tx_hash as varchar) || '-{{token_standard_1155}}-' || cast(t.contract_address as varchar) || '-' || cast(t.id as varchar) || '-' || cast(t."from" as varchar) || '-' || cast(t.to as varchar) || '-' || cast(t.value as varchar) || '-' || cast(t.evt_index as varchar) AS unique_transfer_id
FROM (
SELECT t.evt_block_time, t.evt_block_number, t.evt_tx_hash, t.contract_address, t."from", t.to, t.evt_index {% if denormalized == True %}, t.evt_tx_from {% endif %}
, value, id
Expand Down
4 changes: 0 additions & 4 deletions models/nft/nft_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,6 @@ models:
description: "Address that executed the transaction"
- name: tx_hash
description: "Transaction hash"
- name: unique_transfer_id
tests:
- unique
description: "Unique transfer ID"

- name: nft_lending
meta:
Expand Down

0 comments on commit 09e374d

Please sign in to comment.