diff --git a/models/doc_descriptions/transfers/base_transfer_table_doc.md b/models/doc_descriptions/transfers/base_transfer_table_doc.md deleted file mode 100644 index de4ccbc5..00000000 --- a/models/doc_descriptions/transfers/base_transfer_table_doc.md +++ /dev/null @@ -1,5 +0,0 @@ -{% docs base_transfer_table_doc %} - -This table contains events on the Base Blockchain with an event name of 'Transfer'. The contract address is the token transferred, and the raw amount field is the amount of tokens transferred. Please note this amount is not decimal adjusted. This table will not contain transfers of native ETH. - -{% enddocs %} \ No newline at end of file diff --git a/models/doc_descriptions/transfers/evm_transfers_table_doc.md b/models/doc_descriptions/transfers/evm_transfers_table_doc.md new file mode 100644 index 00000000..280f6f83 --- /dev/null +++ b/models/doc_descriptions/transfers/evm_transfers_table_doc.md @@ -0,0 +1,17 @@ +{% docs evm_fact_token_transfers_table_doc %} + +This fact-based table contains emitted event logs for ERC-20 Token Transfers (e.g. `Transfer`: topic_0 = `0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`). The contract address is the token transferred, and the raw amount field is the amount of tokens transferred. The values in this table are not decimal adjusted, instead please use `core.dim_contracts` or `core.ez_token_transfers` to reference decimals or decimal adjusted values. This table does not contain ERC-721 and ERC-1155 token transfers, instead please use `nft.ez_nft_transfers`. Additionally, this table does not contain transfers of the chain's native asset, instead please use `core.ez_native_transfers`. + +{% enddocs %} + +{% docs evm_ez_token_transfers_table_doc %} + +This convenience table contains emitted event logs for ERC-20 Token Transfers (e.g. `Transfer`: topic_0 = `0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`), including decimal adjusted values, usd values, and other helpful token metadata where available for each transfer event. The contract address is the token transferred, and the raw amount field is the amount of tokens transferred. Note, this table does not contain ERC-721 and ERC-1155 token transfers, instead please use `nft.ez_nft_transfers`. Additionally, this table does not contain transfers of the chain's native asset, instead please use `core.ez_native_transfers`. + +{% enddocs %} + +{% docs evm_ez_native_transfers_table_doc %} + +This convenience table contains all transfers for the chain's native asset, sourced from internal traces (`core.fact_traces`), and includes decimal adjusted and usd values where available. The origin addresses correspond to the to and from addresses in the `core.fact_transactions` table. Note, this table does not contain ERC-721 and ERC-1155 token transfers, instead please use `nft.ez_nft_transfers`. + +{% enddocs %} \ No newline at end of file diff --git a/models/gold/core/core__ez_native_transfers.yml b/models/gold/core/core__ez_native_transfers.yml index 59423ba8..941f0c2c 100644 --- a/models/gold/core/core__ez_native_transfers.yml +++ b/models/gold/core/core__ez_native_transfers.yml @@ -1,7 +1,7 @@ version: 2 models: - name: core__ez_native_transfers - description: '{{ doc("base_ez_eth_transfers_table_doc") }}' + description: '{{ doc("evm_ez_native_transfers_table_doc") }}' columns: - name: TX_HASH diff --git a/models/gold/core/core__ez_token_transfers.yml b/models/gold/core/core__ez_token_transfers.yml index 65be6180..c1b1b900 100644 --- a/models/gold/core/core__ez_token_transfers.yml +++ b/models/gold/core/core__ez_token_transfers.yml @@ -1,7 +1,7 @@ version: 2 models: - name: core__ez_token_transfers - description: '{{ doc("base_transfer_table_doc") }}' + description: '{{ doc("evm_ez_token_transfers_table_doc") }}' columns: - name: BLOCK_NUMBER diff --git a/models/gold/core/core__fact_token_transfers.yml b/models/gold/core/core__fact_token_transfers.yml index 2f8c0c81..7dfa5234 100644 --- a/models/gold/core/core__fact_token_transfers.yml +++ b/models/gold/core/core__fact_token_transfers.yml @@ -1,7 +1,7 @@ version: 2 models: - name: core__fact_token_transfers - description: '{{ doc("base_transfer_table_doc") }}' + description: '{{ doc("evm_fact_token_transfers_table_doc") }}' columns: - name: BLOCK_NUMBER