-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding stablecoin contracts as well as celo transfer events
- Loading branch information
1 parent
7e51f44
commit c676192
Showing
6 changed files
with
681 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% macro transfer_events(chain) %} | ||
select | ||
block_timestamp, | ||
block_number, | ||
transaction_hash, | ||
event_index, | ||
origin_from_address, | ||
origin_to_address, | ||
contract_address, | ||
decoded_log:"from"::string as "from", | ||
decoded_log:"to"::string as "to", | ||
decoded_log:"value"::string as amount, | ||
tx_status | ||
from {{ ref("fact_" ~ chain ~ "_decoded_events") }} | ||
where topic_zero = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' | ||
{% if is_incremental() %} | ||
and | ||
block_timestamp | ||
>= (select dateadd('day', -3, max(block_timestamp)) from {{ this }}) | ||
{% endif %} | ||
{% endmacro %} |
Oops, something went wrong.