Skip to content

Commit

Permalink
STREAM-1051 add ez_native_transfers sql
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahNewazKhan committed Oct 15, 2024
1 parent 5bc156e commit 5f956ce
Show file tree
Hide file tree
Showing 2 changed files with 586 additions and 100 deletions.
3 changes: 1 addition & 2 deletions macros/evm/evm.yaml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,8 @@
signature:
- [block_height, INTEGER, The start block height to get the transfers from]
- [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]
- [native_token_address, STRING, The address of the native token to get the transfers of]
return_type:
- "TABLE(tx_hash STRING, block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_position INTEGER, trace_index INTEGER, identifier STRING, origin_from_address STRING, origin_to_address STRING, origin_function_signature STRING, from_address STRING, to_address STRING, amount FLOAT, amount_precise_raw NUMBER, amount_precise FLOAT, amount_usd FLOAT, ez_native_transfers_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)"
- "TABLE(tx_hash STRING, block_number NUMBER(38,0), block_timestamp TIMESTAMP_NTZ(9), tx_position NUMBER(38,0), trace_index NUMBER(19,0), identifier STRING, origin_from_address STRING, origin_to_address STRING, origin_function_signature STRING, from_address STRING, to_address STRING, amount FLOAT, amount_precise_raw STRING, amount_precise STRING, amount_usd FLOAT, ez_native_transfers_id STRING, inserted_timestamp TIMESTAMP_NTZ(9), modified_timestamp TIMESTAMP_NTZ(9))"
options: |
NOT NULL
RETURNS NULL ON NULL INPUT
Expand Down
Loading

0 comments on commit 5f956ce

Please sign in to comment.